var isNS4, isIE4, isIE5, isNS6
var coll = ""
var styleObj = ""

var zIndex = 2  // Must be larger than our backgrounds

isNS4 = (document.layers) ? true : false;
isIE4 = (document.all && !document.getElementById) ? true : false;
isIE5 = (document.all && document.getElementById) ? true : false;
isNS6 = (!document.all && document.getElementById) ? true : false;
if (isNS6) {
  coll = "getElementById('"
  styleObj = "').style" }
else {
  if (isIE4 || isIE5) {
    coll = "all."
    styleObj = ".style" } }

function show(obj) {
  obj.visibility = "visible"
}

function hide(obj) {
  obj.visibility = "hidden"
}

function changeVisibility(Obj,num) {
   var imgobj = eval("document." + coll + "image" + num + styleObj)
   // If it's one of our backgrounds we don't want to change its
   // zIndex
   if (num > 22) {
     if (Obj.checked)
       show(imgobj)
     else
       hide(imgobj)
     return
   }
   if (Obj.checked) {
     zIndex++
     setZIndex(imgobj, zIndex)
     show(imgobj)
   } else {
     hide(imgobj)
     zIndex--
   }
}

function setZIndex(obj, zOrder) {
   obj.zIndex = zOrder
}

function openWin(url, name) {
                      popupWin = window.open(url, name,
                     'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=350,height=120');

                      }

function openBWin(url) {
                      popupWin = window.open(url) 
;

                      }
