// JavaScript Document

function onoff(elem, state){
	if(state){
		elem.style.visibility='visible';
		on=1;
	} else {
		on=0;
		elem.style.visibility='hidden';
	}

}

function positionSubmenus(){
	if (self.innerWidth)
	{
		frameWidth = self.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		frameWidth = document.documentElement.clientWidth;
	}
	else if (document.body)
	{
		frameWidth = document.body.clientWidth;
	}
if(frameWidth>775) leftCol=frameWidth-775; else leftCol=0;
var l = 200+(leftCol/2);
submenu1.style.left=submenu2.style.left=submenu3.style.left=submenu4.style.left=l + 'px';
}

function popImage(imageName, imageW, imageH)
{
	eval("newIm=window.open('','a','width="+imageW+",height="+imageH+"');");
	newIm.document.write('<body topmargin="0" leftmargin="0" bgcolor=#ffffff>');
	newIm.document.write('<img src="'+imageName+'"');
	newIm.document.write(' style="cursor:crosshair" title="Click to close" onClick="self.close()"></body>');
	newIm.document.write('<script language="JavaScript">');
	newIm.document.write('window.moveTo((screen.width-'+imageW+')/2,(screen.height-'+imageH+')/2);</script>');
}

function popFlash(flashW, flashH, flashPath){
	eval("newFl=window.open('','a','width="+flashW+",height="+flashH+"');");

	newFl.document.write('<body style="margin:0; padding:0; background:#000"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + flashW + '" height="' + flashH + '"><param name="movie" value="' + flashPath + '" /><param name="quality" value="high" /><embed src="' + flashPath + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + flashW + '" height="' + flashH + '"></embed></object></body>');
	newFl.document.write('<script language="JavaScript">');
	newFl.document.write('window.moveTo((screen.width-'+flashW+')/2,(screen.height-'+flashH+')/2);</script>');

}