var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 &&
                parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
var isMinIE4 = (document.all) ? 1 : 0;
var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.")) >= 0 ? 1 : 0;

function hideLayer(layer) {

  if (isMinNS4)
    layer.visibility = "hide";
  if (isMinIE4)
    layer.style.visibility = "hidden";
}

function showLayer(layer) {

  if (isMinNS4)
    layer.visibility = "show";
  if (isMinIE4)
    layer.style.visibility = "visible";
}



function moveLayerTo(layer, x, y) {

  if (isMinNS4)
    layer.moveTo(x, y);

  if (isMinIE4) {
    layer.style.left = x;
    layer.style.top  = y;

  }
showLayer(layer)
}




                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             