// script used to show and hide menus and stretch menus vertically

function showOptions(what, menuitem) {
	var myHeight = 0;
	  if( typeof( window.innerHeight ) == 'number' ) {
		//Non-IE
		myHeight = window.innerHeight;
	  } else if( document.documentElement && document.documentElement.clientHeight ) {
		//IE 6+ in 'standards compliant mode'
		myHeight = document.documentElement.clientHeight;
	  } else if( document.body && document.body.clientHeight ) {
		//IE 4 compatible
		myHeight = document.body.clientHeight;
	  }
	document.getElementById(what).style.display = 'block';
	document.getElementById(what).style.visibility = 'visible';	
	document.getElementById(menuitem).style.background = 'url(images/bg_highlight.png)';
	document.getElementById(menuitem).style.color = '#fff';
	document.getElementById(what).style.height = (myHeight - 96) + 'px';
}

function hideOptions(what, menuitem) {
	document.getElementById(what).style.visibility = 'hidden';
	document.getElementById(menuitem).style.background = 'none';
	document.getElementById(menuitem).style.color = '#999999';
}

function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=980,height=700');");
}
