//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();
        }
    );
    $("#navi .selected").corners("top");
        
    $("#leftnav a").hover(
	function() {				
		$(this).stop().animate({ backgroundColor: "#2F4F75" }, "fast");
	},
	function() {		
		$(this).stop().animate({ backgroundColor: "#4771A3" }, "fast");
	});
    
    $("#leftnav a.selected").hover(
	function() {
		$(this).stop().animate({ backgroundColor: "#2F4F75" }, "fast");	
	},
	function() {		
		$(this).stop().animate({ backgroundColor: "#2F4F75" }, "fast");		
	});

	if ($("#copyright_year"))
    	{
        	var thisYear = (new Date).getFullYear();
        	$("#copyright_year").text(thisYear);
    	}
});
