var timerID = null;
var timerOn = false;
var timecount = 700;

function showDropDown(sID, bShow) {

var menuParent = document.getElementsByClassName("DownLoadBg");

	if (oMenu = document.getElementById(sID)) {
		if ((oMenu.style.display == 'none') || (oMenu.style.display == '')) {
			oMenu.style.display = 'block';
			
			//little addition so that menu closes on another click
			menuParent.onclick = function(){
				oMenu.style.display = 'none';
			}
			
		} else {
			oMenu.style.display = 'none';
		}
	}
}

function hideDropDown(sID,bShow){
	if (oMenu = document.getElementById(sID)) {
		if (oMenu.style.display == 'block') {
			oMenu.style.display = 'none';
//			oMenu.style.display = 'none';
		}
	}
}
function highlight(sID, bHighlight, colourOn, colourOut) {
	if (oMenuItem = document.getElementById(sID)) {
		oMenu.style.color = bHighlight ? colourOn : colourOut; 
	}
}
function startTime(sID) {
var donothing="";
//edit remove timing functions
/*
	if (timerOn == false) {
		var fun = "hideDropDown('"+sID+"', true)";
		timerID=setTimeout( fun , timecount);
		timerOn = true;
	}
*/
}
function stopTime() {
var donothing="";
//edit remove timing functions
/*
	if (timerOn) {
		clearTimeout(timerID);
		timerID = null;
		timerOn = false;
	}
*/
}

function openSelect( form ) { 

	var newIndex = form.RedirectURL.selectedIndex; 

	if ( newIndex == 0 ) { 

	} else { 

		url = form.RedirectURL.options[ newIndex ].value; 

		window.location.assign( url ); 

	} 

} 

function checkResv(){
	var restUID = document.getElementById("restUID");
	
	if(restUID.selectedIndex == 0){
		alert("Please select an option from the \'Make a Reservation\' drop down menu");
		return false;	
	}else{
		this.form.submit();
	}
}