function init(){
	// handles the header nav links rollover effects
	$(".links img, .imageSwap").hover(
		function(){
			this.src = this.src.replace("_off","_on");
		},
		function(){
			this.src = this.src.replace("_on","_off");
		}
	);
	// handles clearing/setting the search fields value "Search"
	$("#searchInput").focus(
		function(){
			if ($(this).val() == 'Search'){
				$(this).val("");
			}
		}	
	);
	$("#searchInput").blur(
		function(){
			if ($(this).val() == ""){
				$(this).val("Search");
			}
		}	
	);
	// handles the rollover effect for the main nav
	$("#nav li").hover(
		function(){
			if(this.className.indexOf('down') == -1)
			{
				this.className += 'down';
			}
			else
			{
				$(this).unbind('mouseout');
			}
		},
		function(){
			this.className = this.className.replace("down","");
		}
	);
	//external links open in new window
	$('a[href^="http://"]')
	  .attr({
	    target: "_blank", 
	    title: "Opens in a new window"
	  });
}

$(document).ready(init);