var aktualizacja = "7 października 2006";
var aktualizacja_en = "2001-04-20";

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function init(a) {
//	if (a == "index") {
		MM_preloadImages('gfx/px_cnieb.gif');
//	} else {
//	}
}

function showPic(id, w, h, podpis, alt) {
	okno = "okno" + Math.round(Math.random()*1000);
	trescOkna = "<html>\n<head>\n<title>BRZOZOWSKI Entertainment - - - - -</title>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-2\">\n<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n</head>\n<body topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0 marginheight=0 marginwidth=0>\n<img src=\"" + id + "\" width=\"" + w + "\" height=\"" + h + "\" alt=\"" + alt + "\" border=\"0\">\n<div class=\"podpis\">" + podpis + "</div>\n</body>\n</html>";
	eval(okno + "=window.open('about:blank', okno, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,fullscreen=no,channelmode=no,width=' + w + ',height=' + (h + 30) + ',top=0,left=0')");
	eval(okno + ".document.write(trescOkna)");
}

function showHtml(id, w, h) {
	okno = "okno" + Math.round(Math.random()*1000);
	eval(okno + "=window.open(id, okno, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,fullscreen=no,channelmode=no,width=' + w + ',height=' + (h + 15) + ',top=0,left=0')");
}

var is = new BrowserCheck();

function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.v = parseInt(navigator.appVersion)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	if (this.ie5) this.v = 5
	this.min = (this.ns||this.ie)
}

function show(id) {
	if (is.ns) document.layers[id].visibility = "show";
	else if (is.ie) document.all[id].style.visibility = "visible";
}

function hide(id) {
	if (is.ns) document.layers[id].visibility = "hide";
	else if (is.ie) document.all[id].style.visibility = "hidden";
}

function findWH() {
	winFW = (!is.ie) ? window.Width : document.body.width;
	winFH = (!is.ie) ? window.Height : document.body.height;
	winW = (!is.ie) ? window.innerWidth : document.body.offsetWidth-20;
	winH = (!is.ie) ? window.innerHeight : document.body.offsetHeight-4;
	x_niebawem = (!is.ie) ? Math.round((winW - 780) / 2 - 8) : Math.round((winW - 780) / 2);
	y_niebawem = (!is.ie) ? Math.round((winH -430) / 2 - 9) : Math.round((winH - 430) / 2);
	x_niebawem = (x_niebawem < 0) ? 0 : x_niebawem;
	y_niebawem = (y_niebawem < 0) ? 0 : y_niebawem;
}

function makeLiquid() {
	if ((is.ns && (winW!=window.innerWidth || winH!=window.innerHeight)) || is.ie)
	history.go(0)
}

function css(id,left,top,width,height,color,vis,z,other) {
	if (id=="START") return '<STYLE TYPE="text/css">\n'
	else if (id=="END") return '</STYLE>'
	var str = (left!=null && top!=null)? '#'+id+' {position:absolute; left:'+left+'px; top:'+top+'px;' : '#'+id+' {position:relative;'
	if (arguments.length>=4 && width!=null) str += ' width:'+width+'px;'
	if (arguments.length>=5 && height!=null) {
		str += ' height:'+height+'px;'
		if (arguments.length<9 || other.indexOf('clip')==-1) str += ' clip:rect(0px '+width+'px '+height+'px 0px);'
	}
	if (arguments.length>=6 && color!=null) str += (document.layers)? ' layer-background-color:'+color+';' : ' background-color:'+color+';'
	if (arguments.length>=7 && vis!=null) str += ' visibility:'+vis+';'
	if (arguments.length>=8 && z!=null) str += ' z-index:'+z+';'
	if (arguments.length==9 && other!=null) str += ' '+other
	str += '}\n'
	return str
}

function writeCSS(str,showAlert) {
	str = css('START')+str+css('END')
	document.write(str)
	if (showAlert) alert(str)
}

function haj() {
	if((navigator.userAgent.indexOf('AVSearch') == -1) ||
		(navigator.userAgent.indexOf('Infoseek') == -1) ||
		(navigator.userAgent.indexOf('Scooter') == -1) ||
		(navigator.userAgent.indexOf('Yandex') == -1) ||
		(navigator.userAgent.indexOf('search') == -1) ||
		(navigator.userAgent.indexOf('Googlebot') == -1) ||
		(navigator.userAgent.indexOf('ZyBorg') == -1) ||
		(navigator.userAgent.indexOf('szukaj') == -1) ||
		(navigator.userAgent.indexOf('archiver') == -1) ||
		(navigator.userAgent.indexOf('FAST') == -1) ||
		(navigator.userAgent.indexOf('WebCrawler') == -1) ||
		(navigator.userAgent.indexOf('SpiderWP') == -1)) {
			 writeCSS(css('haj', 0, 0, 0, 0, null, 'hidden'));
	}
}
function naglowek() {
	findWH();
	naglowek = "<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"780\" height=\""+winH+"\">" +
	"<tr><td class=\"glowneTlo\" valign=\"top\">";
	document.write(naglowek);
}

function stopka() {
	if (is.ns) {
		stopka = "</td></tr><tr><td class=\"glowneTlo\" valign=\"bottom\">" +
		"<table width=\"545\" border=\"0\" cellpadding=\"6\" cellspacing=\"0\"> "+
		"<tr><td class=\"stopka\" align=\"center\"><img src=\"gfx/px_bialy.gif\" width=\"533\" height=\"1\" alt=\"\" border=\"0\"><br>" +
		"<img src=\"gfx/spacer.gif\" width=\"533\" height=\"6\" alt=\"\" border=\"0\"><br>" + 
		"Wszelkie prawa zastrzeżone. Rozpowszechnianie fotografii wyłącznie za zgodą brzozowski entertainment<br>" +
		"aktualizacja: " + aktualizacja +
		"&nbsp;&nbsp;&nbsp;&#149;&nbsp;&nbsp;&nbsp;spreparował: <a href=\"mailto:smar@mamy.to\">mp</a>" +
		"</td></tr></table></td>" +
		"</tr></table>"
	} else {
		stopka = "</td></tr><tr><td class=\"glowneTlo\" valign=\"bottom\">" +
		"<table width=\"545\" border=\"0\" cellpadding=\"6\" cellspacing=\"0\"> "+
		"<tr><td class=\"stopka\" align=\"center\"><img src=\"gfx/px_bialy.gif\" width=\"533\" height=\"1\" alt=\"\" border=\"0\"><br>" +
		"<img src=\"gfx/spacer.gif\" width=\"533\" height=\"6\" alt=\"\" border=\"0\"><br>" + 
		"Wszelkie prawa zastrzeżone. Rozpowszechnianie fotografii wyłącznie za zgodą brzozowski entertainment<br>" +
		"aktualizacja: " + aktualizacja +
		"&nbsp;&nbsp;&nbsp;&#149;&nbsp;&nbsp;&nbsp;spreparował: <a href=\"mailto:smar@mamy.to\">mp</a>" +
		"</td></tr></table></td>" +
		"</tr></table>"
	}
	document.write(stopka);
}

function stopka_en() {
	stopka = "</td></tr><tr><td class=\"glowneTlo\" valign=\"bottom\">" +
	"<table width=\"545\" border=\"0\" cellpadding=\"6\" cellspacing=\"0\"> "+
	"<tr><td class=\"stopka\" align=\"center\"><img src=\"gfx/px_bialy.gif\" width=\"533\" height=\"1\" alt=\"\" border=\"0\"><br>" +
	"<img src=\"gfx/spacer.gif\" width=\"533\" height=\"6\" alt=\"\" border=\"0\"><br>" + 
	"All rights reserved&nbsp;&nbsp;&#149;&nbsp;&nbsp;" +
	"last update: " + aktualizacja_en +
	"&nbsp;&nbsp;&nbsp;&#149;&nbsp;&nbsp;&nbsp;prepared by: <a href=\"mailto:smar@mamy.to\">mp</a>" +
	"</td></tr></table></td>" +
	"</tr></table>";
	document.write(stopka);
}

