function openPictureWindow_Fever(imageType,imageName,imageWidth,imageHeight,alt) 
{  // v4.01
	newWindow = window.open("","newWindow","width=" +(imageWidth+35)+ ",height=" +(imageHeight+40)+ ",scrollbars=no,left="+((screen.availWidth/2)-(imageWidth/2))+",top="+((screen.availHeight/2)-(imageHeight/2)));
	newWindow.document.open();
	newWindow.document.write('<html><meta http-equiv="imagetoolbar" content="no"><link rel="stylesheet" type="text/css" href="style.css"><title>'+alt+'</title><body  leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()" STYLE="background: url(../img/tlo-multi.gif)"><table border=0 width=100% height=100%><tr><td align=center valign=middle>'); 
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}
	else{
	newWindow.document.write('<a href=javascript:close();><img border=0 height="'+imageHeight+'" width="'+imageWidth+'" src=\"'+imageName+'\"></a>'); 	}
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
}

noweOkienko = null;
function galeria(src, w, h){
if(window.screen){
 aw=screen.availWidth;
 ah=screen.availHeight;
}
else{
 aw=640;
 ah=450;
}

if (noweOkienko==null || noweOkienko.closed){
 ustawienia=
 "left=" + (aw-w)/2 + ","
 +"top=" + (ah-h)/2 + ","
 +"screenX=" + (aw-w)/2 + ","
 +"screenY=" + (ah-h)/2 + ","
 +"width=" + w + ","
 +"height=" + h + ","
 +"innerWidth=" + w + ","
 +"innerHeight=" + h + ","
 +"toolbar=no,"
 +"location=no,"
 +"directories=no,"
 +"status=no,"
 +"menubar=no,"
 +"scrollbars=no,"
 +"resizable=no"
 noweOkienko = window.open('',
 'obrazek',ustawienia);
}
noweOkienko.document.open();
noweOkienko.document.clear();
noweOkienko.document.write(
"<html><head>\n"
+"</head>\n"
+"<body leftmargin=0 topmargin=0 onBlur=self.close()>\n" 
+"<TABLE width=100% height=100% border=0><TR align=center><TD valign=middle><a href=javascript:close();><IMG SRC=" + src +" border=0></a></TD></TR></TABLE>"
+"</body>\n"
+"</html>"
);
noweOkienko.document.close();
noweOkienko.focus();
}



function otworzOknoScrolling (url, width, height) {
        var Okno = window.open(url,"Okno",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no,left='+((screen.availWidth/2)-(width/2))+',top='+((screen.availHeight/2)-(height/2)));
		}

function otworzOknoMuzyczne (url) {
        var Okno = window.open(url,"Muzyka",'width=10,height=10,resizable=0,scrollbars=no,menubar=no,left=10,top=10');
		Okno.blur();
		}
		
// obsadzanie flasha
function obsadzFlasha(nazwa_pliku, szer, wys, kolor) {
	if (kolor == '') kolor = '#ffffff';
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id="flash" width="'+szer+'" height="'+wys+'">');
  	document.write('<param name="movie" value="'+nazwa_pliku+'">');
	document.write('<param name="bgcolor" value="' + kolor + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="allowscriptaccess" value="samedomain">');
  	document.write('<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="'+szer+'" height="'+wys+'" name="flash" src="'+nazwa_pliku+'" bgcolor="' + kolor + '" quality="high" swLiveConnect="true" allowScriptAccess="samedomain"></embed>');
	document.write('</object>');
}

// ukrywanie warstw
function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function ukryjWarstwe(nazwa) {
	var x = new getObj(nazwa);
	x.style.display = 'none';
}

function ukryjWszystkieWarstwy() {
	ile_warstw = tablica_warstw.length;
	for (i=0; i<ile_warstw; i++) {
		var x = new getObj(tablica_warstw[i]);
		x.style.display = 'none';
	}
}

function pokazWarstwe(nazwa) {
	var x = new getObj(nazwa);
	x.style.display = 'block';
}

function pokaz1Warstwe(nazwa) {
	ukryjWszystkieWarstwy();
	pokazWarstwe(nazwa);
}
// -->