//HE definitions 
//  (link style and definition style & location are in stylesheets)
//Based on a script by Martin Webb, http://www.irt.org/

//function show(object) { if (document.layers && document.layers[object]) document.layers[object].visibility = //'visible'; else if (document.all) document.all[object].style.zIndex = 100, //document.all[object].style.visibility = 'visible'; }

//function hide(object) { if (document.layers && document.layers[object]) document.layers[object].visibility = //'hidden'; else if (document.all) document.all[object].style.visibility = 'hidden'; }

/// 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.display = "inline";
}

function hide(id) {
if (ns4) document.layers[id].display = "none"
if (ns7) document.getElementById(id).style.visibility = "hidden";
else if (ie) document.getElementById(id).style.display = "none";
}

function statusy() { self.status=''; return true }
function statusn() { self.status=''; return true }
function statusyn() { self.status='brings up navigation bar'; return true }
function statusynw() { self.status='opens in new window'; return true }


//OPEN IN NEW WINDOWS

// open new window to size
// unnumbered opens external sites
// openwin1 opens AdSummus
// openwin2 opens 2nd external site, if needed
// openwin3 opens map
// openwin4 opens Bluefields sites


function openWin() { 
myWin=open("","newWindow",""); }

function openWin1() {
        myWin=open("","recWindow","top=500,left=260,width=540,height=350,status=no,toolbar=no,menubar=no,location=no,directories=no,titlebar=yes,scrollbars=yes,resizable=yes"); }

function openWin2() { 
myWin=open("","secondWindow",""); }

function openWin3() {
        myWin=open("","thirdWindow","top=250,left=300,width=350,height=350,status=no,toolbar=no,menubar=no,location=no,directories=no,titlebar=yes,scrollbars=no,resizable=yes"); }

function openWin4() { 
myWin=open("","bfWindow",""); }

//////////////////////////////////////////////////////////////

//anti-spambot e-mail

function contactMe (theName, theHost, theContact, theSubject)
{
  document.write("<a href=" + "mailto:" + theName + "@" + theHost + "?subject=Att:&nbsp;" + theSubject + ",&nbsp;Sister&nbsp;Cities&CC=info" + "@" +  "racinesc.org" + " onFocus='if(this.blur)this.blur();'" + ">" + theContact + "</a>");
}


//in doc write this: <SCRIPT>contactMe('xx','xx.com','Contact Us','subject line');</script>

//?BCC=info@racinesc.org&Subject=Racine&nbsp;Sister&nbsp;Cities

//////////////////////////////////////////////////////////////
