sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
			hideSelects();
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
			showSelects();
		}
	}
}

if (window.attachEvent) window.attachEvent('onload', sfHover);

function getsite()
{
var OutLink = "";
for(i=0; i<document.forms.sites_select.country.length; i++) 
	{
	if (document.forms.sites_select.country[i].selected)
		{
		OutLink = document.forms.sites_select.country[i].value;
		}
	}
if (OutLink  != '')
	{
	window.open(OutLink, "Optrex")
	}
}

function hideSelects(){
	var oSelects=document.getElementById("hm_layout").getElementsByTagName("select");
	for(var i=0;i<oSelects.length;i++)
		oSelects[i].className+=" invisible";
}
function showSelects(){
	var oSelects=document.getElementById("hm_layout").getElementsByTagName("select");
	for(var i=0;i<oSelects.length;i++)
		oSelects[i].className=oSelects[i].className.replace(" invisible","");
}

function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


/* Fix IE6/7 ActiveX activation */
function ieFlash(path, fwidth, fheight, nojs) {
	document.write('<object type="application/x-shockwave-flash" data="'+ path +'" width="' + fwidth +'" height="' + fheight +'">');
	document.write('<param name="movie" value="'+ path +'" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write(nojs);
	document.write('</object>');
}
