
//////////////////// anti-spambot e-mail ////////////////////////////

function contactMe (theName, theHost, theContact)
{
  document.write("<a href=" + "mailto:" + theName + "@" + theHost + " onFocus='if(this.blur)this.blur();'" + ">" + theContact + "</a>");
}

//in doc write this: <script type='text/javascript'>contactMe('xx','xx.com','Contact Us');</script>


//////////////////// OPEN IN NEW WINDOWS /////////////////////////////

// open new window to size
// unnumbered 800 x 500
// openwin2 400 x 300

function openWin() { 
myWin=open("","newWindow","top=200,left=200,width=800,height=500,status=no,toolbar=no,menubar=no,location=no,directories=no,titlebar=no,scrollbars=yes,resizable=yes"); }

function openWin2() { 
myWin=open("","smallWindow","top=200,left=200,width=440,height=330,status=no,toolbar=no,menubar=no,location=no,directories=no,titlebar=no,scrollbars=yes,resizable=yes"); }



/*
///////////////// ORIGINAL BUT MOST RECENT STC HIDDEN ENEMY SPANS ////////////////////////
// Link style, and revealed span style & location, are in stc.css)
// Doc makes link to hidden span, specimens below
// Based on a script by Martin Webb, http://www.irt.org/
// With new automatic closure by Pippin 25th April, 2007

// ------------------- script begins ---------------------------- */

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";
}

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 }

/*
// ----------- end of script ------------- doc samples below ------------ */

/* 
IN DOC, WRITE THIS FOR LINK: 
<a href="javascript:void(0);" onmouseover="show('fpp2'); return statusy()" onmouseout="hide('fpp2'); return statusn()">demonstration</a>?

0R THIS FOR A CLICKABLE LINK THAT CLOSES THE SPAN AUTOMATICALLY:
<a href="javascript:void(0);" onclick="show('fpp2'); setTimeout('hide(\'fpp2\')', 3700)"><img src="BAR.sm.gif" alt="book cover" title="click to expand image" height="150"></a>
<span id="bar" class="expanded"><img src="BAR.sm.gif" width="280" height="384" alt="book cover"></span>

IN DOC, WRITE THIS FOR REVEALED SPANS: 
<!-- fpp spans -->
<span id="fpp2" class="expanded"><img src="fpp2.gif"> <br><a href="javascript:void(0);" class="he" onclick="show('fpp3')" onmouseover="return statusy()" onmouseout="return statusn()">next</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="javascript:void(0);" class="he" onclick="hide('fpp5'); hide('fpp4'); hide('fpp3'); hide('fpp2')" onmouseover="return statusy()" onmouseout="return statusn()">close</a><br>
The vertical surface disappears off two edges and establishes the assumed picture plane.</span>

IN STYLESHEET, WRITE THIS FOR SPAN CLASS:
.expanded {
	position: absolute;
	visibility: hidden;
	left: 250;
	background: #35ba36;
        padding: 0.5em;
        border: thick ridge #fcc;
}
*/
