
function initDynamicMenu(menuname) {
	var tpl = "var sfHover_" + menuname + " = function() { ";
	tpl += "var el = document.getElementById('" + menuname + "_menu');";
	tpl += "if (el) {";
	tpl += "var sfEls = el.getElementsByTagName('LI'); ";
	tpl += "for (var i=0; i<sfEls.length; i++) { ";
	tpl += "sfEls[i].onmouseover=function() { ";
	tpl += "this.className+=' sfhover'; ";
	tpl += "};";
	tpl += "sfEls[i].onmouseout=function() { ";
	tpl += "this.className=this.className.replace(new RegExp(' sfhover'), ''); ";
	tpl += "};";
	tpl += "} ";
	tpl += "}; ";
	tpl += "}; ";
	tpl += "if (window.attachEvent) window.attachEvent('onload', sfHover_" + menuname + ");";
	eval(tpl);
}

function NewWindow(mypage, myname, w, h, top, left, scroll, resize, status, menubar, toolbar, resizable, address) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winops = 'height='+h+',width='+w+',top='+top+',left='+left+',scrollbars='+scroll+',resize='+resize+',status='+status+',toolbar='+toolbar+',resizable='+resizable+',location='+address+''
win = window.open(mypage, myname, winops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
