/* javascripts for nab sites */

// statusbar alert for new window

function statusynw() {
self.status='opens in new window'; return true;
}
function statusn() { 
self.status=''; return true;
}
function statusads() { 
self.status='http://www.adsummus.com/ ... Enduring Websites: rescue, maintenance and design'; return true;
}
/////////////////////////////////////////////////////////////

// open new window to size
// unnumbered opens sound tracks
// openwin1 opens AdSummus
// openwin2 ....
// openhome is exclusively for retrieving full site from single page
//                   - by Stefan Münz: http://de.selfhtml.org/

function openWin() {
        myWin=open("","newWindow","top=100,left=350,width=250,height=100,status=no,toolbar=no,menubar=no,location=no,directories=no,titlebar=yes,scrollbars=no,resizable=yes"); }

function openWin1() {
        myWin=open("","recWindow","top=500,left=190,width=700,height=500,status=no,toolbar=no,menubar=no,location=no,directories=yes,titlebar=yes,scrollbars=yes,resizable=yes"); }


function openWin2() { 
	myWin=open("","displayWindow","top=180,left=180,width=890,height=330,status=no,toolbar=no,menubar=no,location=no,directories=no,titlebar=yes,scrollbars=yes,resizable=yes"); }

function closeWin() { close(); }

function openHome(filename)
{
  document.Daten.varFrame.value = filename;
  homeWindow = window.open('index.html','homeWindow');
  homeWindow.focus();
}

//////////////////////////////////////////////////////////////

//anti-spambot e-mail

function contactMe (theName, theHost, theContact)
{
  document.write("<a class='email' href=" + "mailto:" + theName + "@" + theHost + " onFocus='if(this.blur)this.blur();'" + ">" + theContact + "</a>");
}


function orderCd (theName, theHost, theContact)
{
  document.write("<a href=" + "mailto:" + theName + "@" + theHost + " onFocus='if(this.blur)this.blur();'" + ">" + theContact + "</a>");
}

//////////////////////////////////////////////////////////////

/// ns7 compatible show/hide

var ns4 = (document.layers)? true:false
var ie = (document.all)? true:false
var ns7 = (!document.all && document.getElementById);

function show(id) {
if (ns4) document.layers[id].visibility = "show"
if (ns7) document.getElementById(id).style.visibility = "visible";
else if (ie) document.getElementById(id).style.visibility = "visible";
}

function hide(id) {
if (ns4) document.layers[id].visibility = "hide"
if (ns7) document.getElementById(id).style.visibility = "hidden";
else if (ie) document.getElementById(id).style.visibility = "hidden";
}

