    $(document).ready(function(){
        // Superfish menuhover
        $("#masthead")
        .superfish({
	        animation : { opacity:"show",height:"show"},
	        speed     : "fast",
	        delay		: 300
        })
        .find(">li:has(ul)") /* .find(">li[ul]") in jQuery less than v1.2 */
	        .mouseover(function(){
		        $("ul", this).bgIframe({opacity:false});
	        })
	        .find("a")
		        .focus(function(){
			        $("ul", $("#masthead>li:has(ul)")).bgIframe({opacity:false});
		        });
        

		 // Add class 'bottom' to the bottom of the drop down menu
		  $(document).ready(function() {
			   $("#masthead ul li ul").find("li:last").each(function() {
			     $(this).addClass("bottom");
	           });
		  });
        
        
        // Sets the search box value to "" when search box has focus
        $("#search_query").focus(
            function() {
                if(this.value=="Search") {
                    this.value = "";
                }
            }
        );
    });