
jQuery(document).ready(function(){	
	$('#intro').hide();
	$('#intro h1').hide();
	$('#sublink2').hide();
	$('#sublink3').hide();
	$('#sublink6').hide();
	
	
	var background = new Image();
	var titulo = new Image();
	
	$(background).load(function () {
		$('#intro').css("background-image", "url(imagens/fundo-container.png)").fadeIn('1000');
	}).error(function () {
	}).attr('src', 'imagens/fundo-container.png');
	
	$(titulo).load(function () {
		$('#conteudo').show();
		$('#intro h1').css("background-image", "url(imagens/intro-logo.png)").fadeIn('2000');
		$('#container').delay(800).animate({scrollLeft : '+=1000px'}, 1000, 'easeInOutQuart');
	}).error(function () {
	}).attr('src', 'imagens/intro-logo.png');
	
	
	
	$('#load').load('inicial.html', function(){
		var fundos = new Image();
		
		$('#load').hide();			
		$(fundos).load(function () {
			$("#load").fadeIn(); 
		}).error(function () {
		}).attr('src', 'imagens/inicial-imagem.jpg');								 
	});
	
});
