// HISTORICO
	function pageload(hash) {		
		// hash doesn't contain the first # character.
		if(hash) {
			// restore ajax loaded state
			$("#conteudo").load(hash + ".php");
		} else {
			// start page
			$("#conteudo").load("produtos.php?cat=23");
		}
	}
	
	$(document).ready(function(){
	// Initialize history plugin.
	// The callback is called at once by present location.hash. 
	$.historyInit(pageload);
	// set onlick event for buttons
	$("a[@rel='history']").livequery('click',function(){		
		var hash = this.href;
		hash = hash.replace(/^.*#/, '');
		// moves to a new page. 
		// pageload is called at once. 
		$("#conteudo").html('<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align="center" valign="middle"><img src="img/load.gif" /></td></tr></table>');
		$.historyLoad(hash);
		return false;
	});
	});
	//FIM DO HISTORICO
	
//função mostra Divs
function mostraDivs(){
	$('#conteudo').css({visibility:"visible"});
	$('#divIndique').css({visibility:"visible"});
	$('#divBtCrediario').css({visibility:"visible"});
	$('#menuLateral').css({visibility:"visible"});
}

//Mostra Banner
	function banner(){
		$('#divBanner').css({visibility:"visible"});
		$('#divOverlay').css({visibility:"visible"});
	}

//carregar o flash do fundo
function loadIntro(){
	$('#divFundo').css(
	{visibility:"visible"}
	);
}