
sfHover = function() {
	var sfEls = document.getElementById("navigation").getElementsByTagName("LI");
	for (var i=0; i < sfEls.length; i++) {
		sfEls[i].onmouseover = function() {
			if (window.attachEvent) { this.className+=" sfhover"; }
			showHideTags("hidden");
		}
		sfEls[i].onmouseout = function() {
			if (window.attachEvent) { this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); }
			showHideTags("visible");
		}
	}
}

/*
sfHover = function() {
	var sfEls = document.getElementById("navigation").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"), "");
		}
	}
}
*/


function showHideTags(vis) {

	var s = document.getElementsByTagName("select");
	for (var i=0; i < s.length; i++) {
		if (!window.addEventListener) {
			s[i].style.visibility = vis;
		}
	}
/*
	var o = document.getElementsByTagName("object");
	for (var i=0; i < o.length; i++) {
		o[i].style.visibility = vis;
	}
*/
}


if (window.attachEvent) { 

	//alert('window.attachEvent');
	/* IE */
	window.attachEvent("onload", sfHover);
	window.attachEvent("onmouseover", showHideTags);

} else if (window.addEventListener) {

	// alert('window.addEventListener');
	/* Mozilla */
	window.addEventListener("load", sfHover, false);
	window.addEventListener("mouseover", showHideTags, false);
}


function viewImage(imgsrc, w, h) { 

	var W = window.open('/viewimage.asp?imgsrc=' + imgsrc,'popUp','width=' + w + ',height=' + h + ',resizable,scrollbars');
//		W.moveTo((screen.width-w)/2,(screen.height-h)/2);
		W.focus();
}

function viewSWF(swfsrc, w, h) { 
	var W = window.open('/viewswf.asp?swfsrc=' + swfsrc + '&w=' + w + '&h=' + h,'popUp','width=' + w + ',height=' + h);
		W.focus();
}


function clearPostCode() {
	var F = document.forms['searchForm'];
	var E = F.elements['postcode'];
	E.value = '';
}