// otevri nove okno
function JSL(url, jmeno, w, h)
{
  okno = window.open("", jmeno, 'resizable=0,top=50,left=50,menubar=0,width=' + w + ',height=' + h);
	okno.document.write("<html><body style='margin:0px;padding:0px;' ><img src='"+url+"' onclick='window.close();' style='cursor: hand'></"+"body></"+"html>");
}
function reportSize() {
		  myWidth = 0, myHeight = 0;
		  if( typeof( window.innerWidth ) == 'number' ) {
		    //Non-IE
		    myWidth = window.innerWidth;
		    myHeight = window.innerHeight;
		  } else {
		    if( document.documentElement &&
		        ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		      //IE 6+ in 'standards compliant mode'
		      myWidth = document.documentElement.clientWidth;
		      myHeight = document.documentElement.clientHeight;
		    } else {
		      if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		        //IE 4 compatible
		        myWidth = document.body.clientWidth;
		        myHeight = document.body.clientHeight;
		      }
		    }
		  }
      newWidth = 902 + (myWidth / 2) - 536;
      //alert();
      if(parseInt(newWidth)<902){newWidth = 1072;}
      //else
      {
		    document.getElementById("banner-1").style.left = newWidth;
        document.getElementById("banner-1").style.visibility = "visible";
		  }
		}
		
function video_open(id){
	try{
		okynko3.close
	 }
	 catch(e){
	}
	okynko3=window.open("video.php?id="+id,"video","width=490,height=404,resizable=no,scrollbars=0");
	okynko3.focus();
}

function fixedEl(id){
        if(document.all){
        alert(1);
            document.getElementById(id).style.top = document.body.scrollTop + 90;
            alert(document.getElementById(id).style.pixelTop);
        }
    }
