function OpenImg(src,alt,width,height) {

  var scbr = 'no';
  var w = width;
  var h = height;

  if (width>=(document.body.clientWidth-20)) {
	w = document.body.clientWidth-20;
	scbr = 'yes';
  }

  if (height>=(document.body.clientHeight-20)) {
	h = document.body.clientHeight-20;
        if (w<(document.body.clientWidth-20)) w = w-0+16;
	scbr = 'yes';
  }

  image = window.open('','','left=10,top=10,toolbar=no,width='+w+',height='+h+',resizable=no,scrollbars='+scbr+',status=no,menubar=no,dialog=yes');
  image.focus();
  image.document.write('<html><head><title>Dachstar s.r.o.</title></head><body style="cursor: hand; cursor: pointer; margin: 0px; padding: 0px; background: url(\'images/cz/engine/loading.jpg\') center center no-repeat #ffffff;"><img id="img" src="'+src+'" width="'+width+'" height="'+height+'" alt="'+alt+'" border="0" onClick="window.close();"></body></html>');
  image.document.close();

}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

