// tools.js

function openPrintView(url) 
{
	var win;
	var url;
	var width=700;
	var height=500;
	x=screen.width/2;
	x=x-width/2;
	y=screen.height/2;
	y=y-height/2;
	
	win = window.open(url,"Printview","width=" + width + ",height=" + height + ",left=" + x +",top="+ y +",resizable=yes,scrollbars=yes,toolbar=yes");
	if (win)
		win.focus();
}

divHover = function() 
{
	var menu = document.getElementById("subMenu");
	if(menu != null)
	{
		var sfEls = menu.getElementsByTagName("DIV");
		for (var i=0; i<sfEls.length; i++) 
		{
			sfEls[i].onmouseover=function() 
			{
				this.className+=" divhover";
			}
			sfEls[i].onmouseout=function() 
			{
				this.className=this.className.replace(new RegExp(" divhover\\b"), "");
			}
		}
	}
}

if (window.attachEvent) 
	window.attachEvent("onload", divHover);