jQuery.fn.fadeToggle = function(speed, easing, callback) {
  return this.animate({opacity: 'toggle'}, speed, easing, callback);
};
$(function(){
	$("#jumpto_sitemap").click(function(){
		$('html,body').animate({ scrollTop: $("#footer").offset().top }, 600);
		$("#footer").animate( { backgroundColor: '#dfc' }, 1000).animate( { backgroundColor: '#f9f7f4' }, 1800);
		return false;
	});
	$("#crumbs a[href^=#]").click(function(){
	    $name = $(this).attr("href").substr(1);
		$('html,body').animate({ scrollTop: $("a[name="+$name+"]").offset().top - 15 }, 600);
		return false;
	});
	$(".to_top").click(function(){
		$('html,body').animate({ scrollTop: $("body").offset().top }, 600);
		return false;
	});
	$("#search").click(function(){
		$('#search_box').fadeToggle();
		return false;
	});
});