

 
 
// 1k DHTML API
d=document;l=(d.layers)?1:0;op=navigator.userAgent.toLowerCase().indexOf('opera')!=-1; msie=(d.all)?1:0;

function gE(e,f){if(l){f=(f)?f:self;var V=f.document.layers;
if(V[e])return V[e];for(var W=0;W<V.length;)t=gE(e,V[W++]);return t;}if(d.all)return d.all[e];return d.getElementById(e);}

//show element
function sE(e){if(l)e.visibility='show';else e.style.visibility='visible';}

//hide element
function hE(e){if(l)e.visibility='hide';else e.style.visibility='hidden';}

//get left posn
function gX(e){if(l) return e.left;else if(d.all)return e.style.pixelLeft;else return e.style.left}

//get top posn
function gY(e){if(l) return e.top;else if (d.all)return e.style.pixelTop;else return e.style.top}

//get width
function gW(e){if(l) return e.width;else return e.style.width}
//get height
//function gH(e){if(l) return e.clip.height;else if(op) return e.style.pixelHeight;else return e.style.height}
//get dynamic height
function gH(myid)
{ 
divob = gE(myid);
if (divob.offsetHeight) { eheight = divob.offsetHeight }
else if (d.getElementById) {eheight = d.defaultView.getComputedStyle(test, "").getPropertyValue("height")}
return eheight;
}


 
 function embedSound(wavurl)
 {
 if (document.all) 
document.write('<embed src="' +wavurl + '" autostart="false" hidden="true"><bgsound id="sound">');
 }
 
 function playSound(wavurl) 
{
if (document.all)
 {
  document.all.sound.src = wavurl;
   }
}

//preloads
if (document.images) 
{
var brella_off = new Image(144, 123);
  brella_off.src = "images/umbrella_furled.gif";  
  var brella_on = new Image(144, 123);
  brella_on.src = "images/umbrella_open.gif";
  }
  
  
// Picture-swapping 

function rollIn(imgName) //e.g. rollIn("brella") and name the initial image "brella"

{
if (d.layers) return;
      document[imgName].src=eval(imgName + "_on.src");
}

function rollOut(imgName)
{
if (d.layers) return;
      document[imgName].src=eval(imgName + "_off.src");
 }

