var zekton = { src:"sifr/font/zekton.swf" };
sIFR.activate(zekton);
sIFR.replace(zekton, {
	selector:"#hdesc",
	css:[".sIFR-root {color: #333333; font-size:14px;}"],
	wmode:"transparent"
});
$(function() {
	$(".pcontent").jScrollPane({
		scrollbarWidth: 10,
		reinitialiseOnImageLoad: true
	});
	$("#menu a").slice(0,6).each(function(i) {
		$(this).click(function(event) {
			$("#menu a").removeClass("active");
			$(this).addClass("active");
			showPage(i);
			return false;
		});
	});
});
function showPage(index) {
	var pages = $("#pages");
	if (!pages.is("animated") && pages.data("index") != index) {
		pages
			.data("index", index)
			.addClass("animated")
			.animate({top:"100%"}, 250, function() {
				$(".page").hide();
				if (index == 0) return false;
				$("#page" + index).show();
				$(this).animate({top:"0%"}, 250, function() {
					$(this).removeClass("animated");
				});	
			});
	}
}
