	function historyLoad(hash)
	{
		// Assign default hash if needed.
		if (!hash)
		{
			hash = $("ul#TabMenu > li:first > a")[0].hash.substring(1);
		}
		
		// Adjust tabs and tab content.
		$("ul#TabMenu > li").removeClass("frontTab");
		$("li.tabBody:visible").hide("fast");

		$("a[hash='#"+hash+"']").parent().addClass("frontTab");
		var tabBody = $("li#" + hash);
		if (tabBody) 
			tabBody.slideDown("slow");

		// Adjust title.
		var i = document.title.indexOf(":");
		if (i > 0)
		{
			document.title = document.title.substr(0, i);
		}
		document.title += ": " + hash;
	}

   $(document).ready(function(){
   	$.historyInit(historyLoad);

		$("a[@rel='tab']").click(function(event) {
			$.historyLoad(this.hash.substring(1));
			
		});
	});
