// JavaScript Document

menuwidth=600; pagewidth=700; shift=(pagewidth-menuwidth)/2; ltop=0;
moveOnScroll=true;scrollSpeed=20;scrolled='document.body.scrollTop';

/* shield page from geezer browsers -- try to get them to upgrade */
if (document.layers) {top.location.href="http://www.mozilla.org";}
if (document.all &&!document.getElementById) { //oops - MSIE ver 5
   top.location.href="http://www.microsoft.com/windows/ie/";}

/* scrolling stuff to hold menu on screen */
function checkScrolled(){
   document.getElementById('zone').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() { //init centers menu 'zone', sets scrolling ptr

/* position the menu contents element */
   document.getElementById('zone').style.marginLeft=shift+'px';
   document.getElementById('zone').style.marginTop=ltop+'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();}}

/* end JavaScript code for dropdown menu system */
