/* --- Site JavaScripts --- */

function openPresentation(theURL,winName) {

var screenWidth = screen.availWidth;
var screenHeight = screen.availHeight;

if ( screenHeight <= 600 )
	{
	winHeight = screenHeight-40;
	winTop = Math.abs((screenHeight-winHeight-34)/2);
	}
else
	{
	winHeight = 600-40;
	winTop = (screenHeight-winHeight)/2;
	}

if ( screenWidth <= 800 )
	{
	winWidth = screenWidth-40;
	winLeft = Math.abs((screenHeight-winHeight-10)/2);
	}
else
	{
	winWidth = 800 - 40;
	winLeft = (screenWidth-winWidth)/2;
	}

features = "toolbar=0,location=0,directoties=0,status=0,menubar=0,scrollbars=no,resizable=yes,width="+winWidth+",height="+winHeight+",left="+winLeft+",top="+winTop;
var w=window.open(theURL,winName,features);
w.focus();
}


function OW(theURL,winName,winWidth,winHeight) {

features = "toolbar=0,location=0,directoties=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width="+(winWidth+16)+",height="+winHeight+",left="+(screen.availWidth-winWidth)/2+",top="+(screen.availHeight-winHeight)/2;
var w=window.open(theURL,winName,features);
w.focus();
}