// 
// "http://www.netpublish.net/umbrella-test/winter2006/bumbershoot/"
 //"file:///C|/Documents and Settings/Peter/Desktop/Documents/umbrellajournal/winter2006/bumbershoot/" 
 
 
 // 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;
   }
rollIn('brella')   
}


  
// Picture-swapping 

function rollIn(imgName) //e.g. rollIn("umb") and name the initial image umb

{
if (d.layers) return; // not supporting older NS browsers
      document[imgName].src=eval(imgName + "_on.src");
}

function rollOut(imgName)
{
if (d.layers) return;
      document[imgName].src=eval(imgName + "_off.src");
 }

 
 //sidebar menu of author names under headings, then space before links to Contents page and Editorial 
function makeMenu(thisheadline, keywords) 
{
mstring="";

mstring += '<h6><a href="contents.html" title="Cover/contents page for this Bumbershoot issue" class="menu">Cover page</a></h6>' ;

//

mstring +='<p>&nbsp;</p>'


document.write(mstring);

}
