// Dropdown using jQuery with mods for easing

//easing
	jQuery.easing['swingOld'] = jQuery.easing['swing']; //rename the swing function
	jQuery.extend(jQuery.easing,{
		easingFunc: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	}
	});
	
	//Preload Images
	jQuery.preloadImages = function(){
		for(var i = 0; i<arguments.length; i++){
			jQuery("<img>").attr("src", arguments[i]);
		}
	};
	
	$(document).ready(function(){
		jQuery.fn.slideDownFade = function(speed, easing) {
			return this.animate({height: 'show'}, speed, easing);	
		};
		
		//Hover Menu		
		var $navLi = $('#ih-navL1 ul > li');
		var $navDetails = $('div.ih-foWrap');
		var hoverConfig = {sensitivity: 3, interval: 50, over: showMenu, timeout: 300, out: hideMenu };
		//animation functions
		function showMenu() {
			$('> div', this).slideDownFade(500, 'swing');
		};
		function hideMenu() {
			$('> div', this).slideUp('fast');
		};
		//animate menu with delay
		$navLi.hoverIntent(hoverConfig);
	});