$("#banner .section div").not(".active").hide();
$(".more").hide();
$(".readmore").show();

$("#banner .menu a").click(function() {
	$this = $(this);
	if (!$this.hasClass("active")) {
		$(".section .active").slideUp(function() {
			var sectionid = $this.attr('href');
			$("#_"+sectionid.substring(1)).slideDown().addClass("active");

			$("#banner .menu a.active").removeClass("active");
			$this.addClass("active");
					
			$(this).removeClass("active");
		});

		return false;
	}
});

$(".readmore a").click(function() {
	$(this).parent().fadeOut();
	$(this).parent("p").next("div").slideDown();
	return false;
});

var thisUrl = location.href;
var thisUrlAnchor = thisUrl.split("#");
if (thisUrlAnchor[1]) {
	window.scrollTo(0,0);
	$("a[href*=#"+thisUrlAnchor[1]+"]").click();
}	