<!--

var conta_menu = new Array(5); 
conta_menu[0]=0;
conta_menu[1]=0;
conta_menu[2]=0;
conta_menu[3]=0;
conta_menu[4]=0;
conta_menu[5]=0;

function mostra_menu(conteudo)
{
 				 if (conteudo=='inicial') {
				 if(conta_menu[0]==0){
				 										 var texto ;
														 var espaco= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" ;
														 texto="";
														 texto= texto + "<br />" + espaco + "<a href=# onClick=escreve('empresa.xml','historico',300,'',0);><span>&rarr; A Empresa</span></a>";
														 texto= texto + "<br />" + espaco + "<a href=# onClick=escreve('empresa.xml','politica',180,'',0);><span>&rarr; Nossa Política</span></a>";
														 texto= texto + "<br />" + espaco + "<a href=# onClick=escreve('empresa.xml','objetivos',230,'',0);><span>&rarr; A Qualidade</span></a>";
														 texto= texto + "<br />" + espaco + "<a href=# onClick=escreve('empresa.xml','foto1',300,'',0);><span>&rarr; Fotos</span></a>";
													 
														 conta_menu[0]= 1;
														 conta_menu[1]= 0;
														 conta_menu[2]= 0;
														 conta_menu[3]= 0;
														 conta_menu[4]= 0;
														 conta_menu[5]= 0;
														 
														 document.getElementById('sub6').innerHTML =  "";
														 document.getElementById('sub5').innerHTML =  "";														 
														 document.getElementById('sub4').innerHTML =  "";
														 document.getElementById('sub3').innerHTML =  "";
														 document.getElementById('sub2').innerHTML =  "";
														 document.getElementById('sub1').innerHTML = texto;

				}else{
														 conta_menu[0]= 0;				 											
 				 										 document.getElementById('sub1').innerHTML = "";
				}
				}
				 if (conteudo=='Produtos') {
				 if(conta_menu[1]==0){
				 										 var texto ;
														 var espaco= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" ;
														 texto="";
														 texto= texto + "<br />" + espaco + "<a href=# onClick=escreve('atividades.xml','trabalho',230,'',0);><span>&rarr; Nosso Trabalho</span></a>";
														 texto= texto + "<br />" + espaco + "<a href=# onClick=escreve('atividades.xml','foto1',300,'',0);><span>&rarr; Produtos</span></a>";
													 														 				 											
 				 										 conta_menu[0]= 0;
														 conta_menu[1]= 1;
														 conta_menu[2]= 0;
														 conta_menu[3]= 0;
														 conta_menu[4]= 0;
														 conta_menu[5]= 0;
														 
														 document.getElementById('sub6').innerHTML =  "";
														 document.getElementById('sub5').innerHTML =  "";
														 document.getElementById('sub4').innerHTML =  "";
														 document.getElementById('sub3').innerHTML =  "";
														 document.getElementById('sub2').innerHTML =  texto;
														 document.getElementById('sub1').innerHTML =  "";
				}else{
														 conta_menu[1]= 0;				 											
 				 										 document.getElementById('sub2').innerHTML = "";
				}
				}
				if (conteudo=='DBS') {
				 if(conta_menu[2]==0){
				 										 var texto ;
														 var espaco= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" ;
														 texto="";
														 texto= texto + "<br />" + espaco + "<a href=#><span>&rarr; Kaizen</span></a>";
														 texto= texto + "<br />" + espaco + "<a href=#><span>&rarr; 5S</span></a>";
														 texto= texto + "<br />" + espaco + "<a href=Login.aspx><span>&rarr; ListaMestra</span></a>";
													 														 				 											
 				 										 conta_menu[0]= 0;
														 conta_menu[1]= 0;
														 conta_menu[2]= 1;
														 conta_menu[3]= 0;
														 conta_menu[4]= 0;
														 conta_menu[5]= 0;
														 
														 document.getElementById('sub6').innerHTML =  "";
														 document.getElementById('sub5').innerHTML =  "";
														 document.getElementById('sub4').innerHTML =  "";
														 document.getElementById('sub3').innerHTML =  texto;
														 document.getElementById('sub2').innerHTML =  "";
														 document.getElementById('sub1').innerHTML =  "";
				}else{
														 conta_menu[2]= 0;				 											
 				 										 document.getElementById('sub3').innerHTML = "";
				}
				}
				if (conteudo=='Equipamento') {
				 if(conta_menu[3]==0){
				 										 var texto ;
														 var espaco= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" ;
														 texto="";
														 texto= texto + "<br />" + espaco + "<a href=# onClick=escreve('equipamentos.xml','maquinas',320,'fundo_relacao.png',0);><span>&rarr; Debony</span></a>";
														 texto= texto + "<br />" + espaco + "<a href=# onClick=escreve('equipamentos.xml','maquinas',320,'fundo_relacao.png',1);><span>&rarr; Joluma</span></a>";
													 														 				 											
 				 										 conta_menu[0]= 0;
														 conta_menu[1]= 0;
														 conta_menu[2]= 0;
														 conta_menu[3]= 1;
														 conta_menu[4]= 0;
														 conta_menu[5]= 0;
														 
														 document.getElementById('sub6').innerHTML =  "";
														 document.getElementById('sub5').innerHTML =  "";
														 document.getElementById('sub4').innerHTML =  texto;
														 document.getElementById('sub3').innerHTML =  "";
														 document.getElementById('sub2').innerHTML =  "";
														 document.getElementById('sub1').innerHTML =  "";
				}else{
														 conta_menu[3]= 0;				 											
 				 										 document.getElementById('sub4').innerHTML = "";
				}
				}
				if (conteudo=='Certificado') {
				 if(conta_menu[4]==0){
				 										 var texto ;
														 var espaco= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" ;
														 texto="";
														 texto= texto + "<br />" + espaco + "<a href=# onClick=escreve('certificados.xml','debony',400,'',0);><span>&rarr; Debony</span></a>";
														 texto= texto + "<br />" + espaco + "<a href=# onClick=escreve('certificados.xml','joluma',400,'',0);><span>&rarr; Joluma</span></a>";
														 texto= texto + "<br />" + espaco + "<a href=# onClick=escreve('certificados.xml','duns',320,'',0);><span>&rarr; DUNS#</span></a>";
													 														 				 											
 				 										 conta_menu[0]= 0;
														 conta_menu[1]= 0;
														 conta_menu[2]= 0;
														 conta_menu[3]= 0;
														 conta_menu[4]= 1;
														 conta_menu[5]= 0;
														 
														 document.getElementById('sub6').innerHTML =  "";
														 document.getElementById('sub5').innerHTML =  texto;
														 document.getElementById('sub4').innerHTML =  "";
														 document.getElementById('sub3').innerHTML =  "";
														 document.getElementById('sub2').innerHTML =  "";
														 document.getElementById('sub1').innerHTML =  "";
				}else{
														 conta_menu[4]= 0;				 											
 				 										 document.getElementById('sub5').innerHTML = "";
				}
				}
				if (conteudo=='Fale_Conosco') {
				 if(conta_menu[5]==0){
				 										 var texto ;
														 var espaco= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" ;
														 texto="";
														 texto= texto + "<br />" + espaco + "<a href=# onClick=escreve('Contato.xml','dados',300,'',0);><span>&rarr; Dados</span></a>";
														 texto= texto + "<br />" + espaco + "<a target='_blank' href='http://www.maplink.com.br/v2/mapa.aspx?t=add&str=R%20Olivia%20Guedes%20Penteado%20&nb=884&zip=&dt=Socorro&ct=Sao%20Paulo&st=SP&lng=-46.70801&lat=-23.676&cpz=-23.67599,-46.70801,16'><span>&rarr; Localização</span></a>";
													 														 				 											
 				 										 conta_menu[0]= 0;
														 conta_menu[1]= 0;
														 conta_menu[2]= 0;
														 conta_menu[3]= 0;
														 conta_menu[4]= 0;
														 conta_menu[5]= 1;
														 
														 document.getElementById('sub6').innerHTML =  texto;
														 document.getElementById('sub5').innerHTML =  "";
														 document.getElementById('sub4').innerHTML =  "";
														 document.getElementById('sub3').innerHTML =  "";
														 document.getElementById('sub2').innerHTML =  "";
														 document.getElementById('sub1').innerHTML = "";
				}else{
														 conta_menu[5]= 0;				 											
 				 										 document.getElementById('sub6').innerHTML = "";
				}
				}
				
				
}

var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

function transparencia(){

if ((version >= 5.5) && (document.body. filters)) 
{
   for(var i=0; i<document.images.length; i++)
   {
      var img = document.images[ i ]
      var imgName = img.src.toUpperCase()
      if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
      {
         var imgID = (img.id) ? "id='" + img.id + "' " : ""
         var imgClass = (img.className) ? "class='" + img.className + "' " : ""
         var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
         var imgStyle = "display:inline-block;" + img.style.cssText 
         if (img.align == "left") imgStyle = "float:left;" + imgStyle
         if (img.align == "right") imgStyle = "float:right;" + imgStyle
         if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
         var strNewHTML = "<span " + imgID + imgClass + imgTitle
         + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
         + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
         img.outerHTML = strNewHTML
         i = i-1
      }
   }
}
}

var xmlDoc=null;
var x;

function escreve(arquivo,campo,altura,fundo,filho){
if (window.ActiveXObject)
{// code for IE
	xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
else if (document.implementation.createDocument)
{// code for Mozilla, Firefox, Opera, etc.
	xmlDoc=document.implementation.createDocument("","",null);
}
else
{
	alert('Your browser cannot handle this script');
}
if (xmlDoc!=null)
{
	xmlDoc.async=false;
	xmlDoc.load(arquivo);
}
	x= document.getElementById("Conteudo_Direito").style;
	x.top='20px';
	x.left='50px';
	x.width='500px';
	x.height= altura +'px';
	x.fontSize='12px';
	
	x.padding='10px';
	x.border='1px solid #99ccff';
	x.display="block";
	
	if (fundo != ''){
		x.border= '0px';
		x.paddingTop='0px';
		x.paddingLeft='10px';
		x.paddingbottom='10px';
		x.backgroundImage= "url('image/" + fundo + "')";
	}else{
		x.backgroundImage= "url('image/fundo2.png')";
		x.paddingTop='10px';
		x.paddingLeft='10px';
		x.paddingbottom='10px';
	}
	
	
	document.getElementById("Conteudo_Direito").innerHTML = xmlDoc.getElementsByTagName(campo)[filho].childNodes[0].nodeValue;
}

function fechar(){
	x= document.getElementById("Conteudo_Direito").style;
	x.display="none";
}

function mostra_imagem(foto){
	
	document.getElementById("visualizador").style.visibility="visible";
	document.getElementById("imagem").style.visibility="visible";
	//alert(foto);
	document.getElementById("imagem").style.backgroundImage="url('image/max/" + foto + "')";
	
	}
	
function ocultar_imagem(){
	
	document.getElementById("visualizador").style.visibility="hidden";
	document.getElementById("imagem").style.visibility="hidden";
	
	
}


//-->
