// vrati rozliseni plochy prohlizece
function getSize() {
  var 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;
  }
  return [myWidth, myHeight];
}
function sirka()
{
   rozmery = getSize();
   s = rozmery[0] - 180;
   if(s<820)
   {
    s=820;
   }
   document.getElementById('right').style.width=s;
   document.getElementById('footer').style.width=s;
   document.getElementById('r-aktuality-bar').style.width=s-610;
   document.getElementById('container').style.width=s+180;

}
function detail(file,w,h)
{
   url = "detail.php?pic=" + file + "&amp;w=" + w + "&amp;h=" + h;
   w = parseInt(w);
   h = parseInt(h);
   roz = getSize();
   l = (roz[0]-w)/2;
   t = (roz[1]-h)/2;
   okno = window.open(url,'okno','toolbar=0,menubar=0,location=no,directories=no,scrollbars=no,resizable=0,status=no,left='+l+',top='+t+',width='+w+',height='+h);
}

