$(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({width:'400px'},{queue:false, duration:600})
//		$(this).stop().animate({width:'594px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
	//When mouse is removed
	$(".login").mouseout(function(){
		$(this).stop().animate({width:'75px'},{queue:false, duration:100})
	});*/
	
	//Remove outline from links
	$("a").click(function(){
		$(this).blur();
	});
	
	//new code with delay closing
	$("#loginwrapper").hoverIntent({
		over: makeLoginTall,
		timeout: 20000,
		out: makeLoginShort
	});
	
	function makeLoginTall(){ $("#loginwrapper").animate({"width":425},600);}
	function makeLoginShort(){$("#loginwrapper").animate({"width":38},100); }
	
});
