$(document).ready(function() {  	      
	var hash = window.location.hash.substr(1);	 
	var href = $('#nav td a').each(function() {  	
		var href = $(this).attr('href');  
	        if(hash==href.substr(0,href.length-4)) {  	        
			var toLoad = hash+'. #content';  
			$('#content').load(toLoad); 
	   	}  
	});  

$('#nav td a').click(function() {  
	var toLoad = $(this).attr('href')+' #content';  
	$('#content').hide('slow',loadContent);
	window.location.hash = $(this).attr('href').substr(0,$(this).attr('href').length-4);  
	function loadContent() {  
	    $('#content').load(toLoad,'',showNewContent())  
	}  
	function showNewContent() {  
	    $('#content').show('normal');  
	}  
	return false;  

	});  
    });  

