$(function() {

	// Input hint behavior on Search box in header
	$(".search-text")
		.focus(function() {
			if ($(this).val() == "Search") {
				$(this).val("");
				$(this).css({'color':'#58595b'});
			}
		})
		.blur(function(){
			if ($(this).val() == "") {
				$(this).val("Search");
				$(this).css({'color':'#9ea0a3'});
			}
	});

	// Allow styling of select dropdowns (the category dropdown specifically)
	$("#categories-2 select").uniform(); 

	// Hide / Show sub-pages for 3 new sections (Eye myths, CVS and Food for Thought)
	$('li.page_item').hover(
		function() {
			$(this).find('ul').show();
		}, function() {
			$(this).find('ul').hide();
	});
	$('#nav li.page-item-home').hover( function() {
		$(this).siblings('#hover-nav').addClass('home-over');
	},
	function() {
		$(this).siblings('#hover-nav').removeClass('home-over');
	});

	$('#nav li.page-item-3936').hover( function() {
		$(this).siblings('#hover-nav').addClass('em-over');
	},
	function() {
		$(this).siblings('#hover-nav').removeClass('em-over');
	});

	$('#nav li.page-item-3937').hover( function() {
		$(this).siblings('#hover-nav').addClass('cvs-over');
	},
	function() {
		$(this).siblings('#hover-nav').removeClass('cvs-over');
	});

	$('#nav li.page-item-3939').hover( function() {
		$(this).siblings('#hover-nav').addClass('fft-over');
	},
	function() {
		$(this).siblings('#hover-nav').removeClass('fft-over');
	});
	
});
