var shm_ShowTimer;var shm_HideTimer;var shm_ShowTimeout=2000;var shm_HideTimeout=3000;var shm_RootTagId="siteNav_bg";var shm_hideClassName="shm_hide";var shm_selectedNavClassName="selected";var shm_LiHasChild_Selected="shm_selectedLi";var shm_selectedNav;var shm_activeLink;var shm_dropdownArray=null;var shm_defaultSelectedNav;var shm_WidthofSubElem;var shm_WidthofParent;var shm_LeftPosofParent;var shm_LeftPosofSubElemWRTSHM;var shm_RightPosofSubElem;var shm_LeftPosofSubElem;var shm_LeftofRootNode;var shm_Width=942;var shm_lids=new Array();var shm_comp_index=-1;var shm_curr_comp_index=-1;var shm_impT=null;function shm_swtI(comp_indx,n) {if(shm_impT!=null&&n>=0&&shm_lids[comp_indx][n]!=false) {try{dcsMultiTrack("DCS.dcsuri","/shm_"+comp_indx+"_Level2 MenuItem/"+(n+1),"WT.ad","","WT.mc_id","","DCSext.wt_linkid",shm_lids[shm_comp_index][n],"WT.dl","5","WT.ti","Level2 menuItem "+(n+1));shm_lids[shm_comp_index][n]=false;shm_impT=null;}catch(e){;}}} function shm_addCId(cid) {if(cid=='')return;else {cid=";"+cid;} var metaTag=document.getElementsByTagName('meta');var wtLinkIdObj=null;var WTLinkIDMetaName='dcsext.wt_linkid';if(metaTag) {for(var m=metaTag.length-1;m>=0;m--) {wtLinkIdObj=metaTag[m];if(wtLinkIdObj!=null&&wtLinkIdObj['name'].toLowerCase()==WTLinkIDMetaName) {var wtMetaContent=wtLinkIdObj['content'];wtMetaContent+=cid;if(wtMetaContent.substring(wtMetaContent.length-1,wtMetaContent.length)==';') {wtMetaContent=wtMetaContent.substring(0,wtMetaContent.length-1);} wtLinkIdObj.content=wtMetaContent;}}}} shm_BindEvent(window,"load",shm_AddEvents);function shm_BindEvent(element,eventType,func) {if(window.addEventListener) element.addEventListener(eventType,func,false);else element.attachEvent("on"+eventType,func);} function shm_AddEvents() {var navigationRoot=document.getElementById(shm_RootTagId);var tmp=false;if(navigationRoot!=null) {for(var i=0;i0&&shm_RightPosofSubElemeval(shm_Width+shm_LeftofRootNode)) childUl.style.left=eval((shm_Width-shm_WidthofSubElem)-5)+'px';else childUl.style.left='0px';}} function shm_FindPos(obj) {var leftPos=0;while(obj) {leftPos+=obj.offsetLeft;obj=obj.offsetParent;} return leftPos;} function shm_HideDwnLvlMenu(liElement) {if(liElement!=null) {var ulelements=liElement.getElementsByTagName("ul");for(var i=0;i-1) {if(obj.className.indexOf('1')<0) {if(obj.className.indexOf('2')>-1) obj.className+=" shm_highLight_hasClild_2Tier";else obj.className+=" shm_highLight_hasClild_3Tier";}} else {if(obj.className.indexOf('1')<0) {if(obj.className.indexOf('2')>-1) obj.className+=" shm_highLight_2Tier";else obj.className+=" shm_highLight_3Tier";}}}}} function shm_Exec(object,method) {while(object!=null) {method.call(object,object);var parentLI=object.parentElement?object.parentElement:object.parentNode;var parentUL=parentLI.parentElement?parentLI.parentElement:parentLI.parentNode;var grandParentLi=parentUL.parentElement?parentUL.parentElement:parentUL.parentNode;var parentATag=grandParentLi.childNodes.item(0);if(parentATag.tagName=="A") object=parentATag;else object=null;}} function getLeftPos(obj){var leftPos=0;while(obj){leftPos+=obj.offsetLeft;obj=obj.offsetParent;} return leftPos;} function dynNavAlignCenter(childUl,sNode){if(!childUl){return false;} var topContainer=document.getElementById('nav_main')||false;if(!topContainer){return false;} dyn_Width=topContainer.offsetWidth;dyn_WidthofParent=sNode.offsetWidth;dyn_LeftPosofTopContainer=getLeftPos(topContainer);dyn_offsetleft=getLeftPos(sNode);dyn_LeftPosofParent=dyn_offsetleft-dyn_LeftPosofTopContainer;childUl.style.position='absolute';dyn_WidthofSubElem=childUl.offsetWidth;childUl.style.position='relative';dyn_LeftPosofSubElem=(dyn_LeftPosofParent+(dyn_WidthofParent/2))-(dyn_WidthofSubElem/2);dyn_RightPosofSubElem=(dyn_LeftPosofParent+(dyn_WidthofParent/2))+(dyn_WidthofSubElem/2);if(dyn_LeftPosofSubElem>0&&(dyn_RightPosofSubElem=dyn_Width){childUl.style.left=((dyn_Width-dyn_WidthofSubElem)-2)+'px';}else{}} var currentSelectedL1Item="";var currentSelectedL2Item="";var currentSelectedL3Item="";var L1mouseoverflag=false;function navL1MouseOver(sObjectName){if(sObjectName!=""){L1mouseoverflag=true;hideLevel3Section(currentSelectedL3Item);if(sObjectName!=currentSelectedL1Item){if(currentSelectedL1Item==""){currentSelectedL1Item=defaultSelectedL1Item;} if(currentSelectedL1Item!=""){oOldL1Item=document.getElementById(currentSelectedL1Item);oOldL2Item=document.getElementById(currentSelectedL1Item+"_content");oOldL1Item.className="unselected";if(oOldL2Item){oOldL2Item.style.display='none';}} oNewL1Item=document.getElementById(sObjectName);oNewL2Item=document.getElementById(sObjectName+"_content");oNewL1Item.className="selected";if(oNewL2Item){oNewL2Item.style.display='';} dynNavAlignCenter(oNewL2Item,oNewL1Item);currentSelectedL1Item=sObjectName;currentSelectedL2Item=sObjectName+"_content";}}} function checkForL1MouseOut(){if(L1mouseoverflag==false){navL1MouseOver(defaultSelectedL1Item);}} function checkForL3MouseOut(){if(L3mouseoverflag==false){hideLevel3Section(currentSelectedL3Item)}} function ieWidthHack(sObjectName,ol3Parent,ol3Item){if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)===false){return false;} if(!sObjectName||sObjectName==''||typeof ol3Parent!='object'||typeof ol3Item!='object'){return false;} var trash=sObjectName.split('_');var targ=trash[0]+'_content';trash=null;var targPos=document.getElementById(targ).offsetLeft||false;if(targPos){var getLink=ol3Item.getElementsByTagName('a');var linkPadding=parseInt(getLink[0].currentStyle.paddingLeft)+parseInt(getLink[0].currentStyle.paddingRight);var xTotal=ol3Parent.offsetLeft+targPos+ol3Item.offsetWidth;var xDiff=dyn_Width-xTotal;if(xDiff<0){ol3Item.style.width=ol3Item.offsetWidth+xDiff;}}} function showLevel3Section(sObjectName){hideLevel3Section(currentSelectedL3Item);ol3Parent=document.getElementById(sObjectName);ol3Arrow=document.getElementById(sObjectName+"_Arrow");ol3Arrow.className="ArrowExpand";ol3Item=document.getElementById(sObjectName+"_SubNav");ol3Item.style.display="";ieWidthHack(sObjectName,ol3Parent,ol3Item);currentSelectedL3Item=sObjectName+"_SubNav";ol3Parent.className="expanded";L1mouseoverflag=true;currentSelectedL2Item=sObjectName;} function hideLevel3Section(sObjectName){if(sObjectName!=""){ol3Parent=document.getElementById(currentSelectedL2Item);ol3Parent.className="";ol3Arrow=document.getElementById(currentSelectedL2Item+"_Arrow");ol3Arrow.className="ArrowNonExpand";ol3Item=document.getElementById(sObjectName);ol3Item.style.display="none";currentSelectedL3Item="";}} function clearLevel3Nav(sObjectName){if(currentSelectedL3Item!=sObjectName+"_SubNav"){hideLevel3Section(currentSelectedL3Item);}}