startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav2");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {this.className+=" over";	}
				node.onmouseout=function() {this.className=this.className.replace(" over", "");}
			}
		}
	}
}
reload4iemac = function () {
	var query=this.location.search.substring(1);
	if (query.length == 0){
  		window.location = window.location + '?x=reloaded';
	}
}
window.onload=startList;reload4iemac;
function selecturl(s) {
	var gourl = s.options[s.selectedIndex].value;
	if ((gourl != null) && (gourl != "")){
 	 	window.top.location.href = gourl;
	}
}

<!-- // toggle visibility
function hideform(choice){
	if (document.getElementById){
			document.getElementById( "bnb_div" ).style.display = "none";
			document.getElementById( "con_div" ).style.display = "none";
			document.getElementById( "whb_div" ).style.display = "none";
			document.getElementById( "wed_div" ).style.display = "none";
			document.getElementById( "nye_div" ).style.display = "none";
			document.getElementById( "xmas_div" ).style.display = "none";
			document.getElementById( choice ).style.display = "";
	} 
}

function checkform(){
	if (document.booking_form.booking_type.selectedIndex == 0){
		if (document.booking_form.f_date_a.value == "" ){
			alert('You must fill in the FROM... DATE');	
			return false;
		}
		if (document.booking_form.f_calcdate.value == "" ){
			alert('You must fill in the TO... DATE');	
			return false;
		}
		if (document.booking_form.guests_bnb.value =="" ){
			alert('You must fill in the NUMBER OF GUESTS');	
			return false;
		}
		if (document.booking_form.guests_bnb.value =="" ){
			alert('You must fill in the NUMBER OF ROOMS');	
			return false;
		}
		if (document.booking_form.rooms.value > 51 ){
			alert('Maximum number of rooms available is 51');	
			return false;
		}
		if (document.booking_form.guests_bnb.value > document.booking_form.rooms.value*2 ){
			alert('Number of guests cannot be more than twice the number of rooms');	
			return false;
		}
		if (document.booking_form.rooms.value*1 > document.booking_form.guests_bnb.value*1 ){
			alert('Number of rooms cannot be more than the number of guests');	
			return false;
		}
	} else if (document.booking_form.booking_type.selectedIndex == 1){
		if (document.booking_form.f_date_b.value == "" ){
			alert('You must fill in the DATE');	
			return false;
		}
		if (document.booking_form.guests_con.value == "" ){
			alert('You must fill in the (approximate) REQUIRED CAPACITY');	
			return false;
		}
	} else if (document.booking_form.booking_type.selectedIndex == 2){
		if (document.booking_form.f_date_c.value == "" ){
			alert('You must fill in the DATE');	
			return false;
		}
		if (document.booking_form.guests_whb.value == "" ){
			alert('You must fill in the NUMBER OF DINERS');	
			return false;
		}
	} else if (document.booking_form.booking_type.selectedIndex == 3){
		if (document.booking_form.f_date_d.value == "" ){
			alert('You must fill in the (approximate) DATE');	
			return false;
		}
		if (document.booking_form.guests_wed.value == "" ){
			alert('You must fill in the (approximate) NUMBER OF GUESTS');	
			return false;
		}
	} 
	if (document.booking_form.booking_name.value == ""){
		alert('You must fill in your NAME');	
		return false;
	}
	if (document.booking_form.booking_phone.value == ""){
		alert('You must fill in your TELEPHONE');	
		return false;
	}
	if (document.booking_form.booking_email.value == ""){
		alert('You must fill in your EMAIL');	
		return false;
	}
	return true;
}


function check_wedding_form(){
	if (document.wedding_fayre_form.name.value == "" ){
		alert('Please enter a name');	
		return false;
	}
	if (document.wedding_fayre_form.address.value == "" ){
		alert('Please enter an address');	
		return false;
	}
	if (document.wedding_fayre_form.postcode.value =="" ){
		alert('Please enter a postcode');	
		return false;
	}
	if (document.wedding_fayre_form.telephone.value =="" ){
		alert('Please enter a telephone number');	
		return false;
	}
	if (document.wedding_fayre_form.email_address.value =="" ){
		alert('Please enter an email address');	
		return false;
	}
	if (document.wedding_fayre_form.wedding_date.value =="" ){
		alert('Please enter an approximate wedding date');	
		return false;
	}
	if (document.wedding_fayre_form.number_of_people.value=="" ){
		alert('Please state how many people will be attending');	
		return false;
	}
	if (document.wedding_fayre_form.marketing_source.selectedIndex == 0){
		alert('Please select: How did you hear about the event?');
		return false;
	}
	if (document.wedding_fayre_form.marketing_source.selectedIndex == 8 && document.wedding_fayre_form.marketing_source_other.value==""){
		alert('Please state: If Other - How did you hear about the event?');	
		return false;
	}
	return true;
}






function changeImg(imgSrc)
{
	var mainImg = document.getElementById('mainImg');
	mainImg.setAttribute('src', imgSrc.replace(/_thumb/, ""));
	return false;
}
