function toggleMenu(currMenu) {
	//alert ("function started");
			//if (document.all) {
				thisMenu = eval("document.all." + currMenu + ".style")
				if (thisMenu.display == "block") {
					thisMenu.display = "none"
				}
				else {
					thisMenu.display = "block"
				}
				return false;
			//}
			//else {
			//	return true;
			//}
		}
sfHover = function() {
	var sfEls = document.getElementById("mainlevel").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

$(function() {
	$("#contactMe").change(function() {
		if( $(this).is(":checked") )
			$("#contactInfo").show();
		else
			$("#contactInfo").hide();
	});
	$("#survey").submit(function() {
		// check if name and phone number are provided.
		if( $("#contactMe").is(":checked") ) {
			if( $("#name").val().length == 0 ) {
				alert("You must provide a name if you wish to be contacted");
				return false;
			} else if( $("#phone").val().length == 0 ) {
				alert("You must provide a telephone number if you wish to be contacted");
				return false;
			}
		}
	});
});