
$(document).ready(function(){

	$("body#filter h1 a").css("visibility","visible"); 

	// summary view link
	$("a#summary_view_link").click(function() {
		// change body class to one column
		$("body").removeClass('twocol').addClass("onecol");
		// hide the list view
		 $('.list').hide();
		// hide the ongoing events sidebar
		 $('#contents_sidebar').hide();
		// show the summary view
		 $('.event_summary').show();
		// show the list view link
		$('a#list_view_link').show();
		// hide the summary view link
		$('a#summary_view_link').hide();
		return false;
	});

	// list view link
	$("a#list_view_link").click(function() {
		// change body class to two columns
		$("body").removeClass('onecol').addClass("twocol");
		// hide the summary view
		 $('.event_summary').hide();
		// show the list view
		 $('.list').show();
		// show the ongoing events sidebar
		 $('#contents_sidebar').show();
		// show the summary view link
		$('a#summary_view_link').show();
		// hide the list view link
		$('a#list_view_link').hide();
		return false;
	});

});
