function op_register (id_name, normal_src, over_src, down_src)
{
    if (over_src == null)   over_src = normal_src;
    if (down_src == null)   down_src = over_src;

    op_temp_variable = new Array
      (id_name, true, new Image(), new Image(), new Image());
    op_temp_variable[2].src = normal_src;
    op_temp_variable[3].src = over_src;
    op_temp_variable[4].src = down_src;
    eval ("op_item_" + id_name + " = op_temp_variable");
}

function op_set_normal (id_name)
{
    var reg_item = eval ("op_item_" + id_name);
    if (reg_item[1])
      document.getElementById(id_name).src = reg_item[2].src;
}
    
function op_set_over (id_name)
{
    var reg_item = eval ("op_item_"+id_name);
    if (reg_item[1])
      document.getElementById(id_name).src = reg_item[3].src;
}

function op_set_down (id_name)
{
    var reg_item = eval ("op_item_" + id_name);
    if (reg_item[1])
      document.getElementById(id_name).src = reg_item[4].src;
}


function show(id) {
    el=document.getElementById(id).style;
    el.display='block';
}

function hide(id) {
    el=document.getElementById(id).style;
    el.display='none';
 
}

function showDetailImage(obj)
{
  var pImg = new String(document.getElementById(obj).src);
  sImg = pImg.substr(0,pImg.length-4) + "L.jpg";
 
  image = window.open('','image','left=50, top=50, width=400, height=400, toolbar=no, menubar=no, status=no, resizable=no, scrollbars=no');
  image.focus();
  image.document.write('<html><head><title>67 - Detail fotografie</title>');
  image.document.write('<script language="javascript"> var NS = (navigator.appName=="Netscape") ? true:false; function FitPic() { iWidth = (NS)?window.innerWidth:document.body.clientWidth; iHeight = (NS)?window.innerHeight:document.body.clientHeight; iWidth = document.images[0].width - iWidth; iHeight = document.images[0].height - iHeight; window.resizeBy(iWidth, iHeight); self.focus(); } </script>');
  image.document.write('</head><body onload="FitPic();" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" align="center"><a href="javascript: window.close();" title="Kliknutím zavřete obrázek"><img src="' + sImg + '" alt="67 - Detail fotografie" border="0" /></a></body></html>');
  image.document.close();
}

