var where_tabs=document.location.href;
var this_redirect = 'index.php';

a       = new MakeArray(10);
a[1]   = new Part('01_empresa.html','grupo_espai.php');
a[2]    = new Part('02_d_tecnico.html','d_tecnico.php');
a[3]    = new Part('03_Arquitectura.html','arquitectura.php');
a[4]   = new Part('04_S_empresas.html','empresas.php');
a[5]   = new Part('05_S_comunidades_propietarios.html','comunidades_propietarios.php');
a[6]   = new Part('06_Obras_Clientes.php','obras_clientes.php');
a[7]   = new Part('07_Documentacion.php','documentacion.php');
a[8]   = new Part('08_Contacto_informacion.html','contactar.php');
a[9]   = new Part('09_Hproyecto_ejemplo.html','proyecto_ejemplo.php');
a[10]   = new Part('00_inicio.php','index.php');

if (top == self) {localiza();}

//********LOCALIZADOR ACTIVADOR Y VISUALIZADOR
function localiza(){
for (i=1; i <= a.length; i++){
if (where_tabs.indexOf(a[i].url)>0) {localizado=i;this_redirect=a[localizado].url_red;location.replace(this_redirect)}
}
}
// ********** FUNCIONES GENERALES PARA LAS MATRICES
function MakeArray(size) {this.length = size;for(i = 1; i <= size; i++) this[i] = null;return this;}
function Part(a1,a2) {this.url=a1;this.url_red=a2;}