function pophide() {
	popsubscribe.style.visibility='hidden';
	return false;
};

function popflash() {
	var x = 480;
	var y = 255;
	var swfurl = 'http://www.jdkulej.pl/promocje/207speed.swf';

	code = '<table border=0 bgcolor=#000066 cellspacing=0 cellpadding=2><tr><td align=right><a href="" onClick="poprekl.style.visibility=\'hidden\'; return false;"><font color=white>zamknij</font></a>&nbsp;</td></tr>';
	code += '<tr><td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" id="reklama" width="'+x+'" height="'+y+'"><param name="movie" value="'+swfurl+'"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF"><embed name="conceptcars" src="'+swfurl+'" quality="high" bgcolor="#FFFFFF" width="'+x+'" height="'+y+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>';
	code += '</td></tr></table>';

	poprekl.innerHTML = code;
	poprekl.style.left = parseInt((screen.width-x-8)/2);
	poprekl.style.top = 60;
	poprekl.style.visibility = 'visible';
	return false;
};

function go(x) {
	var j=x.options[x.selectedIndex].value;	
	if(j != "") parent.location = j;
};

function Open(url) {
	open(url,"rezerwacja", "toolbar=0,location=0,directories=0,menubar=0,status=0,resizable=0,top=10,left=10,scrollbars=0,width=430,height=500");
};

function popimg(addrurl, title, x, y) {
	var wnd = window.open('', '','toolbar=0, scrollbars=0, resizable=0, status=0, width='+x+', height='+y+', left='+parseInt((screen.width-x-8)/2)+', top='+parseInt((screen.height-y-60)/2) );
	wnd.document.writeln('<html><head><title>'+title+'</title></head>');
	wnd.document.writeln('<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0><div align=center><img src="'+addrurl+'" width='+x+' height='+y+' border=0 alt="Zamknij okno" onClick="window.close()"></body></html>');
	return false;
};

var nexturl = null;
function popnavimg(addrurl, title, url, x, y) {
	var wnd = window.open('', '','toolbar=0, scrollbars=0, resizable=0, status=0, width='+x+', height='+y+', left='+parseInt((screen.width-x-8)/2)+', top='+parseInt((screen.height-y-60)/2) );
	wnd.opener = this;
	nexturl = url;
	wnd.document.writeln('<html><head><title>'+title+'</title></head>');
	wnd.document.writeln('<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0><div align=center><img src="'+addrurl+'" width='+x+' height='+y+' border=0 alt="Zamknij okno" onClick="opener.location=opener.nexturl; window.close()" style="cursor:hand"></body></html>');
	return false;
};

function popswf(title, url, x, y) {
	var wnd = window.open('', '','toolbar=0, scrollbars=0, resizable=0, status=0, width='+x+', height='+y+', left='+parseInt((screen.width-x-8)/2)+', top='+parseInt((screen.height-y-60)/2) );
	wnd.document.writeln('<html><head><title>'+title+'</title></head>');
	wnd.document.writeln('<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0><div align=center><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" id="promocja" width="'+x+'" height="'+y+'"><param name="movie" value="'+url+'"><param name="quality" value="high"><param name="bgcolor" value="#8FC6F0"><embed name="promocja" src="'+url+'" quality="high" bgcolor="#8FC6F0" width="'+x+'" height="'+y+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></body></html>');
	wnd.opener = parent;
	return false;
};

function popwnd(addrurl, x, y) {
	window.open(addrurl, '', 'toolbar=0, scrollbars=0, resizable=0, status=0, width='+x+', height='+y+', left='+parseInt((screen.width-x-8)/2)+', top='+parseInt((screen.height-y-60)/2) );
	return false;
};

function rezerwacja() {
	x = 430; y = 500;
	window.open('rezerwacja.php', '_blank', 'toolbar=0, scrollbars=0, resizable=0, status=0, width='+x+', height='+y+', left='+parseInt((screen.width-x-8)/2)+', top='+parseInt((screen.height-y-60)/2) );
	return false;
};
