<!--
function openIMGwin(imgURL,strTitle,intWidth,intHeight) {
	//get parent window X,Y:
	if (self.innerWidth) //Netscape or other
	{
		intX = self.screenX + 10;
		intY = self.screenY + 30;
		strX = "screenX";
		strY = "screenY";
	}
	else if (document.body) //IE
	{
		intX = self.screenTop + 10;
		intY = self.screenLeft + 30;
		strX = "top=";
		strY = "left=";
	}

	//ensure HEIGHT of popup will not be clipped on smaller screens:
	if ((self.screen.availHeight - intX) < intHeight)
	{
		if (self.screen.availHeight > intHeight)
		{
			strX = strX + ((self.screen.availHeight - intHeight) - 100);
			intWinHeight = intHeight;
			intScroll = 0;
			intResize = 0;
		}
		else
		{
			strX = strX + "0";
			intWinHeight = self.screen.availHeight - 100;
			intScroll = 1;
			intResize = 1;
		}
	}
	else
	{	
		strX = strX + intX;
		intWinHeight = intHeight;
		intScroll = 0;
		intResize = 0;
	}
	
	//ensure WIDTH of popup will not be clipped on smaller screens:
	if ((self.screen.availWidth - intY) < intWidth)
	{
		if (self.screen.availWidth > intWidth)
		{
			strY = strY + ((self.screen.availWidth - intWidth) - 50);
			intWinWidth = intWidth;
		}
		else
		{
			stry = strY + "0";
			intWinWidth = intWidth + 18;
		}
	}
	else
	{
		strY = strY + intY;
		intWinWidth = intWidth;
	}
	
	popup = window.open('','image','WIDTH='+(intWinWidth+20)+',HEIGHT='+(intWinHeight+48)+','+strX+','+strY+',toolbar=0,location=0,directories=0,resizable='+intResize+',status=0,menubar=0,scrollbars='+intScroll)
	popup.document.clear();
	popup.document.write('<HTML>\n<HEAD>\n<TITLE>'+strTitle+'</TITLE>\n<link rel="stylesheet" href="rupture.css" type="text/css">\n</HEAD>\n');
	popup.document.write('<BODY BGCOLOR=#000000 text="#FFFFFF">\n\n');
	popup.document.write('<IMG SRC="'+imgURL+'" WIDTH='+intWidth+' HEIGHT='+intHeight+'>\n\n');
	popup.document.write('<CENTER><A HREF="javascript:window.close()">close</A></CENTER>\n\n');
	popup.document.write('</BODY>\n</HTML>');
	popup.document.close();
	popup.window.focus();
}

function openMOVwin(movURL,strTitle,intWidth,intHeight) {
	//get parent window X,Y:
	if (self.innerWidth) //Netscape or other
	{
		intX = self.screenX + 10;
		intY = self.screenY + 30;
		strX = "screenX";
		strY = "screenY";
	}
	else if (document.body) //IE
	{
		intX = self.screenTop + 10;
		intY = self.screenLeft + 30;
		strX = "top=";
		strY = "left=";
	}

	//ensure HEIGHT of popup will not be clipped on smaller screens:
	if ((self.screen.availHeight - intX) < intHeight)
	{
		if (self.screen.availHeight > intHeight)
		{
			strX = strX + ((self.screen.availHeight - intHeight) - 100);
			intWinHeight = intHeight;
			intScroll = 0;
			intResize = 0;
		}
		else
		{
			strX = strX + "0";
			intWinHeight = self.screen.availHeight - 100;
			intScroll = 1;
			intResize = 1;
		}
	}
	else
	{	
		strX = strX + intX;
		intWinHeight = intHeight;
		intScroll = 0;
		intResize = 0;
	}
	
	//ensure WIDTH of popup will not be clipped on smaller screens:
	if ((self.screen.availWidth - intY) < intWidth)
	{
		if (self.screen.availWidth > intWidth)
		{
			strY = strY + ((self.screen.availWidth - intWidth) - 50);
			intWinWidth = intWidth;
		}
		else
		{
			stry = strY + "0";
			intWinWidth = intWidth + 18;
		}
	}
	else
	{
		strY = strY + intY;
		intWinWidth = intWidth;
	}
	
	mpopup = window.open('','movie','WIDTH='+(intWinWidth+20)+',HEIGHT='+(intWinHeight+64)+','+strX+','+strY+',toolbar=0,location=0,directories=0,resizable='+intResize+',status=0,menubar=0,scrollbars='+intScroll)
	mpopup.document.clear();
	mpopup.document.write('<HTML>\n<HEAD>\n<TITLE>'+strTitle+'</TITLE>\n<link rel="stylesheet" href="rupture.css" type="text/css">\n</HEAD>\n');
	mpopup.document.write('<BODY BGCOLOR=#000000 text="#FFFFFF">\n\n');
	mpopup.document.write('<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="'+intWidth+'" HEIGHT="'+(intHeight+16)+'" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">\n');
  	mpopup.document.write('<PARAM NAME="SRC" VALUE="'+movURL+'">\n');
  	mpopup.document.write('<PARAM NAME="AUTOPLAY" VALUE="true">\n');
  	mpopup.document.write('<PARAM NAME="CONTROLLER" VALUE="true">\n\n');
  	mpopup.document.write('<EMBED SRC="'+movURL+'" WIDTH="'+intWidth+'" HEIGHT="'+(intHeight+16)+'" AUTOPLAY="true" CONTROLLER="true" PLUGINSPAGE="http://www.apple.com/quicktime/download/"></EMBED>\n\n');
	mpopup.document.write('</OBJECT>\n');
	mpopup.document.write('<CENTER><A HREF="javascript:window.close()">close</A></CENTER>\n\n');
	mpopup.document.write('</BODY>\n</HTML>');
	mpopup.document.close();
	mpopup.window.focus();
}

//--end-->
