function mouseoverhndl( itemname ) {
	document.getElementById( itemname ).src="images/" + itemname + "_active.jpg";
	if( itemname == "gallery" ) {
		// do dropdown
	}
}

function mouseouthndl( itemname ) {
	if( itemname != currPage ) {
		document.getElementById( itemname ).src="images/" + itemname + "_inactive.jpg";
	}
}

function mouseclickhndl( itemname ) {
	var ele = document.getElementById( itemname + "Submenu" );
	
	// Base xpos on left hand side of table
	var xpos = document.getElementById( itemname ).style.left;
	
	// Should first cancel the other submenu, just to be on the safe side
	if( itemname == "gallery" ) {
		document.getElementById( "cabaretSubmenu" ).style.visibility = "hidden";
	} else if( itemname == "cabaret" ) {
		document.getElementById( "gallerySubmenu" ).style.visibility = "hidden";
	}
	
	// Get ypos
	var ypos = document.getElementById( itemname ).style.bottom;
	
	// If it's already visible, hide the submenu, otherwise show it
	if( ele.style.visibility == "visible" ) {
		ele.style.visibility = "hidden";
	} else {
		ele.style.top = ypos;
		ele.style.left = xpos;
		ele.style.visibility = "visible";
	}
	// There is no need to do anything about the navigation, because the button images themselves are links.
}