// JavaScript Document
var n='1';
var n2='1';
var n3='1';
var n4='1';
//
//bombas v
function prodmenu(status,tipo){
		   if (tipo=='1'){
				if (status=='1'){
					n='0';
					n2='1';
					n3='1';
						produtoa = "<table width='100%'  border='0' cellpadding='0' cellspacing='0' class='texto-04'>";
						produtoa += "<tr><td height='5'></td></tr>";
						produtoa += "<tr><td>&raquo; <a href='produtos_bombasV_tipoTurbina.asp' class='link-03'>Vertical Pumps</a><br> "; 
						produtoa += "&raquo; <a href='produtos_bombasV_formaConstrutiva.asp' class='link-03'>Constructive System</a><br>";
						produtoa += "&raquo; <a href='produtos_bombasV_campoAplicacao.asp' class='link-03'>Hydraulic Coverage of Pumps</a>";
						produtoa += "</td></tr><tr><td height='8'></td></tr></table>";
						produtob = "<td height='10' id='prod2'></td>";
						produtoc = "<td height='10' id='prod2'></td>";
				}else{
						n='1';
					    n2='0';
						n3='0';
						produtoa = "<td height='10' id='prod1'></td>";
						//
						produtob = "<td height='10' id='prod2'></td>";
						produtoc = "<td height='10' id='prod2'></td>";
				}
			}
			//
			if (tipo=='2'){
				if (status=='1'){
					n2='0';
					n='1';
					n3='1';
						produtob = '<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="texto-04">';
						produtob += '<tr><td height="5"></td></tr>';
						produtob += '<tr><td>&raquo; <a href="produtos_bombasR_escoMaster.asp" class="link-03">Esco Master Self-repriming Line</a><br> ';
						produtob += '&raquo; <a href="produtos_bombasR_modelos.asp" class="link-03">Models</a><br> ';
						produtob += '&raquo; <a href="produtos_bombasR_mapa.asp" class="link-03">Selection map</a><br>';
						produtob += '&raquo; <a href="produtos_bombasR_materiais.asp" class="link-03">Construction Materials</a></td>';
						produtob += '</tr></tr><td height="8"></td></tr></table>';
						//
						produtoa = "<td height='10' id='prod2'></td>";
						produtoc = "<td height='10' id='prod2'></td>";
				}else{
						n2='1';
						n='0';
						n3='0';
						produtob = "<td height='10' id='prod1'></td>";
						//
						produtoa = "<td height='10' id='prod2'></td>";
						produtoc = "<td height='10' id='prod2'></td>";
				}
			}
			//
			if (tipo=='3'){
				if (status=='1'){
					n3='0';
					n2='1';
					n='1';
						 produtoc = '<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="texto-04">';
						 produtoc += '<tr><td height="5"></td></tr><tr>'; 
						 produtoc += '<td>&raquo; <a href="produtos_valvulas_escoMaster.asp?id=1" class="link-03">Esco Master Line</a><br> ';
						 produtoc += '&raquo; <a href="produtos_valvulas_pm.asp?id=1" class="link-03">PM Line</a><br>'; 
						 produtoc += '</td></tr><tr><td height="8"></td></tr></table>';
						//
						produtoa = "<td height='10' id='prod2'></td>";
						produtob = "<td height='10' id='prod2'></td>";
				}else{
						n3='1';
						n2='0';
					    n='0';
						produtoc = "<td height='10' id='prod1'></td>";
						//
						produtoa = "<td height='10' id='prod2'></td>";
						produtob = "<td height='10' id='prod2'></td>";
				}
			}
			prod1.innerHTML = produtoa;
			prod2.innerHTML = produtob;
			prod3.innerHTML = produtoc;
	}
	
//Apoio ao cliente
function apoiomenu(status,tipo){
		   if (tipo=='1'){
				if (status=='1'){
					n='0';
					n2='1';
					n3='1';
					n4='1';
						apoioa = "<table width='100%'  border='0' cellpadding='0' cellspacing='0' class='texto-04'>";
						apoioa += "<tr><td height='5'></td></tr>";
						apoioa += "<tr><td>In order to have access to the Pump Selection software, please fill in the registration form by clicking on the corresponding link in this page. This software was specially developed so that our client can choose the best equipment for his/her installation (description of the products, performance curves, drawings and technical data).";
						apoioa += "</td></tr><tr><td height='8'></td></tr></table>";
						//
						apoiob = "<td height='10' id='prod2'></td>";
						apoioc = "<td height='10' id='prod2'></td>";
						apoiod = "<td height='10' id='prod2'></td>";
				}else{
						n='1';
					    n2='0';
						n3='0';
						n4='0';
						apoioa = "<td height='10' id='prod1'></td>";
						//
						apoiob = "<td height='10' id='prod2'></td>";
						apoioc = "<td height='10' id='prod2'></td>";
						apoiod = "<td height='10' id='prod2'></td>";
				}
			}
			//
			if (tipo=='2'){
				if (status=='1'){
					n2='';
					n='1';
					n3='1';
					n4='1';
						apoiob = '<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="texto-04">';
						apoiob += '<tr><td height="5"></td></tr>';
						apoiob += '<tr><td>Keep track of your product order.<br>UNDER CONSTRUCTION.</td>';
						apoiob += '</tr></tr><td height="8"></td></tr></table>';
						//
						apoioa = "<td height='10' id='prod2'></td>";
						apoioc = "<td height='10' id='prod2'></td>";
						apoiod = "<td height='10' id='prod2'></td>";
				}else{
						n2='1';
						n='0';
						n3='0';
						n4='0';
						apoiob = "<td height='10' id='prod1'></td>";
						//
						apoioa = "<td height='10' id='prod2'></td>";
						apoioc = "<td height='10' id='prod2'></td>";
						apoiod = "<td height='10' id='prod2'></td>";
				}
			}
			//
			if (tipo=='3'){
				if (status=='1'){
					n3='';
					n2='1';
					n='1';
					n4='1';
						 apoioc = "<table width='100%'  border='0' cellpadding='0' cellspacing='0' class='texto-04'>";
						 apoioc += "<tr><td height='5'></td></tr><tr>"; 
						 apoioc += "<td><a href='http://www.esco.com.br/ingles/fale_pesquisa.asp' class='link-03'>Feel free to give us your suggestions so that we can improve our services."; 
						 apoioc += "</td></tr><tr><td height='8'></td></tr></table>";
						//
						apoioa = "<td height='10' id='prod2'></td>";
						apoiob = "<td height='10' id='prod2'></td>";
						apoiod = "<td height='10' id='prod2'></td>";
				}else{
						n3='1';
						n2='0';
					    n='0';
						n4='0';
						apoioc = "<td height='10' id='prod1'></td>";
						//
						apoioa = "<td height='10' id='prod2'></td>";
						apoiob = "<td height='10' id='prod2'></td>";
						apoiod = "<td height='10' id='prod2'></td>";
				}
			}
			if (tipo=='4'){
				if (status=='1'){
					n4='';
					n3='1';
					n2='1';
					n='1';
						 apoiod = '<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="texto-04">';
						 apoiod += '<tr><td height="5"></td></tr><tr>'; 
						 apoiod += '<td>Print our Manuals and Catalogs. UNDER CONSTRUCTION'; 
						 apoiod += '</td></tr><tr><td height="8"></td></tr></table>';
						//
						apoioa = "<td height='10' id='prod2'></td>";
						apoiob = "<td height='10' id='prod2'></td>";
						apoioc = "<td height='10' id='prod2'></td>";
				}else{
						n4='1';
						n3='0';
						n2='0';
					    n='0';
						apoiod = "<td height='10' id='prod1'></td>";
						//
						apoioa = "<td height='10' id='prod2'></td>";
						apoiob = "<td height='10' id='prod2'></td>";
						apoioc = "<td height='10' id='prod2'></td>";
				}
			}
			apoio1.innerHTML = apoioa;
			apoio2.innerHTML = apoiob;
			apoio3.innerHTML = apoioc;
			apoio4.innerHTML = apoiod;
	}

//
function histmenu(status,tipo){
			//if (tipo=='1' ){
				//if (status=='1'){
					//n='0';
					//n2='1';
						hista = "<table width='100%'  border='0' cellpadding='0' cellspacing='0' class='texto-04'>";
						hista += "<tr><td height='5'></td></tr>";
						hista += "<tr><td>&raquo; <a href='historico_e_empresa.asp' class='link-03'>77 years in the market</a><br> "; 
						hista += "&raquo; <a href='historico_e_evolucao.asp' class='link-03'>The evolution of the company</a><br>";
						hista += "&raquo; <a href='historico_e_objetivos.asp' class='link-03'>Esco’s objectives and targets</a><br>";
						hista += "&raquo; <a href='historico_e_responsabilidade.asp' class='link-03'>Social responsibility</a><br>";
						hista += "&raquo; <a href='historico_e_qualificacoes.asp' class='link-03'>Qualifications and Certifications</a><br>";
						hista += "</td></tr><tr><td height='8'></td></tr></table>";
						//
						//histb = "<td height='10' id='hist2'></td>";
				//}else{
						//n='1';
					//    n2='0';
						//hista = "<td height='10' id='hist1'></td>";
						//histb = "<td height='10' id='hist2'></td>";
				//}
			//}
			//
			//if (tipo=='2'){
				//if (status=='1'){
					//n2='0';
					//n='1';
						histb = "<table width='100%'  border='0' cellpadding='0' cellspacing='0' class='texto-04'>";
						histb += "<tr><td height='5'></td></tr>";
						histb += "<tr><td>&raquo; <a href='historico_h_oInicio.asp' class='link-03'>The beginning</a><br> "; 
						histb += "&raquo; <a href='historico_h_antonio.asp' class='link-03'>Antônio de Escobar</a><br>";
						histb += "&raquo; <a href='historico_h_segunda.asp' class='link-03'>The sequence</a><br>";
						histb += "&raquo; <a href='historico_h_petrobras.asp' class='link-03'>Petrobras</a><br>";
						histb += "&raquo; <a href='historico_h_anosCrise.asp' class='link-03'>The years of crisis</a><br>";
						histb += "&raquo; <a href='historico_h_1990.asp' class='link-03'>We’re now in 1990</a><br>";
						histb += "&raquo; <a href='historico_h_2005.asp' class='link-03'>2005</a><br>";
						histb += "&raquo; <a href='historico_h_amanha.asp' class='link-03'>Tomorrow</a><br>";
						histb += "</td></tr><tr><td height='8'></td></tr></table>";
						//
						//hista = "<td height='10' id='hist2'></td>";
				//}else{
						//n2='1';
						//n='0';
						//histb = "<td height='10' id='hist1'></td>";
						//hista = "<td height='10' id='hist2'></td>";
				//}
			//}
			hist1.innerHTML = hista;
			hist2.innerHTML = histb;
	}
	
//
	function janela(url,nome,w,h){
		var wl = (screen.width - w) / 2;
		var wt = (screen.height - h) / 2;
		window.open(url,nome,'status=no,menubar=no,scrollbars=no,resizable=no,width='+ w +',height='+ h +',top='+ wt +',left='+ wl +'');
	}
//	
	function cert(url,nome,w,h){
		var wl = (screen.width - w) / 2;
		var wt = (screen.height - h) / 2;
		window.open(url,nome,'status=no,menubar=no,scrollbars=yes,resizable=no,width='+ w +',height='+ h +',top='+ wt +',left='+ wl +'');
	}
