 $("document").ready(function() {
	$("#white-out").fadeTo("fast", 0, function(){
         $(this).css({
			 "height" : $("#container").height()+"px",
			 "display" : "none"
		 });
    }); 
	$(".homepageitems li").hover(
        function () {
           $(this).css("background-position","left top");
        }, 
        function () {
            $(this).css("background-position","-400px top");
        });
	
    $("#footer").hover(
        function () {
            $("#white-out").css("display","block").fadeTo("fast", 0.6);
            $("#footer .col").stop(true, true).animate( {  opacity:"1" }, "fast");  
        }, 
        function () {
            $("#white-out").fadeTo("fast", 0, function(){
                 $("#white-out").css("display","none")
             }); 
            $("#footer .col").stop(true, true).animate( { opacity:"0.5" }, "fast");
        });
	$("ul li:first").addClass("first");
	$("img.showcaption").tooltip({ 
		track: true, 
		extraClass: "w211",
		showURL: false
	});
});