var navBaseClassName="mouseovers",navBaseElementsCount=5,navBaseElements=[],navColors=["#98bd00","#00a3d8","#806038","#075686","#075686"],timeoutMilliseconds=2000,myTimer=null,myi=0;function init_nav(){if(arguments.callee.done){return}var e=getElementsByClassName(document.getElementById("MstrTableWrapper"),"div",navBaseClassName),d,a,c=null,b;if(e==null){setTimeout(init_nav,100);return}if(arguments.callee.done){return}arguments.callee.done=true;for(d=0;d<e.length;d++){c=e[d];if(c!=null){$addHandler(c,"mouseover",navOver);$addHandler(c,"mouseout",navOut);$addHandler(document.getElementById("MstrTableWrapper_header_img"),"mouseover",cancelTimer);$addHandler(document.getElementById("MstrTableWrapper_header_img"),"mouseout",navOut);$addHandler(document.getElementById("WithNavigationMstr_Wrapper"),"mouseover",cancelTimer);$addHandler(document.getElementById("WithNavigationMstr_Wrapper"),"mouseout",navOut);$addHandler(document.getElementById("DefaultMstrWrapper_content"),"mouseout",navOut);for(a=1;a<=navBaseElementsCount;a++){b=document.getElementById("JavascriptNavigationTree_BaseNode"+a);if(b){navBaseElements[a-1]=b;if(a==CSCWorldwide.currentBaseNode){navBaseElements[a-1].style.display="block"}else{navBaseElements[a-1].style.display="none"}}}showToCurrentNode()}preload("hdr_logo2.jpg","hdr_logo3.jpg","hdr_logo4.jpg","hdr_logo5.jpg","nav2_horiz.gif","nav3_horiz.gif","nav4_horiz.gif","nav5_horiz.gif","nav_ftr_2.gif","nav_ftr_3.gif","nav_ftr_4.gif","nav_ftr_5.gif")}}document.observe("dom:loaded",init_nav);function preload(){var c=new Array(),d=preload.arguments,a="Images/",b;for(b=0;b<d.length;b++){c[b]=new Image();c[b].src=a+d[b]}}function navOver(a){cancelTimer();var b=0;if(Sys.UI.DomElement.containsCssClass(this,navBaseClassName+"1")){b=1}else{if(Sys.UI.DomElement.containsCssClass(this,navBaseClassName+"2")){b=2}else{if(Sys.UI.DomElement.containsCssClass(this,navBaseClassName+"3")){b=3}}}toggleDisplay(b)}function toggleDisplay(a){var b,c=null;if(a>0){document.getElementById(CSCWorldwide.imghdr_logo).src="Images/hdr_logo"+a+".jpg";document.getElementById("Navigation").style.backgroundColor=navColors[a-1];document.getElementById("Navigation").style.backgroundImage="url(Images/nav"+a+"_horiz.gif)";document.getElementById(CSCWorldwide.imgNavigationFooter).src="Images/nav_ftr_"+a+".gif";for(b=1;b<=navBaseElementsCount;b++){c=document.getElementById("JavascriptNavigationTree_BaseNode"+b);if(c){if(b==a){c.style.display="block"}else{c.style.display="none"}}}replaceCssRules("background-image",{"table#MstrTableWrapper td#MstrTableWrapper_nav div#Navigation div.JavascriptNavigationTree_Node0 a":"url(Images/nav"+a+"_1.gif)","table#MstrTableWrapper td#MstrTableWrapper_nav div#Navigation div.JavascriptNavigationTree_Node1 a":"url(Images/nav"+a+"_2.gif)","table#MstrTableWrapper td#MstrTableWrapper_nav div#Navigation div.JavascriptNavigationTree_Node1 a:hover":"url(Images/nav"+a+"_hover.gif)","table#MstrTableWrapper td#MstrTableWrapper_nav div#Navigation div.JavascriptNavigationTree_Node2 a":"url(Images/nav"+a+"_3.gif)"});replaceCssRules("color",{"table#MstrTableWrapper td#MstrTableWrapper_nav div#Navigation div.JavascriptNavigationTree_Node1 a, table#MstrTableWrapper div.JavascriptNavigationTree_Node1 div a":navColors[a-1]})}}function replaceCssRule(c,h,b){var m=new RegExp("\\s*"+c.toLowerCase()+"\\s*","g"),g=document.styleSheets,l=null,f,e,d,n=null,a=null;for(d=0;d<g.length;d++){l=(document.styleSheets[d].cssRules!==undefined)?document.styleSheets[d].cssRules:document.styleSheets[d].rules;for(f=0;f<l.length;f++){if(m.test(l[f].selectorText.toLowerCase())){if(l[f].style.cssText!==undefined){n=l[f].style.cssText.split(";");a=new RegExp("^\\s*"+h.toLowerCase()+"\\s*:","g");for(e=0;e<n.length;e++){if(a.test(n[e].toLowerCase())){n[e]=h+":"+b}}l[f].style.cssText=n.join(";")}}}}}function replaceCssRules(l,h){var n=new Array(),c,b,g,f,e,d,a,m=null;for(c in h){n[n.length]=new RegExp("\\s*"+c.toLowerCase()+"\\s*","g")}b=new RegExp("^\\s*"+l.toLowerCase()+"\\s*:","g");g=document.styleSheets;for(d=0;d<g.length;d++){m=(document.styleSheets[d].cssRules!==undefined)?document.styleSheets[d].cssRules:document.styleSheets[d].rules;for(f=0;f<m.length;f++){a=0;for(c in h){if(n[a].test(m[f].selectorText.toLowerCase())){cssTexts=m[f].style.cssText.split(";");for(e=0;e<cssTexts.length;e++){if(b.test(cssTexts[e].toLowerCase())){cssTexts[e]=l+":"+h[c]}}m[f].style.cssText=cssTexts.join(";")}a++}}}}function navOut(a){cancelTimer();myTimer=window.setTimeout(showToCurrentNode,timeoutMilliseconds)}function cancelTimer(){if(myTimer!==null){window.clearTimeout(myTimer);myTimer=null}}function showHide(d){var c=getTreeChildren(document.getElementById("JavascriptNavigationTree_"+d)),b,a;if(c!==null){for(b=0;b<c.length;b++){a=c[b];if(a!=null){if(a.style.display=="none"){a.style.display="block"}else{a.style.display="none"}}}}document.getElementById("MstrTableWrapper").focus()}function getTreeChildren(c){if(c!=null){var f=c.getElementsByTagName("div"),e,d=null,b,a;if(f.length>0){e=new Array();a=0;for(b=0;b<f.length;b++){d=f[b];if(d!=undefined&&d!=null&&d.id.indexOf("JavascriptNavigationTree_")>-1){e[a++]=d}}return e}else{return null}}}function print_r(c){var a,b;if(c!=null&&c.length>0){for(b=0;b<c.length;b++){a+=c[b].id+";"}}return a}function showToCurrentNode(){for(var a=1;a<=navBaseElementsCount;a++){navBaseElements[a-1]=document.getElementById("JavascriptNavigationTree_BaseNode"+a);if(navBaseElements[a-1]){if(a==CSCWorldwide.currentBaseNode){showToCurrentNode_TreeWalk(navBaseElements[a-1]);toggleDisplay(a)}else{navBaseElements[a-1].style.display="none"}}}}function showToCurrentNode_TreeWalk(c){var e,b,d,a;if((c!=null&&c.constructor!==undefined&&c.constructor.toString().indexOf("Array")!=-1)||(c!=null&&c.length!==undefined&&c.length>=0)){e=false;for(b=0;b<c.length;b++){d=c[b];a=getTreeChildren(d);if(a!==null&&showToCurrentNode_TreeWalk(a)){e=true}else{if(a===null&&d.id=="JavascriptNavigationTree_"+CSCWorldwide.currentNode){e=true}}}if(e===true){for(b=0;b<c.length;b++){c[b].style.display="block"}}return e}else{if(c!=null){a=getTreeChildren(c);if(a!==null&&showToCurrentNode_TreeWalk(a)){c.style.display="block";return true}else{if(c.id=="JavascriptNavigationTree_"+CSCWorldwide.currentNode){c.style.display="block";return true}}return false}else{return false}}}if(typeof(Sys)!=="undefined"){Sys.Application.notifyScriptLoaded()};