$(document).ready(function(){
	$("#siteContainer").fadeIn("mediun");
	
	
	/* MENU PRINCIPAL DO SITE */
	
	$("#btnHome").click(function(){
		$("#imgCombustivel,#imgPortfolio,#contCombustivel,#contSobreNos,#contContato,#contPortfolio").fadeOut("mediun",function(){
			$("#imgHome").fadeIn("mediun");
		});
	});
	
	$("#btnCombustivel").click(function(){
		$("#contHome,#imgHome,#imgPortfolio,#contSobreNos,#contContato,#contPortfolio").fadeOut("mediun",function(){
			$("#imgCombustivel").fadeIn("mediun");
			$("#contCombustivel").fadeIn("mediun");
		});
	});
	
	$("#btnSobreNos").click(function(){
		$("#contHome,#imgHome,#imgPortfolio,#imgCombustivel,#contCombustivel,#contContato,#contPortfolio").fadeOut("mediun",function(){
			$("#contSobreNos").fadeIn("mediun");
		});
	});
	
	$("#btnContato").click(function(){
		$("#contHome,#imgHome,#imgPortfolio,#imgCombustivel,#contCombustivel,#contSobreNos,#contPortfolio").fadeOut("mediun",function(){
			$("#contContato").fadeIn("mediun");
		});
	});
	
	$("#btnPortfolio").click(function(){
		$("#contHome,#imgHome,#imgCombustivel,#contCombustivel,#contSobreNos,#contContato,#imgPortfolio,.port,.port img").fadeOut("mediun",function(){
			$("#contPortfolio").fadeIn("mediun",function(){
				$("#imgPortfolio").fadeIn("mediun");
				$("#menuPort").fadeIn("mediun");
			});
		});
	});
	
	/* CONTEUDO COMBUSTIVEL */
	
	$(".btnCombOque").click(function(){
		$("#contCombOque").animate({width:"730px"},"mediun",function() {
			$("#imgCombustivel").fadeTo("mediun",0.2);
			$("#contCombOque p").fadeIn("mediun");
		});
	});
	
	$(".btnCombOque").mouseleave(function(){
		$("#contCombOque p").fadeOut("fast",function() {
			$("#imgCombustivel").fadeTo("mediun",1);
			$("#contCombOque").animate({width:"0px"},"mediun",function() {
				$("#contCombOque").hide();
			});
		});
	});
	
	$("#btnCombComo").click(function(){
		$("#contCombComo").animate({width:"730px"},"mediun",function() {
			$("#imgCombustivel").fadeTo("mediun",0.2);
			$("#contCombComo p").fadeIn("mediun");
		});
	});
	
	$("#btnCombComo").mouseleave(function(){
		$("#contCombComo p").fadeOut("fast",function() {
			$("#imgCombustivel").fadeTo("mediun",1);
			$("#contCombComo").animate({width:"0px"},"mediun",function() {
				$("#contCombComo").hide();
			});
		});
	});
	
	$("#btnCombSimples").click(function(){
		$("#contCombSimples").animate({width:"730px"},"mediun",function() {
			$("#imgCombustivel").fadeTo("mediun",0.2);
			$("#contCombSimples p").fadeIn("mediun");
			
		});
	});
	
	$("#btnCombSimples").mouseleave(function(){
		$("#contCombSimples p").fadeOut("fast",function() {
			$("#imgCombustivel").fadeTo("mediun",1);
			$("#contCombSimples").animate({width:"0px"},"mediun",function() {
				$("#contCombSimples").hide();
			});
		});
	});
	
	$("#btnCombEstrutura").click(function(){
		$("#contCombEstrutura").animate({width:"730px"},"mediun",function() {
			$("#imgCombustivel").fadeTo("mediun",0.2);
			$("#contCombEstrutura p").fadeIn("mediun");
		});
	});
	
	$("#btnCombEstrutura").mouseleave(function(){
		$("#contCombEstrutura p").fadeOut("fast",function() {
			$("#imgCombustivel").fadeTo("mediun",1);
			$("#contCombEstrutura").animate({width:"0px"},"mediun",function() {
				$("#contCombEstrutura").hide();
			});
		});
	});
	
	/* SUB MENU DE PORTFOLIO */
	
	$("#btnPromo").mouseover(function(){
		$("#menuPort div").hide();
		$("#submenuPromo").fadeIn("mediun");
	});
	$("#submenuPromo").mouseleave(function(){
		$("#submenuPromo").fadeOut("fast");
	});
	$("#btnEventos").mouseover(function(){
		$("#menuPort div").hide();
		$("#submenuEventos").fadeIn("mediun");
	});
	$("#submenuEventos").mouseleave(function(){
		$("#submenuEventos").fadeOut("fast");
	});
	$("#btnTrade").mouseover(function(){
		$("#menuPort div").hide();
		$("#submenuTrade").fadeIn("mediun");
	});
	$("#submenuTrade").mouseleave(function(){
		$("#submenuTrade").fadeOut("fast");
	});
	$("#btnDesign").mouseover(function(){
		$("#menuPort div").hide();
		$("#submenuDesign").fadeIn("mediun");
	});
	$("#submenuDesign").mouseleave(function(){
		$("#submenuDesign").fadeOut("fast");
	});
	
	/* CASE DO PORTFOLIO */
	$("#portPromocao01").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portPromocao01Cont,.imgPort01").fadeIn("fast");
	});
	$("#portPromocao02").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portPromocao02Cont,.imgPort01").fadeIn("fast");
	});
	$("#portPromocao03").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portPromocao03Cont,.imgPort01").fadeIn("fast");
	});
	$("#portPromocao04").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portPromocao04Cont,.imgPort01").fadeIn("fast");
	});
	$("#portPromocao05").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portPromocao05Cont,.imgPort01").fadeIn("fast");
	});
	$("#portTrade01").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portPromocao02Cont,.imgPort01").fadeIn("fast");
	});
	$("#portTrade01").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portTrade01Cont,.imgPort01").fadeIn("fast");
	});
	$("#portTrade02").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portTrade02Cont,.imgPort01").fadeIn("fast");
	});
	$("#portTrade03").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portTrade03Cont,.imgPort01").fadeIn("fast");
	});
	$("#portTrade04").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portTrade04Cont,.imgPort01").fadeIn("fast");
	});
	$("#portTrade05").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portTrade05Cont,.imgPort01").fadeIn("fast");
	});
	$("#portTrade06").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portTrade06Cont,.imgPort01").fadeIn("fast");
	});
	$("#portTrade07").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portTrade07Cont,.imgPort01").fadeIn("fast");
	});
	$("#portTrade08").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portTrade08Cont,.imgPort01").fadeIn("fast");
	});
	$("#portTrade09").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portTrade09Cont,.imgPort01").fadeIn("fast");
	});
	$("#portTrade10").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portTrade10Cont,.imgPort01").fadeIn("fast");
	});
	$("#portTrade11").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portTrade11Cont,.imgPort01").fadeIn("fast");
	});
	$("#portTrade12").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portTrade12Cont,.imgPort01").fadeIn("fast");
	});
	$("#portTrade13").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portTrade13Cont,.imgPort01").fadeIn("fast");
	});
	$("#portEvento01").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portEvento01Cont,.imgPort01").fadeIn("fast");
	});
	$("#portEvento02").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portEvento02Cont,.imgPort01").fadeIn("fast");
	});
	$("#portEvento03").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portEvento03Cont,.imgPort01").fadeIn("fast");
	});
	$("#portEvento04").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portEvento04Cont,.imgPort01").fadeIn("fast");
	});
	$("#portEvento05").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portEvento05Cont,.imgPort01").fadeIn("fast");
	});
	$("#portEvento06").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portEvento06Cont,.imgPort01").fadeIn("fast");
	});
	$("#portEvento07").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portEvento07Cont,.imgPort01").fadeIn("fast");
	});
	$("#portDesign01").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portDesign01Cont,.imgPort01").fadeIn("fast");
	});
	$("#portDesign02").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portDesign02Cont,.imgPort01").fadeIn("fast");
	});
	$("#portDesign03").click(function(){
		$("#imgPortfolio,.port,.port img").hide();
		$("#portDesign03Cont,.imgPort01").fadeIn("fast");
	});
	
	/* SUB MENU DE NAVEGAÇÃO DAS IMAGENS DO PORTFOLIO */
	$(".btnPort01").click(function(){
		$(".port img").hide();
		$(".port object").hide();
		$(".imgPort01").fadeIn("fast");
	});
	$(".btnPort02").click(function(){
		$(".port img").hide();
		$(".port object").hide();
		$(".imgPort02").fadeIn("fast");
	});
	$(".btnPort03").click(function(){
		$(".port img").hide();
		$(".port object").hide();
		$(".imgPort03").fadeIn("fast");
	});
	$(".btnPort04").click(function(){
		$(".port img").hide();
		$(".port object").hide();
		$(".imgPort04").fadeIn("fast");
	});
	$(".btnPort05").click(function(){
		$(".port img").hide();
		$(".port object").hide();
		$(".imgPort05").fadeIn("fast");
	});
	$(".btnPort06").click(function(){
		$(".port img").hide();
		$(".port object").hide();
		$(".imgPort06").fadeIn("fast");
	});
	$(".btnPort07").click(function(){
		$(".port img").hide();
		$(".port object").hide();
		$(".imgPort07").fadeIn("fast");
	});
	$(".btnPort08").click(function(){
		$(".port img").hide();
		$(".port object").hide();
		$(".imgPort08").fadeIn("fast");
	});
	$(".btnPort09").click(function(){
		$(".port img").hide();
		$(".port object").hide();
		$(".imgPort09").fadeIn("fast");
	});
	$(".btnPort10").click(function(){
		$(".port img").hide();
		$(".port object").hide();
		$(".imgPort10").fadeIn("fast");
	});
	$(".btnPort11").click(function(){
		$(".port img").hide();
		$(".port object").hide();
		$(".imgPort11").fadeIn("fast");
	});
});
