/*funcao q grava o historico de navegacao*/
	function pageload(hash) {
		if(hash) {
			// restore ajax loaded state
			 //alert(hash);
			 //$("#load").load(hash + ".php");
			 	 HistoricoNavegador(hash);
			} else {
				// start page
				//alert('aqui');
				$("#load").empty();
			}
	}

	$(document).ready(function(){
		// Initialize history plugin.
		// The callback is called at once by present location.hash. 
		
		$.historyInit(pageload);
		//alert($.historyInit(pageload));
		// set onlick event for buttons
		$("a[@rel='history']").click(function(){
			// 
			var hash = this.href;
			hash = hash.replace(/^.*#/, '');
			// moves to a new page. 
			// pageload is called at once. 
			$.historyLoad(hash);
			//alert($.historyLoad(hash));
			return false;
		});
	});