barWidth=165;barHPos='left';barVPos='top'; //position menubar
mainWidth=55;subWidth=25;subPosn='right'; // dropdown position
moveOnScroll=true;scrollSpeed=20;      // keep menu on screen??
/* end of user config area -- do not touch below this point */
/* checked with jsLint 2006 05 29 */
scrolled='document.body.scrollTop';window.onresize=menuPosn;
barTop=0;shift=mainWidth-subWidth;subTab=0; // subtab calcs
if (subPosn=='center'){subTab=(shift-3)/2;}
if (subPosn=='right'){subTab=shift;}
function checkScrolled(){
   document.getElementById('zone').style.top=eval(scrolled)+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.visibility="visible";
   document.getElementById(elmnt).style.display="block"}
function hide(elmnt){
   if (document.getElementById(elmnt)==null) {return;}
   document.getElementById(elmnt).style.visibility="hidden";
   document.getElementById(elmnt).style.display="none"}
function menuPosn(){
   shift=0;p=document.body.offsetWidth-barWidth-45;
   if (barHPos=='center') {shift=p/2;}
   if (barHPos=='right') {shift=p;}
   document.getElementById('zone').style.left=shift+'px';
   barTop=0;p=self.innerHeight;if(!p) {p=document.body.clientHeight;}
   if (barVPos=='middle') {barTop=p/2;}
   if (barVPos=='bottom') {barTop=p-25;}
   document.getElementById('zone').style.top=barTop+'px';}
function menuInit(){
   menuPosn();   //init positions menu 'zone', sets scrolling ptr
   x1=eval(scrolled);window.scrollBy(0,1);//test scrolled ptr
   x2=eval(scrolled);window.scrollBy(0,-1);//reset position
   if ((x2-x1)<1){scrolled='document.documentElement.scrollTop';}
   if(moveOnScroll){checkScrolled();}}
/* end JavaScript code for dropdown menu system */