// JavaScript Document
// Rhian Thomas - May 2008 - AIFS


// Drop Down Menu - function pullupMenu - Called from a div onMouseOut to pull a menu back up
// Requires two parameters:
// elementid - string - id of the div the function is being called from
// menuheight - int - number of pixels of the menu's div the function is being called from when closed

function pullupMenu(elementid, menuheight) {
        var elementid = elementid;
		var menuheight = menuheight;
		var menu = document.getElementById(elementid);
        menu.style.height = menuheight + "px";
}

// Drop Down Menu - function dropdownMenu - Called from a div onMouseOver to pull down a menu
// Requires two parameters:
// elementid - string - id of the div the function is being called from
// menuheight - int - number of pixels of the menu's div the function is being called from when open

function dropdownMenu(elementid, menuheight) {
        var elementid = elementid;
		var menuheight = menuheight;
		var menu = document.getElementById(elementid);
        menu.style.height = menuheight + "px";
		menu.style.zIndex = 500;
}