/*@cc_on @*/
/*@if (@_jscript_version >= 5)
	if(!window.XMLHttpRequest&&window.ActiveXObject){window.XMLHttpRequest=function(){var x=".XMLHTTP",s="Msxml2"+x,rg=["Microsoft"+x,s,s+".3.0",s+".4.0",s+".5.0"],c=rg.length;while(c--){try{return new ActiveXObject(rg[c]);}catch(e){}};return null;}}
@end @*/

function CClient()
{
	var szHost=document.location.hostname,szLctn=String(document.location.href);
	this.Usr = navigator.userAgent.toLowerCase();
	this.Path = szLctn.replace(/\w+:\/\/[^\/:]+(:\d*)?/,"").replace(/\?.*$/,"");

	this.Host = document.location.protocol + "//" + szHost;

	if((/billpay\.msn\.com/i).test(szHost)){document.domain = "msn.com";}

	this.IsMSIE = ((-1 != this.Usr.indexOf("msie")) && (-1 == this.Usr.indexOf("opera")));
	this.XpSvc2 = this.IsMSIE ? (-1 != this.Usr.indexOf("sv1")) : false;
	if(this.IsMSIE)
	{
		this.appVersion =
		{
			min4  : (/MSIE\x20[4-9]/i).test(this.Usr),
			min5  : (/MSIE\x20[5-9]/i).test(this.Usr),
			min55 : (/MSIE\x20([6-9]|5\.5)/i).test(this.Usr),
			min6  : (/MSIE\x20[6-9]/i).test(this.Usr)
		}
	}
	this.IsMny  = (/msmoney\x20/i).test(this.Usr);
	this.IsMSNE = (/MSN\x20[^8-9]/i).test(this.Usr);
	this.IsMSN8 = (/MSN\x20[8-9]/i).test(this.Usr);
	this.IsMSNA = (/(MSN\x20Companion|WebTV)/i).test(this.Usr);
	this.IsMac  = (-1 != this.Usr.indexOf("mac"));
	this.IsAOL  = (-1 != this.Usr.indexOf("aol"));
	this.IsWin  = (-1 != this.Usr.indexOf("windows"));
	this.IsNS   = (
		(-1 != this.Usr.indexOf("mozilla"))
		&& (-1 == this.Usr.indexOf("spoofer"))
        && (-1 == this.Usr.indexOf("compatible"))
        && (-1 == this.Usr.indexOf("opera"))
        && (-1 == this.Usr.indexOf("webtv"))
        && (-1 == this.Usr.indexOf("hotjava"))
        );

	this.PHWin = null;
	if((null == self.name) || (0 == self.name.length) || ("msnMain" == self.name)){self.name = "mny" + String(Date.parse(new Date()));}
}
function DoHelp(szId,
	szTpc)
{

    var wd = Math.max(986,(screen.availWidth / 2)),szFile="Money";

    if(null != szTpc)
    {

        switch(szTpc.toLowerCase())
        {
            case "money_investing_listofstocksdisplayedinthemsnquotewatchlistisnotyours.htm": szFile="QWLNotYours"; break;
            case "money_investing_aboutthemsnquotewatchlist.htm": szFile="QWLInfo"; break;
            case "money_investing_getquotewordwheel.htm": szFile="QuoteWordWheel"; break;
            case "money_general_aboutkeepingyourmsnmoneyservicesactive.htm": szFile="KeepServicesActive"; break;
            case "money_security_aboutsecuritywithmsnmoney.htm": szFile="AboutSecurity"; break;
            case "moneyplus_trs_toc_learnmoreaboutsharinganmsnmoneyplusaccount.htm": szFile="SharePlusAcct"; break;
            case "money_online_troubleshootonlineupdates.htm": szFile="OnlineTroubleshoot"; break;
            case "moneyplus_proc_transferyouraccountinformationtomsn8.htm": szFile="TrsfrAcctInfo"; break;
            case "money_troubleshooting_respondtoamessageaboutcookiesorinstallingmsnmoneysoftware.htm": szFile="CookiesorInstallMoney"; break;
            case "money_investing_aboutthemorningstarstyleboxforfunds.htm": szFile="MStarStyleBox"; break;
            case "money_investing_aboutmodernportfoliotheorystatistics.htm": szFile="PFTheoryStats"; break;
            case "money_investing_aboutvolatilitymeasures.htm": szFile="VolMeasures"; break;
            case "msnmoney_glos_assetallocation.htm": szFile="GlosAssetAlloc"; break;
            case "money_news_aboutnewsandcommentaryonmsnmoney.htm": szFile="NewsandCommentary"; break;
            case "msnmoney_glos_expectedriskreturn.htm": szFile="GlosExpectedRiskRtn"; break;
            case "money_banking_savecalculatorresults.htm": szFile="SaveCalcResults"; break;
            case "money_investing_aboutbatsquotes.htm": szFile="AboutBATSQuotes"; break;
            case "money_investing_aboutslpmunsupportedpositions.htm": szFile="SLPMUnsupported"; break;
            case "money_azinvestingglossary_1.htm": szFile="AZInvestGlossary"; break;
            case "money_investing_aboutstockpricing.htm": szFile="AboutStockPricing"; break;
        }
    }

    window.open("http://onlinehelp.microsoft.com/en-us/msn/".concat(szFile,".aspx"),"phman","resizable=1,toolbar=0,status=0,menubar=0,scrollbars=1,top=" + (screen.availHeight * .125) + ",width=" + wd + ",height=" + (screen.availHeight * .75) + ",left=" + (wd / 4));

}

function _fC(_u){
	_u=escape(_u);
	var i=0,_aA=["%3A\\/\\/","\\/","\\.","-","_","%3A//","%2F","%2E","%2D","%5F"];
	for(;i<5;i++){_u = _u.replace(new RegExp(_aA[i],"g"),_aA[i + 5]);}
	return _u;
}
function O_LC(){
	var _sH=screen.height,_sW=screen.width,_sW2=(_sW-535)/2,_sH2=(_sH-192)/2,t=(document.location.protocol=="http:")?"http://ccc01.opinionlab.com":"https://secure.opinionlab.com/ccc01";
	window.open(t+'/comment_card.asp?time1='+g_OLtm+'&time2='+(new Date()).getTime()+'&prev='+_fC(document.referrer)+'&referer='+_fC(g_Client.Host+g_Client.Path)+'&height='+_sH+'&width='+_sW,'comments','width=535,height=192,screenX='+_sW2+',screenY='+_sH2+',top='+_sH2+',left='+_sW2+',resizable=yes,scrollbars=no');
}

function LogErr(){
	if(!g_ErrPut){
		g_ErrPut=true;
		var _a=arguments,_i=(new Image()).src="/inc/chan/ourcode/errlog.gif?msg="+escape(_a[0])+"&url="+escape(_a[1])+"&line="+_a[2];
	}
	return true;
}
function AddHandler(hobj,e,pFn){
	if(hobj.addEventListener){hobj.addEventListener(e.substring(2),pFn,false);}
	else if(hobj.attachEvent){hobj.attachEvent(e,pFn);}
	else{var punk = hobj[e];if(punk == null){hobj[e] = pFn;} else {hobj[e] = function(){punk();pFn();}}}
}
function RemoveHandler(hobj,e,pFn){
	if(hobj.removeEventListener){hobj.removeEventListener(e.substring(2),pFn,false);}
	else if(hobj.detachEvent){hobj.detachEvent(e,pFn);
	}else{var punk=hobj[e];if(punk!=null){hobj[e]=null}}
}
var phid=0,g_ErrPut=false,g_OLtm=(new Date()).getTime(),g_Client=new CClient();