sfHover = function() {
	var sfEls = document.getElementById("navTop").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);

function popup(url, pop_width, pop_height)
{
	var win_width = screen.width;
	var win_height = screen.height;

	var x_win_minus_pop = win_width - pop_width;
	var y_win_minus_pop = win_height - pop_height;

	var x_pos = x_win_minus_pop / 2;
	var y_pos = y_win_minus_pop / 2;

	window.open(url,null,"height=" + pop_height +",width=" + pop_width +",status=no,scrollbar=no,toolbar=no,menubar=no,location=no,left=" + x_pos + ",top=0");
}

function open_plaatje(welk_plaatje,naam_vh_plaatje,w,h)
	{
	  var winl = (screen.width - w) / 2;
	  var wint = (screen.height - h) / 2;

	  PlaatjesWin=window.open("",naam_vh_plaatje,'status=0,scrollbars=0,resizable=0, height='+h+',width='+w+',top='+wint+',left='+winl+', no-resizable');
	  PlaatjesWin.document.open();
	  PlaatjesWin.document.writeln('<html>');
	  PlaatjesWin.document.writeln('<head>');
	  PlaatjesWin.document.writeln('<title>'+naam_vh_plaatje+'</title>');
	  PlaatjesWin.document.writeln('</head>');
	  PlaatjesWin.document.writeln('<body background="'+welk_plaatje+'">');
	  PlaatjesWin.document.writeln('</body>');
	  PlaatjesWin.document.writeln('</html>');
	  PlaatjesWin.document.close();
	}

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();
		}
}

