/*
	DROP_DOWN_MENU.JS
	Javascript drop down menu.

	--------------------------------------------------------------------
	Copyright (c) 2005 Website Expressions Pty Ltd. All rights reserved.
	--------------------------------------------------------------------
	
	ABN:	  87 108 587 131
	Internet: www.websiteexpressions.com
	Email:	  mail@websiteexpressions.com
	Phone:	  +61 2 4948 1555
	Fax:	  +61 2 4948 1666

	Version 1.0
	16/09/2005

*/

<!--

/* Based on A DropMenus Tutorial explaining how to install a simple JavaScript dropdown menu system 
   for an effective menu display, on JR's Education Page (http://home.cogeco.ca/~ve3ll/jsdrop.htm) */

menuwidth=600; pagewidth=780; shift=(pagewidth-menuwidth)/2; ltop=0;
/*menuwidth=600; pagewidth=780; shift=100; ltop=100;
moveOnScroll=false;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 */
// -->