$(document).ready(function(){
	
	//Search form
	$("#edit-search-theme-form-1").attr("title", $("#searchbox").attr("class"));
	
	//hints on inputs with the 'title' attribute
	$("input").hint();
  
	//find a store dropdown menu
  $("#store").click(function(){
		$(this).css("outline", "none");
    if($("ul.dropdown").css("display") == "none"){
      $("ul.dropdown").slideDown("fast");
			$("#findastore").css("background", "#494949 url(/sites/all/themes/superior/images/navitem_store_right_on.gif) no-repeat right top");
			$("#findastore .leftside").css("background", "#494949 url(/sites/all/themes/superior/images/navitem_left_on.gif) no-repeat right top");
    } else {
      $("ul.dropdown").slideUp("fast");
			$("#findastore").css("background", "#494949 url(/sites/all/themes/superior/images/navitem_store_right.gif) no-repeat right top");
			$("#findastore .leftside").css("background", "#494949 url(/sites/all/themes/superior/images/navitem_left.gif) no-repeat right top");
    }
  });
  $("ul.dropdown li a").click(function(){
    window.location=$(this).children("a").attr("href");
  });
	
	//1234 hovers
	var origh2 = $("#bignav h2").text();
	$("#bignav li").hover(function(){		
		$("#bignav h2").text($(this).children("a").text());
	}, function(){
		$("#bignav h2").text(origh2);
	});
});
