barWidth=165;barHPos='center';barVPos='top'; //position menubar
moveOnScroll=true;scrollSpeed=20;      // keep menu on screen??
mainWidth=55;subWidth=85;subPosn='center'; // dropdown position
/* end of user config area -- do not touch below this point */
/* checked with jsLint 2005 12 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){
   document.getElementById(elmnt).style.marginLeft=subTab+'px';
   document.getElementById(elmnt).style.visibility="visible";}
function hide(elmnt){document.getElementById(elmnt).style.visibility="hidden";}
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 */