/*
	Submit Once
	
	Add the following onclick event to a button to only allow the first pressing of the button
	to send a request to the server.
		onclick="return submitOnce()"
	If your using a cfform you should add the following line to the form itself instead.
		onsubmit="return submitOnce()"
*/
var formSubmitted	= 0;
function submitOnce() {
	if(!formSubmitted)
		formSubmitted	= formSubmitted + 1;
	else
		return false;
}

/***** Clear "KEYWORD" from the search box at the top of the page when it's selected *****/
function SearchString_onFocus() {
    var input = document.getElementById("searchString");
    
    if (input.value == "KEYWORD")
        input.value = "";
}

// Enable flyouts on browsers that don't fully support CSS (such as IE 6)
startList = function() {
	var navArray = new Array("sideNav");
	for (x=0; x<1; x++) {
		if (document.getElementById) {
			navRoot = document.getElementById(navArray[x]);
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover = function() {
						if (this.getElementsByTagName("a")[0].className != "on")
							this.getElementsByTagName("a")[0].className = "over";
						this.className+="over"; 
					}

					node.onmouseout=function() {
						if (this.getElementsByTagName("a")[0].className != "on")
							this.getElementsByTagName("a")[0].className = "";
						this.className=this.className.replace("over", "");
					}
					
				}
			}
		}
	}
}
window.onload=startList;
