function validateSearch() {
	var x=document.getElementById("keywords");
	if(x.value && x.value != "Search...") {
		return true;
	} else {
		alert("Please enter your search criteria.");
		return false;
	}
}

function checkInput(who) {
	if(who.value == "Search...") {
		who.className = who.className.replace(" label","");
		who.value = "";
	} else if(who.value == "") {
		who.className = who.className+" label";
		who.value = "Search...";
	}
}

function startList() {
	if(document.all && document.getElementById) {
		navRoot = document.getElementById("primarynav");
		for(i=0;i < navRoot.childNodes.length;i++) {
			node = navRoot.childNodes[i];
			if(node.nodeName == "LI") {
				node.onmouseover = function() {
					this.className += " over";
				}
				node.onmouseout = function() {
					this.className = this.className.replace(" over", "");
				}
			}
		}
	}
}

function showClip(which) {
	window.open(which,"clipwin",'height=420,width=660,status=no,menubar=no,scrollable=no,resizable=no');
}

$(document).ready(function() {
	startList();
	$('a.external').click(function(){
		window.open(this.href);
		return false;
	});
});
