var zch = zch || [];
zch.whoWeAre = (function() {
	return {
		showHide: function(e) {
			var isOpen = $(".open");
			$(".zoochee").not(".open").hide();
			$(".zoochee-nav ul li a").click(function(e) {
				$(".zoochee-nav ul li a").removeClass("active");
				$(this).addClass("active");
				var that = $(this).attr("href");
				if($(that).attr("id") !== $(isOpen).attr("id")) {
					$(".open").hide("slide", function(e) {
						isOpen = that;
						$(that).show("slide").addClass("open");
						
					}).removeClass("open");
				}
				e.preventDefault();
			});
		}
	};
})();
	
$(document).ready(function(e) {
	var sHash = window.location.hash;
	if(sHash != "") {
		$("#will").hide("slide", function(e) {
			$(sHash).show("slide").addClass("open");
			$("a[href=#will]").removeClass("active");
			$("a[href=" + sHash + "]").addClass("active");
		}).removeClass("open");
		if((sHash) == "#zoocha-dog") {
			$(".zoocha-dog-hide").show();
		}
		window.scroll(0,150);
	}
	zch.whoWeAre.showHide();
});

