$(document).ready(function() {
	$('a.therapy-trigger').click(function(){//in place of toggle
		if($('#therapy_services').is(':visible')){//add/remove class open/closed depending on visible state
			$('#therapy_services').removeClass('open').addClass('closed').stop().animate({ bottom: "0px", height: "0px", marginBottom: "0px" }, 300, function(){
				$(this).hide();
			});
		}
		else{
			$('#therapy_services').removeClass('closed').addClass('open').stop().animate({ bottom: "0px", height: "450px", marginBottom: "0px" }, 600);
		}
		return false;
	});
	$('#therapy_services a.therapy-close').click(function(){//same function, but with the 'X' button instead
		if($('#therapy_services').is(':visible')){
			$(this).parent().removeClass('open').addClass('closed').stop().animate({ bottom: "0px", height: "0px", marginBottom: "0px" }, 300, function(){
				$(this).hide();
			});
		}
		else{
			$(this).parent().removeClass('closed').addClass('open').stop().animate({ bottom: "0px", height: "450px", marginBottom: "0px" }, 600);
		}
		return false;
	});
});