$(document).ready(function(){
	
	//Fix Errors - http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup/
	
	//Remove outline from links
//	$("a").click(function(){
//		$(this).blur();
//	});
	
	//When mouse rolls over
//	$("#login").mouseover(function(){
//		$(this).stop().animate({height:'400px'},{queue:false, duration:300, easing: 'easeOutSine'})
//	});
	
	//When mouse is removed
//	$("#login").mouseout(function(){
//		$(this).stop().animate({height:'18px'},{queue:false, duration:300, easing: 'easeOutSine'})
//	});
	
	//When mouse rolls over
//	$("#shopping_cart").mouseover(function(){
//		$(this).stop().animate({height:'400px'},{queue:false, duration:300, easing: 'easeOutSine'})
//	});
	
	//When mouse is removed
//	$("#shopping_cart").mouseout(function(){
//		$(this).stop().animate({height:'18px'},{queue:false, duration:300, easing: 'easeOutSine'})
//	});




//$('#shopping_cart').mouseenter(function() {
//  $('#shopping_cart_expander').fadeIn('fast', function() {
//    // Animation complete.
//  });
//});
//$('#shopping_cart').mouseleave(function() {
//  $('#shopping_cart_expander').fadeOut('fast', function() {
//    // Animation complete.
//  });
//});  	




$("#shopping_cart").hoverIntent(function(){
$('#shopping_cart_expander').fadeIn('fast');
},function(){
$('#shopping_cart_expander').fadeOut('fast');
});

$("#login").hoverIntent(function(){
$('#login_expander').fadeIn('fast');
},function(){
$('#login_expander').fadeOut('fast');
});

});
