// Page Scripts 
function addHoverHide(linkHover) {
    var t;
	var durationTime = 200;
	
	//Start Rollover Function
    $(linkHover).hover(function() {
        clearTimeout(t);
		$(".active").slideUp(100);
        // custom function which creates drop shadows around layerId
		$(linkHover).removeClass("hoverState");
		$(this).addClass("hoverState");
		$(this).parent().next("ul").addClass("active").slideDown(200);
	
}, function() {
        t = setTimeout(function() {$(".active").slideUp(100)}, durationTime);
		$(this).removeClass("hoverState");
    });
	
	//If you Roll over subNav Reset Primary Nav Timer and styles
	$("ul.subNav").hover(function() {
        clearTimeout(t);
		$(this).parent().find("h4 a").addClass("hoverState");
	
}, function() {
        t = setTimeout(function() {
				$(".active").slideUp(100);
		}, durationTime);
		
	});
	
	
	
} 



$(document).ready(function(){
		$(".subNav").hide();				   
	 addHoverHide("#nav h4 a");
	 
	 
});