var noweOkno = null;



function screen(picture){



if(window.screen){



        aw=screen.availWidth;



        ah=screen.availHeight;



}







if(noweOkno==null || noweOkno.closed){



        properties=



        "left=" + (aw-800)/2 + ","



        +"top=" + (ah-600)/2 + ","



        +"screenX=" + (aw-800)/2 + ","



        +"screenY=" + (ah-600)/2 + ","



        +"width=800,"



        +"height=600,"



        +"innerWidth=800,"



        +"innerHeight=600,"



        +"toolbar=no,"



        +"location=no,"



        +"directories=no,"



        +"status=no,"



        +"menubar=no,"



        +"scrollbars=no,"



        +"resizable=no"







noweOkno = window.open('','obrazek',properties);







}







noweOkno.document.open();



noweOkno.document.clear();



noweOkno.document.write(



"<html><head>\n"



+"<title>WOLF GANG</title>\n"



+"<style><!-\n"



+"<body {background-repeat:no-repeat}\n"



+"-></style>\n"



+"</head>\n"



+"<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>\n"



+"<center>"



+"<a href='#' onclick='window.close()'><img title='kliknutím zavøete toto okno' border=0 src=photos/big/" + picture + ".jpg>\n"



+"</center>"



+"</body>\n"



+"</html>"



);







noweOkno.document.close();



noweOkno.focus();
}

var obrazki=6;
var sekundy=4;
var path='img/ban/';
var teraz=2;
function reload(id)
{
   var iob=document.getElementById(id);
   iob.src=path+teraz+'.jpg';
   teraz++;
   if(teraz>obrazki) teraz=1;
}
setInterval('reload("obrazek")', sekundy*1000);





