$(document).ready(function() {
	
	function megaHoverOver(){
		$(this).find(".sub").stop().slideDown('normal').show();
		
	}
	
	function megaHoverOut(){ 
	  $(this).find(".sub").stop().slideUp('normal',function() {
		  $(this).hide(); 
	  });
	}

	var config = {
		 sensitivity: 1,
		 interval: 100,
		 over: megaHoverOver,
		 timeout: 200,
		 out: megaHoverOut
	};

	$("#topnav li .sub").css({'display':'none'});
	$("#topnav li").hoverIntent(config);

	$("#tabs").tabs();
	
	
	Shadowbox.init();

});
