function czOpenImg(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>Harrachovka</title></head><body style="cursor: hand; cursor: pointer; margin: 0px; padding: 0px; background: url(\'images/loading_cz.gif\') 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 ruOpenImg(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>Harrachovka</title></head><body style="cursor: hand; cursor: pointer; margin: 0px; padding: 0px; background: url(\'images/loading_ru.gif\') 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 plOpenImg(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>Harrachovka</title></head><body style="cursor: hand; cursor: pointer; margin: 0px; padding: 0px; background: url(\'images/loading_pl.gif\') 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 enOpenImg(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>Harrachovka</title></head><body style="cursor: hand; cursor: pointer; margin: 0px; padding: 0px; background: url(\'images/loading_en.gif\') 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 deOpenImg(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>Harrachovka</title></head><body style="cursor: hand; cursor: pointer; margin: 0px; padding: 0px; background: url(\'images/loading_de.gif\') 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 Open_page_bars(source,width,height) {

  page = window.open(source,'','left=70, top=70, toolbar=no, width='+width+', height='+height+', resizable=no, scrollbars=yes, status=no');
  page.focus();
  page.document.close();
}