startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("navigation_list");
		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", "");
				}
			}
		}
	}
}
window.onload=startList;

$(document).ready(function() {

	/* NAVIGATION */
	/*
	$("#navigation_list li").hover(
	
		function () {
			$("a:not(#navigation_list li ul li a, .link_on)", this).addClass("nav_link_on");
			$("ul", this).slideDown(150);
		}, 
		function () {
			$("a:not(#navigation_list li ul li a, .link_on)", this).removeClass("nav_link_on");
			$("ul", this).slideUp(0);
		}
	);
	*/
	
	/* SEARCH FORM */
	
	$("input:not(.submit), textarea").focus(
	
		function () {
			$(this).select();
			$(this).animate({backgroundColor:"#E3EEF4"},100);
		}
	);
	
	$("input:not(.submit), textarea").blur(
	
		function () {
			$(this).animate({backgroundColor:"#FFFFFF"},100);
		}
	);
	
	
});

function search_validation(){
	if(document.site_search_form.keywords.value==''){
		var txt=document.getElementById("search_msg")
		txt.innerHTML="please enter a search term";
		$("#search_msg").fadeIn(300);
		return false;
	} else{
		return true;
	}
}

