(function(){var utilitiesModule=function($){function htmlEncode(value){return $("
").text(value).html()}function htmlDecode(value){return $("
").html(value).text()}function updateQueryStringParameter(uri,key,value){var hash=uri.split("#"),newParamStr;uri=hash[0];var result,re=new RegExp("([?&])"+key+"=.*?(&|$)","i"),separator=uri.indexOf("?")!==-1?"&":"?",newParamObj={};return newParamObj[key]=value,newParamStr=$.param(newParamObj),result=uri.match(re)?uri.replace(re,"$1"+newParamStr+"$2"):uri+separator+newParamStr,typeof hash[1]!="undefined"&&hash[1]!==null&&(result+="#"+hash[1]),result}function endsWith(string,suffix){return!string||!suffix||string.length0,$contentLoadedHiddenInput=$("#contentLoaded"),isContentLoaded=$contentLoadedHiddenInput.val()===undefined||$contentLoadedHiddenInput.val().toLowerCase()=="true"&&contentDivHasChildren;isContentLoaded?func():$contentLoadedHiddenInput.change(func)}function displayHiddenElements(){$(".contextAwareHidden").each(function(){$(this).css("display","")})}function dedupe(array){var i,j;if(array&&array.length>1)for(i=0;imaxHeight&&(maxHeight=$(this).height())});$elements.each(function(){$(this).css("height",maxHeight+"px")})}function isdefined(variable){return typeof window[variable]=="undefined"?!1:!0}var timeoutMilliSecond=5e3,noop;return typeof window.console=="undefined"&&(noop=function(){},window.console={debug:noop,log:noop,warn:noop,assert:noop,clear:noop,dir:noop,error:noop,info:noop}),{htmlEncode:htmlEncode,htmlDecode:htmlDecode,updateQueryStringParameter:updateQueryStringParameter,endsWith:endsWith,padLeft:padLeft,log:log,error:error,getDateTime:getDateTime,setCookie:setCookie,getCookie:getCookie,getSplicedHostname:getSplicedHostname,supportsHtml5:supportsHtml5,innerText:innerText,executeWhenContentIsLoaded:executeWhenContentIsLoaded,displayHiddenElements:displayHiddenElements,dedupe:dedupe,fixUnevenElementHeights:fixUnevenElementHeights,timeoutMilliSecond:timeoutMilliSecond,isdefined:isdefined}};typeof define=="function"&&window.mtpsAmd?define("utilities",["jquery"],function($){var utilities=utilitiesModule($);return window.epx=window.epx||{},window.epx.utilities=utilities,utilities}):(window.epx=window.epx||{},window.epx.utilities=utilitiesModule($))})();; (function(){var layoutModule=function($){function checkIsSingleCol(){var singleColSpan=$("#ux-header span#singleCol");return singleColSpan.length>0?singleColSpan.css("display")!="none":!1}function checkIsSingleColInThreeColLayout(){var singleColSpan=$("#content .threeCol span#singleColInThreeColLayout");return singleColSpan.length>0?singleColSpan.css("display")!="none":!1}function checkIsDoubleCol(){var doubleColSpan=$("#ux-header span#doubleCol");return doubleColSpan.length>0?doubleColSpan.css("display")!="none":!1}return{checkIsSingleCol:checkIsSingleCol,checkIsDoubleCol:checkIsDoubleCol,checkIsSingleColInThreeColLayout:checkIsSingleColInThreeColLayout}};typeof define=="function"&&window.mtpsAmd?define("layout",["jquery"],function($){return layoutModule($)}):(window.epx=window.epx||{},window.epx.layout=layoutModule($))})();; (function(){var headerModule=function($){function initVars(){isAuxNavMoved=!1;userNameWidth=0;ellipsisEnabled=!1;lastWindowWidth=$(window).width();isRTL=$("#ux-header").hasClass("rtl");minGap=40;$siteLogo=$("#ux-header header div.topRow div.top div.left");$auxNav=$("#ux-header div.auxNav");$signInLinks=$("#ux-header #signIn");$topRight=$("#ux-header header .top .right");$bottomRight=$("#ux-header header .bottom .right");$bottomLeft=$("#ux-header header .bottom .left");$drawer=$("#ux-header #drawer");$searchBox=$("#ux-header #Fragment_SearchBox");$buttomRow=$("#ux-header header .buttomRow");$expandTop=$("#ux-header header .expandTop");$expandTopLeft=$("#ux-header header .expandTop .left");$expandTopRight=$("#ux-header header .expandTop .right");$viewCreateProfileLink=$("#ux-header header .createViewProfileLink");$scarabLink=$("#ux-header header .scarabLink")}function closeSearchBox(){$("#HeaderSearchForm").removeClass("clearable");$("#searchTextContainer").css("display","none");$("#searchTextContainer").animate({width:"0"},200,function(){$("#HeaderSearchForm").removeClass("opened")})}function clearSearchText(){$("#HeaderSearchTextBox").val("");$("#HeaderSearchTextBox").focus();updateCloseIconStyle()}function getSearchText(){return $.trim($("#HeaderSearchTextBox").val())}function updateCloseIconStyle(){getSearchText()?$("#HeaderSearchForm").addClass("clearable"):$("#HeaderSearchForm").removeClass("clearable")}function clearHeight($object){$object.css("height","")}function bindDropdownEventHandlers(){$("#ux-header .navL1 > li.toggle > a").each(function(){$(this).click(function(e){addActiveClassForL1($(this));e.stopPropagation()})});$("#ux-header .navL2 > li.toggle > a").each(function(){$(this).bind("click",function(e){addActiveClassForL2($(this));e.stopPropagation()});$(this).bind("focus mouseover",function(e){isAuxNavMoved||(addActiveClassForL2($(this),!0),e.stopPropagation())})});$("#ux-header .navL2 > li:not(.toggle) > a").each(function(){$(this).bind("focus mouseover",function(e){isAuxNavMoved||(closeAllL3(!0),e.stopPropagation())})});$("html, body").bind("click",function(){isAuxNavMoved||(closeAllL2(),closeAllL3())})}function addActiveClassForL1($this){var selfActive=$this.parent().hasClass("active");closeAllL3();closeAllL2();clearHeight($this.next());selfActive||(isAuxNavMoved?$this.next().animate({height:"toggle"},200,"swing",function(){$(this).parent().removeClass("inactive").addClass("active")}):($this.parent().removeClass("inactive").addClass("active"),$this.next().animate({height:"toggle"},66,"swing")))}function tuneHeight($object1,$object2){clearHeight($object1);clearHeight($object2);var minHeight=Math.max($object1.height(),$object2.height());$object1.css("height",minHeight);$object2.css("height",minHeight)}function addActiveClassForL2($this,isHover){var selfActive=$this.parent().hasClass("active"),visibleL3;if(selfActive){isAuxNavMoved&&(clearHeight($this.next()),closeAllL3());return}visibleL3=closeAllL3(!isHover);isAuxNavMoved?(clearHeight($this.next()),$this.next().animate({height:"toggle"},200,"swing",function(){$(this).parent().removeClass("inactive").addClass("active")})):($this.parent().removeClass("inactive").addClass("active"),visibleL3?$this.next().css("display","block"):$this.next().animate({width:"toggle"},200,"swing"),tuneHeight($this.next(),$this.parent().parent()))}function closeAllL2(){var $l2=$("#ux-header .navL1 > li.active"),subSelector=".navL2";isAuxNavMoved?$l2.find(subSelector).animate({height:"toggle"},200,"swing",function(){$(this).parent().removeClass("active").addClass("inactive")}):($l2.removeClass("active").addClass("inactive"),$("#ux-header "+subSelector).css("display","none"))}function closeAllL3(toggleAnimationEnabled){var $l3=$("#ux-header .navL2 > li.active"),subSelector=".navL3",$l3Menu=$l3.find(subSelector),visibleL3=$l3.length;return isAuxNavMoved?$l3Menu.animate({height:"toggle"},200,"swing",function(){$(this).parent().removeClass("active").addClass("inactive")}):($l3.removeClass("active").addClass("inactive"),toggleAnimationEnabled?$l3Menu.animate({width:"toggle"},200,"swing",function(){clearHeight($l3.parent());clearHeight($l3Menu)}):$("#ux-header "+subSelector).css("display","none")),visibleL3>0}function addLocale(){var $canonical=$('link[rel="canonical"]'),locale="",metaName="WT.seg_1",$localeMeta=$('meta[name="'+metaName+'"]');$localeMeta&&$localeMeta.length!=0||($localeMeta=$("").attr("name",metaName).attr("content","en-us"));$("head").prepend($localeMeta);$canonical&&$canonical.length>0&&(locale=$canonical.attr("href").split("/"),locale.length>3&&(locale=locale[3],locale!=""&&$localeMeta.attr("content",locale)))}function changeToEllipsis(leftPos,rightPos){rightPos-leftPos<=minGap&&($userName.text($userName.text()[0]+$userName.text()[1]+$userName.text()[2]+"..."),ellipsisEnabled=!0,ellipsisWidth=$userName.width())}function changeBackToUserName(leftPos,rightPos){rightPos-leftPos>userNameWidth-ellipsisWidth+minGap&&($userName.text(userNameText),ellipsisEnabled=!1)}function changeUserName(){var currentWindowWidth=$(window).width();isRTL?!ellipsisEnabled&&lastWindowWidth>=currentWindowWidth?changeToEllipsis($topRight.offset().left+$topRight.width()-Number($signInLinks.css("margin-right").replace(/px/ig,"")),$siteLogo.offset().left):ellipsisEnabled&&changeBackToUserName($topRight.offset().left+$topRight.width()-Number($signInLinks.css("margin-right").replace(/px/ig,"")),$siteLogo.offset().left):!ellipsisEnabled&&lastWindowWidth>=currentWindowWidth?changeToEllipsis($siteLogo.offset().left+$siteLogo.width(),$topRight.offset().left+Number($signInLinks.css("margin-left").replace(/px/ig,""))):ellipsisEnabled&&changeBackToUserName($siteLogo.offset().left+$siteLogo.width(),$topRight.offset().left+Number($signInLinks.css("margin-left").replace(/px/ig,"")));lastWindowWidth=currentWindowWidth}function setUserNameAndWidth(){userNameWidth!=0||ellipsisEnabled||(userNameText=$userName.text(),userNameLength=$userName.text().length,userNameWidth=$userName.width())}function ellipsisFeature(){$userName=$("#ux-header #signIn > span.profileName");$userName.length>0&&($userName.text()==""?setTimeout(ellipsisFeature,500):(setUserNameAndWidth(),userNameLength>3&&changeUserName()))}function userNameTransformation(){isAuxNavMoved?ellipsisFeature():($userName=$("#ux-header #signIn > a.createProfileLink"),$userName.length>0&&(ellipsisEnabled?($userName.text(userNameText),ellipsisEnabled=!1):setUserNameAndWidth()))}function closeExpandTop(){$expandTop.hide()}function resize(){openMenu||showMenu(!1);$("#ux-header #SearchFlyoutContainer").hide();closeSearchBox();isAuxNavMoved!=auxNavShouldMove()&&(isAuxNavMoved?($drawer.css("display","inline-block"),expandTopEnabled=!1,$("header").removeClass("mobile")):(closeAllL3(),closeAllL2(),closeExpandTop(),$drawer.css("display","none"),expandTopEnabled=!0,$("header").addClass("mobile")),moveAuxNav(isAuxNavMoved));$("#msft-logo").removeClass("msft-logo");$("#msft-logo").removeClass("tablet-msft-logo");$("#msft-logo").removeClass("mobile-msft-logo");$("#search-finder").removeClass("search-finder");$("#search-finder").removeClass("mobile-search-finder");$("#searchCloseIcon").removeClass("search-clear-x");$("#searchCloseIcon").removeClass("mobile-search-clear-x");var deviceType;auxNavShouldMove()?($("#msft-logo").addClass("tablet-msft-logo"),$("#search-finder").addClass("search-finder"),$("#searchCloseIcon").addClass("search-clear-x"),$("#grip").removeClass("mobile-menu-icon"),$("#grip").addClass("menu-icon"),deviceType="tablet"):($("#msft-logo").addClass("msft-logo"),$("#search-finder").addClass("search-finder"),$("#searchCloseIcon").addClass("search-clear-x"),deviceType="desktop");$("#ux-header").attr("data-device-type",deviceType);isAuxNavMoved||(closeAllL3(),closeAllL2(),closeExpandTop());userNameTransformation()}function moveAuxNav(restoreOriginalPosition){restoreOriginalPosition?($auxNav.appendTo($topRight),$viewCreateProfileLink.appendTo($signInLinks),$scarabLink.appendTo($signInLinks),$drawer.appendTo($bottomLeft)):($auxNav.appendTo($expandTopLeft),$viewCreateProfileLink.appendTo($expandTopRight),$scarabLink.appendTo($expandTopRight),$drawer.appendTo($buttomRow));isAuxNavMoved=!restoreOriginalPosition}function auxNavShouldMove(){return $("#ux-header #grip:visible").length>0}function isTabletOrMobile(){return $("#ux-header header span#isMobile:visible").length>0}var isAuxNavMoved,userNameText,userNameWidth,userNameLength,ellipsisWidth,ellipsisEnabled,lastWindowWidth,isRTL,minGap,$siteLogo,$userName,$auxNav,$signInLinks,$topRight,$bottomRight,$bottomLeft,$drawer,$searchBox,$buttomRow,$expandTop,$expandTopLeft,$expandTopRight,$viewCreateProfileLink,$scarabLink,$mask,openMenu=!0,showMenu=function(show){$("div#drawer>div.toc").toggleClass("open");show?($mask.show(),$mask.height($(document).height())):$mask.hide();openMenu=!show};$(document).ready(function(){var touchScroll=!1,windowWidth=0,bodyScrollTop=0;initVars();addLocale();bindDropdownEventHandlers();$("#ux-header").append('
');$(document.body.appendChild($('
')[0]));$mask=$("#overlayMaskHeader, #overlayMask");$mask.on("touchstart",function(){bodyScrollTop=$("body")[0].srollTop});$mask.on("touchmove",function(){Math.abs(bodyScrollTop-$("body")[0].srollTop)>=10&&(touchScroll=!0)});$mask.click(function(){touchScroll||showMenu(!1);touchScroll=!1});$("#ux-header #grip").click(function(){$drawer.show();showMenu(openMenu)});$("#ux-header .top").click(function(event){(event.target===$("#ux-header .top")[0]||event.target===$("#ux-header .profileName")[0]||event.target===$("#ux-header .profileImage")[0])&&($("#ux-header header .expandTop:visible").length>0?$expandTop.fadeOut(200):$expandTop.fadeIn(200))});$(document).click(function(e){clearSearchText();closeSearchBox()});$("#searchTextContainer").click(function(e){return e.stopPropagation(),!1});$("#FakeHeaderSearchButton").click(function(e){if($("#HeaderSearchForm").hasClass("opened"))$("#HeaderSearchButton").click();else{$("#HeaderSearchForm").addClass("opened");$("#searchTextContainer").stop(!0);var width=0;width=isTabletOrMobile()?Math.min(255,$("#ux-header").width()-90):255;$("#searchTextContainer").css("display","inline-block");$("#searchTextContainer").animate({width:width+"px"},200,function(){var textBox=$("#HeaderSearchTextBox");textBox=textBox.length>0?textBox[0]:null;$("#HeaderSearchTextBox").focus();!textBox||textBox==document.activeElement||textBox.focus()})}return e.stopPropagation(),!1});$("#searchCloseIcon").click(function(e){return clearSearchText(),!1});$("#HeaderSearchTextBox").on("input propertychange keyup",function(){updateCloseIconStyle()});$(window).resize(function(){windowWidth!=$(window).width()&&(resize(),windowWidth=$(window).width())});resize();windowWidth=$(window).width()})};typeof define=="function"&&window.mtpsAmd?define("header",["jquery"],function($){return headerModule($)}):headerModule($)})();; (function(){var ratingModule=function($,utilities){function initWedcs(){$("#ratingYes").bind("click",function(){utilities.isdefined("MscomCustomEvent")&&MscomCustomEvent("ms.title=yes","ms.cmpgrp=feedbackform")});$("#ratingNo").bind("click",function(){utilities.isdefined("MscomCustomEvent")&&MscomCustomEvent("ms.title=no","ms.cmpgrp=feedbackform")});$("#ratingSubmit").bind("click",function(){if(utilities.isdefined("MscomCustomEvent")){var feedbackCharacterCount=Number($("#ratingText").attr("maxLength"))-Number($("#feedbackTextCounter").text());MscomCustomEvent("ms.title=submit","ms.feedbackid="+feedbackCharacterCount,"ms.cmpgrp=feedbackform")}});$("#ratingSkipThis").bind("click",function(){utilities.isdefined("MscomCustomEvent")&&MscomCustomEvent("ms.title=skip this","ms.cmpgrp=feedbackform")})}function toggleRatingEnablement(){$("#isTopicRated").val()==="true"&&showSection($thankYouSection)}function setupEventHandlers(){$("#ux-footer #ratingYes").click(function(){$("#ux-footer #ratingValue").val(yesRating);showSection($submitSection);$("#ux-footer #ratingText").focus()});$("#ux-footer #ratingNo").click(function(){$("#ux-footer #ratingValue").val(noRating);showSection($submitSection);$("#ux-footer #ratingText").focus()});$submitButton.click(function(){submitRating($("#ux-footer div.rating textarea").val())});$skipThisButton.click(function(){submitRating(null)});var maxChars=$("#feedbackTextCounter").text();maxChars||(maxChars=1500);$("#ratingText").on("keyup blur keydown",function(){textBoxCharactersCounter($(this),$("#feedbackTextCounter"),maxChars)})}function showSection($section){$yesNoSection.hide();$submitSection.hide();$thankYouSection.hide();$section.show();$section===$thankYouSection&&($("#rateThisTopic").hide(),$("#rateThisPrefix").hide())}function submitRating(text){$submitButton.attr("disabled","disabled");$skipThisButton.attr("disabled","disabled");var data={__RequestVerificationToken:$("input[name='__RequestVerificationToken']").last().val(),rdIsUseful:$("#ux-footer #ratingValue").val(),feedbackText:text,onePubTopicId:$("#onePubTopicId").val(),returnUrl:window.location.href,isAsync:!0},url=$("#ratingSubmitUrl").val();$.ajax({type:"POST",url:url,data:data,async:!0,success:function(){epx.utilities.log("Rating successfully submitted");showSection($thankYouSection)},error:function(response){epx.utilities.log("Rating submission failed: HTTP "+response.status);showSection($thankYouSection)}})}function textBoxCharactersCounter(control,counter,max){control.val().length>max?control.val(control.val().substring(0,max)):counter.html((max-control.val().length).toString())}var yesRating=1,noRating=0,$yesNoSection,$submitSection,$thankYouSection,$submitButton,$skipThisButton;$(document).ready(function(){($("#tocnav>div.current.archive").length==1&&$("#footerSock").hide(),$("#ux-footer #footerSock div.rating:visible").length!=0)&&($yesNoSection=$("#ux-footer #ratingSection1"),$submitSection=$("#ux-footer #ratingSection2"),$thankYouSection=$("#ux-footer #ratingSection3"),$submitButton=$("#ux-footer #ratingSubmit"),$skipThisButton=$("#ux-footer #ratingSkipThis"),toggleRatingEnablement(),setupEventHandlers(),initWedcs())})};typeof define=="function"&&window.mtpsAmd?define("rating",["jquery","utilities"],function($,utilities){return ratingModule($,utilities)}):(window.epx=window.epx||{},window.epx.windowsRating=ratingModule($,window.epx.utilities))})();; (function(){var footerModule=function($){function fixNthChild(){$("div#ux-footer footer.top div#rightLinks > div:nth-child(4n)").addClass("nth-child-4n")}$(document).ready(function(){fixNthChild()})};typeof define=="function"&&window.mtpsAmd?define("footer",["jquery"],function($){return footerModule($)}):footerModule($)})();; function WatermarkFocus(control,defaultValue,cssValue){control.value==defaultValue&&(control.value="",control.className=cssValue);document.onkeydown=""}function WatermarkBlur(control,defaultValue,cssValue){control.value==""&&(control.value=defaultValue,control.className=cssValue);typeof Presskey!="undefined"&&Presskey&&(document.onkeydown=Presskey)}function AddWatermark(controlName,defaultValue,cssValue){document.getElementById(controlName).value==""&&(document.getElementById(controlName).value=defaultValue,document.getElementById(controlName).className=cssValue)}function WatermarkOnSubmit(control,defaultValue,cssValue){control.value==defaultValue&&(control.value="",control.className=cssValue)}function TextBoxCharactersCounter(control,counter,max){control.value.length>max?control.value=control.value.substring(0,max):counter.innerHTML=(max-control.value.length).toString()}function SiteFeedbackNewWindow(url){window.open(url,"_blank","width=750,height=836,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=no")}function SearchBoxOnSubmit(textValue){return document.getElementById("HeaderSearchTextBox").value!=textValue&&document.getElementById("HeaderSearchTextBox").value!=""?(document.getElementById("HeaderSearchForm").submit(),!0):!1}epx=window.epx||{};epx.topicModule=function(w){function isPrintExperience(){return $("#MtpsDevice").val()=="Printer"}function setPrintableExperience(){var $printCss,isPrint;$("#printForPab").val()!="true"&&($printCss=document.createElement("link"),$printCss.setAttribute("href","/Areas/Epx/Content/Css/PrintView.css"),$printCss.setAttribute("rel","stylesheet"),$printCss.setAttribute("type","text/css"),isPrint=isPrintExperience(),isPrint!==!0&&$printCss.setAttribute("media","print"),$("head")[0].appendChild($printCss),isPrint===!0&&w.print&&($(".TranslationViewSwitcher").remove(),setTimeout(function(){w.print()},500)))}return{isPrintExperience:isPrintExperience,setPrintableExperience:setPrintableExperience}};epx.topic=epx.topicModule(window);$(document).ready(function(){epx.topic.setPrintableExperience()});; epx=window.epx||{};epx.topicModule=function(){function isPrintExperience(){return $("#MtpsDevice").val()=="Printer"}function setPrintableExperience(){return}return{isPrintExperience:isPrintExperience,setPrintableExperience:setPrintableExperience}};epx.topic=epx.topicModule();; function dcsCookie(){typeof dcsOther=="function"?dcsOther():typeof dcsPlugin=="function"?dcsPlugin():typeof dcsFPC=="function"&&dcsFPC(gTimeZone)}function dcsGetCookie(name){var pos=document.cookie.indexOf(name+"="),start,end;return pos!=-1?(start=pos+name.length+1,end=document.cookie.indexOf(";",start),end==-1&&(end=document.cookie.length),unescape(document.cookie.substring(start,end))):null}function dcsGetCrumb(name,crumb){for(var aCookie=dcsGetCookie(name).split(":"),aCrumb,i=0;idLst.getTime()+18e5||dCur.getTime()>dSes.getTime()+288e5)&&(WTBI.vt_f_tlv=Math.floor((dSes.getTime()-adj)/1e3),dSes.setTime(dCur.getTime()),WTBI.vt_f_s="1");(dCur.getDay()!=dLst.getDay()||dCur.getMonth()!=dLst.getMonth()||dCur.getYear()!=dLst.getYear())&&(WTBI.vt_f_d="1")}WTBI.co_f=escape(WTBI.co_f);WTBI.vt_sid=WTBI.co_f+"."+(dSes.getTime()-adj);expiry="; expires="+dExp.toGMTString();document.cookie=name+"=id="+WTBI.co_f+":lv="+dCur.getTime().toString()+":ss="+dSes.getTime().toString()+expiry+"; path=/"+(typeof gFpcDom!="undefined"&&gFpcDom!=""?"; domain="+gFpcDom:"");document.cookie.indexOf(name+"=")==-1&&(WTBI.co_f=WTBI.vt_sid=WTBI.vt_f_s=WTBI.vt_f_d=WTBI.vt_f_tlh=WTBI.vt_f_tlv="",WTBI.vt_f=WTBI.vt_f_a="2")}}function dcsEvt(evt,tag){for(var e=evt.target||evt.srcElement;e.tagName&&e.tagName!=tag;)e=e.parentElement||e.parentNode;return e}function dcsBind(event,func){typeof window[func]=="function"&&document.body&&(document.body.addEventListener?document.body.addEventListener(event,window[func],!0):document.body.attachEvent&&document.body.attachEvent("on"+event,window[func]))}function dcsET(){dcsBind("click","dcsDownload");dcsBind("click","dcsFormButton");dcsBind("keypress","dcsFormButton");dcsBind("click","dcsImageMap")}function dcsMultiTrack(){var i,dCurrent;if(arguments.length%2==0){for(i=0;i3&&(navigator.appName=="Microsoft Internet Explorer"&&document.body?WTBI.bs=document.body.offsetWidth+"x"+document.body.offsetHeight:navigator.appName=="Netscape"&&(WTBI.bs=window.innerWidth+"x"+window.innerHeight)),WTBI.fi="No",window.ActiveXObject)for(i=10;i>0;i--)try{flash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);WTBI.fi="Yes";WTBI.fv=i+".0";break}catch(e){}else if(navigator.plugins&&navigator.plugins.length)for(i=0;i0))for(i=0;i')}function dcsMeta(){var elems,i,meta;if(document.all?elems=document.all.tags("meta"):document.documentElement&&(elems=document.getElementsByTagName("meta")),typeof elems!="undefined")for(i=1;i<=elems.length;i++)meta=elems.item(i-1),meta.name&&(meta.name.indexOf("WT.")==0?WTBI[meta.name.substring(3)]=gI18n&&meta.name.indexOf("WT.ti")==0?dcsEscape(dcsEncode(meta.content),I18NRE):meta.content:meta.name.indexOf("DCSext.")==0?DCSext[meta.name.substring(7)]=meta.content:meta.name.indexOf("DCS.")==0&&(DCS[meta.name.substring(4)]=gI18n&&meta.name.indexOf("DCS.dcsref")==0?dcsEscape(meta.content,I18NRE):meta.content))}function dcsTag(){if(document.cookie.indexOf("WTLOPTOUT=")==-1){var P="http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+gDomain+(gDcsId==""?"":"/"+gDcsId)+"/dcs.gif?";for(N in DCS)DCS[N]&&(P+=dcsA(N,DCS[N]));for(N in WTBI)WTBI[N]&&(P+=dcsA("WT."+N,WTBI[N]));for(N in DCSext)DCSext[N]&&(P+=dcsA(N,DCSext[N]));P.length>2048&&navigator.userAgent.indexOf("MSIE")>=0&&(P=P.substring(0,2040)+"&WTBI.tu=1");dcsCreateImage(P)}}function dcsJV(){var agt=navigator.userAgent.toLowerCase(),major=parseInt(navigator.appVersion),mac=agt.indexOf("mac")!=-1,nn=agt.indexOf("mozilla")!=-1&&agt.indexOf("compatible")==-1,nn4=nn&&major==4,nn6up=nn&&major>=5,ie=agt.indexOf("msie")!=-1&&agt.indexOf("opera")==-1,ie4=ie&&major==4&&agt.indexOf("msie 4")!=-1,ie5up=ie&&!ie4,op=agt.indexOf("opera")!=-1,op5=agt.indexOf("opera 5")!=-1||agt.indexOf("opera/5")!=-1,op6=agt.indexOf("opera 6")!=-1||agt.indexOf("opera/6")!=-1,op7up=op&&!op5&&!op6,jv="1.1";return nn6up||op7up?jv="1.5":mac&&ie5up||op6?jv="1.4":ie5up||nn4||op5?jv="1.3":ie4&&(jv="1.2"),jv}function dcsFunc(func){typeof window[func]=="function"&&window[func]()}function dcsNvrRu(){if(document.cookie.indexOf("WTLOPTOUT=")==-1){var gc=function(name){var c=document.cookie,pos=c.indexOf(name+"="),start,end;return pos!=-1?(start=pos+name.length+1,end=c.indexOf(";",start),end==-1&&(end=c.length),c.substring(start,end)):null},cur=new Date,exp=new Date(cur.getTime()+31536e7),nvrRu=new DcsNvrRu(gc,exp),nvr=new DcsNvr(gc,exp);nvrRu.run();nvr.run()}}function DcsNvrRu(gc,exp){function read(){for(var num=0,value=gc(cfg.fpcname),levels,level,crumbs,curlevel,leveldata;value;){for(levels=value.split(":"),level=0;level0&&(leveldata=crumbs[1].split("|")),data[curlevel]=typeof data[curlevel]!="object"?leveldata:data[curlevel].concat(leveldata);num++;value=gc(cfg.fpcname+num)}}function process(){var rc=0,rudom=getRuDom(),rupath=getRuPath(),ruparam=getRuParam();return data.length>0?(rudom.length>0&&update(0,rudom)&&(rc|=1),rupath.length>0&&update(1,rupath)&&(rc|=2),ruparam.length>2&&updateParam(2,ruparam)&&(rc|=4)):(rudom.length>0?(data[0]=[rudom],rc|=1):data[0]=[],rupath.length>0?(data[1]=[rupath],rc|=2):data[1]=[],ruparam.length>0?(data[2]=[ruparam],rc|=4):data[2]=[]),rc}function compose(){for(var cookies=[],attr={name:cfg.fpcname,value:"",expiry:"; expires="+exp.toGMTString(),path:"; path=/",domain:"; domain="+cfg.fpcdom},num=0,maxval=4e3,newcrumb,j,i=0;i0&&(attr.value+=":"),attr.value+=newcrumb):(cookies[num]=attr.name+(num||"")+"="+attr.value+attr.expiry+attr.path+attr.domain,attr.value=newcrumb,num++)}return cookies[num]=attr.name+(num||"")+"="+attr.value+attr.expiry+attr.path+attr.domain,cookies}function getRuDom(){for(var curdom=getCurDom(),doms=getDoms(),i=0;i0)return params[i]+"&"+value;for(curparams=getCurParams(),i=0;i1&&(p.charAt(0)=="/"&&(p=p.substr(1)),p.charAt(p.length-1)=="/"&&(p=p.substr(0,p.length-1))),p.length!=paths[i].length&&(paths[i]=p),cfg.siteid.length>0&&(paths[i]=cfg.siteid+"&"+paths[i]);return paths}function getCurPath(){var p=window.location.pathname,badchars,ch;p=p.substring(p.indexOf("/")+1,p.lastIndexOf("/")).toLowerCase();badchars={"%09":/\t/g,"%20":/ /g,"%2C":/,/g,"%3B":/;/g};for(ch in badchars)p=p.replace(badchars[ch],ch);return cfg.siteid.length>0?cfg.siteid+"&"+p:p}function getCurParams(){return typeof DCS.dcsqry!="undefined"?DCS.dcsqry.substring(1).split("&"):[]}function getParams(){return cfg.paramlist.split(",")}var cfg={fpcname:wt_nvr_ru,fpcdom:wt_fpcdom,domlist:wt_domlist,pathlist:wt_pathlist,paramlist:wt_paramlist,siteid:wt_siteid},data=[];this.run=function(){read();var rc=process(),c,i,val;if(rc){for(c=compose(),i=0;i1&&(splitp=curpath.split("/",cfg.maxlevel),curlevel=splitp.length,curpath=splitp.join("/")),found=!1,data.length>0)if(data.length>curlevel){for(i=0;i0&&j===0&&(attr.value+=":"),attr.value+=newpath):attr.value.length>0&&(cookies[num]=attr.name+(num||"")+"="+attr.value+attr.expiry+attr.path+attr.domain,attr.value=i+"="+paths[j],++num>maxnum-1&&(maxed=!0)),newpath="";return maxed||(cookies[num]=attr.name+(num||"")+"="+attr.value+attr.expiry+attr.path+attr.domain),cookies}var cfg={fpcname:"WT_NVR",fpcdom:window.location.hostname,maxlevel:3},data=[];this.run=function(){read();var c,i,val;if(process()){for(c=compose(),i=0;i'))};window.hasOwnProperty("AmbientContext")&&(typeof define=="function"&&window.mtpsAmd?define("ABTest",["jquery"],function($){extractMetaFromAmbientContext($)}):extractMetaFromAmbientContext($))})();; window.pmc=window.pmc||{};window.pmc.debugConsoleLogEnabled=!1;window.pmc.debugLogMsgs=[];window.pmc.debugLog=function(inMsg){window.pmc.debugLogMsgs.push(inMsg);window.pmc.debugConsoleLogEnabled&&console.log(inMsg)};window.pmc.formatString=function(inValue){var newStr;if(typeof inValue=="undefined")return"";else newStr=typeof inValue=="string"?inValue.toLowerCase().trim():inValue.toString().toLowerCase().trim();return newStr.replace(/"/g,"'")};window.pmc.passScriptCheck=function(inText){return typeof inText!="undefined"&&inText.match(/