
var pageHasBeenLoaded=false;var adSpaceName_=undefined;var adRequestId_=undefined;var ads_=new Array();var AD_SERVER='http://media.pinksheets.com';var AD_PREFIX='psAd';var TEXT_AD_PREFIX='psTextAd';var isAuthenticated=false;var CMS_EDITOR_SIZE='400px';var inlineEditor=undefined;var CMS_FOOTER=new PageTextContent('cmsFooter','/pinksheets/footer',undefined,CMS_EDITOR_SIZE);var CMS_NEWSLETTER=new PageTextContent('newsletterSignup','/pinksheets/home/newsletterSignup',undefined,'150px');var restartPageAds;var pageTracker;if(undefined!=window.PinkCommonCalls)
{window.decorateSymbols=new DecorateSymbols(new PinkCommonCalls());window.onajaxcall=function(callback,value)
{if(value&&value.criteria&&value.criteria.body)
window.decorateSymbols.doSection(value.criteria.body);}}
function window_OnLoad()
{if(undefined!=document.nosymb)
document.nosymb.symbol.focus()
else if(undefined!=document.formname)
document.formname.symbol.focus();if(document.all)
{restartPageAds=restartPageAds_MS;initAds_MS();}
else
{restartPageAds=restartPageAds_;initAds_();}
if(undefined!=window.contentContext)
{contentContext[contentContext.length]=CMS_FOOTER;contentContext[contentContext.length]=CMS_NEWSLETTER;}
else
contentContext=[CMS_FOOTER,CMS_NEWSLETTER];inlineEditor=new ContentInlineEditor(new PinkContentCalls(),contentContext);inlineEditor.init();if(undefined!=window.initPage)
window.initPage();setupPageLogin();logger=new PinkCommonCalls();pageTracker=_gat._getTracker("UA-1758556-1");logThisPageHit();pageHasBeenLoaded=true;}
function go(form)
{var symbol=form.symbol.value;if((undefined==symbol)||(0==symbol.length))
{window.alert('Please provide the Symbol.');form.symbol.focus();return false;}
appNav.gotoQuotePage(symbol);return false;}
function leavingSite(){alert('You are now leaving the Pink Sheets web site');}
function AdInfo(id,width,height,site,size,frameFunction,srcFunction)
{this.id=id;this.width=width;this.height=height;this.site=site;this.size=size;this.frameFunction=frameFunction;this.srcFunction=srcFunction;}
function writeAd(width,height,align,site,size)
{if(undefined==align)align='center';if(undefined==site)site='pinksheets.com';if(undefined==size)size=width+'x'+height;var id=AD_PREFIX+ads_.length;ads_[ads_.length]=new AdInfo(id,width,height,site,size,createAdFrame,createAdSource);document.write('<div id="'+id+'" style="text-align: '+align+';" class="noprint"></div>');}
function writeTextAd(width,height,align,site,size)
{if(undefined==align)align='center';if(undefined==site)site='pinksheets.com';if(undefined==size)size='TEXT';var id=TEXT_AD_PREFIX+ads_.length;var item=new AdInfo(id,width,height,site,size,createTextAdFrame,createTextAdSource);ads_[ads_.length]=item;document.write('<div id="'+id+'" style="text-align: '+align+';" class="noprint"></div>');}
function createAdFrame_(width,height,src)
{var output=document.createElement('iframe');output.src=src;output.width=width;output.height=height;output.allowTransparency=true;output.hspace=0;output.vspace=0;output.scrolling='no';output.frameBorder=0;output.marginHeight=0;output.marginWidth=0;return output;}
function createAdFrame(value)
{return createAdFrame_(value.width,value.height,createAdSource(value));}
function createTextAdFrame(value)
{return createAdFrame_(value.width,value.height,createTextAdSource(value));}
function createAdSource(value){return createAdSource_(value.size,value.site);}
function createTextAdSource(value){return createAdSource_(value.size,value.site);}
function createAdSource_(size,site)
{return createAdSourceByServer(size,site,'hserver');}
function createAdSourceByServer(size,site,server)
{var target='/site='+site+'/area='+getAdSpaceName()+'/aamsz='+size+'/';var requestId=getAdRequestId();var pageNum=requestId;return AD_SERVER+'/'+server+'/acc_random='+requestId+target+'/pageid='+pageNum;}
function getAdSpaceName()
{if(undefined==adSpaceName_)
{var pathName=window.location.pathname;if(-1<pathName.indexOf('/marketactivity'))
adSpaceName_='MARKET_ACTIVITY';else if(-1<pathName.indexOf('/quote'))
adSpaceName_='QUOTES_SECTION';else if(-1<pathName.indexOf('/companysearch'))
adSpaceName_='COMPANY_SEARCH';else if(-1<pathName.indexOf('issuer'))
adSpaceName_='ISSUERS';else if('/pink/index.jsp'==pathName)
adSpaceName_='HOME_PAGE';else
adSpaceName_='ROS';}
return adSpaceName_;}
function getAdRequestId()
{if(undefined==adRequestId_)
adRequestId_=((new Date()).getTime()%2147483648)+Math.random();return adRequestId_;}
function initAds_MS()
{adRequestId_=undefined;for(var i=0;i<ads_.length;i++)
{var ad=ads_[i];ad.body=document.getElementById(ad.id);ad.body.appendChild(ad.frameFunction(ad));}}
function initAds_()
{adRequestId_=undefined;for(var i=0;i<ads_.length;i++)
{var ad=ads_[i];ad.body=document.getElementById(ad.id);ad.iframe=ad.frameFunction(ad);ad.body.appendChild(ad.iframe);}}
function restartPageServices(actionUri)
{if(!pageHasBeenLoaded)
return;window.setTimeout(function(){logThisPageHit(actionUri);},2000);window.setTimeout(restartPageAds,1500);}
function logThisPageHit(actionUri)
{pageTracker._trackPageview(actionUri);if(undefined==actionUri)
actionUri=window.location.pathname+window.location.search;logger.logRequest(APPLICATION_ID_PINKSHEETS,actionUri,symbol);}
function restartPageAds_MS()
{adRequestId_=undefined;for(var i=0;i<ads_.length;i++)
{var ad=ads_[i];ad.body.innerHTML='';ad.body.appendChild(ad.frameFunction(ad));}}
function restartPageAds_()
{adRequestId_=undefined;for(var i=0;i<ads_.length;i++)
{var ad=ads_[i];ad.iframe.src=ad.srcFunction(ad);}}
function resetFavicon()
{if(document.all)
return;var elem=document.getElementById('favicon');var link=document.createElement('link');link.id='favicon';link.href='/pink/images/favicon.ico';link.rel='shortcut icon';var parent=elem.parentNode;parent.removeChild(elem);parent.appendChild(link);}