var imBrw_op=window.opera; var imBrw_ie=document.all && !imBrw_op; var imBrw_ns=document.getElementById && !imBrw_ie; var imEffectEnabled = /MSIE [678]/.test(navigator.userAgent) && navigator.platform == "Win32"; var imLoadList = ""; var imPopupEffect = true; function imGetLayer(sName) {return document.all?document.all[sName]:document.getElementById?document.getElementById(sName) : "";}


function imMenuMainHover() {
if (document.getElementById("imMnMn") != null) {
if (document.getElementsByTagName) {
var oList = document.getElementById("imMnMn").getElementsByTagName("LI"); for (var i=0; i<oList.length; i++) {
      oList[i].onmouseover=function() {this.className+=" iehover";}
    oList[i].onmouseout=function() {this.className=this.className.replace(new RegExp(" iehover\\b"), "");}}
}}
}
if (navigator.userAgent.indexOf('MSIE 5.5') != -1 || navigator.userAgent.indexOf('MSIE 6') != -1) imLoadList += "imMenuMainHover();"; function imPreloadImages(sImgNames) {
var sNames = new Array (); sNames = sImgNames.split(","); for(iList = 0 ; iList < sNames.length ; iList++) {
var oImg = new Image(); oImg.src = sNames[iList]; }}
var imOpenedSM = null; var imOpenedSMOld = null; var imOpenedSMOldHeight; var imSMCloseTimer = null; var imSMOpenTimer = null; function imSMSlide(start,stop) {
var sm; var smp; if(start < stop)
sm = imOpenedSM; else
sm = imOpenedSMOld; smp = sm.parentNode || sm.parent; var diff = (stop-start)/10; if((diff < stop-smp.clientHeight && start < stop) || (diff > stop-smp.clientHeight && start > stop))
smp.style.height = (smp.clientHeight+diff) + 'px'; else {
smp.style.height = stop + 'px'; if(start < stop) {
clearInterval(imSMOpenTimer); imSMOpenTimer = null; }
else {
clearInterval(imSMCloseTimer); imSMCloseTimer = null; }}
}


function imSwapImg(oDiv, sImgName) {
if (sImgName != "")
oDiv.style.backgroundImage = "url(" + sImgName + ")"; else
oDiv.style.backgroundImage = ""; }
window.onload = function() {
eval(imLoadList); }

/*	**************************************************************************************************** */


function Obrazki(nazwa)
{
	oknoObrazki=window.open(nazwa, 'oknoObr', 'width=1080,height=720')
	oknoObrazki.focus()
}




/*
function otworzObrazek(obrazek,szer,wys)
{
var parametry= "menubar=no,toolbar=no,location=no,directories=no,status=no";
        parametry +=",scrollbars=no,resizable=no,fullscreen=no,channelmode=no,width=" + szer + ",height=" + wys + ",top=160,left=170";
var tresc= "<html><head>
<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-2\"><style type=\"text/css\">";
        tresc+= "body,img,a{    margin: 0;      padding: 0; border: none;}";
        tresc+= "</style></head><body>";
        tresc+= "<a href=\"#\" onclick=\"javascript:window.close()\">";
        tresc+= "<img src=\"" + obrazek + "\" /></a></body></html>";
obrazek= window.open('', 'nazwa', parametry);
obrazek.document.write(tresc);
}
*/


function otworzObrazek(obrazek,szer,wys)
{
	//oknoObrazki=window.open(obrazek, 'oknoObr', 'width=1080,height=720')
	oknoObrazki=window.open(obrazek, 'oknoObr', 'width=' + szer + ',height=' + wys)
	oknoObrazki.focus()
}

function czyjs(x)
{
	return x.js.value='true';
	document.formularz.submit();
}

function send(event) 
{
	event = (event)?event:((window.event)?event:null);
  if (event.keyCode==13) document.formularz.submit();
}

function load()
{
	alert("Page is loaded");
}

/* ***************************************************************************************************** */


