// JavaScript Document
//alert(navigator.appName);
var isMac = (navigator.appVersion.indexOf("Mac") != -1);

if((navigator.appName == "Microsoft Internet Explorer") &&! isMac)
{
	document.write('<link rel="stylesheet" href="./include/relative.css" type="text/css">')
}
else
{
	document.write('<link rel="stylesheet" href="./include/pixels.css" type="text/css">')
}


function openWindow(filename, sPath, iWidth, iHeight)
{
	if (filename==''){
		alert("No File")
	}
	else{
		var myWin = "" ;
		var x = screen.width ;
		var y = screen.height ;
		var width = iWidth;
		var height = iHeight;
		var top = parseInt( ( y - height ) / 2 ) ;
		var left = parseInt( ( x - width  ) / 2 ) ;
		var props = "toolbars=no,status=no,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top;
		if (sPath !='')
			filename = sPath + filename;

		var popUp = window.open(filename,"ImageWindow",props);

		popUp.focus();
	}
}