
/* ______________________________________________________________*/
/* funkcja otwiera obrazek w nowym oknie o określonych wymiarach */
/*																 */
/* ______________________________________________________________*/
function image_open_new_window(img, alt, width, height)
{
	newWindow = open("", "", "width="+width+", height="+height);
	newWindow.document.write("<title>"+alt+"</title>");
	newWindow.document.write("<body bgcolor=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>");
	newWindow.document.write("<table width=100% border=0 cellspacing=0 cellpadding=0 height=100%><tr><td align=center valign=middle><a href=\"javascript:window.close();\"><img src="+img+" alt="+alt+" border=0></a></td></tr></table>");
	newWindow.document.write("</body>");
	newWindow.document.close();
}

function update_img(block, file )
{
	$( block ).src = file ;
}

function menu_list() {
	sfHover = function() {
		var sfEls = document.getElementById("menu").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
	if (window.attachEvent) window.attachEvent("onload", sfHover);
}

/*
	cofa użytkownika o jedno kliknięcie
*/
function goback() {
    history.go(-1);
}
