function sw(obj_id) {
         var stav = document.getElementById(obj_id).className;
         if (stav == 'sw') {
             document.getElementById(obj_id).className = 'sw_display';
         } else {
             document.getElementById(obj_id).className = 'sw';
         }
}



function img(title,picURL){
         newWindow=window.open("",'newWin','toolbar=no,width=200,height=200');
         newWindow.document.write('<html>');
         newWindow.document.write('<head><title>'+title+'</title></head>');
         newWindow.document.write('<body style="margin:0px;padding:0px" onclick="self.close()">');
         newWindow.document.write('<img onload="uprav(this.width,this.height)" src="'+picURL+'" />');
         newWindow.document.write('<script type="text/javascript">');
         newWindow.document.write(' function uprav (sirka,vyska) { self.resizeBy(sirka - self.document.body.clientWidth,vyska - self.document.body.clientHeight); }');
         newWindow.document.write('</script>');
         newWindow.document.write('</body>');
         newWindow.document.write('</html>');
         newWindow.focus()
}

/*
function () {
	document.getElementById('header').className = 'header2';
}
*/



startHeaderImage = 1;
rotationHeaderValue = 50000000;
function swHeaderImages() {
         startHeaderImage++;
         if (startHeaderImage > 2) {
             startHeaderImage = 1;
         }
         setTimeout('swImg("header'+startHeaderImage+'");',rotationHeaderValue);
         setTimeout('swHeaderImages();',rotationHeaderValue);
}
function swImg(imgClassName) {
         document.getElementById('header').className = imgClassName;
}
