$(document).ready(function(){
	$('ul.featured-links li').each(function(){
		var anchor = $(this).find('a').attr('href');
		$(this).click(function(){
			window.location = anchor;				   
		}).css('cursor', 'pointer');
	});

	InitSlideDrop();

});

function InitSlideDrop(){

	var holder = $('#nav>li'),

		_speed = 300,

		_t;	

	holder.each(function (){

		var hold = $(this),

			drop = hold.find('>ul').hide(),

			_h = drop.height();

		//drop.height(0);



		hold.mouseenter(function (){

			//if (_t)clearTimeout(_t);

			//drop.animate({height: _h}, {queue:false, duration:_speed});

			drop.slideDown({duration:_speed})

		}).mouseleave(function (){	

			//if (_t)clearTimeout(_t);

			//_t = setTimeout(function(){

				//drop.animate({height: 0}, {queue:false, duration:_speed});

				drop.slideUp({duration:_speed})

			//}, 20);

		});

	});

};
