/*
 * Copyright : (c) 2006 Webfish IT Services
 * Website   : http://www.webfish.nl
 * Email     : info@webfish.nl
 * -------------------------------------------------------------------------
 *   $Id: menu.js 20 2007-03-20 12:40:54Z caspar $
 * -------------------------------------------------------------------------
 */

sfHover = function() {
	var sfMenu = document.getElementById("menu");
	if (sfMenu)
	{
		var sfEls = sfMenu.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 appendOnLoadAlert(str_msg)
{
	var appendOnLoadAlert_oldOnload = (window.onload) ? window.onload : function () { };
	window.onload = function () { appendOnLoadAlert_oldOnload(); alert(str_msg); }
}

function doPrint()
{
	var sUrl = window.location.href;
	sUrl = sUrl.replace(strBaseUrl +'/', strBaseUrl +'/print.php?r=');
	//var winFeatures = "width=600,height=700,left=50,top=50,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,location=no";
	var winFeatures = "width=600,height=700,left=50,top=50,menubar=yes,resizable=yes,scrollbars=yes,status=no,toolbar=yes,location=no";
	spawn = window.open(sUrl, "doPrint", winFeatures);
}