<!--

// OPACITY SCRIPT

if ((navigator.appName.indexOf('Microsoft')+1)) {

document.write('<style type="text/css"> .opacity1 {filter:alpha(opacity=70)} .opacity2 {filter:alpha(opacity=100)} </style>'); }

if ((navigator.appName.indexOf('Netscape')+1)) {

document.write('<style type="text/css"> .opacity1 {-moz-opacity:0.7} .opacity2 {-moz-opacity:1} </style>'); }

else {

document.write(''); }

//-->

/*
son of suckerfish menu script from:
http://www.htmldog.com/articles/suckerfish/dropdowns/
 */



 sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
			this.style.zIndex=200; //this line added to force flyout to be above relatively positioned stuff in IE
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function popUpContent(URL, name, specs){
	window.open(URL, name, specs);	
}

function setLeftNavHeight(){
	document.getElementById('contentLeft').style.height = "auto";
		if (document.getElementById){
			mainHeight = document.getElementById('contentCentre').offsetHeight;
			leftNavHeight = document.getElementById('contentLeft').offsetHeight;
			//alert("leftNavHeight");
			if (mainHeight > leftNavHeight){
				document.getElementById('contentLeft').style.height=(mainHeight + 2) + "px";
			}
		}
	
}

function showPopUp(divElement){
	for (i=0; i<divElement.childNodes.length; i++){
		 if (divElement.childNodes[i].className == "infoPopUp"){
			// alert(divElement.clientX);
			 divElement.childNodes[i].style.display = "block";
			 divElement.childNodes[i].className = divElement.childNodes[i].className + " opacity1";
		 }
	}
	
	
}

function hidePopUp(divElement){
	for (i=0; i<divElement.childNodes.length; i++){
		 if (divElement.childNodes[i].className == "infoPopUp opacity1"){
			// alert(divElement.clientX);
			divElement.childNodes[i].className="infoPopUp";
			 divElement.childNodes[i].style.display = "none";
			 
		 }
	}
}

function setTopNavigation(currentElement){
	navLinks = document.getElementById('nav').childNodes;
	for (i=0; i<navLinks.length; i++){
		if (navLinks[i].tagName == "LI"){
			navLi = navLinks[i].childNodes;
			for (j=0; j<navLi.length; j++){
				if (navLi[j].tagName == "A"){
					navHref = navLi[j].childNodes;
					for (k=0; k<navHref.length; k++){
						if (navHref[k].tagName == "IMG"){
							if (navHref[k].id == currentElement){
								navHref[k].src = navHref[k].src.replace(".jpg", "_over.jpg")
							}
						}
					}
				}
			}
		}
	}
}






