// JavaScript Document

function GoHome()
{
	window.location.pathname='/';
	window.location.href='/';
}

/* Utility Functions */
$(document).ready(
	function()
	{
		// make sure that closing the page navigates away directly (rather than closing it first)
		// otherwise during the time it takes to load the new page, the user can have already clicked on
		// another navigation link and been taken to one of the content pages directly (i.e. not within an ajax popup)
		$('#screen').unbind("click");
		$('#titleBar a').unbind("click");

		$('#screen').bind("click", GoHome);
		$('#titleBar a').bind("click", GoHome);
	}
);

