
$(document).ready(function(){

	$.fn.showHide = function(dayID){
		$(this).click(function(){
			if ($(this).hasClass("Closed")) {
				$(this).removeClass("Closed").children(".toggle").text("hide").parent().parent().next().show().nextAll("."+dayID).show();
			}
			else {
				$(this).addClass("Closed").children(".toggle").text("show").parent().parent().next().hide().nextAll("."+dayID).hide();
			}
		});
	}

	$("#content th.fri").showHide("fri");
	$("#content th.sat").showHide("sat");
	$("#content th.sun").showHide("sun");

//	$("#map").hide();
	$("#mapLink span").click(function() {
		if ($(this).hasClass("Open")) {
			$(this).removeClass("Open");
			$(this).parent().next().slideUp('fast');
			$("body").css("background","url(images/bg.jpg) 0px 0px repeat-x #ffffff");
		}
		else {
			$(this).addClass("Open");
			$(this).parent().next().slideDown('fast');
			$("body").css("background","");
		}
	});

	i=10
	$("#navLeft a:first")
	.css("margin-right",i+"px")
	.next().css("margin-right",i-2+"px")
	.next().css("margin-right",i-4+"px")
	.next().css("margin-right",i-6+"px")
	.next().css("margin-right",i-8+"px");
	$("#navRight a:first")
	.css("margin-left",i+"px")
	.next().css("margin-left",i-2+"px")
	.next().css("margin-left",i-4+"px")
	.next().css("margin-left",i-6+"px")
	.next().css("margin-left",i-8+"px");

	$("#message").click(function(){
		$(this).fadeOut('fast');
	});

});
