/*
$(function() {
$("#centro").hide();

			  round = new swfir();
	  	round.specify('src', 'js/swfir.swf');
	  	round.specify('link', '#');
	  	round.swap("img.mnImg");
$.post("noticias.php",function(data) { document.getElementById('noticias').innerHTML = data; });
	$("#Carregando").hide();
	$.post("inicial.php",function (data) { 
	document.getElementById("centro").innerHTML = data; 
		$("#centro").fadeIn("slow"); 
	});
	$("#procura").click(function() {
		if(this.value == 'Busca') this.value = '';
	});
		$("#procura").blur(function() {
		if(this.value == '') this.value = 'Busca';
	});
	$("li[@foo=noticia]").hide();
	//$("li[@id^='nt']").hide();
	$("#nt1").fadeIn("slow");
	
/*	
	$("#Empresa").click(function() {
			
		$("#centro").fadeOut("slow",function() {		
		carregando();
		$.post("empresa.php",function (data) { 
			document.getElementById("centro").innerHTML = data; 
			  round = new swfir();
	  	round.specify('src', 'js/swfir.swf');
	  	round.specify('border-radius', '5');
	  	round.swap("img#img");
		$("#centro").fadeIn("slow"); 
		});
		});
	});

		$("#voltaHome").click(function() {
		$("#centro").fadeOut("slow",function() {		
		carregando();
		$.post("inicial.php",function (data) { 
			document.getElementById("centro").innerHTML = data; 
		$("#centro").fadeIn("slow"); 
		});
		});
	});
		
				$("#faleconosco").click(function() {
		$("#centro").fadeOut("slow",function() {		
		carregando();
		$.post("faleconosco.php",function (data) { 
			document.getElementById("centro").innerHTML = data; 
			$("input[@type=text]").css({border: "none"});
			$("textarea").css({border: "none"});
		$("#centro").fadeIn("slow"); 
		});
		});
	});
	$("#bBusca").click(function() {
		$("#centro").fadeOut("slow",function() {		
		carregando();
		$.post("busca.php",{busca: document.getElementById('procura').value},function (data) { 
			document.getElementById("centro").innerHTML = data; 
		$("#centro").fadeIn("slow"); 
		});
		});
	});
	
		$("#Parceria").click(function() {
		$("#centro").fadeOut("slow",function() {		
		carregando();
	
function passa(pagina) {
	$("#passaProdutos").click(function() {
									   carregando();
		pagina = document.getElementById('sec').value;
		$.post("parceria.php",{pag: pagina},function (data) { 
			document.getElementById("centro").innerHTML = data;
			round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img#img");
			
			$("#ft1").click(function() {					
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
				$("#ft2").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			$("#ft3").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			passa();
			volta();
			$("#centro").fadeIn("slow"); 	
		});
	});
}
function paginacao(pagina) {
		carregando();
		pagina = document.getElementById('sec').value;
		$.post("parceria.php",{pag: pagina},function (data) { 
			document.getElementById("centro").innerHTML = data;
			round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img#img");
			
			$("#ft1").click(function() {					
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
				$("#ft2").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			$("#ft3").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			passa();
			volta();
			$("#centro").fadeIn("slow"); 	
		});
	
}
/*
function volta() {
	$("#voltaProdutos").click(function() {
									   carregando();
		pagina = document.getElementById('volta').value;
		$.post("parceria.php",{pag: pagina},function (data) { 
			document.getElementById("centro").innerHTML = data;
			round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img#img");
			
			$("#ft1").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			$("#ft2").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			$("#ft3").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			volta();
			passa();
			$("#centro").fadeIn("slow"); 

		});
	});
}
		$.post("parceria.php",function (data) { 
										carregando();
			document.getElementById("centro").innerHTML = data; 
			$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
								round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					passa();
					volta();
		$("#centro").fadeIn("slow"); 
		});
		});
	});

	
			$("#Dicas").click(function() {
		$("#centro").fadeOut("slow",function() {		
		carregando();

function passa() {
	$("#passaProdutos").click(function() {
									   carregando();
		pagina = document.getElementById('sec').value;
		$.post("dicas.php",{pag: pagina},function (data) { 
			document.getElementById("centro").innerHTML = data;
			round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img#img");
			
			$("#ft1").click(function() {					
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
				$("#ft2").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			$("#ft3").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			passa();
			volta();
			$("#centro").fadeIn("slow"); 	
		});
	});
}

function volta() {
	$("#voltaProdutos").click(function() {
		pagina = document.getElementById('volta').value;
		$.post("dicas.php",{pag: pagina},function (data) { 
												   carregando();
			document.getElementById("centro").innerHTML = data;
			round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img#img");
			
			$("#ft1").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			$("#ft2").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			$("#ft3").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			volta();
			passa();
			$("#centro").fadeIn("slow"); 
		
		});
	});
}
		$.post("dicas.php",function (data) { 
									 carregando();
			document.getElementById("centro").innerHTML = data; 
			$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
								round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					passa();
					volta();
		$("#centro").fadeIn("slow"); 
		});
		});
	});

	
		$("#Portfolio").click(function() {
		$("#centro").fadeOut("slow",function() {		
		carregando();
function passa() {
	$("#passaProdutos").click(function() {
		pagina = document.getElementById('sec').value;
		$.post("portfolio.php",{pag: pagina},function (data) {
			carregando();
			document.getElementById("centro").innerHTML = data;
			round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img#img");
			
			$("#ft1").click(function() {					
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
				$("#ft2").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			$("#ft3").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			passa();
			volta();
			$("#centro").fadeIn("slow"); 	
		});
	});
}
function volta() {
	$("#voltaProdutos").click(function() {
		pagina = document.getElementById('volta').value;
		$.post("portfolio.php",{pag: pagina},function (data) { 
													   carregando();
			document.getElementById("centro").innerHTML = data;
			round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img#img");
			
			$("#ft1").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			$("#ft2").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			$("#ft3").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			volta();
			passa();
			$("#centro").fadeIn("slow"); 
		
		});
	});
}
		$.post("portfolio.php",{index: 'ok'},function (data) { 
			document.getElementById("centro").innerHTML = data; 
			carregando();

		
	
						round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img#img");

			$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
								round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					passa();
					volta();
		$("#centro").fadeIn("slow"); 
		});
		});
	});

		$("#Produtos").click(function() {
		$("#centro").fadeOut("slow",function() {		
		carregando();
	
		function passa() {
	$("#passaProdutos").click(function() {
		pagina = document.getElementById('sec').value;
		$.post("produtos.php",{pag: pagina},function (data) { 
													  carregando();
			document.getElementById("centro").innerHTML = data;
			round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img.prod");
			
			$("#ft1").click(function() {					
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img.prod");
			});
				$("#ft2").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img.prod");
			});
			$("#ft3").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img.prod");
			});
			passa();
			volta();
			$("#centro").fadeIn("slow"); 	
		});
	});
}
function volta() {
	$("#voltaProdutos").click(function() {
		pagina = document.getElementById('volta').value;
		$.post("produtos.php",{pag: pagina},function (data) { 
													  carregando();
			document.getElementById("centro").innerHTML = data;
			round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img.prod");
			
			$("#ft1").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img.prod");
			});
			$("#ft2").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img.prod");
			});
			$("#ft3").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img.prod");
			});
			volta();
			passa();
			$("#centro").fadeIn("slow"); 
		
		});
	});
}

		$.post("produtos.php",{index: 'ok'},function (data) { 
			document.getElementById("centro").innerHTML = data;
			carregando();
			round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img#img");
			passa();
			volta();
		$("#centro").fadeIn("slow"); 
		});
		});
	});
			$("#Lojas").click(function() {
		$("#centro").fadeOut("slow",function() {		
		carregando();
				function passa() {
	$("#passaProdutos").click(function() {
									   carregando();
		pagina = document.getElementById('sec').value;
		$.post("produtos.php",{pag: pagina},function (data) { 
			document.getElementById("centro").innerHTML = data;
			round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img.prod");
			
			$("#ft1").click(function() {					
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img.prod");
			});
				$("#ft2").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img.prod");
			});
			$("#ft3").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img.prod");
			});
			passa();
			volta();
			$("#centro").fadeIn("slow"); 	
		});
	});
}
function volta() {
	$("#voltaProdutos").click(function() {
									   carregando();
		pagina = document.getElementById('volta').value;
		$.post("produtos.php",{pag: pagina},function (data) { 
			document.getElementById("centro").innerHTML = data;
			round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img.prod");
			
			$("#ft1").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img.prod");
			});
			$("#ft2").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img.prod");
			});
			$("#ft3").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img.prod");
			});
			volta();
			passa();
			$("#centro").fadeIn("slow"); 
		
		});
	});
}
		$.post("lojas.php",{index: 'ok'},function (data) { 
									 carregando();
			document.getElementById("centro").innerHTML = data;
						round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img#img");
 passa();
 volta();
		$("#centro").fadeIn("slow"); 
		});
		});
	});

		$("#Fotos").click(function() {


		$("#centro").fadeOut("slow",function() {		
		carregando();

		$.post("fotos.php",function (data) { 
									 carregando();
			document.getElementById("centro").innerHTML = data;
						round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img.prod");
 
		$("#centro").fadeIn("slow"); 
		});
		});
	});
		$("#Vidro").click(function() {			
		$("#centro").fadeOut("slow",function() {
		carregando();
		
		
		$.post("vidro.php",{act: 'Oque'},function (data) { 
												   carregando();
			document.getElementById("centro").innerHTML = data;
			setaMenus(); 
			round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img#img");
			$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});

			$("#mInternas").hide();
			$("#bInternas").click(function() {
				$("#mInternas").fadeIn("slow");
			});
			$("#bExternas").click(function() {
				$("#mInternas").fadeOut("slow");
			});
			$("#VidroTemperado").click(function() {
				$.post("vidro.php",{act: 'VidroTemperado'},function(data) {
																	carregando();
					document.getElementById("centro").innerHTML = data; 
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					setaMenus();
				});
			});
						$("#Historia").click(function() {
				$.post("vidro.php",{act: 'Historia'},function(data) {
															  carregando();
					document.getElementById("centro").innerHTML = data; 
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					setaMenus();
				});
			});
						$("#Oque").click(function() {
				$.post("vidro.php",{act: 'Oque'},function(data) {
														  carregando();
					document.getElementById("centro").innerHTML = data; 
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					setaMenus();
				});
			});
						$("#Aplicacao").click(function() {
				$.post("vidro.php",{act: 'aplicacoes', tipo: 'Box'},function(data) {
																			 carregando();
					document.getElementById("centro").innerHTML = data; 
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					setaMenus('5');
				});
			});
			$("#centro").fadeIn("slow"); 
		});
		});
	});

*/


function setaMenus(menu,produto) {
			if(menu==1) {
				$.post("vidro.php",{act: 'aplicacoes'},function(data) {
					document.getElementById("centro").innerHTML = data; 
					$("#mInternas").hide();
			$("#bInternas").click(function() {
				$("#mInternas").fadeIn("slow");
			});
			$("#bExternas").click(function() {
				$("#mInternas").fadeOut("slow");
								$.post("vidro.php",{act: 'aplicacoes', tipo: 'Externas'},function(data) {
									document.getElementById("centro").innerHTML = data; 
								$("#bInternas").click(function() {
				$("#mInternas").fadeIn("slow");
			});
			$("#bExternas").click(function() {
				$("#mInternas").fadeOut("slow");
			});

					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
				});

			});
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
				});
			} 
			if(menu==2) {
				$.post("vidro.php",{act: 'VidroTemperado'},function(data) {
					document.getElementById("centro").innerHTML = data; 
					
								$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					});
			}
			if(menu==3) {
				$.post("vidro.php",{act: 'Historia'},function(data) {
					document.getElementById("centro").innerHTML = data; 
								$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
				});
			}
			
			if(menu==4) {
				$.post("vidro.php",{act: 'Oque'},function(data) {
					document.getElementById("centro").innerHTML = data; 
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
				});
			}
			
			
			if(menu==5) {
				$.post("vidro.php",{act: 'VidroLaminado'},function(data) {
					document.getElementById("centro").innerHTML = data; 
					
								$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					});
			}
			
			
			/* DESABILITADO, USADO NO MENU APLICAÇÕES QUE FOI SUBSTITUIDO POR VIDRO LAMINADO
			if(menu==5) {
				$.post("vidro.php",{act: 'aplicacoes', tipo: 'Box'},function(data) {
					document.getElementById("centro").innerHTML = data; 
			$("#bInternas").click(function() {
				$("#mInternas").fadeIn("slow");
			});
			$("#bExternas").click(function() {
				$("#mInternas").fadeOut("slow");
								$.post("vidro.php",{act: 'aplicacoes', tipo: 'Externas'},function(data) {
									document.getElementById("centro").innerHTML = data; 
								$("#bInternas").click(function() {
				$("#mInternas").fadeIn("slow");
			});
			$("#bExternas").click(function() {
				$("#mInternas").fadeOut("slow");
			});

					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
				});

			});			$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
				});
			}
			
						if(menu==6) {
				$.post("vidro.php",{act: 'aplicacoes', tipo: 'MoveisVidro'},function(data) {
					document.getElementById("centro").innerHTML = data; 
								$("#bInternas").click(function() {
				$("#mInternas").fadeIn("slow");
			});
			$("#bExternas").click(function() {
				$("#mInternas").fadeOut("slow");
								$.post("vidro.php",{act: 'aplicacoes', tipo: 'Externas'},function(data) {
									document.getElementById("centro").innerHTML = data; 
								$("#bInternas").click(function() {
				$("#mInternas").fadeIn("slow");
			});
			$("#bExternas").click(function() {
				$("#mInternas").fadeOut("slow");
			});

					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
				});

			});
			$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
				});
			}

			if(menu==7) {
				$.post("vidro.php",{act: 'aplicacoes', tipo: 'Espelhos'},function(data) {
					document.getElementById("centro").innerHTML = data; 
								$("#bInternas").click(function() {
				$("#mInternas").fadeIn("slow");
			});
			$("#bExternas").click(function() {
				$("#mInternas").fadeOut("slow");
								$.post("vidro.php",{act: 'aplicacoes', tipo: 'Externas'},function(data) {
									document.getElementById("centro").innerHTML = data; 
								$("#bInternas").click(function() {
				$("#mInternas").fadeIn("slow");
			});
			$("#bExternas").click(function() {
				$("#mInternas").fadeOut("slow");
			});

					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
				});

			});
			$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
				});
			}

			if(menu==8) {
				$.post("vidro.php",{act: 'aplicacoes', tipo: 'PortasJanelas'},function(data) {
																					   carregando();
					document.getElementById("centro").innerHTML = data; 
								$("#bInternas").click(function() {
				$("#mInternas").fadeIn("slow");
			});
			$("#bExternas").click(function() {
				$("#mInternas").fadeOut("slow");
								$.post("vidro.php",{act: 'aplicacoes', tipo: 'Externas'},function(data) {
									document.getElementById("centro").innerHTML = data; 
								$("#bInternas").click(function() {
				$("#mInternas").fadeIn("slow");
			});
			$("#bExternas").click(function() {
				$("#mInternas").fadeOut("slow");
			});

					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
				});

			});
			$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
				});
			}

			if(menu==9) {
				$.post("vidro.php",{act: 'aplicacoes', tipo: 'Outros'},function(data) {
																				carregando();
					document.getElementById("centro").innerHTML = data; 
								$("#bInternas").click(function() {
				$("#mInternas").fadeIn("slow");
			});
			$("#bExternas").click(function() {
				$("#mInternas").fadeOut("slow");
				$.post("vidro.php",{act: 'aplicacoes', tipo: 'Externas'},function(data) {
									document.getElementById("centro").innerHTML = data; 
								$("#bInternas").click(function() {
				$("#mInternas").fadeIn("slow");
			});
			$("#bExternas").click(function() {
				$("#mInternas").fadeOut("slow");
			});

					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
				});
			});
			$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
				});
			}
			*/
						if(menu==11) {
				$.post("empresa.php",{tipo: 'Empresa'},function(data) {
					document.getElementById("centro").innerHTML = data; 
					
								$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					});
			}
			
			if(menu==12) {
				$.post("empresa.php",{tipo: 'Equipe'},function(data) {
					document.getElementById("centro").innerHTML = data; 
					
								$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					});
			}
			
			if(menu==13) {
				$.post("empresa.php",{tipo: 'Estrutura'},function(data) {
					document.getElementById("centro").innerHTML = data; 
					
						$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					});
			}
			if(menu==14) {
				$.post("empresa.php",{tipo: 'Promocoes'},function(data) {
					document.getElementById("centro").innerHTML = data; 
					
						$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					});
			}			
			if(menu=="produtos") {
				$.post("produtos.php",{id: produto},function(data) {
					document.getElementById("centro").innerHTML = data; 
					
								$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					});
			}

			if(menu=="portfolio") {
				$.post("portfolio.php",{id: produto},function(data) {
					document.getElementById("centro").innerHTML = data; 
					
								$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					});
			}
			if(menu=="lojas") {
				$.post("lojas.php",{id: produto},function(data) {
					document.getElementById("centro").innerHTML = data; 
					
								$("#ft1").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
						$("#ft2").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});
			$("#ft3").click(function() {
					round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
			});round = new swfir();
					round.specify('src', 'js/swfir.swf');
					round.specify("border-radius", "5");
					round.specify("shadow-blur", "5");
					round.swap("img#img");
					});
			}


}
function carregando() {
$("#Carregando").fadeIn("fast");
inter = setInterval(function() {
$("#Carregando").fadeOut("slow"); clearInterval(inter);},4000);
}
function outraNoticia(noticia) {
		$("#centro").fadeOut("slow",function() {		
		carregando();
		$.post("news.php?id="+noticia,{pag: noticia},function (data) { 
			document.getElementById("centro").innerHTML = data; 
			  round = new swfir();
	  	round.specify('src', 'js/swfir.swf');
	  	round.specify('border-radius', '5');
	  	round.swap("img#img");
		$("#centro").fadeIn("slow"); 
		});
		});

}
function Horizontal(quem,quanto){
gInterval = setInterval(function() {
var novo = quem.scrollLeft + quanto;
if(novo>0 && novo<quem.scrollWidth){
quem.scrollLeft = novo;
}else{
clearInterval(gInterval);
}
},500);
}
function paginacao(pagina,secao) {
		carregando();
		$.post(secao+".php",{pag: pagina},function (data) { 
			document.getElementById("centro").innerHTML = data;
			round = new swfir();
			round.specify('src', 'js/swfir.swf');
			round.specify('id','flashIMG');
			round.specify("border-radius", "5");
			round.specify("shadow-blur", "5");
			round.swap("img#img");
			
			$("#ft1").click(function() {					
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
				$("#ft2").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			$("#ft3").click(function() {
				round = new swfir();
				round.specify('src', 'js/swfir.swf');
				round.specify("border-radius", "5");
				round.specify("shadow-blur", "5");
				round.swap("img#img");
			});
			passa();
			volta();
			$("#centro").fadeIn("slow"); 	
		});
	
}
function inicial() {
		$("#centro").fadeOut("slow",function() {		
		carregando();

		$.post("empresa.php",function (data) { 
			document.getElementById("centro").innerHTML = data; 
			  round = new swfir();
	  	round.specify('src', 'js/swfir.swf');
	  	round.specify('border-radius', '5');
	  	round.swap("img#img");
		$("#centro").fadeIn("slow"); 
		});
		});

}

/*
$("input").keypress(function (e) {
 
      if(e.which==13) {

  	$("#centro").fadeOut("slow",function() {		
		carregando();
		$.post("busca.php",{busca: document.getElementById('procura').value},function (data) { 
			document.getElementById("centro").innerHTML = data; 
		$("#centro").fadeIn("slow"); 
		});
		});
  }

});*/
