// JavaScript Document// ---------------------------------------------------------------// VARIABLES PARA LOS SUBMENUES// ---------------------------------------------------------------// MENU EMPRESA	var medanitoU="emedanito.ubi.htm"	var medanitoP="emedanito.prod.htm"	var medanitoE="emedanito.exp.htm"	var sosneadoU="esosneado.ubi.htm"	var sosneadoP="esosneado.prod.htm"	var sosneadoE="esosneado.exp.htm"	var ecuadorU=""	var ecuadorP="eecuador.prod.htm"	var ecuadorE="eecuador.exp.htm"	var clientes="eclientes.htm"	var mail="mail.htm"		var menumedanito="<table height='10' border='0' align='right' cellpadding='0' cellspacing='0'>  <tr>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='medanitoU' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(medanitoU)'>Ubicación</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='medanitoP' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(medanitoP)'>Producción</td>    <td width='1' bgcolor='#BBBBBB'></td>     <td class='menuTOP3' id='medanitoE' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(medanitoE)'>Exploración</td>    <td width='1' bgcolor='#BBBBBB'></td> </tr></table>"	var menusosneado="<table height='10' border='0' align='right' cellpadding='0' cellspacing='0'>  <tr>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='sosneadoU' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(sosneadoU)'>Ubicación</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='sosneadoP' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(sosneadoP)'>Producción</td>    <td width='1' bgcolor='#BBBBBB'></td>     <td class='menuTOP3' id='sosneadoE' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(sosneadoE)'>Exploración</td>    <td width='1' bgcolor='#BBBBBB'></td> </tr></table>"	var menuecuador="<table height='10' border='0' align='right' cellpadding='0' cellspacing='0'>  <tr>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='ecuadorU' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(ecuadorU)'>Ubicación</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='ecuadorP' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(ecuadorP)'>Producción</td>    <td width='1' bgcolor='#BBBBBB'></td>     <td class='menuTOP3' id='ecuadorE' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(ecuadorE)'>Exploración</td>    <td width='1' bgcolor='#BBBBBB'></td> </tr></table>"	var menuclientes="<table height='10' border='0' align='right' cellpadding='0' cellspacing='0'>  <tr>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='clientes' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(clientes)'>Principales clientes</td>    <td width='1' bgcolor='#BBBBBB'></td>  </tr>"	var menucontactos="<table height='10' border='0' align='right' cellpadding='0' cellspacing='0'>  <tr>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='mail' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(mail)'>Contactos</td>    <td width='1' bgcolor='#BBBBBB'></td>  </tr>"// ---------------------------------------------------------------	var textodefault="<table height='10' border='0' align='right' cellpadding='0' cellspacing='0'> <tr> <td></td> </tr> </table>"// ---------------------------------------------------------------// FUNCIONES// ---------------------------------------------------------------function movein(which,html){which.style.color='#BBBBBB';//which.style.fontWeight='bold'if (document.getElementById)document.getElementById("boxdescription").innerHTML=htmlelseboxdescription.innerHTML=textodefault}function moveout(which){if (document.getElementById)document.getElementById("boxdescription").innerHTML=textodefaultelseboxdescription.innerHTML=textodefault}function movein2 (which){which.style.color='#003C69';which.style.backgroundColor='#DDDDDD';//which.style.fontWeight='bolder'}function moveout2(which,colores,peso){which.style.fontWeight=pesowhich.style.color=colores}function moveout3(which){which.style.backgroundColor='#FFFFFF';which.style.fontWeight='normal'which.style.color='#BBBBBB'}function linkout(url){document.getElementById("boxdescription").innerHTML=textodefaultlocation = url}function linkout2(url){document.getElementById("boxdescription").innerHTML=textodefaultwindow.open(url)}// ---------------------------------------------------------------// CAMBIO IDIOMA// ---------------------------------------------------------------function idioma(CE){	var sPath = window.location.pathname;	//var sPage = sPath.substring(sPath.lastIndexOf('\\') + 1);	if (CE==1){		var sPage = sPath.substring(sPath.lastIndexOf('02ingles/') + 9);		directorio="../../01castellano/"+sPage;	}else{		var sPage = sPath.substring(sPath.lastIndexOf('01castellano/') + 13);		directorio="../../02ingles/"+sPage;	}	window.location=directorio;}
