//When the DOM tree is loaded
$(document).ready(function() {

    //Add pointer class to .photo .item
    $(".photo .item").addClass("pointer");

    //Hover over photo fade in hidden span
    $(".photo .item").hover(
        function() {
            $(this).find("span").fadeIn();
        },
        function() {
            $(this).find("span").fadeOut();
        }
    );

});

		$(document).ready(function(){
			lastBlock = $("#a1");
			maxWidth = 850;
			minWidth = 35;	
		
			$("#header ul li").hover(
			  function(){
				$(lastBlock).animate({width: minWidth+"px"}, { queue:false, duration:200 });
			$(this).animate({width: maxWidth+"px"}, { queue:false, duration:200});
			lastBlock = this;
			  }
			);
		});