// JavaScript Document

function banneranimatexto (){
	$('#banner3').pShadow();
	$('#inovacao').animate({ marginLeft: "240px", opacity: 1 }, 1500, function () {
		$('#design').animate({ marginLeft: "210px", opacity: 1 }, 1250, function () {
			$('#tecnologia').animate({ marginLeft: "90px", opacity: 1 }, 1250, function () {
				$('#resistencia').animate({ marginLeft: "10px", opacity: 1 }, 1000, function () {
				
				$('#inovacao').animate({ marginLeft: "-150px", opacity: 0 }, 1500, function () {
					$('#design').animate({ marginLeft: "-150px", opacity: 0 }, 1250, function () {
						$('#tecnologia').animate({ marginLeft: "-180px", opacity: 0 }, 1000, function () {
							$('#resistencia').animate({ marginLeft: "-150px", opacity: 0 }, 1000, function () {
								again();
							})
						})
						})
					})
				})
				
			})
		})
	})
}

function again(){
	$('#inovacao').animate({ marginLeft: "240px", opacity: 1 }, 1500, function () {
		$('#design').animate({ marginLeft: "210px", opacity: 1 }, 1250, function () {
			$('#tecnologia').animate({ marginLeft: "90px", opacity: 1 }, 1250, function () {
				$('#resistencia').animate({ marginLeft: "10px", opacity: 1 }, 1000, function () {
				
				$('#inovacao').animate({ marginLeft: "-150px", opacity: 0 }, 1500, function () {
					$('#design').animate({ marginLeft: "-150px", opacity: 0 }, 1250, function () {
						$('#tecnologia').animate({ marginLeft: "-180px", opacity: 0 }, 1000, function () {
							$('#resistencia').animate({ marginLeft: "-150px", opacity: 0 }, 1000, function () {
								again();
							})
						})
						})
					})
				})
				
			})
		})
	})
};
