<!--
// Dodaje warstwę
function DodajWarstwe(WI,HE,OBRAZ,WIC,HEC,CLOSE,LINK) {
SX = screen.width;
SY = screen.height;
IX = (SX/2)-(WI/2);
IY = 80;
IXC = WI - WIC;

closehref = '<a href="javascript:;" style="width: '+WIC+'px; height: '+HEC+'px; display: block;" onclick="UsunWarstwe();"></a>';
closetresc = '<div style="position: relative; width: 100%;"><div id="close" style="position: absolute; left: '+IXC+'px; top: 0px; width: '+WIC+'px; height: '+HEC+'px; background-image:url('+CLOSE+'); background-repeat: no-repeat; background-position: 0px 0px;">'+closehref+'</div></div>';
document.write('<div id="myimage" style="border:0px solid #ffffff ;position: absolute; left: '+IX+'px; top: '+IY+'px; z-index: 99999; width: '+WI+'px; height: '+HE+'px; background-image:url('+OBRAZ+'); background-repeat: no-repeat; background-position: center bottom;">'+closetresc+'<a href="'+LINK+'" style="width: '+WI+'px; height: '+HE+'px; display:block;"></a></div>');

//PrzesunWarstwe(IX,IY);
}

// Aktualizuje pozycję warstwy, domyślnie co 500ms
function PrzesunWarstwe(IX,IY) {
	if (document.all) {
		document.all("myimage").style.left = document.body.scrollLeft+IX;
		document.all("myimage").style.top = document.body.scrollTop+IY;
		}
	else {
		document.getElementById("myimage").style.left = document.body.scrollLeft+IX; document.getElementById("myimage").style.top = document.body.scrollTop+IY;
		}
	setTimeout('PrzesunWarstwe('+IX+','+IY+')',50);
}

// Ukrywa warstwę
function UsunWarstwe() {
	if (document.all) {
		document.all("myimage").style.visibility = "hidden";
		}
	else {
		document.getElementById("myimage").style.visibility = "hidden"; 
		}
}
//-->
