sfHover = function() {
	var nav=document.getElementById("nav");
	var sfEls = nav.getElementsByTagName("LI");
	selEls = document.getElementsByTagName("SELECT");
	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"), "");
		}
	}
	nav.onmouseover=function() {
		if(selEls.length!=0){
			for (j in selEls){
				try {
					if(selEls[j].id!='locator_region_id'){
						selEls[j].style.visibility='hidden';
					}
				} 
				catch(e) {}
			}
		}
	}
	nav.onmouseout=function() {
		if(selEls.length!=0){
			for (j in selEls){
				try {
					selEls[j].style.visibility='visible';
				} 
				catch(e) {}
			}
		}
	}
}

function popup(html_file,x,y,windowname) {
	option_params = 'width='+x+',height='+y+',menubar=no,toolbar=no,status=yes,resizable=yes,personalbar=no,location=no,directories=no,scrollbars=yes';
	pop=window.open(html_file,windowname,option_params);
}

if (window.attachEvent) window.attachEvent("onload", sfHover);
