	$(function() {
		$('.day_description').hide();
		//$('a.day_heading').click(function() {
			// $(this).next('.day_description').slideToggle(200);
			// $(this).anchorAnimate();
			// event.preventDefault();
		// });
		
		$('a.day_heading').anchorAnimate();
	});
	
	jQuery.fn.anchorAnimate = function(settings) {
	 	settings = jQuery.extend({
			speed : 1100
		}, settings);
		
		return this.each(function(){
			var caller = this;
			$(this).click(function (event) {
				event.preventDefault();
				$(this).next('.day_description').slideToggle(200);
				
				var locationHref = window.location.href;
				var elementClick = $(this).attr('href');
				
				var destination = $(elementClick).offset().top;
				$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, settings.speed, function() {
					window.location.hash = elementClick;
				});
			  	return false;
			})
		})
	}	

