function MM_swapImgRestore()
{var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function MM_findObj(n,d)
{var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&document.getElementById)x=document.getElementById(n);return x;}
function MM_swapImage()
{var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
var bookmarkurl="http://www.investorwords.com";var bookmarktitle="Investorwords.com - Investing Glossary";function addBookmark()
{window.external.AddFavorite(bookmarkurl,bookmarktitle);}
function showhide(id)
{var obj=document.getElementById(id);if(obj){obj.style.display=(obj.style.display=='none'?'':'none');}}
function track_icon(id)
{Query("GET","http://www.investorwords.com/connectors/icon_tracker.php?icon_id="+id+"&rand="+Math.random());};var MENU={};MENU.$=function()
{var elements=new Array();for(var i=0;i<arguments.length;i++)
{var element=arguments[i];if(typeof element=='string')
element=document.getElementById(element);if(arguments.length==1)
return element;elements.push(element);}
return elements;}
var $A=function(iterable)
{if(!iterable)return[];if(iterable.toArray)
{return iterable.toArray();}
else
{var results=[];for(var i=0;i<iterable.length;i++)
results.push(iterable[i]);return results;}}
Function.prototype.bind=function()
{var __method=this,args=$A(arguments),object=args.shift();return function()
{return __method.apply(object,args.concat($A(arguments)));}}
var Utils={AttachEvent:function(element,ev,func)
{if(element.addEventListener)element.addEventListener(ev,func,false);else
if(element.attachEvent)element.attachEvent('on'+ev,func);else
element['on'+ev]=func;}};function Menu(fieldName)
{this.objField=MENU.$(fieldName);this.timer=false;this.hideTimeOut=200;this.timeoutID=-1;this.containerName='menu_'+fieldName;this.requests=new Array();}
Menu.prototype={init:function(obj)
{this.items=obj.items;Utils.AttachEvent(this.objField,'mouseover',this.ShowMenu.bind(this));Utils.AttachEvent(this.objField,'mouseout',this.hideTimerSet.bind(this));},onMouseOverDiv:function(evt)
{var evt=(evt)?evt:((window.event)?event:null);var target=(evt.target)?evt.target:evt.srcElement;},onMouseOutDiv:function(evt)
{var evt=(evt)?evt:((window.event)?event:null);var target=(evt.target)?evt.target:evt.srcElement;},hideMenu:function(text)
{var elem=MENU.$(this.containerName);if(elem)
{elem.style.display='none';}},ShowMenu:function()
{var cont=this.createContainer();cont.style.display='block';this.hideTimerReset.bind(this);},hideTimerSet:function()
{this.timer=setTimeout(this.hideMenu.bind(this),this.hideTimeOut);},hideTimerReset:function()
{if(this.timer)clearTimeout(this.timer);},createContainer:function()
{if(MENU.$(this.containerName))return MENU.$(this.containerName);var body=document.getElementsByTagName('body');if(body&&body[0])
{var container=document.createElement('DIV');container.id=this.containerName;container.style.display='none';container.style.position='absolute';container.className='menu-container';container.onmouseover=this.hideTimerReset.bind(this);container.onmouseout=this.hideTimerSet.bind(this);body[0].appendChild(container);this.containerPosition(container);for(var i=0;i<this.items.length;i++)
{var it=this.items[i];var el=document.createElement('A');el.id='menu_link_'+i;el.href=it.link;el.innerHTML=it.content;el.cookie=it.cookie;el.onclick=function(){var dt=new Date();dt.setTime(dt.getTime()+(120*60*1000));SetCookie('iw_tips_from_page',this.cookie,dt);return true;};container.appendChild(el);}}
return container;},containerPosition:function(container)
{var left=this.getLeftPos(this.objField);var top=this.getTopPos(this.objField)+this.objField.offsetHeight+2;container.style.left=left+'px';container.style.top=top+'px';},getLeftPos:function(obj)
{var res=0;while(obj)
{res+=obj.offsetLeft;obj=obj.offsetParent;}
return res;},getTopPos:function(obj)
{var res=0;while(obj)
{res+=obj.offsetTop;obj=obj.offsetParent;}
return res;}};var MenuInit={Init:function()
{var el=document.getElementById(MenuInit.Element);if(el==null)
{setTimeout(function(){MenuInit.Init();},100);}
var menu=new Menu(MenuInit.Element);var params={items:[{link:'/tips/authors',content:'<img src="/tips/images/byauthor.gif" height="18" alt="By author" />',cookie:'authors'},{link:'/tips/tags',content:'<img src="/tips/images/bytag.gif" height="18" alt="By tags" />',cookie:'tags'}]};menu.init(params);MenuInit.Menu=menu;},Element:'tips_menu',Menu:null};MenuInit.Init();;function addFavorites()
{var bookmarkurl='http://www.investorwords.com';var bookmarktitle='Investorwords.com';if(window.sidebar)
{window.sidebar.addPanel(bookmarktitle,bookmarkurl,"");}
else if(window.external)
{window.external.AddFavorite(bookmarkurl,bookmarktitle);}
else if(window.opera&&window.print)
{return true;}}
function addBookmark()
{addFavorites();};function CloseFeedbackPopUp()
{var el=document.getElementById('feedback_popup');document.body.removeChild(el);return false;}
function ShowOkWindow()
{var dataDiv=document.createElement('DIV');dataDiv.className='sended-div';dataDiv.id='dataDiv';dataDiv.innerHTML='Your message was sent.';LaunchPopUpGeneral('Message sent',dataDiv,'sended',false);}
function SendFeedBack()
{var email=document.getElementById('email').value;var comments=document.getElementById('comments').value;var path='http://'+window.location.host+'/send_feedback.php';var res=Query('POST',path,'email='+escape(email)+'&comments='+escape(comments),true);if(typeof(res)!='undefined')
{if(res.toLowerCase()=='ok')
{CloseFeedbackPopUp();ShowOkWindow();}
else
{document.getElementById('emailError').innerHTML='&nbsp;';document.getElementById('commentsError').innerHTML='&nbsp;';var container=document.getElementById('feedback_popup');var errors=res.split(';');for(i=0;i<errors.length;i++)
{var pair=errors[i].split(':');var errDiv=null;switch(pair[0])
{case'email':errDiv=document.getElementById('emailError');break;case'comments':errDiv=document.getElementById('commentsError');break;default:alert('Undefined answer:\n'+res);return;break;}
if(errDiv!=null)
{errDiv.innerHTML=pair[1];}}}}}
function LaunchPopUpGeneral(caption,dataElement,prefix,buttons)
{var container=document.createElement('DIV');container.id='feedback_popup';container.className=prefix+'-popup';container.style.top=(window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop)+(prefix=='sended'?309:109);var header=document.createElement('DIV');header.className=prefix+'-header';var captionDiv=document.createElement('DIV');captionDiv.innerHTML=caption;captionDiv.className=prefix+'-caption';header.appendChild(captionDiv);var img=document.createElement('IMG');img.src='/images/close_popup.png';img.alt='Close';img.onclick=CloseFeedbackPopUp;header.appendChild(img);container.appendChild(header);container.appendChild(dataElement);var footer=document.createElement('DIV');if(buttons)
{var sendButton=document.createElement('INPUT');sendButton.type='button';sendButton.value='';sendButton.id='send_button';sendButton.className='send';sendButton.onclick=SendFeedBack;footer.appendChild(sendButton);}
var cancelButton=document.createElement('INPUT');cancelButton.type='button';cancelButton.value='';cancelButton.className='close';cancelButton.onclick=CloseFeedbackPopUp;footer.appendChild(cancelButton);footer.className=prefix+'-footer';container.appendChild(footer);document.body.appendChild(container);}
function LaunchFeedbackPopUp()
{var dataDiv=document.createElement('DIV');dataDiv.className='data-div';dataDiv.id='dataDiv';var commentsText=document.createElement('DIV');commentsText.innerHTML='We\'re always improving our search tool, and we would greatly appreciate your feedback and comments in order to continue making it better.<br />'
dataDiv.appendChild(commentsText);var comments=document.createElement('TEXTAREA');comments.rows=10;comments.cols=48;comments.id='comments';dataDiv.appendChild(comments);var commentsError=document.createElement('DIV');commentsError.id='commentsError';commentsError.innerHTML='&nbsp;';commentsError.className='error';dataDiv.appendChild(commentsError);var emailText=document.createElement('DIV');emailText.innerHTML='Enter your email address (optional):<br />'
dataDiv.appendChild(emailText);var email=document.createElement('INPUT');email.type='text';email.id='email';dataDiv.appendChild(email);var emailError=document.createElement('DIV');emailError.id='emailError';emailError.innerHTML='&nbsp;';emailError.className='error';dataDiv.appendChild(emailError);LaunchPopUpGeneral('',dataDiv,'feedback',true);};var DefinitionPage={Init:function(element)
{var el=UTILS.DOM.get(element);if(el==null)return;UTILS.DOM.addListener(el,'click',DefinitionPage.OnGoToSubject);},OnGoToSubject:function()
{var date=new Date();date.setTime(date.getTime()+(5*60*1000));SetCookie('from_getword_page',1,date);}};function showhide(id)
{var obj=document.getElementById(id);if(obj){obj.style.display=(obj.style.display=='none'?'':'none');}}
DefinitionPage.Init('goto_bysubjectpage');;jQuery(function()
{jQuery('.scroll').jScrollPane({showArrows:true,scrollbarWidth:34,dragMaxHeight:19,dragMinHeight:19});});;jQuery(document).ready(function()
{jQuery("#term_is_tooltip").tooltip({bodyHandler:function(){return'A list of the subject(s) that apply to this term.';},showURL:false});jQuery("#nearby_tooltip").tooltip({bodyHandler:function(){return'The five terms that appear before and after this term in alphabetical order.';},showURL:false});jQuery("#termintip_tooltip").tooltip({bodyHandler:function(){return'This term is specifically mentioned in the Investment Tips listed below.';},showURL:false});jQuery("#news_tooltip").tooltip({bodyHandler:function(){return'Current news items that specifically mention this term.';},showURL:false});jQuery("#definition_tooltip").tooltip({bodyHandler:function(){return'Here are some related terms that you should know the meaning of.';},showURL:false});jQuery("#other_term_tooltip").tooltip({bodyHandler:function(){return'This term is specifically mentioned in the actual term(s) listed below.';},showURL:false});jQuery("#tools_tooltip").tooltip({bodyHandler:function(){return'Some helpful tools, to help you share this term with others, and get some additional information.';},showURL:false});jQuery("#related_articles_tooltip").tooltip({bodyHandler:function(){return'Here are some important articles on InvestorGuide.com that are related to this term.';},showURL:false});jQuery("#appears_on_bd_tooltip").tooltip({bodyHandler:function(){return'Here are some related terms on BusinessDictionary that you should be aware of.';},showURL:false});jQuery("#most_popular_in_subject_icon").tooltip({bodyHandler:function(){return'A list of ten of the most popular terms in this subject.';},showURL:false});jQuery("#google_trends_tooltip").tooltip({bodyHandler:function(){return'1st horizontal line above axis is average traffic level for this term. 2nd line is 2x average traffic and so on.';},showURL:false});});