sfHover = function() 
{	
	var sfEls = document.getElementById("menu").getElementsByTagName("LI");
	var sfE2s = document.getElementById("zooguide").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"), "");
		}
	}
	
	for (var i=0; i<sfE2s.length; i++) {
		sfE2s[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfE2s[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


function pop_photo(file, desc, w, h)
{
	window.open('pop_photo.php?file='+file+'&desc='+desc,'pdza_pop','width='+w+',height='+h+',scrollbars=yes,resizable=yes');	
}

function popUp(URL, width, height) 
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + width + ",height=" + height + "');");
}

/**** JAVASCRIPT TO DISABLE ABLE AFTER IT HAS BEEN PRESSED ONCE, ******/
/* Need form name and button to be called btnPay */
/* pay button html <input type="button" name="btnPay" value="Make Payment" onclick="doValidate(document.[name of form]);"> */

function Localize(pStr){return pStr;}

var ProcessingText = Localize("Processing...");

var cnt=0;

function doValidate(form)
{
	form.btnPay.value=ProcessingText;
	form.btnPay.disabled=true;
	if (cnt==0)form.submit();
	cnt++;
}