var scrWidth = screen.availWidth;
	var scrHeight = screen.availHeight;

	function setWSize(what, width, height)
	{
		if (navigator.appName == "Netscape")
		{
			what.outerWidth=width;
			what.outerHeight=height;
		}
		else
			what.resizeTo(width,height);
	}

function openLrgWindow(theURL,width,height) 
{
		var NewWnd = null;
		var output = "";
	
		img = theURL;
		sTitle = "Trailers - Manga movie";
		
		wwidth = (width+50 > scrWidth) ? scrWidth : width+50;
		wheight = (height+100 > scrHeight) ? scrHeight : height+100;
		
		if ((NewWnd == null) || NewWnd.closed)
		{
			NewWnd=window.open("","NewWnd","resizable=0,scrollbars=1,width="+wwidth+",height="+wheight);
		}
		setWSize(NewWnd,wwidth,wheight);
		NewWnd.moveTo((parent.scrWidth-wwidth)/2,(parent.scrHeight-wheight)/2);
		output = '<html><head><title>'+sTitle+'</title></head><body bgcolor="black" style="overflow: hidden;" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 text="white"><table align="center" width="100%" height="100%" cellspacing=0 cellpadding=0 border=0><tr><td><center>';
		
		output += '<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="'+width+'" HEIGHT="'+height+'" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0">';
		output += '	<PARAM NAME="controller" VALUE="TRUE">';
		output += '	<PARAM NAME="type" VALUE="video/quicktime">';
		output += '	<PARAM NAME="autoplay" VALUE="true">';
		output += '	<PARAM NAME="target" VALUE="myself">';
		output += '	<PARAM NAME="bgcolor" VALUE="black">';		
		output += '	<PARAM NAME="src" VALUE="'+img+'">';
		output += '	<PARAM NAME="pluginspage" VALUE="http://www.apple.com/quicktime/download/indext.html">';
		output += '	<EMBED WIDTH="'+width+'" HEIGHT="'+height+'" CONTROLLER="TRUE" TARGET="myself" SRC="'+img+'" type="video/quicktime" BGCOLOR="black" BORDER="0" PLUGINSPAGE="http://www.apple.com/quicktime/download/"></EMBED></OBJECT>';
		
		output += '</center></td></tr></table></body></html>';
		
		NewWnd.document.open();
		NewWnd.document.write(output);
		NewWnd.document.close();
		self.focus();
		NewWnd.focus();
	
}
