// touchles javascript™ -- no event handlers in html

window.onload = kickOff;

var aAll;

function kickOff() {
if(document.getElementById("home")) {
                homeLoad();
        }

	aAll = document.getElementsByTagName("a");
	// disable and change color of active page's link
    for (var i=0; i<aAll.length; i++) {
        if (window.location.href.split("#")[0] == aAll[i].href) {
            aAll[i].onclick = function() {if (this.blur) {this.blur();} return false;}
            aAll[i].style.cursor = "text";
            aAll[i].style.borderBottom = "none";
			aAll[i].style.color = "#9999aa";
            aAll[i].style.cursor = "text";
        }
		// set Back link for js enabled browsers
        if (aAll[i].id == "back") {
        	aAll[i].firstChild.nodeValue = "Back";
			aAll[i].onclick = function() {history.back(); return false;}
		}
		// fix ie's lack of support for css :focus so tabbers see skip links on focus
		if (navigator.appName == "Microsoft Internet Explorer" && aAll[i].className == "skip") {
			var restoreColor = aAll[i].style.color;
			var restoreBorder = aAll[i].style.borderBottom;
			aAll[i].onfocus = function() {this.style.color = "#999999"; this.style.borderBottom = "1px solid #999999";}
			aAll[i].onblur = function() {this.style.color = restoreColor; this.style.borderBottom = restoreBorder;}
		}
	// fixes in-page link bug for Internet Explorer
	/*if (navigator.appName == "Microsoft Internet Explorer") {
		//getElementsByClass("target");
	}*/
    }
    // calculate certain elements for placement:

	goMenu();

}






