function product_info (name) {
	if (name == 'desc') { 
		document.getElementById("description").style.display="block";
		document.getElementById("specs").style.display="none";

	} else { 
		document.getElementById("specs").style.display="block";
		document.getElementById("description").style.display="none";
	}
}


	$(document).ready(function() {
		
		
		$('.click-clear').focus(function() {
			if (this.value == this.title) {
				this.value = '';
			}
		}).blur(function() {
			if (this.value == '') {
				this.value = this.title;
			}
		});
		
		

		$("select[name='Product_code']").mouseover(function() {
				$("select[name='Product_code']").css('width','auto');
			}).change(function() {
				$("select[name='Product_code']").css('width','200px');
			});
			
		$("a[href='#desc']").click(function(){
		          $(this).addClass("selected");
				  $("a[href='#spec']").removeClass("selected");
		    });
			
		$("a[href='#spec']").click(function(){
		          $("a[href='#spec']").addClass("selected");
				  $("a[href='#desc']").removeClass("selected");
		    });
		
		$("a[href='#desc']").addClass("selected");
		$("a:contains('safety facts (pdf)')").attr("target", "_blank");
		$("a:contains('safety facts (pdf)')").css("margin-left", "8px");
		$("a:contains('description')").css("margin-right", "8px");
		$("a:contains('specs')").css("margin-right", "8px");
		$("a:contains('specs')").css("margin-left", "8px");
		$('a.bottom-corner').corner("bottom");
		
		$("ul#laundry-drop").hover(
			function () {
				$("a#laundrytoplink").addClass("laundry-hover");
		    }, 
		    function () {
		        $("a#laundrytoplink").removeClass("laundry-hover");
		    }
		);

		$("ul#kitchen-drop").hover(
			function () {
				$("a#kitchentoplink").addClass("hover");
		    }, 
		    function () {
		        $("a#kitchentoplink").removeClass("hover");
		    }
		);

		$("ul#bathroom-drop").hover(
			function () {
				$("a#bathroomtoplink").addClass("hover");
		    }, 
		    function () {
		        $("a#bathroomtoplink").removeClass("hover");
		    }
		);

		$("ul#household-drop").hover(
			function () {
				$("a#householdtoplink").addClass("hover");
		    }, 
		    function () {
		        $("a#householdtoplink").removeClass("hover");
		    }
		);

		$("ul#pets-drop").hover(
			function () {
				$("a#petstoplink").addClass("hover");
		    }, 
		    function () {
		        $("a#petstoplink").removeClass("hover");
		    }
		);
		
		var path = window.location.pathname;
		var page = path.substring(path.lastIndexOf('/') + 1);
		
		switch (page) {
			case 'general.html':
				$('li#products').addClass("selected");
			break;
			case 'stores.html':
				$('li#shop').addClass("selected");
			break;
			case 'pressr.html':
				$('li#press').addClass("selected");
			break;
			case 'about.html':
				$('li#about').addClass("selected")
			break;
			case 'index.html':
			case '':
				$.get("test.php",
				  function(data){
				    $('div#blog-feed-content').html(data);
				  });
			break;
			default:
			break;
		}
		
		
		
		
	});
	