

var MtpsLoginStatus={};MtpsLoginStatus.SignInHappened=0;MtpsLoginStatus.LoginWindowHandle=0;MtpsLoginStatus.OverlayImagePath="/Platform/Controls/MtpsLoginStatus/resources/veil.gif";MtpsLoginStatus.DoPassportSignIn=function(url){if(MtpsLoginStatus.SignInHappened<1){var e=(screen.availWidth-850)*.5,f=(screen.availHeight-450)*.5,d="channelmode=0,directories=0,fullscreen=0,location=1,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0,copyhistory=0,statusbar=0";MtpsLoginStatus.LoginWindowHandle=MtpsLoginStatus.OpenNewWindow(url,"_blank",d,900,500,e,f);MtpsLoginStatus.LoginWindowHandle.focus();MtpsLoginStatus.SignInHappened++;MtpsLoginStatus.ExpandOrCollapse("idPPMWOverlay");setTimeout("MtpsLoginStatus.CheckOnPassportSignIn()",100);return false}else return true};MtpsLoginStatus.CheckOnPassportSignIn=function(){if(MtpsLoginStatus.LoginWindowHandle.closed)MtpsLoginStatus.ExpandOrCollapse("idPPMWOverlay");else setTimeout("MtpsLoginStatus.CheckOnPassportSignIn()",100)};MtpsLoginStatus.OpenNewWindow=function(m,j,d,f,e,a,b){var g="toolbar, location, directories, status, menubar, scrollbars, resizable",i="width="+(f>0?f:GetWindowWidth())+", ",h="height="+(e>0?e:GetWindowHeight())+", ";a=a?a:0;var k="screenX="+a+", left="+a+", ";b=b?b:0;var l="screenY="+b+", top="+b,c=window.open(m,j,(d=="all"?g:d)+", "+i+h+k+l);if(c!=null)c.focus();return c};MtpsLoginStatus.ExpandOrCollapse=function(){for(var i=0;i<MtpsLoginStatus.ExpandOrCollapse.arguments.length;i++){var element=document.getElementById(MtpsLoginStatus.ExpandOrCollapse.arguments[i]);element.style.display=element.style.display=="none"?"block":"none";element.style.background=element.style.background==""?"url("+MtpsLoginStatus.OverlayImagePath+") repeat":""}}



function jsTrim(s){return s.replace(/(^\s+)|(\s+$)/g,"")}function Track(trackParm,objLink){var daysToExpire=60,cookieDate=new Date;cookieDate.setTime(cookieDate.getTime()+daysToExpire*24*2160000000);expires="expires="+cookieDate.toGMTString();if(typeof pageShortId!=="undefined"&&objLink.hash)document.cookie="InstrumentedLinkAnchorHashCookie="+pageShortId+":"+objLink.hash.replace("#","")+"; "+expires;if(objLink.innerText&&jsTrim(objLink.innerText))LinkText=objLink.innerText;else if(objLink.all&&objLink.all(0).alt)LinkText=objLink.all(0).alt;var strDomain=document.domain,s=trackParm.split("|"),strLinkArea,strLinkId,strPageRegion;if(trackParm.substring(0,1)=="|"){strPageRegion=s[1];strLinkArea=s[2];strLinkId=s[2]+s[3]}else{strLinkArea=s[0];strLinkId=s[0]+s[1]}if(typeof LinkText=="undefined"||!LinkText||LinkText=="")LinkText=strLinkId;ctUrl=objLink.href+"?LinkId="+strLinkId+"&LinkArea="+strLinkArea;if(typeof DCSext!="undefined"){DCSext.wt_strHeadlnLocale=detectedLocale;DCSext.wt_strCat=strLinkArea+"|"+detectedLocale;DCSext.wt_strUrl=window.location.href.toLowerCase();DCSext.wt_strArea=strPageRegion}return false}



if(typeof MTPS=="undefined"||!MTPS)var MTPS={};if(typeof MTPS.Controls=="undefined"||!MTPS.Controls)MTPS.Controls={};MTPS.Controls.CreateResizeableArea=function(resizeableareaid,splitterid,leftid,rightid,TOCWidthCookieName,TOCIsCollapsedCookieName,IE6Offset){this.ResizeableAreaselector="#"+resizeableareaid;this.ResizeableArea=jQuery(this.ResizeableAreaselector).get(0);this.leftselector="#"+leftid;this.leftSection=jQuery(this.leftselector).get(0);this.splitterselector="#"+splitterid;this.splitter=jQuery(this.splitterselector).get(0);this.rightselector="#"+rightid;this.rightSection=jQuery(this.rightselector).get(0);this.CollapsedCookieName=TOCIsCollapsedCookieName;this.WidthCookieName=TOCWidthCookieName;this.ie6Offset=IE6Offset;this.useParentOffsetHeight=!(this.ResizeableArea.parentNode.offsetHeight==document.documentElement.clientHeight);this.minWidth=30;this.rightSectionMinWidth=200;this.dragging=false;this.ToggleEvent=function(iscurrentlyCollapsed){if(iscurrentlyCollapsed&&this.leftSection.style.display=="block"||!iscurrentlyCollapsed&&this.leftSection.style.display=="none")if(this.ClientCollapseEvents)this.ClientCollapseEvents(!iscurrentlyCollapsed)};this.Redraw=function(width){var date=new Date;date.setYear(date.getFullYear()+1);if(width<=this.minWidth){this.leftSection.style.display="none";document.cookie=this.CollapsedCookieName+"=true; expires="+date.toGMTString();+"; path=/";this.splitter.style.left="0px"}else{this.leftSection.style.display="block";this.splitter.style.left=width+"px";this.leftSection.style.width=width+"px";document.cookie=this.CollapsedCookieName+"=false; expires="+date.toGMTString();+"; path=/";document.cookie=this.WidthCookieName+"="+width+"; expires="+date.toGMTString();+"; path=/"}if(jQuery.browser.msie){var ver=parseInt(jQuery.browser.version);if(ver!=NaN&&ver==6)jQuery(window).trigger("resize",this)}};this.isCurrentlyCollapsed=function(){return jQuery(this.leftselector).css("display")=="none"};this.OpenCollapse=function(open){var currentCollapseState=this.isCurrentlyCollapsed();if(open!=undefined&&open!=currentCollapseState)return;if(this.leftSection.style.display=="none")this.Redraw(parseInt(jQuery(this.leftselector).width()));else this.Redraw(0);this.ToggleEvent(currentCollapseState)};this.OnDoubleClick=function(e){e.data.OpenCollapse()};this.OnKeyPress=function(e){if(e.which==116&&e.target.tagName.toLowerCase()!="input"&&e.target.tagName.toLowerCase()!="textarea")e.data.OpenCollapse();e.cancelBubble=true};this.resizeStart=function(e){e.data.dragging=true;var i=e.data.GetX(e.data.splitter.parentNode)+e.clientX-e.data.GetX(e.data.splitter);e.data.splitter.parentOffsetX=i;jQuery(document).bind("mousemove",e.data,e.data.mouseMove);jQuery(document).bind("mouseup",e.data,e.data.resizeStop);document.body.ondrag=function(){return !e.data.dragging};document.body.onselectstart=function(){return !e.data.dragging};return false};this.resizeStop=function(e){jQuery(document).unbind("mousemove",e.data.mouseMove);jQuery(document).unbind(e);var iscurrentlyCollapsed=e.data.leftSection.style.display=="none";e.data.Redraw(e.data.splitter.offsetLeft);e.data.dragging=false;e.data.ToggleEvent(iscurrentlyCollapsed)};this.GetX=function(oElement){var x=0;while(oElement!=null){x+=oElement.offsetLeft;oElement=oElement.offsetParent}return x};this.mouseMove=function(e){x=e.clientX-e.data.splitter.parentOffsetX;if(x<=this.minWidth)x=0;else if(x>=e.data.splitter.parentNode.offsetWidth-e.data.splitter.offsetWidth-this.rightSectionMinWidth)x=e.data.splitter.parentNode.offsetWidth-e.data.splitter.offsetWidth-this.rightSectionMinWidth;e.data.splitter.style.left=x+"px";return false};this.IE6Only=function(e){while(e.data.rightSection.offsetWidth!=e.data.ResizeableArea.offsetWidth-e.data.splitter.offsetWidth-e.data.leftSection.offsetWidth-6)e.data.rightSection.style.width=e.data.ResizeableArea.offsetWidth-e.data.splitter.offsetWidth-e.data.leftSection.offsetWidth-6+"px";e.data.ResizeableArea.style.height=document.documentElement.clientHeight-e.data.ie6Offset};this.IE7Only=function(e){if(e.data.useParentOffsetHeight)e.data.ResizeableArea.style.height=e.data.ResizeableArea.parentNode.offsetHeight;else e.data.ResizeableArea.style.height=document.documentElement.clientHeight};this.InitDisplay=function(){this.rightSection.style.width=document.body.clientWidth-4-this.leftSection.offsetWidth-4+"px"};jQuery(this.splitterselector).bind("mousedown",this,this.resizeStart);if(jQuery.browser.msie){var ver=parseInt(jQuery.browser.version);if(ver!=NaN&&ver>7)return;if(ver!=NaN&&ver==6){jQuery(window).bind("resize",this,this.IE6Only);this.InitDisplay()}else if(ver!=NaN&&ver>=7)jQuery(window).bind("resize",this,this.IE7Only);jQuery(window).trigger("resize",this)}return this}



function dolivesearch(sender){var o=document.getElementById(sender);if(o.className=="TextBoxSearch")document.getElementById("go").value="false";else{document.getElementById("go").value="true";if(typeof dcsMultiTrack=="function"){var dcsuri,dcssip,ti;dcsuri="results.aspx";dcssip="search.live.com";ti="_STO_SearchButton: Web";dcsMultiTrack("DCS.dcsuri",dcsuri,"DCS.dcssip",dcssip,"WT.ti",ti,"WT.dl","2","WT.z_srch_t","","DCS.dcsqry","","WT.ad","","WT.mc_id","");DCS.dcsuri=DCS.dcssip=DCS.dcsqry=WT.ti=WT.z_srch_t=""}}}



function tabs_onFocusSearch(sender){if(sender.isActive)return;sender.originalValue=sender.value;sender.value="";sender.className="TabStrip_SearchBoxActive";sender.isActive=true}function tabs_onBlurSearch(sender){if(sender.value.trim()==""){sender.value=sender.originalValue;sender.className="TabStrip_SearchBox";sender.isActive=false}}



function TFly_Init(name,offsetLeft,offsetTop,alignment,anyIter,anyTime,staticHover,popupHover,popupLatency,hideLatency,onInit,onPreAnimate,onPopup,onHide){var TFly=document.getElementById(name);TFly.alignment=alignment;TFly.DT=document.getElementById(name+"_Popup");TFly.F=document.getElementById(name+"_Anim");TFly.S=TFly.firstChild;TFly.oX=offsetLeft;TFly.oY=offsetTop;TFly.AnyIter=anyIter;TFly.AnyTime=anyTime;TFly.popupLatency=popupLatency;TFly.hideLatency=hideLatency;TFly.onPopup=onPopup;TFly.onPreAnimate=onPreAnimate;TFly.onHide=onHide;TFly.IsHover=false;TFly.InLoadingState=false;TFly.className_=TFly.className;TFly.DT.className_=TFly.DT.className;TFly.onmouseover=function(){TFly.IsHover=true;if(staticHover!="")TFly.className=staticHover;TFly_Popup(TFly,true)};TFly.onmouseout=function(){if(staticHover!="")TFly.className=TFly.className_;TFly_Popup(TFly,false);TFly.DT.blur();TFly.IsHover=false};if(document.all){TFly.onactivate=function(){if(!TFly.IsHover)TFly.onmouseover()};TFly.ondeactivate=function(){TFly.onmouseout()}}else{TFly.onfocus=function(){TFly.onmouseover()};TFly.onblur=function(){TFly.onmouseout()}}TFly.DT.onmouseover=function(){TFly.IsHover=true;if(popupHover!="")TFly.DT.className=popupHover;TFly_Popup(TFly,true)};TFly.DT.onmouseout=function(){if(popupHover!="")TFly.DT.className=TFly.DT.className_;TFly_Popup(TFly,false);TFly.IsHover=false};TFly_CallClientFunction(onInit,TFly)}function TFly_Reposition(TFly){var clientWidth=document.body.scrollWidth-20,width=TFly.DT.offsetWidth,absX=TFly.DT.offsetLeft,d=TFly.DT;while(d=d.offsetParent)absX+=d.offsetLeft;if(clientWidth<absX+width){var diff=clientWidth-absX-width;TFly.DT.style.left=TFly.DT.offsetLeft+diff+"px"}}function TFly_CallClientFunction(name,TFly){if(name!=null&&name!="")eval(name+"(TFly);")}function TFly_SetPosition(TFly,obj){obj.style.top=TFly.oY+TFly.offsetHeight+"px";obj.style.left=TFly.oX+(TFly.offsetWidth-obj.offsetWidth)*(1+TFly.alignment)/2+"px"}function TFly_Popup(TFly,value){if(TFly.onPreAnimate)TFly_CallClientFunction(TFly.onPreAnimate,TFly);if(TFly.timer!=null)window.clearTimeout(TFly.timer);if(value){if(TFly.status=="on")return;var timeout=TFly.status=="active"?0:TFly.popupLatency;if(TFly.AnyIter>0&&TFly.AnyTime>0)TFly.timer=window.setTimeout(function(){TFly_AnimateStart(TFly,true,TFly.F.curIter)},timeout);else TFly.timer=window.setTimeout(function(){TFly_SetVisibility(TFly,true)},timeout)}else{if(TFly.status=="off")return;var timeout=TFly.status=="active"?0:TFly.hideLatency;if(TFly.AnyIter>0&&TFly.AnyTime>0)TFly.timer=window.setTimeout(function(){TFly_AnimateStart(TFly,false,TFly.F.curIter)},timeout);else TFly.timer=window.setTimeout(function(){TFly_SetVisibility(TFly,false)},timeout)}}function TFly_SetVisibility(TFly,value){if(value==true){TFly_SetPosition(TFly,TFly.DT);TFly.style.zIndex="199";TFly_Reposition(TFly);TFly.S.style.position="absolute";TFly.S.style.position="";TFly.DT.style.visibility="visible"}else{TFly.DT.style.visibility="hidden";TFly.style.zIndex="198";TFly.S.style.position="absolute";TFly.S.style.position=""}}function TFly_AnimateStart(TFly,inout,curIter){if(TFly.F.timer!=null)window.clearTimeout(TFly.F.timer);if(curIter==null)curIter=0;if(TFly.status!="active"){TFly.status="active";TFly.F.style.visibility="visible";TFly.DT.style.visibility="hidden"}if(curIter<0||curIter>TFly.AnyIter){TFly.F.curIter=curIter<1?0:TFly.AnyIter;TFly.status=TFly.F.curIter==TFly.AnyIter?"on":"off";TFly.F.style.visibility="hidden";TFly_SetPosition(TFly,TFly.DT);TFly.style.zIndex=TFly.F.curIter==TFly.AnyIter?"999":"0";if(TFly.F.curIter==TFly.AnyIter){TFly.status="on";TFly_SetVisibility(TFly,true);TFly_CallClientFunction(TFly.onPopup,TFly)}else{TFly.status="off";TFly_SetVisibility(TFly,false);TFly_CallClientFunction(TFly.onHide,TFly)}}else{var per=curIter*(95/TFly.AnyIter)+5;TFly.F.style.visibility="hidden";TFly.F.style.width=TFly.DT.offsetWidth/100*per+"px";TFly.F.style.height=TFly.DT.offsetHeight/100*per+"px";TFly_SetPosition(TFly,TFly.F);TFly.F.style.visibility="visible";var timeout=per==100?0:TFly.AnyTime-TFly.AnyTime/TFly.AnyIter*curIter;curIter+=inout?1:-1;TFly.F.timer=window.setTimeout(function(){TFly_AnimateStart(TFly,inout,curIter)},timeout);TFly.F.curIter=curIter}}





