function fechaPopup(){
	//window.alert('chego na funcao');
	$('#splash').html('');
	$('#splash').remove();
	$('#bgSP').html('');
	$('#bgSP').remove();
}
window.setTimeout("fechaPopup()", 30000);

$(document).ready(function(){

	var bg=$('#footer').css('background-color');
	//var W=$(window).width() +'px';
	var H=$('html').height() +'px';
	$('#bgSP').css({zIndex: 7, position: 'absolute', width: '100%', height: H, backgroundColor: bg}).fadeTo('slow', 0.8);

	$('#menu-temas a').click(function(e){
		e.preventDefault();
		var tema=$(this).attr('rev');
		$('body').attr('class', 'Tema'+ tema);
	});

});