
$(document).ready(function(){ 
					  
					  
   $("ul.sf-menu").superfish({
	  delay:       100,              // one second delay on mouseout 
	  animation:   {height:'show'},  // fade-in and slide-down animation 
	  speed:       'normal',         // faster animation speed 
	  disableHI:     true,           // set to true to disable hoverIntent detection 
	  autoArrows:  false,            // disable generation of arrow mark-up 
	  dropShadows: false             // disable drop shadows 					    
    }); 
   
   
   	// SEARCH CLICK
	$("#search").click(function() {
		$(this).css("background-image","none");
	});
	
	// SEARCH BLUR
	$("#search").blur(function() {
		if ($(this).val()=='') {
			$(this).css("background-image","url(http://www.yardsmarts.com/pics/shared/search_text.gif)");
		}
	});
   
   	// SET SEARCH BACKGROUND
	if ($("#search").val()=='') {
		$("#search").css("background-image","url(http://www.yardsmarts.com/pics/shared/search_text.gif)");
	}
   

	// SEARCH BUTTON ROLLOVERS
	$("#search_btn").mouseover(function() {
		$(this).attr("src", "http://www.yardsmarts.com/pics/shared/search_btn_over.gif");
	});
	$("#search_btn").mouseout(function() {
		$(this).attr("src", "http://www.yardsmarts.com/pics/shared/search_btn.gif");
	});
	
	
	// HOME BUTTON ROLLOVERS
	$("#nav_home").mouseover(function() {
		$("#nav_home_img").attr("src", "http://www.yardsmarts.com/pics/shared/nav_home_over.jpg");
	});
	$("#nav_home").mouseout(function() {
		$("#nav_home_img").attr("src", "http://www.yardsmarts.com/pics/shared/nav_home.jpg");
	});
	
	
	// MAIN NAV DROP DOWN
	$("#nav_main > li").mouseover(function() {
		$(this).css("background-position","right -41px");
		$("a:first", this).css("background-position","left -41px");
		$("a:first", this).css("color","#ffffff");
	});

	$("#nav_main > li").mouseout(function() {
		$(this).css("background-position","right top");
		$("a:first", this).css("background-position","left top");
		$("a:first", this).css("color","#606060");
	});


	
});





