// JavaScript Document
// ---------------------------------------------------------------
// VARIABLES PARA LOS SUBMENUES
// ---------------------------------------------------------------
// MENU EMPRESA
	var historia="emp.hist.htm"
	var ubicacion="emp.ubic.htm"
	var rrhh="emp.rrhh.htm"
	var financiera="http://www.cnv.gov.ar/InfoFinan/emisoras.asp?Lang=0&CodiSoc=311&DescriSoc=Petroqu%EDmica%20Comodoro%20Rivadavia%20S.A.&Letra=P"
	var organigrama="emp.org.htm"
	
	var calidad="resp.calidad.htm"
	var social="resp.soc.htm"
	var ambiente="resp.amb.htm"
	var agro="resp.agro.htm"
	
	var construccion="../01construccion/index.htm"
	var energia="../02energia/index.htm"

	var mail="ofic.mail.htm"
	
	var menuempresa="<table height='10' border='0' align='right' cellpadding='0' cellspacing='0'>  <tr>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='historia' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(historia)'>Historia </td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='ubicacion' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(ubicacion)'> Ubicación </td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='rrhh' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(rrhh)'>Recursos Humanos</td>  <td width='1' bgcolor='#BBBBBB'></td>      <td class='menuTOP3' id='rrhh' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout2(financiera)'>Información Financiera</td>  <td width='1' bgcolor='#BBBBBB'></td></tr></table>";
	var menuresponsabilidad="<table height='10' border='0' align='right' cellpadding='0' cellspacing='0'>  <tr>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='calidad' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(calidad)'>Calidad</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='social' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(social)'> Acción Social</td>    <td width='1' bgcolor='#BBBBBB'></td>            <td width='1' bgcolor='#BBBBBB'></td>  </tr></table>"
	var menudivisiones="<table height='10' border='0' align='right' cellpadding='0' cellspacing='0'>  <tr>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='construccion' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(construccion)'>Construcción</td>    <td width='1' bgcolor='#BBBBBB'></td>    <td class='menuTOP3' id='energia' onmouseover='movein2(this)' onmouseout='moveout3(this)' onclick='linkout(energia)'>Energía</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='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;
}

