/* <![CDATA[ */
$(document).ready(function(){
    $('.chart').click(function(){
        $("div.panel-1").animate({height: "500px"}).animate({height: "370px" }, "fast",
	        function(){$("div.panel-contents").fadeIn("slow");});//);
    });
    $('.staffLogin').click(function(){
        $("div.panel-2").animate({height: "530px"}).animate({height: "250px" }, "fast",
	        function(){$("div.panel-contents").fadeIn("slow");});//);
    });
    
    function closePanels(){
        $("div.panel-1").animate({height: "520px"}).animate({height: "0px",top:"0px"}, "fast", function(){$(this).hide();});
        window.setTimeout(function(){
        $("div.panel-2").animate({height: "550px"}).animate({height: "0px",top:"0px"}, "fast", function(){$(this).hide();});
        }, 100);
    }
    // on click fadeOut content then call closePanels() to send them up
    $('div.panel-close').click(function(){
        $('div.panel-contents').fadeOut("fast",closePanels());	
    });     
});
/* ]]> */