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() {
	 // Equal heights function
	 jQuery.fn.equalHeights=function() {
		var maxHeight=0;
		this.each(function(){
			if (this.offsetHeight>maxHeight) {maxHeight=this.offsetHeight;}
		});
		this.each(function(){
			$(this).height(maxHeight + "px");
			if (this.offsetHeight>maxHeight) {
				$(this).height((maxHeight-(this.offsetHeight-maxHeight))+"px");
			}
		});
	};
	
	// navigation rollover function
	$("#navigation_list li ul").hover(function(){
		$(this).parent("li").children("a").addClass("nav_link_over");
	},function(){
		$(this).parent("li").children("a").removeClass("nav_link_over");
	})
	
	$("#site_search_form #search_keywords").focus(function(){
		if($("#site_search_form #search_keywords").val()=="Enter search"){
			$("#site_search_form #search_keywords").val('');
			$("#site_search_form #search_keywords").removeClass('default_search');
		}else{
			$("#site_search_form #search_keywords").select();
		}
	});
	
	// PNG fix for IE
	// now deferred in the header only called for IE
	//$.pngFix();
	
});
