//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 = 733;
    minWidth = 29;	

    $("#slider ul li").hover(
      function(){
        $(lastBlock).animate({width: minWidth+"px"}, { queue:false, duration:400 });
		$(this).animate({width: maxWidth+"px"}, { queue:false, duration:400});
		lastBlock = this;
      }
    );
});

    $(document).ready(function() {
        //Activate FancyBox
    $("div.photoGrid a").fancybox({
            'hideOnContentClick': true
        });
    });


