
$(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
	$("#menu li").mouseover(function(){
		$(this).stop().animate({height:$(this).attr('height')+'px'},{queue:false, duration:600, easing: 'easeOutBounce'});
		
	});
	
	//When mouse is removed
	$("#menu li").mouseout(function(){
		$(this).stop().animate({height:'38px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});
	
    /*$('img').hover(function() {
        var currentImg = $(this).attr('src');
        $(this).attr('src', $(this).attr('hover'));
        $(this).attr('hover', currentImg);
    }, function() {
        var currentImg = $(this).attr('src');
        $(this).attr('src', $(this).attr('hover'));
        $(this).attr('hover', currentImg);
    });*/	
	

    $('#menu li').hover(function() {
        var currentImg = $('img:first',this).attr('src');
        $('img:first',this).attr('src', $('img:first',this).attr('hover'));
        $('img:first',this).attr('hover', currentImg);
    }, function() {
        var currentImg = $('img:first',this).attr('src');
        $('img:first',this).attr('src', $('img:first',this).attr('hover'));
        $('img:first',this).attr('hover', currentImg);
    });


    $('.rollover').hover(function() {
        var currentImg = $(this).attr('src');
        $(this).attr('src', $(this).attr('hover'));
        $(this).attr('hover', currentImg);
    }, function() {
        var currentImg = $(this).attr('src');
        $(this).attr('src', $(this).attr('hover'));
        $(this).attr('hover', currentImg);
    });

	$(".category-list a").hover(function(){
		$(this).children("span").fadeOut();
	}, function(){
		$(this).children("span").fadeIn();
	});
	
});