jQuery(document).ready(function() {
						   
	var hash = window.location.hash.substr(1);
	var href = jQuery('#naf li a').each(function(){
		var href = jQuery(this).attr('href');
		if(hash==href.substr(0,href.length-0)){
			var toLoad = hash+' #isine';
			jQuery('#isine').load(toLoad);
		}
	});

	jQuery('#naf li a').click(function(){
								  
		var toLoad = jQuery(this).attr('href')+' #isine';
		jQuery('#isine').hide('fast',loadContent);
		jQuery('#load').remove();
		jQuery('#wrapper').append('<span id="load"></span>');
		jQuery('#load').fadeIn('normal');
		window.location.hash = jQuery(this).attr('href').substr(0,jQuery(this).attr('href').length-0);
		function loadContent() {
			jQuery('#isine').load(toLoad,'',showNewContent())
		}
		function showNewContent() {
			jQuery('#isine').show('fast',hideLoader());
		}
		function hideLoader() {
			jQuery('#load').fadeOut('normal');
		}
		return false;
		
	});

});


