﻿function openW(url,szer,wys){
eval('window.open(url,"","width='+szer+'px,height='+wys+'px,resizable=0,scrollbars=0")') }
//-->

function openWR(url,szer,wys){
eval('window.open(url,"","width='+szer+'px,height='+wys+'px,resizable=1,scrollbars=1")') }
//-->

function creW(url,tyt,szer,wys) {
szerW = szer + 68;
wysW = wys + 68;
	newWindow = window.open("","newWindow",'width='+szerW+'px,height='+wysW+'px,resizable=0,scrollbars=0');
	newWindow.document.open();
	newWindow.document.write('<html><head><title>'+tyt+'</title></head><body background="http://www.opalgraf.com.pl/navi/Navi_15.jpg" bgcolor="#D0D0D0" leftmargin="0" topmargin="0" marginheight="32" marginwidth="32" onBlur="self.close()">'); 
	newWindow.document.write('<a href="javascript:self.close()"><img border"0" src='+url+' alt='+tyt+'></a>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function openMovie(url,tyt,szer,wys) {
szerW = szer + 68;
wysW = wys + 92;

szerM = szer;
wysM = wys + 16;
	newWindow = window.open('','newWindow','width='+szerW+'px,height='+wysW+'px,resizable=0,scrollbars=0');
	newWindow.document.open();
	newWindow.document.write('<html><head><title>'+tyt+'</title></head><body background="http://www.opalgraf.com.pl/navi/Navi_15.jpg" leftmargin="0" topmargin="0" marginheight="32" marginwidth="32">'); 
	newWindow.document.write('<div align="center">');
	newWindow.document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="'+wysM+'" width="'+szerM+'">');
	newWindow.document.write('<param name="cache" value="true">');
	newWindow.document.write('<param name="controller" value="true">');
	newWindow.document.write('<param name="autoplay" value="true">');
	newWindow.document.write('<param name="src" value="'+url+'">');
	newWindow.document.write('<embed type="video/quicktime" height="'+wysM+'" width="'+szerM+'" cache="true" controller="true" autoplay="true" src="'+url+'">');
	newWindow.document.write('</object></div>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}