$(document).ready(function(){
	Cufon.replace('h3', {fontFamily : 'Chalet'});
	
	$("ul.events li:last").addClass("last");
	
	$("div.newpuffRight.orange div.wrapper").toggleClass("collapsed");
	$("div.newpuffRight.orange div.todayexpand a.readMore").toggleClass("open");
	$("div.newpuffRight.orange div.wrapper").animate({"height": "120px"});
	
	$("div.todayexpand a.readMore").click(function(){
		
		var oldHeight = 120;
		var theParent = $(this).parent();
		var theWrapper = $(theParent).parent();
		
		var theBody = $(theWrapper).find(".wrapper");
		var theContent = $(theWrapper).find(".innerwrapper");

		var theHeight = $(theContent).height();
		$(theBody).toggleClass("collapsed");
		
		if($(theBody).hasClass("collapsed")){
			$(theBody).animate({"height": oldHeight + "px"});
		}
		else{
			$(theBody).animate({"height": theHeight + "px"});
		}
		
		$(this).toggleClass("open");
		
		return false;
	});
	
});
