/* checked with jsLint 2009 04 30 */ mainWidth=160;subWidth=160;barWidth=500; // caption lengths barHPos='center';barVPos='127';subPosn='center';// positioning moveOnScroll=false;scrollSpeed=20; // keep menu on screen?? /* end of user config area -- do not touch below this point */ var pObj,zObj,barTop;p=mainWidth-subWidth; switch(subPosn.toLowerCase()){ //submenu calc is static case'left':subTab=0;break; case'center':subTab=(p-3)/2;break; case'right':subTab=p;break; default:subTab=parseInt(subPosn,10);} function getWidth(oNode){return oNode.offsetWidth;} function checkScrolled(){ zObj.style.top=document.documentElement.scrollTop+barTop+'px'; setTimeout(checkScrolled,scrollSpeed);} function show(elmnt){ if (document.getElementById(elmnt)===null) {return;} document.getElementById(elmnt).style.marginLeft=subTab+'px'; document.getElementById(elmnt).style.display="block";} function hide(elmnt){ if (document.getElementById(elmnt)===null) {return;} document.getElementById(elmnt).style.display="none";} function menuPosn(){ p=document.body.offsetWidth-barWidth; switch(barHPos.toLowerCase()){ case'left':shift=0;break; case'center':shift=p/2;break; case'right':shift=p;break; default:shift=parseInt(barHPos,10);} zObj.style.left=shift+'px'; p=document.body.clientHeight+document.documentElement.clientHeight; switch(barVPos.toLowerCase()){ case'top':barTop=0;break; case'middle':barTop=p/2;break; case'bottom':barTop=p-25;break; default:barTop=parseInt(barVPos,10);} document.getElementById('zone').style.top=barTop+'px';} function menuInit(param){ zObj=document.getElementById('jsmsg');//noscript fix if(zObj){zObj.style.display='none';} zObj=null;if(param){return;} // drop menu not needed zObj=document.getElementById('zone'); pObj=zObj.parentNode;menuWrite(); menuPosn();//init positions menu 'zone', sets scrolling ptr if(moveOnScroll){checkScrolled();} window.onresize=menuPosn;} function menuWrite(){ copy ='';copy+='