// JavaScript Document

function tgl( targetId )
{
  if (document.getElementById)
  {
  		target = document.getElementById( targetId );
  		if (target.style.display == "none")
  		{
  			target.style.display = "";
  		}
  		else
  		{
  			target.style.display = "none";
  		}
  	}
}


function NewWindow(mypage, myname, w, h) { 
	var winl = (screen.width - w) / 2; 
	var wint = (screen.height - h) / 2 - 20; 
	winprops = 'height=' + h + ',width=' + w + ',top=' + wint + ',left=' + winl + ',screenX=' + wint + ',screenY=' + winl + ',toolbar=no,status=no,scrollbars=yes,resizable=no' 
	win = window.open(mypage, myname, winprops) 
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } 
} 


sfHover = function() {
	var sfEls = document.getElementById("menu_topmain").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"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
	


