$(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();
	});
	
	//new code with delay closing
	$("#loginwrapper").hoverIntent({
		over: makeLoginTall,
		timeout: 2000,
		out: makeLoginShort
	});
	
	function makeLoginTall(){ $("#loginwrapper").css("background-color", "#000"); $("#loginwrapper").animate({"width":594},600);}
	function makeLoginShort(){$("#loginwrapper").animate({"width":75},100); $("#loginwrapper").css("background-color", "transparent"); }
		
		/*
	//When mouse rolls over
	$(".login").mouseover(function(){
		$(this).stop().animate({width:'594px'},{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})
	});*/
	
});
