ltop=105;
moveOnScroll=true;
scrollSpeed=20;
scrolled='document.body.scrollTop';

/* scrolling stuff to hold menu on screen */
function checkScrolled(){

   if(eval(scrolled)>250){
		document.getElementById('zone1').style.top=250+ltop+'px';
		document.getElementById('zone2').style.top=250+ltop+'px';
   } else {
      	document.getElementById('zone1').style.top=eval(scrolled)+ltop+'px';
	    document.getElementById('zone2').style.top=eval(scrolled)+ltop+'px';
   }
   setTimeout('checkScrolled()',scrollSpeed);
}

/* begin JavaScript code for the dropdown menu system */
function show(elmnt) {
   document.getElementById(elmnt).style.visibility="visible";
}

function hide(elmnt) {
   document.getElementById(elmnt).style.visibility="hidden";
}

function menuInit() { 

   docheight='document.documentElement.clientHeight';

/* position the menu contents element */
   document.getElementById('zone1').style.marginTop=ltop+'px';
   document.getElementById('zone2').style.marginTop=ltop+20+'px';
   
/* scrolling stuff to hold menu on screen */
   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();
   }

   document.getElementById('zone1').style.visibility='visible';
   document.getElementById('zone2').style.visibility='visible';
//	alert("ltop = " + ltop +" & scrolltop = " + eval(scrolled));
}

