
sections = ["#suite", "#dove", "#glider", "#vanadis", "#moneiro", "#niels", "#hermod"];

function show_section(target) {
	for(var i=0; i<sections.length; i++) {
		if(sections[i] != target)
			$(sections[i]).hide();
	}
	$(target).show();
};

$(document).ready(function() {
	$("#menuImageHover1").click(function() {
		show_section("#glider");
		return false;
	});
	$("#menuImageHover2").click(function() {
		show_section("#moneiro");
		return false;
	});
	$("#menuImageHover3").click(function() {
		show_section("#vanadis");
		return false;
	});
	$("#menuImageHover4").click(function() {
		show_section("#niels");
		return false;
	});
	$("#menuImageHover5").click(function() {
		show_section("#hermod");
		return false;
	});
	$("#menuImageHover6").click(function() {
		show_section("#dove");
		return false;
	});
	$("#menuImageHover7").click(function() {
		show_section("#suite");
		return false;
	});
	$("img[name='menuImage']").mouseenter(function(e) {
		id = this.id;
		hoverImage = "#menuImageHover" + id.substring(id.length-1);
		$(hoverImage).show();
		$(this).hide();
	});
	$("img[name='menuImageHover']").mouseleave(function() {
		id = this.id;
		baseImage = "#menuImage" + id.substring(id.length-1);
		$(baseImage).show();
		$(this).hide();
	});
	$("a[name='glider_link']").click(function() {
		show_section("#glider");
		return false;
	});
	$("a[name='moneiro_link']").click(function() {
		show_section("#moneiro");
		return false;
	});
	$("a[name='vanadis_link']").click(function() {
		show_section("#vanadis");
		return false;
	});
	$("a[name='niels_link']").click(function() {
		show_section("#niels");
		return false;
	});
	$("a[name='hermod_link']").click(function() {
		show_section("#hermod");
		return false;
	});
	$("a[name='dove_link']").click(function() {
		show_section("#dove");
		return false;
	});
	$("a[name='platform_link']").click(function() {
		show_section("#suite");
		return false;
	});
});
