//
// $Frontfree: projects/UGS/WebUI/scripts/sidenav.js,v 1.3 2004/06/27 14:25:15 try Exp $
//


startList = function()
{
	if (document.all&&document.getElementById)
	{
		
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI")
			{
				node.onmouseover = function()
					{
						this.className+=" over";
					}
				node.onmouseout = function()
					{
						this.className = this.className.replace(" over", "");
					}
			}
		}
	}
}

window.onload=startList;

/*the following code added 5/10/2004 by BES. This function opens large versions of thumbnails in a custom-sized window.*/
var win = null;

function newWindow(mypage, myname, w, h, scroll)
{
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height=' + h + ',width=' + w + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scroll + ',resizable';
	win = window.open(mypage,myname,settings);
}

