//---- basic site-wide javascripts ---------------------------
var whatsit = "@";
  secondbit = whatsit;
  anotherbit = "."+"co"+"m";
  male2 = "ma"+"ilt"+"o:";

function onOff(id, onoff) {
	if (el = document.getElementById(id)) {
		if (null==onoff) onoff = el.style.display=='none';
		el.style.display = (onoff ? '' : 'none');
	}	
}

function sH(id, showhide) {
	if (el = document.getElementById(id)) {
		if (null==showhide) showhide = el.style.visibility=='hidden'; 			
		el.style.visibility = (showhide ? '' : 'hidden');
	}
}

//---- script for positioning footer at the very bottom ------------------
//------ courtesy A List Apart: http://www.alistapart.com/articles/footers/
//---------see init_default.js for init functions
		function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		function setFooter() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					var contentHeight = document.getElementById('aDiv').offsetHeight;
					var footerElement = document.getElementById('footer');
					var footerHeight  = footerElement.offsetHeight;
					if (windowHeight - (contentHeight + footerHeight) >= 0) {
						footerElement.style.top = (windowHeight - (contentHeight + footerHeight)) + 'px';
					}
					else {
						footerElement.style.top = '0px';
					}
				}
			}
		}

