// =========================================
// general functions used throughout the 
// site
// =========================================


// =========================================
// image flip script (on):
// =========================================
function imgAct(imgName) {
    if (document.images) {
    document[imgName].src = eval(imgName + "on.src");
    }
}

// =========================================
// image flip script (off):
// =========================================
function imgInact(imgName) {
    if (document.images) {
    document[imgName].src = eval(imgName + "off.src");
    }
}

// =========================================
// generic window opener variables:
// mypage: url to page
// w: width
// h: height
// s: scrollbars? (yes/no)
// n: window name
// =========================================
function PopWin ( mypage, w, h, s, n ) {

	var winl = ( screen.width - w ) / 2;
	var wint = ( screen.height - h - 50 ) / 2;
	winprops = 'width='+w+',height='+h+',top='+wint+',left='+winl+',scrollbars='+s+',resize=no'
	win = window.open ( mypage, n, winprops )
	if ( parseInt(navigator.appVersion) >= 4 ) { win.window.focus(); }

}

// =========================================
// use for spam countermeasures:
// =========================================
function Email ( sUser, sDomain, sSubject ) {
	var sString;
	sString = "mailto:" + sUser + "@" + sDomain;
	if ( sSubject.length > 0 )
	{
		sString += "?subject=" + sSubject;
	}
	window.location = sString;
}
