function hm(id, src) {
 document.images[id].src=src;
}
var layer="",styleSwitch="",myElement="";

function showLayer(layerName) {
 if(document.layers) {
  layerStyleRef="layer.";
  layerRef="document.layers";
  styleSwitch="";
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.top=-8')
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
 }else if (document.all) {
  layerStyleRef="layer.style.";
  layerRef="document.all";
  styleSwitch=".style";
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
 }else if (document.getElementById) {
  document.getElementById(""+layerName+"").style.width='100%';
  document.getElementById(""+layerName+"").style.visibility = 'visible';
 } 
}

function hideLayer(layerName) {
 if(document.layers) {
  layerStyleRef="layer.";
  layerRef="document.layers";
  styleSwitch="";
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
 }else if (document.all) {
  layerStyleRef="layer.style.";
  layerRef="document.all";
  styleSwitch=".style";
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
 }else if (document.getElementById) {
//     alert(navigator.appName + navigator.appVersion);
  document.getElementById(""+layerName+"").style.visibility= 'hidden';
 } 
}
