HM_Vertical = [
['Sobre TILESA','About TILESA',[
['sobreTilesa','Sobre TILESA','About TILESA','html',[]],
['equipo','Nuestro Equipo','Our Team','html',[]],
['miembros','Miembros de','Membership','html',[]],
['oficinas','Nuestras Oficinas','Our Offices','html',[]],
['clientes','Clientes','Clients','html',[]]
],"hsobre.jpg"],
['Congresos','Congresses',[
['congresosOn','Congresos en Curso','Upcoming Congresses','asp',[]], 
['congresosOff','Congresos Realizados','Past Congresses','asp',[]]
],"home.jpg"],
['Servicios','Services',[
['services','Actividades OPC','OPC  Activities','html',[ 
	['conCor','Consultor&iacute;a y Cordinaci&oacute;n','Consultancy and Coordination'],
	['secreTecnica','Secretaría t&eacute;cnica','Tecnical Secretariat'],
	['secreCientifica','Secretaría cient&iacute;fica','Scientific Secretariat'],
	['serviLogistico','Servicios logísticos','Logistic Services'],
	['expoPatroc','Exposici&oacute;n y patrocinio','Exhibition and Exponsorship'],
	['respFinancieras','Responsabilidades financieras','Financial Responsabilities']
	]], 
['corePCO','OPC Permanente','Core PCO','html',[]], 
['gestionAsoc','Gesti&oacute;n de Asociaciones','Association Management','html',[]], 
['dmc','DMC','DMC','html',[]]
],"hserv.jpg"],
['Tecnologia','Technology',[
['tecweb','Servicios Web','Web Services','html',[]], 
['inhotel','Gestión Web','Management Web','html',[]],
['convideo','Documentos','Document','html',[]], 
['servcompl','Servicios Adicionales','Additional Services','html',[]] 
],"htec.jpg"],
['Galeria de Fotos','Photo Gallery',[
['services','Actividades OPC','OPC  Activities','html',[ 
	['conCor','Consultor&iacute;a y Cordinaci&oacute;n','Consultancy and Coordination'],
	['secreTecnica','Secretaría t&eacute;cnica','Tecnical Secretariat'],
	['secreCientifica','Secretaría cient&iacute;fica','Scientific Secretariat'],
	['serviLogistico','Servicios logísticos','Logistic Services'],
	['expoPatroc','Exposici&oacute;n y patrocinio','Exhibition and Exponsorship'],
	['respFinancieras','Responsabilidades financieras','Financial Responsabilities']
	]], 
['corePCO','OPC Permanente','Core PCO','html',[]], 
['gestionAsoc','Gesti&oacute;n de Asociaciones','Association Management','html',[]], 
['dmc','DMC','DMC','html',[]]
],"hserv.jpg"],
['Tecnologia','Technology',[
['seccion1','Secci&oacute;n 1','Section 1','html',[]], 
['seccion2','Secci&oacute;n 1','Section 2','html',[]] 
],"hphoto.jpg"],
['Contacto','Contact Us',[
['services','Actividades OPC','OPC  Activities','html',[ 
	['conCor','Consultor&iacute;a y Cordinaci&oacute;n','Consultancy and Coordination'],
	['secreTecnica','Secretaría t&eacute;cnica','Tecnical Secretariat'],
	['secreCientifica','Secretaría cient&iacute;fica','Scientific Secretariat'],
	['serviLogistico','Servicios logísticos','Logistic Services'],
	['expoPatroc','Exposici&oacute;n y patrocinio','Exhibition and Exponsorship'],
	['respFinancieras','Responsabilidades financieras','Financial Responsabilities']
	]], 
['corePCO','OPC Permanente','Core PCO','html',[]], 
['gestionAsoc','Gesti&oacute;n de Asociaciones','Association Management','html',[]], 
['dmc','DMC','DMC','html',[]]
],"hcon.jpg"],
['Tecnologia','Technology',[
['seccion1','Secci&oacute;n 1','Section 1','html',[]], 
['seccion2','Secci&oacute;n 1','Section 2','html',[]] 
],"hcon.jpg"]
];

var pos=0;
var idioma='',pagina='',extension='';
var menuNavegacion=2;
var otroIdioma='English';
var idIdioma=1;
//IDIOMA
if(((pos=location.href.lastIndexOf('_es.html'))!=-1)||((pos=location.href.lastIndexOf('_es.asp'))!=-1)){
	pagina=location.href.substring(location.href.lastIndexOf('/')+1,pos);
	idioma='es';
}else if	(((pos=location.href.lastIndexOf('_en.html'))!=-1)||((pos=location.href.lastIndexOf('_en.asp'))!=-1)){
	pagina=location.href.substring(location.href.lastIndexOf('/')+1,pos);
	idIdioma=2;idioma='en';otroIdioma='Espa&ntilde;ol';
}else{location.href="http://www.tilesa.es"}
// menuNavegacion
if(location.href.lastIndexOf('.') > (location.href.length-5)){
	extension="asp";
}else{
	extension="html";
}
for(i=0;i<HM_Vertical.length;i++){//alert(HM_Vertical.length);
	for(j=0;j<HM_Vertical[i][2].length;j++){
		if(HM_Vertical[i][2][j][0]==pagina){menuNavegacion=i;}		
	}
}
function getContenidoVerticalhome(){
var txt='';
txt+='<TABLE border="5" cellpadding="0" cellspacing="0" width="10" height="100" align="top">';
txt+='<tr><td  align="left"></td></tr></table>';
return txt;}

function getContenidoVerticalII(){
var txt='';
txt+='<TABLE border="0" cellpadding="0" cellspacing="0" width="180" align="top">';
//txt+='<tr><td colspan="2" align="center"><img src="images/pxt.gif" width="1" height="1" border="1"></td></tr>';
txt+='<TR><TD height="100%" valign="top" colspan="2">';
txt+='<ul style="margin-left:2px;margin-bottom:2px;">\n';

for(i=0;i<HM_Vertical[menuNavegacion][2].length;i++){
	if(HM_Vertical[menuNavegacion][2][i][0]=='services'){//alert(HM_Vertical[menuNavegacion][2][i][0])
		txt+='<LI id="headerMenu" onClick="change();"><a class="menuVerticalTop" href="javascript:void(0);"><img src="images/red.gif" width="6" height="20" border="0" align="middle"> &nbsp; '+HM_Vertical[menuNavegacion][2][i][idIdioma]+'</a> \n';
 			txt+='<UL id="listMenu">\n';
			for(j=0;j<HM_Vertical[menuNavegacion][2][i][4].length;j++){//alert(HM_Vertical[2][1][i][3][j])
      		txt+='<LI id="pageMenu"><a class="menuVerticalSub" href="'+HM_Vertical[menuNavegacion][2][i][4][j][0]+'_'+idioma+'.'+HM_Vertical[menuNavegacion][2][i][3]+'"><img src="images/green.gif" border="0" align="middle"> &nbsp; '+HM_Vertical[menuNavegacion][2][i][4][j][idIdioma]+'</a></li>\n';
			}
			txt+='</UL>\n';
		txt+='</LI>\n';
	}else{	
		txt+='<LI id="headerMenu"><a class="menuVerticalTop" href="'+HM_Vertical[menuNavegacion][2][i][0]+'_'+idioma+'.'+HM_Vertical[menuNavegacion][2][i][3]+'"><img src="images/red.gif" width="6" height="20" border="0" align="middle"> &nbsp; '+HM_Vertical[menuNavegacion][2][i][idIdioma]+'</a></li>\n';
	}
}
txt+='</UL></td></tr>\n';
txt+='<tr><td align="right"><img src="images/logotilesa.gif" width="175" height="50" border="0" alt=""><br>';
txt+='<img src="images/tile.jpg" width="175" height="67" border="0" alt=""><br>';
txt+='<center><font size="1">Londres, 17</font></center>';
txt+='<center><font size="1">28028 Madrid (Spain)</font></center>';
txt+='<center><font size="1">Tel. +34 91 361 2600</font></center>';
txt+='<center><font size="1">Fax: +34 91 355 9208</font></center>';
txt+='<center><font size="1">email: <b><a href="mailto:tilesa@tilesa.es">tilesa@tilesa.es</a></b></font></center><br></td></tr>';
txt+='</table>';
return txt;
}

function getContenidoPageActualII(){
	var txt='<script language="JavaScript" src="contenido/'+pagina+'_'+idioma+'.js"></script>';
	return txt;
}
function getMenuNavegacion(){//	alert(pagina);
	var txt='&nbsp;&nbsp;<img src="images/es_pic_menu_i.gif" width="9" height="7" border="0" alt="">&nbsp;<a href="home_'+idioma+'.asp" class="link_azul">';
	if(idioma=="en"){txt+='Home</a>';}
	else {txt+='Principal</a>';}

	if(pagina=="contacto"){i=6;
		txt+='&nbsp;::&nbsp;<a href="contacto_'+idioma+'.html" class="link_azul">'+HM_Vertical[i][idIdioma-1]+'</a>';
	   document.images["fotoCabecera"].src='images/contenido/cabecera/'+HM_Vertical[i][3];
		return txt;}	
	if(pagina=="galefotos"){i=4;
		txt+='&nbsp;::&nbsp;<a href="galefotos_'+idioma+'.html" class="link_azul">'+HM_Vertical[i][idIdioma-1]+'</a>';
		return txt;}

for(i=0;i<HM_Vertical.length;i++){//alert(HM_Vertical.length);
	for(j=0;j<HM_Vertical[i][2].length;j++){
		if(HM_Vertical[i][2][j][0]=='services'){
			if(pagina=='services'){txt+='&nbsp;::&nbsp;<a href="javascript:void(0);" class="link_azul">'+HM_Vertical[i][2][j][idIdioma]+'</a>';document.images["fotoCabecera"].src='images/contenido/cabecera/'+HM_Vertical[i][3];return txt;}
			for(h=0;h<HM_Vertical[i][2][j][4].length;h++){
				if(HM_Vertical[i][2][j][4][h][0]==pagina){
						txt+='&nbsp;::&nbsp;<a href="javascript:void(0);" class="link_azul">'+HM_Vertical[i][idIdioma-1]+'</a>&nbsp;::&nbsp;';
						txt+='<a href="javascript:void(0);" class="link_azul">'+HM_Vertical[i][2][j][idIdioma]+'</a>&nbsp;::&nbsp;';
					   txt+='<a href="javascript:void(0);" class="link_azul">'+HM_Vertical[i][2][j][4][h][idIdioma]+'</a>';
					   document.images["fotoCabecera"].src='images/contenido/cabecera/'+HM_Vertical[i][3];
					   return txt;
					}
			}
		}else{
			if(HM_Vertical[i][2][j][0]==pagina){//alert('');
				txt+='&nbsp;::&nbsp;<a href="javascript:void(0);" class="link_azul">'+HM_Vertical[i][idIdioma-1]+'</a>&nbsp;::&nbsp;';
				txt+='<a href="javascript:void(0);" class="link_azul">'+HM_Vertical[i][2][j][idIdioma]+'</a>';
				document.images["fotoCabecera"].src='images/contenido/cabecera/'+HM_Vertical[i][3];
			   return txt;
				}		
		}
	}
}
	return txt
}

function getBarraNavegacion(){
var txt='';
txt+='<tr><td colspan="2" class="enlaces" valign="middle">'+getMenuNavegacion()+'</td>';
txt+='<td rowspan="2" align="right" valign="top"><a class="fecha">'+DNews+'.&nbsp;</a>';
if(location.href.indexOf('/home_')==-1){
	txt+='<a href="http://www..mpiweb.org" target="_blank"><img src="images/incon.gif" width="68" height="29" border="0" alt="" align="top"></a>';
	txt+='<a href="javascript:abrirVentana(\'calidad_'+idioma+'.html\',\'CalidadISO\',600,400);"><img src="images/Certcalida.gif" width="31" height="31" border="0" alt="" align="top"></a>';
}
txt+='&nbsp;</td></tr><tr><td colspan="2" height="2"></td></tr>';

return txt	
}
function cambiarFondo(){
obj = document.getElementById('tableFondo');

if(obj.style.backgroundImage.indexOf("url(images/contenido/menber.jpg)")==-1){
	obj.style.backgroundImage = "url('images/contenido/menber.jpg')";//alert("si");
}else{
	obj.style.backgroundImage = "url('images/contenido/menber2.jpg')";//alert("no");
}
}

function abrirVentana(url,nombre,w,h){
if(w==null){w=500;}
if(h==null){h=400;}
var propDefault= "width="+w+",height="+h+",top=10,scrollbars=yes,alwaysRaised=yes,dependent=yes,resizable=no";
ventanaID=window.open(url,nombre,propDefault);
ventanaID.focus();
}
function cambiarIdioma(){
if(idioma=='es'){location.href=pagina+'_en.'+extension;}	
else if(idioma=='en'){location.href=pagina+'_es.'+extension;}	
else{location.href='www.tilesa.es';}
}

function rotuloServicios(id){
	var txt='';
	txt+='<p class="txtIII"><img class="imgTabActividades" src="images/red.gif" width="6" height="18" border="0" align="left">';
   txt+=services[id-1]+'';
   txt+='</p>';
document.getElementById('activiOPC').innerHTML = txt;
}

function rotuloOtros(id){
	var txt='';
	txt+='<table "border="0" cellpadding="2" cellspacing="0" width="530">\n';
   txt+=otrosArray[id-1]+'';
   txt+='</table>';
document.getElementById('activiOPC').innerHTML = txt;
}

