ns4=(document.layers) ? true : false;
ie4=(document.all) ? true : false;
ns6=(document.getElementById && !document.all) ? true : false;

el_left = 0;
el_top = 0;
el_left_start = el_top_start = 0;
	
function el_move(){
	if(ie4){
		ydiff = el_top_start - document.documentElement.scrollTop;
	}
	else{
		ydiff = el_top_start - pageYOffset;
	}
	
	if(ydiff!=0){
		movey = Math.round(ydiff/10);
		el_top_start -= movey;
	}
	if(ns4) document.layers.bookmarks_div.top = el_top_start+el_top+50+"px";
	if(ie4) document.all.bookmarks_div.style.top = el_top_start+el_top+50+"px";
	if(ns6) document.getElementById("bookmarks_div").style.top=el_top_start+el_top+50+"px";
}


function show_div(){
	if(ns4) document.layers.bookmarks_div.display = "block";
	if(ie4) document.all.bookmarks_div.style.display = "block";
	if(ns6) document.getElementById("bookmarks_div").style.display = "block";
	elmove = setInterval("el_move()", 10);
}

function close_div(){
	if(ns4) document.layers.bookmarks_div.display = "none";
	if(ie4) document.all.bookmarks_div.style.display = "none";
	if(ns6) document.getElementById("bookmarks_div").style.display = "none";
}


nn4=(document.layers) ? true : false;
ie4=(document.all) ? true : false;

Nowe=null;
function enlarge(s,w,src,tytul) {
if (Nowe) {
	if (ie4) Nowe.close();
	else if (nn4) Nowe.closed;
	Nowe=null};
Nowe=window.open("", "","toolbar=no,menubar=no,location=yes,personalbar=no,scrollbars=no,status=no,directories=no,resizable=no,left=3,top=5,height="+w+",width="+s);
Nowe.document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><HTML xmlns=\"http://www.w3.org/1999/xhtml\"><HEAD><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" /><title>"+tytul+"</title><STYLE>BODY{BACKGROUND-REPEAT:no-repeat;}</STYLE></HEAD><BODY leftmargin=\"9\" topmargin=\"9\"><img border=0 src='"+src+"' usemap=\"#Map\"><map name=\"Map\"><area shape=\"rect\" coords=\"0,0,2800,2800\" href=\"javascript:window.close();\"></map></BODY></HTML>")
Nowe.focus();
}