<!-- hide from legacy browsers

currentSelections = new Array();

function toggleMenu(parentMenu,childMenu)
{
	var childMenuStyle = document.getElementById(childMenu).style;
	if (childMenuStyle.display == "block")
	{
		//document.getElementById(parentMenu).className = parentStyle;
		childMenuStyle.display = "none";
	}
	else
	{
		if (currentSelections.length > 0)
		{
			currentParent = currentSelections[0];
			currentChild = currentSelections[1];
			//currentStyle = currentSelections[2];
			//document.getElementById(currentParent).className = currentStyle;
			document.getElementById(currentChild).style.display = "none";
		}
		//document.getElementById(parentMenu).className = parentStyleOn;
		childMenuStyle.display = "block";
		currentSelections.length = 0;
		currentSelections.push(parentMenu);
		currentSelections.push(childMenu);
		//currentSelections.push(parentStyle);
	}
}

function swap() {
	if (document.images){
		for (var x = 0; x < swap.arguments.length; x += 2) {
			document[swap.arguments[x]].src = eval(swap.arguments[x+1] + ".src");
		}
	}
}

function OpenNewWindow(url, width, height) {
 miwin = window.open(url,"new","alwaysRaised=1,z-lock=1,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width=" + width + ",height=" + height);
        miwin.focus();
}

function InsertFlashMovie(fMovie) {
  document.write(fMovie);
}

function ValidateCalendarInput(form) {
	var errorString = "";
	var jd1, jd2, a, y, m;
	a = Math.floor( (14 - eval(form.startmonth.value)) / 12);
	y = eval(form.startyear.value) + 4800 - a;
	m = eval(form.startmonth.value) + (12*a) - 3;
	jd1 = eval(form.startday.value) + Math.floor(((153 * m) + 2)/5) + (y * 365) + Math.floor(y/4) - Math.floor(y/100) + Math.floor(y/400) - 32045;
		  

	a = Math.floor((14 - eval(form.endmonth.value))/12);
	y = eval(form.endyear.value) + 4800 - a;
	m = eval(form.endmonth.value) + (12*a) - 3;
	jd2 = eval(form.endday.value) + Math.floor(((153 * m) + 2)/5) + (y * 365) + Math.floor(y/4) - Math.floor(y/100) + Math.floor(y/400) - 32045;

	if (jd2 < jd1) {
		errorString += "Please select a valid date!\n";
	}

	if (form.FirstName.value.length <= 0) {
		errorString += "Please enter your first name!\n";
	}

	if (form.LastName.value.length <= 0) {
		errorString += "Please enter your last name!\n";
	}

	if (form.Phone.value.length <= 0) {
		errorString += "Please enter your Phone!\n";
	}

	if (form.Email.value.length <= 0) {
		errorString += "Please enter your email address!\n";
	}

	if (errorString.length > 0) {
		alert(errorString);
		return false;
	} else {
		return true;
	}
}

function confirmDelete(reservationID) {
	var agree = confirm("Are you sure you want to delete this reservation?");
	var locale = "Event.asp?action=Delete&reservation="+reservationID;
	if (agree) {
		//alert(locale);
		window.location = locale;
	}
}

function toggleDiv(id) {
	var oDiv = document.getElementById(id);
	if (oDiv.style.display == "none") {
		oDiv.style.display = "block";
	} else {
		oDiv.style.display = "none";
	}
}

// end hide -->