activateMenu = function(nav) {

    /* currentStyle restricts the Javascript to IE only */
	if (document.all && document.getElementById(nav).currentStyle) {  
        var navroot = document.getElementById(nav);
        
        /* Get all the list items within the menu */
        var lis=navroot.getElementsByTagName("LI");  
        for (i=0; i<lis.length; i++) {
        
           /* If the LI has another menu level */
            if(lis[i].lastChild.tagName=="UL"){
            
                /* assign the function to the LI */
             	lis[i].onmouseover=function() {	
                
                   /* display the inner menu */
                   this.lastChild.style.display="block";
                }
                lis[i].onmouseout=function() {                       
                   this.lastChild.style.display="none";
                }
            }
        }
    }
}
window.onload= function(){
    /* pass the function the id of the top level UL */
    /* remove one, when only using one menu */
    activateMenu('vertnav'); 
}












            function fade(el, up)
            {
                var interval    = 10;
                var s           = el.style;
               
                if(typeof el.fadeKillID == "number")
                {
                    clearTimeout(el.fadeKillID);
                    el.fadeKillID = null;
                }
               
                var goAgain = true;
               
                // Mozilla
                if(typeof s.MozOpacity == "string")
                {
                    if(up && s.MozOpacity < .95)
                        s.MozOpacity    = parseFloat(s.MozOpacity) + 0.05;
                    else if(!up && s.MozOpacity > .7)
                        s.MozOpacity    = parseFloat(s.MozOpacity) - 0.05;
                    else
                        goAgain = false;
                } //IE
                else if(typeof el.filters == "object")
                {
                    var a = el.filters.alpha;
                    if(up && a.opacity < 95)
                        a.opacity   += 5;
                    else if(!up && a.opacity > 70)
                        a.opacity   -= 5;
                    else
                        goAgain = false;
                }
               
                if(goAgain)
                    el.fadeKillID = setTimeout(function(){fade(el,up);},interval);
            }












var hint, IE=document.all?true:false;

if(!IE) {
	document.captureEvents(Event.MOUSEMOVE);
	document.onmousemove=mousePos;
	var netX, netY;
}

function init() {
	if(IE) hint=document.all.hint; else hint=document.getElementById("hint");
	b=document.body;
}

function mousePos(e) {
	netX=e.pageX;
	netY=e.pageY;
}

function move(pX, pY) {
	init();
	if(hint.style.visibility!='visible') return;
	if(IE) {myszX=event.clientX; myszY=event.clientY;}
		else {myszX=netX-b.scrollLeft; myszY=netY-b.scrollTop;}

	tempX=myszX+pX;
	if(tempX<0) tempX=0;
	tmp=b.clientWidth-myszX-pX-hint.offsetWidth-20;
	if(tmp<0) {tempX+=tmp; if(tempX<0) tempX=0;}
	hint.style.left=b.scrollLeft+tempX+"px";

	tempY=myszY+pY;
	if(tempY<0) tempY=0;
	tmp=b.clientHeight-myszY-pY-hint.offsetHeight-15;
	if(tmp<0) {
		tmp=myszY-15-hint.offsetHeight;
		if(tmp>=0) tempY=tmp;
	}
	hint.style.top=b.scrollTop+tempY+"px";
}

function show(pX, pY, src) {
	init();
	hint.style.visibility='visible';
	hint.innerHTML=src;
	move(pX,pY);
}

function Close() {
	init();
	hint.style.visibility='hidden';
	hint.innerHTML='';
	hint.style.left=0;
	hint.style.top=-500;
}

function Hit(tresc) {
//	text='<table cellspacing=0 cellpadding=6 border=0><tr><td bgcolor=#646360><font color=#F0EEE2>'+tresc+'</font></td></tr></table>';
	if(IE) {
		text='<table cellspacing=0 cellpadding=0 border=0 style="filter: alpha(opacity=90);-moz-opacity: 0.9;"><tr><td width=5 height=5 background="layout/hint1.gif"></TD><td background="layout/hint2.gif"></TD><td width=5 height=5 background="layout/hint3.gif"></TD></TR><tr><td background="layout/hint4.gif"></TD><td background="layout/hint5.gif" class="hinttext">'+tresc+'</TD><td background="layout/hint6.gif"></TD></TR><tr><td width=5 height=5 background="layout/hint7.gif"></TD><td background="layout/hint8.gif"></TD><td width=5 height=5 background="layout/hint9.gif"></TD></TR></table>';
	} else {
		text='<table cellspacing=0 cellpadding=0 border=0 style="filter: alpha(opacity=90);-moz-opacity: 0.9;"><tr><td width=5 height=5 background="layout/hint1.gif"></TD><td background="layout/hint2.gif"></TD><td width=5 height=5 background="layout/hint3.gif"></TD></TR><tr><td background="layout/hint4.gif"></TD><td background="layout/hint5.gif" class="hinttext">'+tresc+'</TD><td background="layout/hint6.gif"></TD></TR><tr><td width=5 height=5 background="layout/hint7.gif"></TD><td background="layout/hint8.gif"></TD><td width=5 height=5 background="layout/hint9.gif"></TD></TR></table>';
	}
	show(5,20,text);
}

function Movehint() {
	move(5,20);
}





function pokaz_zdjecie(src,wymiar1,wymiar2,nazwa) {
	widthokienka=wymiar1+10;
	heightokienka=wymiar2+10;
	center1=screen.width/2 - wymiar1/2;
	center2=screen.height/2 - wymiar2/2;


userAg = navigator.userAgent;
bName = navigator.appName;
if (bName.substring(0,8) == "Netscape"){
	// Netscape
	okno=window.open("", "", "height="+heightokienka+",width="+widthokienka+", left="+center1+",top="+center2+"resizable=0,scrollbars=no,menubar=no");
	okno.document.open();
	okno.document.write("<html>\n<head>\n<title>"+nazwa+"</title>\n</head>\n<body style=\"margin:0px;background-color:silver\">\n<img onClick='javascript:window.close()' src="+src+" style='margin:0px;border:1px solid #414446;padding:0px;margin-top:4px;margin-left:4px;cursor:pointer' alt='Kliknij by zamkn±ć powiększenie'>\n</body>\n</html>");
	okno.document.close();}
else
if (document.all){ if (navigator.userAgent.search('Opera')>=0){
	// Opera
	widthokienka=wymiar1+20;
	heightokienka=wymiar2+20;
	okno=window.open("", "", "height="+heightokienka+",width="+widthokienka+", left="+center1+",top="+center2+"resizable=0,scrollbars=no,menubar=no");
	okno.document.open();
	okno.document.write("<html>\n<head>\n<title>"+nazwa+"</title>\n</head>\n<body style=\"margin:0px;background-color:silver\">\n<img onClick='javascript:window.close()' src="+src+" style='margin:0px;border:1px solid #414446;padding:0px;margin-top:0px;margin-left:0px;cursor:pointer' alt='Kliknij by zamkn±ć powiększenie'>\n</body>\n</html>");
	okno.document.close();
}else{
	// IE
	okno=window.open("", "", "height="+heightokienka+",width="+widthokienka+", left="+center1+",top="+center2+"resizable=0,scrollbars=no,menubar=no");
	okno.document.open();
	okno.document.write("<html><head><title>"+nazwa+"</title></head><body style='margin:0px;background-color:silver'><img src="+src+" style='margin:0px;border:1px solid #414446;padding:0px;margin-top:4px;margin-left:4px;cursor:pointer' alt='Kliknij by zamkn±ć powiększenie' onClick='javascript:window.close()'></body></html>");
	okno.document.close();
}}else{
	// reszta
	okno=window.open("", "", "height="+heightokienka+",width="+widthokienka+", left="+center1+",top="+center2+"resizable=0,scrollbars=no,menubar=no");
	okno.document.open();
	okno.document.write("<html>\n<head>\n<title>"+nazwa+"</title>\n</head>\n<body style=\"margin:0px;background-color:silver\">\n<img onClick='javascript:window.close()' src="+src+" style='margin:0px;border:1px solid #414446;padding:0px;margin-top:4px;margin-left:4px;cursor:pointer' alt='Kliknij by zamkn±ć powiększenie'>\n</body>\n</html>");
	okno.document.close();}
}









//<!--Hideimages
      if (document.images) {
		 
		 menu1 = new Image
		 menu1.src = "layout/menu1.jpg"

		 menu111 = new Image
		 menu111.src = "layout/menuh1.jpg"

		 menu2 = new Image
		 menu2.src = "layout/menu2.jpg"

		 menu22 = new Image
		 menu22.src = "layout/menuh2.jpg"

		 menu3 = new Image
		 menu3.src = "layout/menu3.jpg"

		 menu33 = new Image
		 menu33.src = "layout/menuh3.jpg"

		 menu4 = new Image
		 menu4.src = "layout/menu4.jpg"

		 menu44 = new Image
		 menu44.src = "layout/menuh4.jpg"

		 menu5 = new Image
		 menu5.src = "layout/menu5.jpg"

		 menu55 = new Image
		 menu55.src = "layout/menuh5.jpg"

		 menu6 = new Image
		 menu6.src = "layout/menu6.jpg"

		 menu66 = new Image
		 menu66.src = "layout/menuh6.jpg"

		 menu7 = new Image
		 menu7.src = "layout/menu7.jpg"

		 menu77 = new Image
		 menu77.src = "layout/menuh7.jpg"

		 menu8 = new Image
		 menu8.src = "layout/menu8.jpg"

		 menu88 = new Image
		 menu88.src = "layout/menuh8.jpg"

		 menu9 = new Image
		 menu9.src = "layout/menu9.jpg"

		 menu99 = new Image
		 menu99.src = "layout/menuh9.jpg"

		 menu10 = new Image
		 menu10.src = "layout/menu10.jpg"

		 menu1010 = new Image
		 menu1010.src = "layout/menuh10.jpg"

		 menu11 = new Image
		 menu11.src = "layout/menu11.jpg"

		 menu1111 = new Image
		 menu1111.src = "layout/menuh11.jpg"

		 menu12 = new Image
		 menu12.src = "layout/menu12.jpg"

		 menu1212 = new Image
		 menu1212.src = "layout/menuh12.jpg"

		 menu13 = new Image
		 menu13.src = "layout/menu13.jpg"

		 menu1313 = new Image
		 menu1313.src = "layout/menuh13.jpg"

		 menu14 = new Image
		 menu14.src = "layout/menu14.jpg"

		 menu1414 = new Image
		 menu1414.src = "layout/menuh14.jpg"






		 menutop0 = new Image
		 menutop0.src = "layout/menutop0.jpg"

		 menutop00 = new Image
		 menutop00.src = "layout/menutoph0.jpg"

		 menutop1 = new Image
		 menutop1.src = "layout/menutop1.jpg"

		 menutop11 = new Image
		 menutop11.src = "layout/menutoph1.jpg"

		 menutop2 = new Image
		 menutop2.src = "layout/menutop2.jpg"

		 menutop22 = new Image
		 menutop22.src = "layout/menutoph2.jpg"

		 menutop3 = new Image
		 menutop3.src = "layout/menutop3.jpg"

		 menutop33 = new Image
		 menutop33.src = "layout/menutoph3.jpg"

		 menutop4 = new Image
		 menutop4.src = "layout/menutop4.jpg"

		 menutop44 = new Image
		 menutop44.src = "layout/menutoph4.jpg"





		 pokazwszystkie1 = new Image
		 pokazwszystkie1.src = "layout/pokazwszystkie.gif"

		 pokazwszystkie11 = new Image
		 pokazwszystkie11.src = "layout/pokazwszystkieh.gif"





		 poprzednie1 = new Image
		 poprzednie1.src = "layout/poprzednie.gif"

		 poprzednie11 = new Image
		 poprzednie11.src = "layout/poprzednieh.gif"

		 nastepne1 = new Image
		 nastepne1.src = "layout/nastepne.gif"

		 nastepne11 = new Image
		 nastepne11.src = "layout/nastepneh.gif"



		 }
//Koniec-->
