function Download(Img)  //downloadowanie bo w innym porzypadku pliki sa sciaf\gane dopiero po najechaniu myszka na obrazek
{
         n=new Image();
         return n.src=Img;
}

Podmien();
function Podmien()
{
         Adres=new Array("menu1_marked.gif", "menu2_marked.gif", "menu3_marked.gif", "menu4_marked.gif", "menu5_marked.gif", "menu6_marked.gif", "menu7_marked.gif");
         for (i=0; i<Adres.length; i++) Adres[i]=Download(Adres[i]);
}


function On(nazwa,plik) 	{document.images[nazwa].src="images/"+plik;}
function Off(nazwa,plik) 	{document.images[nazwa].src="images/"+plik;}
function openW(adres,opis)
{
         win=open("",'zdjecia',"toolbar=no,directories=no,menubar=no");
         win.document.write("<html><head><link rel='stylesheet' href='style.css' type='text/css'/></head>")
         win.document.write("<body bgcolor=#F0F0E2><center><img src='"+adres+"'/><br/><br/>")
         win.document.write(opis+"</center></body></html>");
}

function wyswietl(obj)
{
         if (obj.nextSibling.style.display=='block')  {obj.nextSibling.style.display='none';}
	 var x=Math.round((obj.nextSibling.id/3)-0.5);
         obj.nextSibling.style.top=30;
         if (x>2) obj.nextSibling.style.top=30+185*(x-2);
	 obj.nextSibling.style.left=15;

         obj.nextSibling.style.display='block';
}
function zgas(obj)
{
         obj.style.display='none';
}

