
	var subnavTimer;

	function hideNavigation() {
		// hide after timeout
		//$("#ajax-subnav").hide();
	}
	
	var handleResponseForNav = function( response ) {
		$("#ajax-subnav").hide();
		$("#ajax-subnav").html( response );
		$("#ajax-subnav").show();
		
		hideNavigation();
	}
	
	function autoHideNavigation() {
		window.clearInterval( subnavTimer );
		$("#ajax-subnav").hide();
	}
	
	function loadNavigation( id ) {
		$( document ).ready( function() {
			window.clearInterval( subnavTimer );
			subnavTimer = window.setInterval( "autoHideNavigation()", 8000 );
			$.get("nav.ajax.php?area=" + id, handleResponseForNav);
		});
	}