// JavaScript Document
// ---------------------------------------------------------------
// VARIABLES PARA LOS SUBMENUES
// ---------------------------------------------------------------
// MENU EMPRESA
	var cemento="prod.cem.htm"
	var CPC40="prod.cem.CPC40.info.htm"
	var CPE40="prod.cem.CPE40.info.htm"
	var especial="prod.cem.esp.info.htm"
	var extra="prod.cem.extra.info.htm"
	var puzolanico="prod.cem.puzo.info.htm"
	var listo="prod.listo.info.htm"
	var cemento_alba="prod.cem.alb.info.htm"

	var mampuestos="prod.mam.htm"
	var muros="prod.mam.mt.info.htm"
	var arquitectonicos="prod.mam.arq.info.htm"
	var revestimientos="prod.mam.rev.info.htm"
	var ladrillos="prod.mam.lh.info.htm"

	var adoquines="prod.ado.htm"
	var solados="prod.ado.sh.info.htm"
	var pisos="prod.ado.ph.info.htm"

	var morteros="prod.listo.info.htm"

	var notas="serv.nt.info.htm"
	var enlaces="serv.links.htm"
	var calculo="serv.calculo.htm"
	var transporte="serv.tma.htm"
	
	var oficinasc="ofic.area.comodoro.htm"
	var mailc="ofic.mail.htm"
	
	
	var menucemento="<table height='10' border='0' align='right' cellpadding='0' cellspacing='0'>  <tr>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='puzolanico' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(puzolanico)'>CPP40</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='CPC40' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(CPC40)'>CPC40</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='CPE40' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(CPE40)'>CPE40</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='especial' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(especial)'>Especial </td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='listo' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(listo)'>Adhesivo Listo</td>  <td width='1' bgcolor='#BBBBBB'></td>  </tr></table>";
	var menumampuestos="<table height='10' border='0' align='right' cellpadding='0' cellspacing='0'>  <tr>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='muros' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(muros)'>Muros y tabiques</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='arquitectonicos' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(arquitectonicos)'>Arquitectónicos</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='revestimientos' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(revestimientos)'>Revestimientos</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='ladrillos' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(ladrillos)'>Ladrillos de Hormigón</td>    <td width='1' bgcolor='#BBBBBB'></td>  </tr></table>"
	var menuadoquines="<table height='10' border='0' align='right' cellpadding='0' cellspacing='0'>  <tr>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='solados' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(solados)'>Solados de Hormigón</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='pisos' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(pisos)'>Adoquines de Hormigón</td> <td width='1' bgcolor='#BBBBBB'></td>   </tr></table>"
	var menuproductos="<table height='10' border='0' align='right' cellpadding='0' cellspacing='0'>  <tr>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='cemento' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(cemento)'>Cementos</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='mampuestos' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(mampuestos)'>Mampuestos</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='adoquines' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(adoquines)'>Adoquines</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='morteros' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(morteros)'>Morteros</td>    <td width='1' bgcolor='#BBBBBB'></td>  <td class='menuTOP3' id='cemento_alba' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(cemento_alba)'>Cemento de albañilería</td>    <td width='1' bgcolor='#BBBBBB'></td>  </tr></table>"
	var menuservicios="<table height='10' border='0' align='right' cellpadding='0' cellspacing='0'>  <tr>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='notas' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(notas)'>Notas técnicas  </td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='transporte' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(transporte)'>Transporte y manipuléo</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='enlaces' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(enlaces)'> Enlaces </td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='calculo' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(calculo)'>Cálculos </td>    <td width='1' bgcolor='#BBBBBB'></td>  </tr></table>"
	var menucontactos="<table height='10' border='0' align='right' cellpadding='0' cellspacing='0'>  <tr>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='oficinasc' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(oficinasc)'>Área de influencia</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='mailc' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(mailc)'> 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
}


// ---------------------------------------------------------------
// 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;
}

