<!--

website = "movie_name";

net = (document.layers && true);

widgetBuf = (net) ? 0:50

function popWin(url, name, width, height, scroll, resizable) {
	bWidth = (net) ? top.innerWidth:parseInt(top.document.body.clientWidth);
	bHeight = (net) ? top.innerHeight:parseInt(top.document.body.clientHeight);
	bLeft = (net) ? top.screenX:parseInt(top.screenLeft);
	bTop = (net) ? top.screenY:parseInt(top.screenTop);
	scroll = (scroll) ? scroll:"auto"
	resizable = (resizable) ? resizable:"yes"
	if (!bLeft) {
		bLeft = 0;
		bWidth = screen.width;
	}
	if (!bTop) {
		bTop = 0;
		bHeight = screen.height;
	}
	xer = bLeft + ((bWidth/2) - width/2);
	yer = (bTop - widgetBuf) + ((bHeight/2) - height/2);
	if (xer < 2) {
		xer = 2;
	}
	if (xer < 2) {
		xer = 2;
	}
	
	paramStr = "width=" + width + ",height=" + height + ",screenX=" + xer + ",screenY=" + yer + ",left=" + xer + ",top=" + yer + ",dependent=1,directories=0,location=0,menubar=0,resizable="+resizable+",scrollbars="+scroll+",toolbar=0";
	top[name] = window.open(url, name, paramStr);
	top[name].focus();
}

popups = new Object();

function launchPopUp(name) {
	tP = popups[name];
	popWin(tP.url, website+tP.name, tP.width, tP.height, tP.scroll, tP.resizable);
}

function newPopUp(argObj) {
	popups[argObj.name] = new Object();
	tP = popups[argObj.name];
	tP.name = argObj.name;
	tP.url = argObj.url;
	tP.width = argObj.width;
	tP.height = argObj.height;
	tP.scroll = argObj.scroll;
	tP.resizable = argObj.resizable;
}


function bigPhoto(file, indx, wdth, hght) {

	newWindow=window.open('','image' + indx,'width=' + wdth + ', height=' + hght);
	newWindow.document.writeln('<html><head>');
	newWindow.document.writeln('<title>Tерминатор 3: Восстание машин</title>');
	newWindow.document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">');
	newWindow.document.writeln('</head>');
	newWindow.document.writeln('<body bgcolor=' +window.document.bgColor+ ' leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>');
	newWindow.document.writeln('<IMG src="' + file + '" width='+wdth+' height='+hght+' border=0>');
	newWindow.document.writeln('</body></html>');
} 


function launchDesktopWin(file, indx) {

	newWindow=window.open('','desktop' + indx,'scrollbars=yes,resizable=yes,width=450,height=450');
	newWindow.document.writeln('<html><head>');
	newWindow.document.writeln('<title>Tерминатор 3: Восстание машин</title>');
	newWindow.document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">');
	newWindow.document.writeln('<link href="includes/style.css" rel="stylesheet" type="text/css">');
	newWindow.document.writeln('</head>');
	newWindow.document.writeln('<body bgcolor=' +window.document.bgColor+ ' leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>');
	newWindow.document.writeln('<div class="instructions">');
	newWindow.document.writeln('<b>ЧТОБЫ УСТАНОВИТЬ ОБОИ НА РАБОЧИЙ СТОЛ:</b><br>');
	newWindow.document.writeln('<b>для IBM PC:</b> нажмите правой кнопкой на изображении и выберите в контекстном меню пункт "Сделать рисунком рабочего стола";<br>');
	newWindow.document.writeln('<b>для MAC:</b> переместите изображение на рабочий стол.<br><br>');
	newWindow.document.writeln('</div>');
	newWindow.document.writeln('<IMG src="' + file + '" border=0>');
	newWindow.document.writeln('</body></html>');
}

//-->