if(typeof window.Csp=="undefined"){window.Csp={};}
Csp.MasterNav=function(){this._hideTimer=null;this._showTimer=null;this.initialize();};Csp.MasterNav.MenuHeight=350;Csp.MasterNav.MenuWidth=200;Csp.MasterNav.prototype={clearHideTimer:function(){if(this._hideTimer!=null){window.clearTimeout(this._hideTimer);this._hideTimer=null;}},clearShowTimer:function(){if(this._showTimer!=null){window.clearTimeout(this._showTimer);this._showTimer=null;}},getLinks:function(){var links=[];var els=document.getElementsByTagName("a");for(var i=0;i<els.length;i++){var el=els[i];if(el.className.indexOf("h15-link")!=-1){links.push(el);}}
return links;},getMenuAnchors:function(){var anchors=[];var els=document.getElementsByTagName("a");for(var i=0;i<els.length;i++){var el=els[i];if(el.className.indexOf("h15-menu")!=-1){anchors.push(el);}}
return anchors;},getMenuListItems:function(){var items=[];var els=document.getElementsByTagName("li");for(var i=0;i<els.length;i++){var el=els[i];if(el.className.indexOf("h15-menu-item-dl")!=-1){items.push(el);}}
return items;},getMenus:function(){var menus=[];var els=document.getElementsByTagName("div");for(var i=0;i<els.length;i++){var el=els[i];if(el.className.indexOf("h15-menu-container")!=-1){menus.push(el);}}
return menus;},getMenuID:function(el){return"h15-menu-"+this.getMenuIndex(el);},getMenuIndex:function(el){return el.getAttribute("ix");},hideMenus:function(){var els=this.getMenus();for(var i=0;i<els.length;i++){els[i].style.visibility="hidden";}
var els=this.getMenuAnchors();for(var i=0;i<els.length;i++){els[i].tabIndex=0;}
var els=this.getMenuListItems();for(var i=0;i<els.length;i++){Sys.UI.DomElement.removeCssClass(els[i],"h15-menu-item-selected");}},initialize:function(){if(Sys.Browser.agent!=Sys.Browser.Safari){$addHandler(document.body,"keypress",Function.createDelegate(this,this.onBodyKeyPress));$addHandler(document.body,"mouseover",Function.createDelegate(this,this.onBodyMouseOver));$addHandler(window,"resize",Function.createDelegate(this,this.hideMenus));var els=this.getLinks();for(var i=0;i<els.length;i++){var el=els[i];$addHandler(el,"click",Function.createDelegate(this,this.onLinkClick));}
var els=this.getMenuAnchors();for(var i=0;i<els.length;i++){var el=els[i];el.href="javascript:void(0)";$addHandler(el,"click",Function.createDelegate(this,this.onGroupLinkClick));$addHandler(el,"mouseover",Function.createDelegate(this,this.onGroupLinkMouseOver));el.tabIndex=0;}
var els=this.getMenuListItems();for(var i=0;i<els.length;i++){var el=els[i];$addHandler(el,"mouseover",Function.createDelegate(this,this.onGroupMouseOver));}
var els=this.getMenus();for(var i=0;i<els.length;i++){var el=els[i];$addHandler(el,"mouseover",Function.createDelegate(this,this.onMenuMouseOver));}
this._menus=els.length;}},setHideTimer:function(){if(this._hideTimer==null){this._hideTimer=window.setTimeout(Function.createDelegate(this,this.hideMenus),1000);}},setShowTimer:function(el){if(this._showTimer!=null){this.clearShowTimer();}
this._showTimer=window.setTimeout(Function.createDelegate(this,function(){this.showMenu(el);}),125);},showMenu:function(el){this.hideMenus();Sys.UI.DomElement.addCssClass(el,"h15-menu-item-selected");var index=this.getMenuIndex(el);var id=this.getMenuID(el);var menu=document.getElementById(id);var els=this.getMenuAnchors();for(var i=0;i<els.length;i++){if(i==index-1){els[i].tabIndex=0;}else{els[i].tabIndex=-1;}}
var showFun;if(document.documentElement.dir=="ltr"){if(index<3){showFun=this.showMenuLeft;}else if(index>=3&&index<=this._menus-2){showFun=(Sys.UI.DomElement.getBounds(menu).width<=222)?this.showMenuLeft:this.showMenuRightMulti;}else{showFun=this.showMenuRight;}}else{if(index<3){showFun=this.showMenuRight;}else if(index>=3&&index<=this._menus-2){showFun=(Sys.UI.DomElement.getBounds(menu).width<=222)?this.showMenuRight:this.showMenuLeftMulti;}else{showFun=this.showMenuLeft;}}
showFun(menu,el);if(el.getAttribute("tag")!=""){this.webTrends1(el.title);el.setAttribute("tag","");}},showMenuLeft:function(menu,group){var groupBounds=Sys.UI.DomElement.getBounds(group);if(document.documentElement.dir=="rtl"&&Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version==6){var menuBounds=Sys.UI.DomElement.getBounds(menu);var innerBounds=Sys.UI.DomElement.getBounds(menu.getElementsByTagName("div")[0]);var difference=menuBounds.width-innerBounds.width;var offset=(menuBounds.height<=Csp.MasterNav.MenuHeight)?-difference+9:9;var scrollbar=document.body.width-document.body.offsetWidth;var left=groupBounds.x+offset-scrollbar+((Sys.Browser.version<7)?2:-2);}else if(document.documentElement.dir=="rtl"&&Sys.Browser.agent===Sys.Browser.InternetExplorer){var menuBounds=Sys.UI.DomElement.getBounds(menu);var innerBounds=Sys.UI.DomElement.getBounds(menu.getElementsByTagName("div")[0]);var difference=menuBounds.width-innerBounds.width;var offset=(menuBounds.height<=Csp.MasterNav.MenuHeight)?-difference+4:4;var left=groupBounds.x+offset+((Sys.Browser.version<7)?2:-2);}else{var left=groupBounds.x+((Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7)?1:-1);}
menu.style.left=left+"px";menu.style.visibility="visible";},showMenuLeftMulti:function(menu,group){var groupBounds=Sys.UI.DomElement.getBounds(group);var menuBounds=Sys.UI.DomElement.getBounds(menu);var innerBounds=Sys.UI.DomElement.getBounds(menu.getElementsByTagName("div")[0]);var difference=menuBounds.width-innerBounds.width;if(document.documentElement.dir=="rtl"&&Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version==6){var scrollbar=document.body.width-document.body.offsetWidth;var offset=(menuBounds.height<=Csp.MasterNav.MenuHeight)?(Csp.MasterNav.MenuWidth+12-scrollbar):(Csp.MasterNav.MenuWidth+7-difference);}else if(document.documentElement.dir=="rtl"&&Sys.Browser.agent===Sys.Browser.InternetExplorer){var offset=(menuBounds.height<=Csp.MasterNav.MenuHeight)?Csp.MasterNav.MenuWidth:(Csp.MasterNav.MenuWidth+2-difference);}else if(document.documentElement.dir=="rtl"&&Sys.Browser.agent===Sys.Browser.Opera){var offset=Csp.MasterNav.MenuWidth;}else{var offset=(menuBounds.height<=Csp.MasterNav.MenuHeight)?(Csp.MasterNav.MenuWidth-2+difference):(Csp.MasterNav.MenuWidth-4+difference);}
var left=groupBounds.x-menuBounds.width+offset+((Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7)?0:2);menu.style.left=left+"px";menu.style.visibility="visible";},showMenuRight:function(menu,group){var groupBounds=Sys.UI.DomElement.getBounds(group);var menuBounds=Sys.UI.DomElement.getBounds(menu);if(document.documentElement.dir=="rtl"&&Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version==6){var innerBounds=Sys.UI.DomElement.getBounds(menu.getElementsByTagName("div")[0]);var difference=menuBounds.width-innerBounds.width;var offset=(menuBounds.height<=Csp.MasterNav.MenuHeight)?-difference+10:10;var scrollbar=document.body.width-document.body.offsetWidth;var left=groupBounds.x+groupBounds.width-menuBounds.width-scrollbar+offset+((Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7)?3:1);}else if(document.documentElement.dir=="rtl"&&Sys.Browser.agent===Sys.Browser.InternetExplorer){var innerBounds=Sys.UI.DomElement.getBounds(menu.getElementsByTagName("div")[0]);var difference=menuBounds.width-innerBounds.width;var offset=(menuBounds.height<=Csp.MasterNav.MenuHeight)?-difference+4:4;var left=groupBounds.x+groupBounds.width-menuBounds.width+offset+((Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7)?3:1);}else{var left=groupBounds.x+groupBounds.width-menuBounds.width+((Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7)?3:1);}
menu.style.left=left+"px";menu.style.visibility="visible";},showMenuRightMulti:function(menu,group){var groupBounds=Sys.UI.DomElement.getBounds(group);var left=groupBounds.x+groupBounds.width-Csp.MasterNav.MenuWidth+((Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7)?0:-2);menu.style.left=left+"px";menu.style.visibility="visible";},onBodyKeyPress:function(e){var target=e.target;var keyCode=e.charCode;if(keyCode==27){this.hideMenus();if(target.className=="h15-menu"||target.className=="h15-link"){document.getElementById("h15-group-1").focus();}}},onBodyMouseOver:function(e){this.clearShowTimer();this.setHideTimer();},onGroupLinkClick:function(e){this.clearHideTimer();this.setShowTimer(e.target.parentNode);e.preventDefault();},onGroupLinkMouseOver:function(e){e.stopPropagation();this.clearHideTimer();this.setShowTimer(e.target.parentNode);},onGroupMouseOver:function(e){e.stopPropagation();this.clearHideTimer();this.setShowTimer(e.target);},onLinkClick:function(e){var linkEl=e.target;var subgroupEl=linkEl.parentNode;var groupEl=subgroupEl.parentNode.parentNode.parentNode;this.webTrends3(linkEl.title,subgroupEl.getAttribute("subgroup"),groupEl.getAttribute("group"));},onMenuMouseOver:function(e){e.stopPropagation();this.clearHideTimer();this.clearShowTimer();},webTrends1:function(name){if(typeof window.dcsMultiTrack!="undefined"){var name=this.doubleQuote(name);try{dcsMultiTrack("DCS.dcsuri",location.hostname,"DCSext.ngn_clevel","Level 1","DCSext.ngn_lname",name,"DCS.ngn_type","Master Navigation","WT.si_p","Level 2a","WT.ti",name,"WT.dl","1","DCS.wt_linkid","");}catch(e){}}},webTrends3:function(name,subgroup,group){if(typeof window.dcsMultiTrack!="undefined"){var campaignID="";var pathname=(location.pathname.startsWith("/"))?location.pathname:"/"+location.pathname;var query=(location.search.length>0)?location.search.substring(1):"";var name=this.doubleQuote(name);var title=this.doubleQuote(group)+":"+this.doubleQuote(subgroup)+":"+name;try{dcsMultiTrack("DCS.dcssip",pathname,"DCS.dcsuri",location.hostname,"DCS.dcsqry",query,"DCSext.ngn_clevel","Level 2b","DCSext.ngn_lname",name,"DCS.ngn_type","Master Navigation","WT.si_p","Level 3","WT.ti",title,"WT.dl",1,"DCSext.wt_linkid",campaignID);}catch(e){}}},doubleQuote:function(s){return s.replace("'","''");}};Csp.MasterNav.getMenuInner=function(menu){var els=menu.getElementsByTagName("div");for(var i=0;i<els.length;i++){var el=els[i];if(el.className.indexOf("h15-menu-inner")!=-1){return el;}}
return null;}
Csp.MasterNav.layoutMenu=function(layoutID,menuID){var layout=document.getElementById(layoutID);var menu=document.getElementById(menuID);if(Sys.Browser.agent==Sys.Browser.Safari){menu.style.display="none";return;}
var els=layout.getElementsByTagName("div");var menus=[];for(var i=0;i<els.length;i++){var el=els[i];if(el.className.indexOf("h15-menu")!=-1){menus.push(el);}}
var els=menu.getElementsByTagName("div");var columns=[];for(var i=0;i<els.length;i++){var el=els[i];if(el.className.indexOf("h15-column")!=-1){columns.push(el);}}
var index=0;var currentHeight=0;for(var i=0;i<menus.length;i++){var el=menus[i];var height=Sys.UI.DomElement.getBounds(el).height+30;if(currentHeight+height>Csp.MasterNav.MenuHeight&&index<3){index++;currentHeight=0;}
currentHeight+=height;el.parentNode.removeChild(el);columns[index].appendChild(el);}
var menuHeight=0;for(var i=0;i<columns.length;i++){var el=columns[i];menuHeight=Math.max(menuHeight,Sys.UI.DomElement.getBounds(el).height);}
menu.style.height=Math.min(menuHeight,Csp.MasterNav.MenuHeight)+"px";menuWidth=((index+1)*Csp.MasterNav.MenuWidth+20);menu.style.width=menuWidth+"px";var inner=Csp.MasterNav.getMenuInner(menu);if(inner!=null){inner.style.height=menuHeight;}
for(var i=0;i<columns.length;i++){var el=columns[i];if(i<index){Sys.UI.DomElement.addCssClass(el,"h15-dotted");}
if(i<=index){el.style.height=menuHeight+"px";}
if(i>index){el.style.display="none";}}};Csp.SearchBox=function(searchSiteID,searchWebID,searchID,watermarkText){this._searchSiteID=searchSiteID;this._searchWebID=searchWebID;this._searchID=searchID;this._watermarkText=watermarkText;this.initialize();};Csp.SearchBox.prototype={initialize:function(){var el=null||document.getElementById(this._searchSiteID);if(el!=null){$addHandler(el,"click",Function.createDelegate(this,this.onSearchSiteClick));}
var el=null||document.getElementById(this._searchWebID);if(el!=null){$addHandler(el,"click",Function.createDelegate(this,this.onSearchWebClick));}
var el=null||document.getElementById(this._searchID);if(el!=null){this.setWatermark(el,true);$addHandler(el,"blur",Function.createDelegate(this,this.onBlur));$addHandler(el,"focus",Function.createDelegate(this,this.onFocus));}},clearWatermark:function(el){if(el.value==this._watermarkText){el.style.color="#000";el.style.fontStyle="normal";el.value="";}},setWatermark:function(el,always){if(always==true||el.value.length==0){el.style.color="#707070";el.style.fontStyle="italic";el.value=this._watermarkText;}},onBlur:function(e){this.setWatermark(e.target,false);},onFocus:function(e){this.clearWatermark(e.target);},onSearchSiteClick:function(e){this.searchClicked("mscom");},onSearchWebClick:function(e){this.searchClicked("live");},searchClicked:function(stype){var el=null||document.getElementById(this._searchID);var sterm=(el!=null)?el.value:"";if(typeof window.DCSext!="undefined"){DCSext.sterm=""||sterm;DCSext.stype=stype;}}};if(typeof window.Sys!="undefined"){Sys.Application.notifyScriptLoaded();}

var vrtc_activeTabIndices=[];var vrtc_activeTabTimers=[];var vrtc_currentTabGroup=0;var vrtc_currentTabIndex=0;var vrtc_isMouseOver=false;var vrtc_impT=null;var vrtc_keyPressFunction=null;var vrtc_tlids=[];var vrtc_tabs=[];var TVIEWHEIGHT=0;function GKBH(e){var code;if(!e){e=window.event;}
if(e.keyCode){code=e.keyCode;}else if(e.which){code=e.which;}
return code;}
function vrtc_activateTab(tabGroup,index){clearTimeout(vrtc_activeTabTimers[tabGroup]);vrtc_currentTabGroup=tabGroup;vrtc_currentTabIndex=index;if(vrtc_activeTabIndices.length<=tabGroup){vrtc_activeTabIndices[tabGroup]=0;}
var vrtc_activeTabIndex=vrtc_activeTabIndices[tabGroup];if(index!=vrtc_activeTabIndex){vrtc_activeTabTimers[tabGroup]=setTimeout(vrtc_activateTabTimer,250);}}
function vrtc_mouseOutTab(tabGroup,index){clearTimeout(vrtc_activeTabTimers[tabGroup]);}
function vrtc_keyPress(o){var k=GKBH(o);if(k==13||k==32){eval(vrtc_keyPressFunction);return false;}
return k;}
function vrtc_activateTabTimer(){var vrtc_activeTabIndex=vrtc_activeTabIndices[vrtc_currentTabGroup];if(vrtc_currentTabIndex!=vrtc_activeTabIndex){var h="vrtc_tbh"+vrtc_currentTabGroup+"_";var c="vrtc_tbc"+vrtc_currentTabGroup+"_";var activeTab=$get(h+vrtc_activeTabIndex);var activeTabPanel=$get(vrtc_tabs[vrtc_activeTabIndex]);var newTab=$get(h+vrtc_currentTabIndex);var newTabPanel=$get(vrtc_tabs[vrtc_currentTabIndex]);var activeTabDiv=cspGetObjectsByTagAndClass("div","vrtc_activetabdiv");if(activeTabDiv.length>0){activeTabDiv[0].className="vrtc_activetabdiv vrtc_cf";activeTabDiv[0].innerHTML=newTabPanel.innerHTML;vrtc_isMouseOver=true;}
activeTab.className="vrtc_tab";newTab.className="vrtc_tabActive";vrtc_activeTabIndices[vrtc_currentTabGroup]=vrtc_currentTabIndex;clearTimeout(vrtc_impT);vrtc_impT=setTimeout("vrtv_swtI("+vrtc_currentTabIndex+")",1000);}}
function vrtv_swtI(n){if(vrtc_impT!=null&&n>0&&vrtc_tlids[n]!=false){if(typeof window.dcsMultiTrack!="undefined"){dcsMultiTrack("DCS.dcsuri","/tabs/"+(n+1),"WT.ad","","WT.mc_id","","DCSext.wt_linkid",vrtc_tlids[n],"WT.dl","5","WT.ti","Tab "+(n+1));}
if(typeof window.$$O!="undefined"&&$$O.get_handlerUrl()!=""){$$O.recordComponentImpression({cattr:"/tabs/"+(n+1),cid:vrtc_tlids[n],cname:"cspVerticalRolloverTab",uri:window.location.href});}
vrtc_tlids[n]=false;vrtc_impT=null;}}
function getObjectHeight(i){return i.offsetHeight;}
function collapseTabs(){var objects=cspGetObjectsByTagAndClass("div","vt_tabPanel");for(var i=0;i<vrtc_tabs.length;i++){if(i==0){if(!vrtc_isMouseOver){var activeTabDiv=cspGetObjectsByTagAndClass("div","vrtc_activetabdiv");if(activeTabDiv.length>0){activeTabDiv[0].className="vrtc_activetabdiv vrtc_cf";activeTabDiv[0].innerHTML=objects[i].innerHTML;}}}
objects[i].className="vt_tabPanel vrtc_tabHiddenPanel vrtc_cf";}}
function cspVerticalRolloverTab_parseMetaTag(index){if(index!=0){wtRemoveCId(vrtc_tlids[index]);}
return true;}

function vt_setStyle(id,path)
{if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version>=7)
{var pngImage=$get(id);pngImage.style.filter='';}}

if(typeof window.Csp=="undefined"){window.Csp={};}
$$I=Csp.Images=function(){return{addBackgroundGradient:function(el,src,startColor,endColor){if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<8){el.src=src;el.style.filter="progid:DXImageTransform.Microsoft.Gradient(enabled='true', StartColorStr='"+startColor+"', EndColorStr='"+endColor+"')";}},fixPNG:function(el,src){if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<8){el.style.backgroundImage="";el.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"')";}}};}();$$SL=Csp.Silverlight=function(version,timeout){var handlers=new $$E();var silverlightVersion=version||"1.0";var refreshTimeout=timeout||3000;return{displayCreatives:function(){handlers.callHandlers();},get_SilverlightVersion:function(){return silverlightVersion;},refreshCreatives:function(){if(Silverlight.isInstalled(silverlightVersion)){$$SL.displayCreatives();}else if(typeof $$U!="undefined"&&$$U.Browser=="MSIE"){window.setTimeout($$SL.refreshCreatives,refreshTimeout);}},registerCreative:function(handler){handlers.addHandler(handler);}};}();$$SG=Csp.SilverGate=function(args){if(args!==null){this._BehaviorID=args.behaviorID;this._CloseID=args.closeID;this._DaysToLive=args.daysToLive||1095;this._InstallID=args.installID;this._IsDirectInstall=args.isDirectInstall||false;this._LearnMoreID=args.learnMoreID;this._LicenseAgreementID=args.licenseAgreementID;this._PopupID=args.popupID;this._Version=args.version||"1.0";}
this._CloseHandlers=new $$E();this._InstallHandlers=new $$E();this._LearnMoreHandlers=new $$E();this._LicenseAgreementHandlers=new $$E();this._ShowHandlers=new $$E();this._UnloadHandlers=new $$E();if(this._CloseID!==null){$addHandler($get(this._CloseID),"click",Function.createDelegate(this,this.onCloseClick));}
if(this._InstallID!==null){$addHandler($get(this._InstallID),"click",Function.createDelegate(this,this.onInstallClick));}
if(this._LearnMoreID!==null){$addHandler($get(this._LearnMoreID),"click",Function.createDelegate(this,this.onLearnMoreClick));}
if(this._LicenseAgreementID!==null){$addHandler($get(this._LicenseAgreementID),"click",Function.createDelegate(this,this.onLicenseAgreementClick));}
if(this._PopupID!==null){$addHandler($get(this._PopupID),"keypress",Function.createDelegate(this,function(e){return this.onKeyPress(e);}));}
if(typeof $$U!="undefined"){$$U.detectUserAgent();if(this._InstallID!==null){$get(this._InstallID).href="http://www.microsoft.com/silverlight/handlers/getsilverlight.ashx?v="+this._Version;}
if(this._LicenseAgreementID!=null){$get(this._LicenseAgreementID).href="http://www.microsoft.com/silverlight/resources/license.aspx?v="+this._Version;}
if(this._LearnMoreID!=null){$get(this._LearnMoreID).href="http://www.microsoft.com/silverlight/resources/privacy.aspx?v="+this._Version;}}};$$SG.prototype={get_IsDirectInstall:function(){return this._IsDirectInstall||false;},set_IsDirectInstall:function(value){this._IsDirectInstall=value;},hidePopup:function(){var behavior=$find(this._BehaviorID);if(behavior!==null){behavior.hide();}
this.unloadPopup();},onCloseClick:function(){if(this.get_IsDirectInstall()){if(typeof window.dcsMultiTrack!="undefined"){var el=$get(this._CloseID);var text=(el!=null)?el.title:"No thanks";dcsMultiTrack("WT.ti","Direct Install: "+text,"DCSext.wt_slditi","Direct Install: "+text,"WT.dl","18");}}else{$$C.setCookie("pgcld","true",this._DaysToLive);if(typeof window.dcsMultiTrack!="undefined"){dcsMultiTrack("DCSext.wt_pg","Page Gate Close","WT.dl","16");}}
this.hidePopup();this._CloseHandlers.callHandlers();},onInstallClick:function(){if(this.get_IsDirectInstall()){if(typeof window.dcsMultiTrack!="undefined"){var el=$get(this._InstallID);var text=(el!=null)?el.title:"Click to install";dcsMultiTrack("WT.ti","Direct Install: "+text,"DCSext.wt_slditi","Direct Install: "+text,"WT.dl","18");}}else{if(typeof window.dcsMultiTrack!="undefined"){dcsMultiTrack("DCSext.wt_pg","Install now","WT.dl","16");}}
$$SL.refreshCreatives();this.hidePopup();this._InstallHandlers.callHandlers();},onKeyPress:function(e){var target=e.target;var keyCode=e.charCode;if(keyCode==27){this.onCloseClick();e.preventDefault();}else if(keyCode==13&&target.className.indexOf("sg-ignore-enter")==-1){this.onInstallClick();}else{return true;}},onLearnMoreClick:function(){if(this.get_IsDirectInstall()){if(typeof window.dcsMultiTrack!="undefined"){dcsMultiTrack("WT.ti","Direct Install: Learn more","DCSext.wt_slditi","Direct Install: Learn more","WT.dl","18");}}else{if(typeof window.dcsMultiTrack!="undefined"){dcsMultiTrack("DCSext.wt_pg","Learn more","WT.dl","16");}}
this._LearnMoreHandlers.callHandlers();},onLicenseAgreementClick:function(){if(this.get_IsDirectInstall()){if(typeof window.dcsMultiTrack!="undefined"){dcsMultiTrack("WT.ti","Direct Install: Silverlight License Agreement","DCSext.wt_slditi","Direct Install: Silverlight License Agreement","WT.dl","18");}}else{if(typeof window.dcsMultiTrack!="undefined"){dcsMultiTrack("DCSext.wt_pg","Silverlight License Agreement","WT.dl","16");}}
this._LicenseAgreementHandlers.callHandlers();},registerClose:function(handler){this._CloseHandlers.addHandler(handler);},registerLearnMore:function(handler){this._LearnMoreHandlers.addHandler(handler);},registerLicenseAgreement:function(handler){this._LicenseAgreementHandlers.addHandler(handler);},registerShow:function(handler){this._ShowHandlers.addHandler(handler);},registerUnload:function(handler){this._UnloadHandlers.addHandler(handler);},showSilverGate:function(){if($$SG.overridePopup()){$$C.removeCookie("pgcld");this.showPopup();}else if(typeof $$U!="undefined"&&$$U.Browser=="Unsupported"){this.unloadPopup();}else if(typeof $$U!="undefined"&&$$U.Browser=="Safari"&&$$U.OS=="Windows"){this.unloadPopup();}else if(typeof window.Silverlight!="undefined"&&Silverlight.isInstalled(this._Version)){$$SL.displayCreatives();this.unloadPopup();}else if(!this.get_IsDirectInstall()&&(!$$C.enabled()||$$C.hasCookie("pgcld"))){this.unloadPopup();}else{this.showPopup();}},showPopup:function(){var behavior=$find(this._BehaviorID);var popup=$get(this._PopupID);if(behavior!==null&&popup!==null){if(!Array.contains(behavior._tagWithTabIndex,"A")){behavior._tagWithTabIndex.push("A");}
if(!Array.contains(behavior._tagWithTabIndex,"H1")){behavior._tagWithTabIndex.push("H1");}
if(!Array.contains(behavior._tagWithTabIndex,"LI")){behavior._tagWithTabIndex.push("LI");}
behavior.show();popup.style.display="block";behavior._layout();var installButton=$get(this._InstallID);if(installButton!==null){installButton.focus();}}
if(this.get_IsDirectInstall()){if(typeof window.dcsMultiTrack!="undefined"){dcsMultiTrack("DCS.dcssip",window.location.hostname,"DCS.dcsuri",window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1)+"directinstall/impression","DCSext.wt_slditi","Direct Install: Impression","WT.dl","17","DCSext.wt_target","","DCSext.wt_linkid",DCSext.wt_linkid,"WT.ad","","WT.mc_id","");}}else{if(typeof window.dcsMultiTrack!="undefined"){dcsFunc("dcsCookie");dcsMeta();dcsMultiTrack("DCS.dcssip",window.location.hostname,"DCS.dcsuri",window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")+1)+"pagegate/","DCSext.wt_sppt",WT.sp+"hp","DCSext.wt_pg","Silverlight Page Gate","WT.dl","15","WT.seg_4","No","DCSext.wt_ver","","DCSext.wt_target","","DCSext.wt_linkid","");}}
this._ShowHandlers.callHandlers();},unloadPopup:function(){if(!this.get_IsDirectInstall()){if(typeof window.dcsRun!="undefined"&&$$SG.get_IsDisplayed()){dcsRun();}
var ticklerLoaded=typeof window.Csp!="undefined"&&typeof Csp.Lsp!="undefined"&&typeof lspInst!="undefined";if(ticklerLoaded){lspInst.Render();}}
if(this._CloseID!==null){$clearHandlers($get(this._CloseID));}
if(this._InstallID!==null){$clearHandlers($get(this._InstallID));}
if(this._LearnMoreID!==null){$clearHandlers($get(this._LearnMoreID));}
if(this._LicenseAgreementID!==null){$clearHandlers($get(this._LicenseAgreementID));}
if(this._PopupID!==null){$clearHandlers($get(this._PopupID));}
this._UnloadHandlers.callHandlers();$$SG.set_IsUnloaded(true);}};$$SG.createDirectInstall=function(id,event){var magic="pagegate";var args={backgroundID:magic+"-sg-background",behaviorID:"ctl00_"+magic+"ModalPopupExtender",closeID:magic+"-sg-close-button",daysToLive:1096,installID:magic+"-sg-install-button",isDirectInstall:true,learnMoreID:magic+"-sg-learn-more-button",licenseAgreementID:magic+"-sg-license-agreement-button",popupID:"ctl00_"+magic+"_silvergate"};$addHandler($get(id),event,function(e){$$SG.showSilverGate(args);if(typeof window.$$U!="undefined"&&$$U.Browser!="Unsupported"){e.preventDefault();}});};$$SG.createPageGate=function(args){args.isDirectInstall=false;this.waitForWebTrends(args);};$$SG.get_IsDirectInstall=function(){return this._IsDirectInstall||false;};$$SG.set_IsDirectInstall=function(value){this._IsDirectInstall=value;};$$SG.get_IsDisplayed=function(){return this.IsDisplayed||false;};$$SG.set_IsDisplayed=function(value){this.IsDisplayed=value;};$$SG.get_IsUnloaded=function(){return this.IsUnloaded||false;};$$SG.set_IsUnloaded=function(value){this.IsUnloaded=value;};$$SG.overridePopup=function(){return $$Q.hasValue("showPageGate")||$$Q.hasValue("showpagegate");};$$SG.shouldShowSilverGate=function(args){if(this.overridePopup()){return true;}else if(typeof $$U!="undefined"&&$$U.Browser=="Unsupported"){return false;}else if(typeof $$U!="undefined"&&$$U.Browser=="Safari"&&$$U.OS=="Windows"){return false;}else if(typeof window.Silverlight!="undefined"&&Silverlight.isInstalled($$SL.get_SilverlightVersion())){return false;}else if(!args.isDirectInstall&&(!$$C.enabled()||$$C.hasCookie("pgcld"))){return false;}else{return true;}};$$SG.showSilverGate=function(args){if(typeof window.Silverlight!="undefined"&&typeof Silverlight.WaitForInstallCompletion!="undefined"){Silverlight.WaitForInstallCompletion=function(){};}
$$SG.set_IsDirectInstall(args.isDirectInstall);var silvergate=new $$SG({backgroundID:args.backgroundID,behaviorID:args.behaviorID,closeID:args.closeID,daysToLive:args.daysToLive,installID:args.installID,isDirectInstall:args.isDirectInstall,learnMoreID:args.learnMoreID,licenseAgreementID:args.licenseAgreementID,popupID:args.popupID});silvergate.showSilverGate();$get(args.backgroundID).height=Sys.UI.DomElement.getBounds($get(args.popupID)).height-120;};$$SG.waitForWebTrends=function(args){$$SG.set_IsDisplayed($$SG.shouldShowSilverGate(args));if(typeof window.dcsMultiTrack!="undefined"){window.setTimeout(function(){$$SG.waitForWebTrends(args)},500);}else{Sys.Application.add_load(function(){$$SG.showSilverGate(args);});}};
