﻿function ReplaceURL(){}function CPaneHelp(){var d,c,g=document.location.hostname,e=String(document.location.href),a=navigator.userAgent.toLowerCase(),b=new RegExp;this.IsNS=-1!=navigator.appName.toLowerCase().indexOf("netscape");this.IsMac=-1!=a.indexOf("mac");this.IsAOL=-1!=a.indexOf("aol");this.IsWin=0<a.indexOf("windows");this.IsIE4PC=0<a.indexOf("msie 4")&&!this.IsAOL&&!this.IsMac;this.WinName=this.IsIE4PC?"_help17":"_help";this.Window=null;this.Path=e.replace(/\w+:\/\/[^\/:]+(:\d*)?/,"").replace(/\?.*$/,"");b=/MSN\x20[^8-9]/i;this.IsMSNE=b.test(a);b=/(MSN\x20Companion|WebTV)/i;this.IsMSNA=b.test(a);b=/MSIE\x20[4-9].+win/i;d=b.test(a);this.IsMSN8=false;var f=0==document.location.port.length?"":":"+document.location.port;this.Url=document.location.protocol+(document.location.hostname.indexOf("beta")>=0?"//beta.jp.moneycentral.msn.com":"//jp.moneycentral.msn.com")+f;c="mc_dlv5";if(null==self.name||0==self.name.length||"msnMain"==self.name)self.name=c+String(Date.parse(new Date))}function DoHelp(e,d){var c,l,k,a,h=screen.width,g=screen.availHeight,f=false,b=mCPH.Url+"/inc/phframeset.asp",i="",j="";if(0==phid&&null==e||null!=d)i=null!=d?d:"";else{j=null==e?phid:e;f=true}a="?tmt="+escape(window.name)+"&v2="+escape(document.location.search)+"&v99="+escape(mCPH.Path);a+=f?"&SEARCHTERM="+escape(j)+"&S_TEXT="+escape("̃y[WɊ֘AgsbN͎̂ƂłBړǏoNbNĂB"):"&TOPIC="+i;if(typeof v1!="undefined")a+="&v1="+escape(v1);else a+="&v1="+escape(document.location.protocol+"//"+document.location.hostname);c=h<=800&&!mCPH.IsMac?180:230;l=mCPH.IsWin&&mCPH.IsAOL?g-window.screenTop-22:g;if(mCPH.IsMSNE)window.external.showHelpPane(b+a,c);else if(mCPH.IsMSNA)top.location.replace(b+a);else{k="toolbar=0,status=0,menubar=0,width="+c+",height="+l+",left="+(h-c)+",top=0,resizable=1";if(mCPH.IsIE4PC&&null!=mCPH.Window&&!mCPH.Window.closed)mCPH.Window.location.replace(b+a);else mCPH.Window=window.open(b+a,mCPH.WinName,k);if(mCPH.Window&&!mCPH.IsMac&&!mCPH.IsNS&&mCPH.Window.opener!=self)mCPH.Window.opener=self}}var mCPH=new CPaneHelp,phid=0;function DoSearch(a){var b=a+"?q="+encodeURIComponent(document.search.q.value);window.top.location.href=b}function SearchFormSubmit(a){try{Msn.Report.TrackForm(a)}catch(b){}DoSearch(a.action);return false}(function(n,d){if(!d)d={};var i=h(d.tabID,[]),p=h(d.tabSet,"false"),l=h(d.tabName,"ranking"),e=Msn.DOM,f=document,C=window,b=u(l),c=[],a=[],g=[],o=true,s=v();m();if(s>1){y(c[0]);j()}function u(b){var a=r(document.cookie,b,"; ");if(p=="false"||a>i.length-1)a=0;return a}function r(e,d,f){var b=0,a=e.split(f);for(var c=0;c<a.length;c++)if(a[c].substr(0,d.length+1)==d+"="){b=parseInt(a[c].substr(d.length+1,a[c].length));break}if(b<0||b>=a.length)b=0;return b}function v(){var d=0;for(var h=0;h<i.length;++h){var a=f.getElementById(i[h]);if(a&&a.nodeType==1){d++;c.push(a);if(a.style)a.style.display="none";a.className=a.className+" tabpage";for(var j=0;j<a.childNodes.length;++j){var b=a.childNodes[j];if(b.nodeType==1){if(b.nodeName=="H2"){g.push(e.InnerText(b));if(o)b.style.display="none";break}g.push(d);break}}}}return d}function y(h){var i=0,c=f.createElement("div");c.className="tabcontrol";var d=f.createElement("ul");c.appendChild(d);n.insertBefore(c,h);for(var b=0;b<g.length;b++){var e=z(d,g[b],b);A.hook(e,"click");a.push(e)}}function A(a){a=e.Event(a);q(a);return e.CancelEvent(a)}function q(a){w();b=parseInt(e.Target(a).firstChild.className);if(isNaN(b))b=parseInt(e.Target(a).className);j();x(b);m()}function j(){for(headcount=0;headcount<a.length;headcount++){var c="";if(headcount==0)c="first";else if(headcount==a.length-1)c="last";if(b-1==headcount)c="pre "+c;if(b==headcount)c="selected "+c;a[headcount].className=c}}function x(b){var c=l+"="+b+"; ",a=new Date;a.setTime(a.getTime()+1000*60*60*24*365*5);document.cookie=c+" expires="+a.toGMTString()+"; path=/"}function t(){}function k(a){if(c[b])c[b].style.display=a}function m(){k("block");t()}function w(){k("none")}function z(d,e,c){var b=f.createElement("li"),a=f.createElement("a");a.href="#";a.className=c;a.innerHTML=e;d.appendChild(b);b.appendChild(a);return b}this.dispose=function(){n=null;c=0;a=0};function h(a,b){return typeof a!="undefined"?a:b}}).as("Msn.MJTab");(function(i,c){if(!c)c={};var f=d(c.cat,{}),e=d(c.subcat,{}),n=d(c.catid,"fundcat"),m=d(c.subid,"fundsubcat"),h=Msn.DOM,j=document,o=window,a=j.getElementById(n),b=j.getElementById(m);l();k.hook(i,"submit");g.hook(a,"change");function g(){var d=a.selectedIndex;if(d>=e.length)return;b.length=e[d].length;for(var c=0;c<b.length;c++){b.options[c].value=e[d][c][0];b.options[c].text=e[d][c][1]}}function l(){a.length=f.length;for(var b=0;b<a.length;b++){a.options[b].value=f[b][0];a.options[b].text=f[b][1]}a.selectedIndex=0;g(null)}function k(a){var c=i.action+b.options[b.selectedIndex].value+"01.aspx";o.top.location.href=c;a=h.Event(a);return h.CancelEvent(a)}function d(a,b){return typeof a!="undefined"?a:b}}).as("Msn.FundCategoryForm")