$(document).ready(function(){
	var divhleft=$('.divEsquerdaInterior #subMenuLeft').height();
	var divhright=$('.divDireitaInterior .divGeralGCA').height();
	if	(divhleft>divhright)
		$('.divDireitaInterior .divGeralGCA').height(divhleft);
		$("#divGeralHeaderTOP img").first().show();
		$("#logoTopo img").first().show();	
	if ($("#divGeralHeaderTOP img").length > 1) {
		setTimeout("backgroundimg()", 10000);  
	}
});

function backgroundimg() {    
	$("#divGeralHeaderTOP img").first().appendTo('#divGeralHeaderTOP').fadeOut(5000);
	$("#logoTopo img").first().appendTo('#logoTopo').fadeOut(5000);
	$("#divGeralHeaderTOP img").first().fadeIn(3000);
	$("#logoTopo img").first().fadeIn(3000);
	setTimeout(backgroundimg, 10000);
}

function show_hide(element) {
	$('#'+element).toggle("slow");
}
