﻿// (c)2007 InstantBull, Inc. All righhttp://localhost:3543/InstantBull.com/InstantBull.aspx?s=goog&url=http://messages.finance.yahoo.com/Stocks_(A_to_Z)/Stocks_G/threadview?m=tm&bn=25263&tid=1046697&mid=1046723&tof=1&frt=2ts reserved.
// Visit http://www.dynamicdrive.com/ for full source code
var _CURRENT_MESSAGE_ID = 1; var messagetabLeftIndex=0; var messagetabRightIndex=0;

var isIE=document.all?1:0;if(isIE)barY=20;else barY=26;var barLoad=createBar(362,barY,102,10,'#FDFEFF',1,'blue','blue',40,7,30,"javascript:barLoad.hideBar()");
function cascadedstyle(el,cssproperty,csspropertyNS){if(el.currentStyle)return el.currentStyle[cssproperty];else if(window.getComputedStyle){var elstyle=window.getComputedStyle(el,"");return elstyle.getPropertyValue(csspropertyNS)}};
var previoustab="";
function expandcontent(cid,aobject)
{
    if (document.getElementById)
    {
        highlighttab(aobject);
        if (previoustab!="")document.getElementById(previoustab).style.display="none";
            document.getElementById(cid).style.display="block";
        changeClass('frMain','frMainNormalClass');
        previoustab=cid;
        if (aobject.blur)
            aobject.blur();
        return false
    }
    else return true
};

function highlighttab(aobject){if(typeof tabobjlinks=="undefined")collecttablinks();for(i=0;i<tabobjlinks.length;i++)tabobjlinks[i].style.backgroundColor=initTabcolor;for(i=0;i<tabobjlinksRight.length;i++)tabobjlinksRight[i].style.backgroundColor=initTabcolor;
var themecolor=aobject.getAttribute("theme")?aobject.getAttribute("theme"):initTabpostcolor;aobject.style.backgroundColor=document.getElementById("tabcontentcontainer").style.backgroundColor=themecolor;aobject.style.backgroundColor=document.getElementById("tabcontentcontainer2").style.backgroundColor=themecolor};
function collecttablinks()
{
    var tabobj=document.getElementById("tablist");
    var tabobj2=document.getElementById("tablist2");
    tabobjlinks=tabobj.getElementsByTagName("A");
    tabobjlinksRight=tabobj2.getElementsByTagName("A");
};
function msieversion(){var ua=window.navigator.userAgent;var msie=ua.indexOf("MSIE ");
if(msie>0)return parseInt(ua.substring(msie+5,ua.indexOf(".",msie)));else return 0};
function do_onload()
{

    var isIE=document.all?1:0;var userAgent=window.navigator.userAgent.toLowerCase();var isMac=(userAgent.indexOf("Mac")>-1);var isWin=(userAgent.indexOf("Win")>-1);var isSafari=(userAgent.indexOf("Safari")>-1);var DOM=((document.getElementById)&&(!isIE))?1:0;var isNS=document.layers?1:0;
    var sStart=document.getElementById("tbStart").innerHTML; var sUrl=document.getElementById("tbUrl").innerHTML; var tipobj=document.all?document.all["tbTooltipSize"]:document.getElementById?document.getElementById("tbTooltipSize"):"";tipobj.style.visibility="hidden";var cookiename=(typeof persisttype!="undefined"&&persisttype=="sitewide")?"tabcontent":window.location.pathname;var cookiecheck=window.get_cookie&&get_cookie(cookiename).indexOf("|")!=-1;collecttablinks();initTabcolor=cascadedstyle(tabobjlinks[1],"backgroundColor","background-color");initTabpostcolor=cascadedstyle(tabobjlinks[0],"backgroundColor","background-color");
    if(typeof enablepersistence!="undefined"&&enablepersistence&&cookiecheck)
    {
        var cookieparse=get_cookie(cookiename).split("|");var whichtab=cookieparse[0];
        var tabcontentid=cookieparse[1];
   
        expandcontent(tabcontentid,tabobjlinks[whichtab]);
        expandcontent(tabcontentid,tabobjlinksRight[whichtab])      
    }
    else if(sStart=="")
    { 
        document.getElementById('btnMessageList').style.display = 'none'; 
        document.getElementById('btnToggleMessageView').style.display='none'; 
        setTimeout("barLoad.hideBar()",50);
                
        var arQuery = window.location.href.split("?");
        if (arQuery.length > 1)
        {
            
            var arTokens = arQuery[1].split("&");
            if (arTokens.length > 0)            
            {
                if (arTokens[0] && arTokens[0].indexOf("s=") == 0)
                    sUrl="QueryString"
            }
        }    
         
        var ckInit = Get_Cookie('ckInit');  
        if ((ckInit == null) || (ckInit == ''))
        {
            Set_Cookie("ckInit",_CURRENT_MESSAGE_ID,30000,'/','',false);
            openW('TopMenu/Home/Home.aspx');
            expandcontent("sc3",tabobjlinksRight[messagetabRightIndex]);
            //changeClass('frMain','frMainWideClass'); bWideMode=true; adjustMainFrame(true);
            
            //expandcontent("sc1",tabobjlinks[messagetabLeftIndex]);
            
        }
        else if (sUrl!="QueryString")
        {
            openW('TopMenu/Home/Home.aspx');
            expandcontent("sc3",tabobjlinksRight[messagetabRightIndex]);
            //expandcontent("sc1",tabobjlinks[messagetabLeftIndex]);

        }
        else
        {
            setBoardSourceViewOption(true);
            expandcontent("sc4",tabobjlinksRight[messagetabRightIndex]);      
            processAjaxView(document.getElementById('asbTicker').value);  
           
        }
    }
    else if(sStart!="asbTickerChanged")
    {
           expandcontent('sc4',tabobjlinksRight[1]);
    }
};
    
if(window.addEventListener)window.addEventListener("load",do_onload,false);
else if(window.attachEvent)window.attachEvent("onload",do_onload);
else if(document.getElementById)window.onload=do_onload;
function detectBrowser(){var sUA=window.navigator.userAgent;if(sUA.indexOf("Firefox")!=-1){var versionindex=sUA.indexOf("Firefox")+8;if(parseFloat(sUA.substr(versionindex,3))<1.5)alert("Please upgrade your browser to Firefox 2+ (at www.firefox.com)")}else if(sUA.indexOf("MSIE")!=-1){var versionindex=sUA.indexOf("MSIE")+5;if(parseInt(sUA.charAt(versionindex))<6)alert("Please upgrade your browser to Internet Explorer 6.0+ (Free download link at the bottom of our homepage or go to www.microsoft.com/windows/ie)")}};function detectAndSetResolution(){window.resizeTo(1024,768);if(screen.width<1024||screen.height<768)alert("This website is best viewed with a screen resolution of 1024 by 768 or higher.  \nYour current resolution is "+screen.width+" by "+screen.height+".  \nIf possible please change your resolution: place your mouse over an empty part of your desktop, next right click and select PROPERTIES, then select the SETTINGS tab and set a higher resolution.");if(screen.width==1024||screen.height==768)javascript:moveTo(0,0);} 

