<!-- Hide script from old browsers
//showmenu.js v2.2

//initialise variables tempX and tempY to store onClick event locations

	var tempX;
	var tempY;
	
//initialise variable for timer

	var removemenu;
	
//spacer is an offset to display the menu a number of pixels below the
//event coordinates.

	var xspacer = 0;
	var yspacer = 5;

//where the menuboxes are moved to to hide them

	var displace_coord = -800;
	
//the timeout if the menu if not used in thousandths of second

	var timeout_value = 2000; 


//this function moves all menus to a hidden position

function clearMenu() {

	setStyleByClass("DIV", "link", "pixelLeft", displace_coord)
	setStyleByClass("DIV", "link", "pixelTop", displace_coord)
		
}

//This function receives the object ID and positions this depending
//on the value of tempX and tempY and the event type.

function showMenu(objID) {

	clearTimeout(removemenu)

	if (document.all) {

	//This checks to see if the user is using Internet Explorer
	//because only IE uses "document.all"

		objName = eval('document.all.' + objID + '.style');

		//This statement creates the object reference for IE from
		//object ID sent to the script

		if (event.type == 'mouseout') {
	
			objName.pixelLeft = displace_coord;
			objName.pixelTop = displace_coord;
	
		} else {
			objName.pixelLeft = tempX;
			objName.pixelTop = tempY;
		}

		//This sets the x- and y-coordinates of the top of the object
		//for users browsing with Internet Explorer

	} else {

	//If user is not using Internet Explorer do what follows

		objName = eval('document.' + objID);

		//Create the object reference for Netscape using
		//the object ID sent to the script

		if (event.type == 'mouseout') {
	
			objName.pixelLeft = displace_coord;
			objName.pixelTop = displace_coord;
	
		} else {
			objName.pixelLeft = tempX;
			objName.pixelTop = tempY;
		}

		//Set the y-coordinate for the top of the object
		//for users browsing with Netscape
	}

	removemenu = setTimeout('clearMenu()', timeout_value);

}

function initMenu(objID,setX,setY) {

	clearMenu();
	
	if ((setX) && (setY)) {
	
		tempX = setX;
		tempY = setY;
	
	} else {
		tempX = event.x + xspacer;
		tempY = event.y + yspacer;
	}
	
	showMenu(objID)

}

// Copyright © 2001 by Apple Computer, Inc., All Rights Reserved.
//
// You may incorporate this Apple sample code into your own code
// without restriction. This Apple sample code has been provided "AS IS"
// and the responsibility for its operation is yours. You may redistribute
// this code, but you are not permitted to redistribute it as
// "Apple sample code" after having made changes.

// setStyleByClass: given an element type and a class selector,
// style property and value, apply the style.
// args:
//  t - type of tag to check for (e.g., SPAN)
//  c - class name
//  p - CSS property
//  v - value
var ie = (document.all) ? true : false;

function setStyleByClass(t,c,p,v){
	var elements;
	if(t == '*') {
		// '*' not supported by IE/Win 5.5 and below
		elements = (ie) ? document.all : document.getElementsByTagName('*');
	} else {
		elements = document.getElementsByTagName(t);
	}
	for(var i = 0; i < elements.length; i++){
		var node = elements.item(i);
		for(var j = 0; j < node.attributes.length; j++) {
			if(node.attributes.item(j).nodeName == 'class') {
				if(node.attributes.item(j).nodeValue == c) {
					eval('node.style.' + p + " = '" +v + "'");
				}
			}
		}
	}
}




//-->


