// JavaScript Document
sfHover = function() {
	var sfEls = document.getElementById("nav").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);
/*
Add-to-favorites Script
Created by David Gardner (toolmandav@geocities.com)
No warranty of any kind comes with this script!
Permission granted to Dynamic Drive (http://dynamicdrive.com) 
to post and feature this script on their DHTML archive
*/

//configure the two variables below to match yoursite's own info
var bookmarkurl="http://nzymca.com"
var bookmarktitle="YMCA Auckland New Zealand"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

function doaction(interest){	
	document.f1.interest.value=interest;
	document.f1.action="enquire.php#area";	
	document.f1.submit();		
}

function go_book(branch_id){	
	document.f1.holiday_branch_id.value=branch_id;
	document.f1.action="holidayprogramme.php";
	document.f1.submit();	
}

function open_forgot(){
	window.open('acc_forgot.php','Forgot','toolbar=NO,location=NO,directories=NO,status=NO,menubar=NO,scrollbars=YES,resizable=YES,copyhistory=NO,width=450,height=250,top=20,left=50');
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}