

if(!machine){
	var machine  = window.location.host;
	}
if(!busca){
/*	if (window.location.search){
		var busca   = window.location.search;
		} else { */
var busca = ""; 
	}
if(!protocolo){
	var protocolo = window.location.protocol;
}

var raiz_web ="";
var raiz_web_en = "web/en";
var raiz_web_es = "web";

var raiz_web_din = "";
var raiz_web_din_en = "web_app/en";
var raiz_web_din_es = "web_app";

var idioma_web;
var path_web_dir = window.location.pathname;
var path_web = path_web_dir.substring(1,7);
if (path_web=="web/en") {
	raiz_web = raiz_web_en;
	raiz_web_din = raiz_web_din_en;
	idioma_web = "en";
} else {
	raiz_web = raiz_web_es;
	raiz_web_din = raiz_web_din_es;
	idioma_web = "es";
}


/****************************/
/*** Bloque para Imagenes ***/
/****************************/
function getUrl(entornoSeguro,restoUrl) {
	if (entornoSeguro) {
		if(machine) {
			return "https://"+machine+restoUrl;
		} else {
			return "https://"+window.location.host+restoUrl;
		}	
	} else {
		if(machine) {
			return "http://"+machine+restoUrl;
		} else {
			return "http://"+window.location.host+restoUrl;
		}	
	}
}

// precargamos las imagenes
menuP1off = new Image();	menuP1off.src = "/" + raiz_web + "/img/menuP1.gif";
menuP1on  = new Image();	menuP1on.src  = "/" + raiz_web + "/img/menuP1on.gif";

menuP2off = new Image();	menuP2off.src = "/" + raiz_web + "/img/menuP2.gif";
menuP2on  = new Image();	menuP2on.src  = "/" + raiz_web + "/img/menuP2on.gif";

menuP3off = new Image();	menuP3off.src = "/" + raiz_web + "/img/menuP3.gif";
menuP3on  = new Image();	menuP3on.src  = "/" + raiz_web + "/img/menuP3on.gif";

areaPrivadaOff = new Image();	areaPrivadaOff.src = "/" + raiz_web + "/img/areaPrivada.gif";
areaPrivadaOn  = new Image();	areaPrivadaOn.src  = "/" + raiz_web + "/img/areaPrivadaOn.gif";

enviar1Off = new Image();	enviar1Off.src = "/" + raiz_web + "/img/enviar.gif";
enviar1On  = new Image();	enviar1On.src  = "/" + raiz_web + "/img/enviaron.gif";
enviar2Off = new Image();	enviar2Off.src = "/" + raiz_web + "/img/enviarAzul.gif";
enviar2On  = new Image();	enviar2On.src  = "/" + raiz_web + "/img/enviarAzulon.gif";

send1Off = new Image();	send1Off.src = "/" + raiz_web + "/img/send.gif";
send1On  = new Image();	send1On.src  = "/" + raiz_web + "/img/sendon.gif";

descargarOff = new Image();	descargarOff.src = "/" + raiz_web + "/img/descargar.gif";
descargarOn  = new Image();	descargarOn.src  = "/" + raiz_web + "/img/descargar_on.gif";

volverOff = new Image();	volverOff.src = "/" + raiz_web + "/img/volver.gif";
volverOn  = new Image();	volverOn.src  = "/" + raiz_web + "/img/volveron.gif";

aceptarOff = new Image();	aceptarOff.src = "/" + raiz_web + "/img/aceptar.gif";
aceptarOn  = new Image();	aceptarOn.src  = "/" + raiz_web + "/img/aceptaron.gif";

calcularOff = new Image();	calcularOff.src = "/" + raiz_web + "/img/calcular.gif";
calcularOn  = new Image();	calcularOn.src  = "/" + raiz_web + "/img/calcularon.gif";

contratarOff = new Image();	contratarOff.src = "/" + raiz_web + "/img/contrataron.gif";
contratarOn = new Image();	contratarOn.src  = "/" + raiz_web + "/img/contratar.gif";

nuevoCalculoOff = new Image();	nuevoCalculoOff.src = "/" + raiz_web + "/img/nuevoCalculo.gif";
nuevoCalculoOn  = new Image();	nuevoCalculoOn.src  = "/" + raiz_web + "/img/nuevoCalculoon.gif";

buscarOff = new Image();	buscarOff.src = "/" + raiz_web + "/img/buscar.gif";
buscarOn = new Image();	buscarOn.src = "/" + raiz_web + "/img/buscaron.gif";

continuarOff = new Image();	continuarOff.src = "/" + raiz_web + "/img/continuar.gif";
continuarOn = new Image();	continuarOn.src = "/" + raiz_web + "/img/continuaron.gif";

irOut     = new Image();	irOut.src  = "/" + raiz_web + "/img/ir.gif";    
irOver    = new Image();	irOver.src = "/" + raiz_web + "/img/irOver.gif";
irDown    = new Image();	irDown.src = "/" + raiz_web + "/img/irDown.gif";

menuSoff = new Image();	menuSoff.src = "/" + raiz_web + "/img/flecha.gif";
menuSon  = new Image();	menuSon.src  = "/" + raiz_web + "/img/flecha_on.gif";

menuEsquinaoff= new Image();	menuEsquinaoff.src = "/" + raiz_web + "/img/esq_menu_sup.gif";
menuEsquinaon  = new Image();	menuEsquinaon.src  = "/" + raiz_web + "/img/esq_menu_sup_on.gif";

var imagenAlternativa
var nombreProducto
var nombreFamilia
var nombreImagen
var urlProducto
var numeroProducto

function cambiar(idImg,idImgNueva) {
	document.images[idImg].src = eval(idImgNueva+".src");
}

function menuP_on(a){
	imgIni = "menuP" + a;
	imgFin = "menuP" + a + "on";
	cambiar(imgIni,imgFin);
}

function menuP_off(a){
	imgIni = "menuP" + a;
	imgFin = "menuP" + a + "off";
	cambiar(imgIni,imgFin);
}



function cambiarIdioma(pag) {
	if (pag =="es") {
		pag = raiz_web_es;
	} else {
		pag = raiz_web_en;
	}
	restoUrl = "/" + pag + "/index.html";
	url = getUrl(false,restoUrl);
	window.location.href = url;
}


/****************************/
/*** Bloque para Capas ***/
/****************************/
// Obtener version del navegador Internet Explorer....
var versionNavegador = navigator.appVersion;
if(versionNavegador + "" != "NaN")
{
 versionNavegador.match(/(MSIE)(\s*)([0-9].[0-9]+)/ig);
 versionNavegador = RegExp.$3;
}
versionNavegador = parseFloat(versionNavegador)
//alert(versionNavegador);
ie = (document.all)?true:false;
ns4 = (document.layers)?true:false;
ns6 = (document.getElementById && !(ie))?true:false;


function devolverObjeto(psElementName, poDocument) {
 //**********************************************************************
 //***Función: devolverObjeto()
 //***Devuelve el objeto buscado
 //***Parámetros:psElementName - nombre del objeto a buscar
 //**********************************************************************
 var p,i,x;  
 if(!poDocument) poDocument=document; if((p=psElementName.indexOf("?"))>0&&parent.frames.length) {
 poDocument=parent.frames[psElementName.substring(p+1)].document; psElementName=psElementName.substring(0,p);}
 if(!(x=poDocument[psElementName])&&poDocument.all) x=poDocument.all[psElementName];
 else if (!document.layers)  if (!document.all) x=poDocument.getElementById(psElementName);
 for (i=0;!x&&i<poDocument.forms.length;i++) x=poDocument.forms[i][psElementName];
 for(i=0;!x&&poDocument.layers&&i<poDocument.layers.length;i++) x=devolverObjeto(psElementName,poDocument.layers[i].document); return x;
}
function obtenerPosicionLEFTDeLaCapa (nodo)
{
 // Si es Netscape 4.
 if (document.layers)
  return nodo.pageX
 else
 {
  // Si el Explorer es el 5.0, los elementos a obviar cambian...
  if (versionNavegador < 5.4)
  {
   // Si no hay ningun elemento padre, devolvemos 0
   if (nodo.parentNode == null)
    return 0;
   // Si es uno de estos elementos, no se cuenta ningun valor
   if (nodo.nodeName == "TR")
    valor = 0;
   else if( nodo.nodeName == "CENTER")
    valor = 0;
   else if( nodo.nodeName == "TBODY")
    valor = 0;
   else if( nodo.nodeName == "FORM")
    valor = 0;
   else
    valor = nodo.offsetLeft
  }
  else
  {
   // Si no hay ningun elemento padre, devolvemos 0
   if (nodo.parentNode == null)
    return 0;
   // Si es uno de estos elementos, no se cuenta ningun valor
   if (nodo.nodeName == "TD")
    valor = 0;
   else if( nodo.nodeName == "TR")
    valor = 0;
   else if( nodo.nodeName == "CENTER")
    valor = 0;
   else if( nodo.nodeName == "TABLE")
    valor = 0;
   else if( nodo.nodeName == "TBODY")
    valor = 0;
   else if( nodo.nodeName == "FORM")
    valor = 0;
   else
    valor = nodo.offsetLeft
  }
  // Si estamos dentro de otro elemento, sumamos la poscion LEFT de éste, 
  // y llamamos de nuevo para que sea recursiva y calcule la poscion de todoslos padres hasta llegar al final.
  return valor + obtenerPosicionLEFTDeLaCapa(nodo.parentNode);
 }
} 
 
function obtenerPosicionTOPDeLaCapa (nodo)
{
 // Si es Netscape 4.
 if (document.layers)
  return nodo.pageY
 else
 {
  // Si el Explorer es el 5.0, los elementos a obviar cambian...
  if (versionNavegador < 5.4)
  {
   // Si no hay ningun elemento padre, devolvemos 0
   if (nodo.parentNode == null)
    return 0;
   // Si es uno de estos elementos, no se cuenta ningun valor
   if (nodo.nodeName == "TR")
    valor = 0;
   else if( nodo.nodeName == "CENTER")
    valor = 0;
   else if( nodo.nodeName == "TBODY")
    valor = 0;
   else if( nodo.nodeName == "FORM")
    valor = 0;
   else
    valor = nodo.offsetTop
  }
  else
  {
   // Si no hay ningun elemento padre, devolvemos 0
   if (nodo.parentNode == null)
    return 0;
   // Si es uno de estos elementos, no se cuenta ningun valor
   if (nodo.nodeName == "TD")
    valor = 0;
   else if( nodo.nodeName == "TR")
    valor = 0;
   else if( nodo.nodeName == "CENTER")
    valor = 0;
   else if( nodo.nodeName == "TABLE")
    valor = 0;
   else if( nodo.nodeName == "TBODY")
    valor = 0;
   else if( nodo.nodeName == "FORM")
    valor = 0;
   else
    valor = nodo.offsetTop
  }
 
  // Si estamos dentro de otro elemento, sumamos la poscion TOP de éste, 
  // y llamamos de nuevo para que sea recursiva y calcule la poscion de todoslos padres hasta llegar al final.
  return valor + obtenerPosicionTOPDeLaCapa(nodo.parentNode);
 }
}


function reposicionaCapa(id,id2,desX,desY,cebo){
	//esta funcion reposiciona la capa id2 en funcion de  
	//donde esta la capa id. 
	//desX y desY son el desplazamiento de id2 respecto de id
	//alert("dexX --> " + desX + "\ndexY --> " + desY);
	if(ie){
		if (versionNavegador<5.4) {
			x = obtenerPosicionLEFTDeLaCapa(devolverObjeto(cebo));
			y = obtenerPosicionTOPDeLaCapa(devolverObjeto(cebo));
			/*alert(x);
			alert(y);
			return;
			eval("x = document.all." + id + ".offsetParent");
			eval("y = document.all." + id + ".offsetTop");*/
			//eval("x = document.all[" + id + "].position.left");
			//eval("y = document.all[" + id + "].position.top");
			eval("document.all." + id2 + ".style.left = x + desX");
			eval("document.all." + id2 + ".style.top  = y + desY");
		
		}
		else{
			eval("x = document.all." + id + ".offsetLeft");
			eval("y = document.all." + id + ".offsetTop");
			eval("document.all." + id2 + ".style.left = x + desX");
			eval("document.all." + id2 + ".style.top  = y + desY");
		}	
	}else if(ns4){
		eval("x = document.layers[\"" + id + "\"].pageX");
		eval("y = document.layers[\"" + id + "\"].pageY");
		eval("document.layers[\"" + id2 + "\"].left = x + desX");
		eval("document.layers[\"" + id2 + "\"].top  = y + desY");
	}else if(ns6){
		


		eval("x = document.getElementById(\"" + id + "\").offsetLeft");
		eval("y = document.getElementById(\"" + id + "\").offsetTop");
		
		
		
		eval("document.getElementById(\"" + id2 + "\").style.left = x + desX");
		eval("document.getElementById(\"" + id2 + "\").style.top  = y + desY");
	}
	//alert("X --> " + x + "\nY --> " + y);
}

function mostrarCapa(id){
	if(ie){
		eval(id + ".style.visibility = \"visible\"");
	}else if(ns4){
		eval("document.layers[\"" + id + "\"].visibility = \"show\"");
	}else if(ns6){
		eval("document.getElementById(\"" + id + "\").style.visibility = \"visible\"");
	}
}

function ocultarCapa(id){
	if(ie){
		eval(id + ".style.visibility = \"hidden\"");
	}else if(ns4){
		eval("document.layers[\"" + id + "\"].visibility = \"hide\"");
	}else if(ns6){
		eval("document.getElementById(\"" + id + "\").style.visibility = \"hidden\"");
	}
}

function estaVisible(id){
	if(ie){
		if (eval(id + ".style.visibility") == "hidden") { 
			return false 
		} else {
			return true
		}
	}else if(ns4){
		if (eval("document.layers[\"" + id + "\"].visibility") == "hide") { 
			return false
		} else {
			return true
		}
	}else if(ns6){
		if (eval("document.getElementById(\"" + id + "\").style.visibility") == "hidden") { 
			return false
		} else {
			return true
		}
	}
}

function desplegar(id){
	if (estaVisible(id)){
		ocultarCapa(id);
	}else{
		mostrarCapa(id);
	}
}





/*************************/
/*** Bloque para Menus ***/
/*************************/
	if (idioma_web=="es"){
var mr = new Array() 
	mr[0] = ["Inicio",getUrl(false,"/" + raiz_web + "/index.html"), null ];
	mr[1] = ["Contacto",getUrl(true,"/" + raiz_web_din + "/jsp/solicitarMasInformacion.jsp"),"/" + raiz_web + "/img/contacto.jpg"];
	mr[2] = ["Mapa Web",getUrl(false,"/" + raiz_web + "/a3_mapaWeb.html"),"/" + raiz_web + "/img/mapaWeb.jpg"];
	mr[3] = ["Red de oficinas",getUrl(false,"/" + raiz_web_din + "/jsp/redOficinas.jsp"),"/" + raiz_web + "/img/redOficinas.jpg"];
	mr[4] = ["Trabaje con nosotros",getUrl(true,"/" + raiz_web_din + "/jsp/a5_trabajaConNosotros.jsp"),"/" + raiz_web + "/img/trabajacon.jpg"];

var mrs = new Array() 
	mrs[0] = ["Inicio",getUrl(false,"/" + raiz_web + "/index.html"), null ];
	mrs[1] = ["Contacto",getUrl(true,"/" + raiz_web_din + "/jsp/solicitarMasInformacion.jsp"),"/" + raiz_web + "/img/contacto.jpg"];
	mrs[2] = ["Mapa Web",getUrl(false,"/" + raiz_web + "/a3_mapaWeb.html"),"/" + raiz_web + "/img/mapaWeb.jpg"];
	mrs[3] = ["Red de oficinas",getUrl(false,"/" + raiz_web_din + "/jsp/redOficinas.jsp"),"/" + raiz_web + "/img/redOficinas.jpg"];
	mrs[4] = ["Trabaje con nosotros",getUrl(true,"/" + raiz_web_din + "/jsp/a5_trabajaConNosotros.jsp"),"/" + raiz_web + "/img/trabajacon.jpg"];
	
var menuPrincipal = new Array() 
	menuPrincipal[0] = ["PRODUCTOS",getUrl(false,"/" + raiz_web + "/1_productos.html"),"/" + raiz_web + "/img/productos.jpg"];
	menuPrincipal[1] = ["SERVICIO AL CLIENTE",getUrl(false,"/" + raiz_web + "/2_servicioCliente.html"),"/" + raiz_web + "/img/servicioAlCliente.jpg"];
	menuPrincipal[2] = ["SOBRE OCASO",getUrl(false,"/" + raiz_web + "/3_sobreOcaso.html"),"/" + raiz_web + "/img/sobreOcaso.jpg"];

var menuPrincipalSegura = new Array() 
	menuPrincipalSegura[0] = ["PRODUCTOS",getUrl(false,"/" + raiz_web + "/1_productos.html"),"/" + raiz_web + "/img/productos.jpg"];
	menuPrincipalSegura[1] = ["SERVICIO AL CLIENTE",getUrl(false,"/" + raiz_web + "/2_servicioCliente.html"),"/" + raiz_web + "/img/servicioAlCliente.jpg"];
	menuPrincipalSegura[2] = ["SOBRE OCASO",getUrl(false,"/" + raiz_web + "/3_sobreOcaso.html"),"/" + raiz_web + "/img/sobreOcaso.jpg"];
	
var menuSecundarioProductos = new Array() 

	menuSecundarioProductos[0] = ["Vida y accidentes",getUrl(false,"/" + raiz_web + "/1_1_vidaAccidentes.html"),"/" + raiz_web + "/img/vida.jpg"];
	menuSecundarioProductos[1] = ["Decesos",getUrl(false,"/" + raiz_web + "/1_2_fallecimiento.html"),"/" + raiz_web + "/img/fallecimiento.jpg"];
	menuSecundarioProductos[2] = ["Hogar",getUrl(false,"/" + raiz_web + "/1_3_hogar.html"),"/" + raiz_web + "/img/hogar.jpg"];
	menuSecundarioProductos[3] = ["Comunidades",getUrl(false,"/" + raiz_web + "/1_4_comunidades.html"),"/" + raiz_web + "/img/comunidades.jpg"];
	menuSecundarioProductos[4] = ["Ahorro-Inversión",getUrl(false,"/" + raiz_web + "/1_5_ahorroInversion.html"),"/" + raiz_web + "/img/aInversion.jpg"];
	menuSecundarioProductos[5] = ["Ahorro-jubilación",getUrl(false,"/" + raiz_web + "/1_6_ahorroJubilacion.html"),"/" + raiz_web + "/img/ajubilacion.jpg"];
	menuSecundarioProductos[6] = ["Pyme",getUrl(false,"/" + raiz_web + "/1_7_negocio.html"),"/" + raiz_web + "/img/pyme.jpg"];
	menuSecundarioProductos[7] = ["Autos",getUrl(false,"/" + raiz_web + "/1_8_autos.html"),"/" + raiz_web + "/img/cp-autos.jpg"];
	menuSecundarioProductos[8] = ["Ocio y animales",getUrl(false,"/" + raiz_web + "/1_9_ocioYAnimales.html"),"/" + raiz_web + "/img/ocioyanimales.jpg"];
//  menuSecundarioProductos[9] = ["Home Insurance UK",getUrl(false,"/" + raiz_web + "/1_10_ocasoUKBranch.html"),"/" + raiz_web + "/img/UK.jpg"];
    menuSecundarioProductos[9] = ["Comercio",getUrl(false,"/" + raiz_web + "/1_11_comercio.html"),"/" + raiz_web + "/img/comercio.jpg"];

var menuSecundarioProductosContratacionSegura = new Array() 

	menuSecundarioProductosContratacionSegura[0] = ["Vida y accidentes",getUrl(false,"/" + raiz_web + "/1_1_vidaAccidentes.html"),"/" + raiz_web + "/img/vida.jpg"];
	menuSecundarioProductosContratacionSegura[1] = ["Decesos",getUrl(false,"/" + raiz_web + "/1_2_fallecimiento.html"),"/" + raiz_web + "/img/fallecimiento.jpg"];
	menuSecundarioProductosContratacionSegura[2] = ["Hogar",getUrl(false,"/" + raiz_web + "/1_3_hogar.html"),"/" + raiz_web + "/img/hogar.jpg"];
	menuSecundarioProductosContratacionSegura[3] = ["Comunidades",getUrl(false,"/" + raiz_web + "/1_4_comunidades.html"),"/" + raiz_web + "/img/comunidades.jpg"];
	menuSecundarioProductosContratacionSegura[4] = ["Ahorro-Inversión",getUrl(false,"/" + raiz_web + "/1_5_ahorroInversion.html"),"/" + raiz_web + "/img/aInversion.jpg"];
	menuSecundarioProductosContratacionSegura[5] = ["Ahorro-jubilación",getUrl(false,"/" + raiz_web + "/1_6_ahorroJubilacion.html"),"/" + raiz_web + "/img/ajubilacion.jpg"];
	menuSecundarioProductosContratacionSegura[6] = ["Pyme",getUrl(false,"/" + raiz_web + "/1_7_negocio.html"),"/" + raiz_web + "/img/pyme.jpg"];
	menuSecundarioProductosContratacionSegura[7] = ["Autos",getUrl(false,"/" + raiz_web + "/1_8_autos.html"),"/" + raiz_web + "/img/cp-autos.jpg"];
	menuSecundarioProductosContratacionSegura[8] = ["Ocio y animales",getUrl(false,"/" + raiz_web + "/1_9_ocioYAnimales.html"),"/" + raiz_web + "/img/ocioyanimales_contratar-s.jpg"];
//	menuSecundarioProductosContratacionSegura[9] = ["Home Insurance UK",getUrl(false,"/" + raiz_web + "/1_10_ocasoUKBranch.html"),"/" + raiz_web + "/img/UK.jpg"];
    menuSecundarioProductosContratacionSegura[9] = ["Comercio",getUrl(false,"/" + raiz_web + "/1_11_comercio.html"),"/" + raiz_web + "/img/comercio.jpg"];


var menuSecundarioProductosSegura = new Array() 

	menuSecundarioProductosSegura[0] = ["Vida y accidentes",getUrl(false,"/" + raiz_web + "/1_1_vidaAccidentes.html"),"/" + raiz_web + "/img/vida.jpg"];
	menuSecundarioProductosSegura[1] = ["Decesos",getUrl(false,"/" + raiz_web + "/1_2_fallecimiento.html"),"/" + raiz_web + "/img/fallecimiento.jpg"];
	menuSecundarioProductosSegura[2] = ["Hogar",getUrl(false,"/" + raiz_web + "/1_3_hogar.html"),"/" + raiz_web + "/img/hogar.jpg"];
	menuSecundarioProductosSegura[3] = ["Comunidades",getUrl(false,"/" + raiz_web + "/1_4_comunidades.html"),"/" + raiz_web + "/img/comunidades.jpg"];
	menuSecundarioProductosSegura[4] = ["Ahorro-Inversión",getUrl(false,"/" + raiz_web + "/1_5_ahorroInversion.html"),"/" + raiz_web + "/img/aInversion.jpg"];
	menuSecundarioProductosSegura[5] = ["Ahorro-jubilación",getUrl(false,"/" + raiz_web + "/1_6_ahorroJubilacion.html"),"/" + raiz_web + "/img/ajubilacion.jpg"];
	menuSecundarioProductosSegura[6] = ["Pyme",getUrl(false,"/" + raiz_web + "/1_7_negocio.html"),"/" + raiz_web + "/img/pyme.jpg"];
	menuSecundarioProductosSegura[7] = ["Autos",getUrl(false,"/" + raiz_web + "/1_8_autos.html"),"/" + raiz_web + "/img/cp-autos.jpg"];
	menuSecundarioProductosSegura[8] = ["Ocio y animales",getUrl(false,"/" + raiz_web + "/1_9_ocioYAnimales.html"),"/" + raiz_web + "/img/ocioyanimales.jpg"];
//	menuSecundarioProductosSegura[9] = ["Home Insurance UK",getUrl(false,"/" + raiz_web + "/1_10_ocasoUKBranch.html"),"/" + raiz_web + "/img/UK.jpg"];
    menuSecundarioProductosSegura[9] = ["Comercio",getUrl(false,"/" + raiz_web + "/1_11_comercio.html"),"/" + raiz_web + "/img/comercio.jpg"];
	
var menuSecundarioServicios = new Array() 
	menuSecundarioServicios[0] = ["Información Comercial",getUrl(false,"/" + raiz_web + "/2_1_telefonoAtencion24h.html"),"/" + raiz_web + "/img/atencion24.jpg"];
	menuSecundarioServicios[1] = ["Información aseguradora",getUrl(false,"/" + raiz_web + "/2_4_informacionAseguradora.html"),"/" + raiz_web + "/img/infoAseguradora.jpg"];
//	menuSecundarioServicios[2] = ["Agenda Ocaso",getUrl(true,"/" + raiz_web + "/jsp/2_5_agendaOcaso.jsp"),"/" + raiz_web + "/img/agenda.jpg"];
	menuSecundarioServicios[2] = ["Siniestros",getUrl(true,"/" + raiz_web + "/jsp/2_2_siniestros.jsp"),"/" + raiz_web + "/img/siniestros.jpg"];
	menuSecundarioServicios[3] = ["Incidencias",getUrl(true,"/" + raiz_web + "/jsp/2_6_incidencias.jsp"),"/" + raiz_web + "/img/incidencias.jpg"];
	menuSecundarioServicios[4] = ["Consultas",getUrl(false,"/" + raiz_web + "/2_servicioCliente.html"),"/" + raiz_web + "/img/servicioAlCliente.jpg"];
	menuSecundarioServicios[5] = ["Reclamaciones",getUrl(false,"/" + raiz_web + "/normativaReclamaciones.html"),"/" + raiz_web + "/img/reclamaciones.jpg"];

var menuSecundarioServiciosSegura = new Array() 
	menuSecundarioServiciosSegura[0] = ["Información Comercial",getUrl(false,"/" + raiz_web + "/2_1_telefonoAtencion24h.html"),"/" + raiz_web + "/img/atencion24.jpg"];
	menuSecundarioServiciosSegura[1] = ["Información aseguradora",getUrl(false,"/" + raiz_web + "/2_4_informacionAseguradora.html"),"/" + raiz_web + "/img/infoAseguradora.jpg"];
//	menuSecundarioServiciosSegura[2] = ["Agenda Ocaso",getUrl(true,"/" + raiz_web + "/jsp/2_5_agendaOcaso.jsp"),"/" + raiz_web + "/img/agenda.jpg"];
	menuSecundarioServiciosSegura[2] = ["Siniestros",getUrl(true,"/" + raiz_web + "/jsp/2_2_siniestros.jsp"),"/" + raiz_web + "/img/siniestros.jpg"];
	menuSecundarioServiciosSegura[3] = ["Incidencias",getUrl(true,"/" + raiz_web + "/jsp/2_6_incidencias.jsp"),"/" + raiz_web + "/img/incidencias.jpg"];
	menuSecundarioServiciosSegura[4] = ["Consultas",getUrl(false,"/" + raiz_web + "/2_servicioCliente.html"),"/" + raiz_web + "/img/servicioAlCliente.jpg"];
	menuSecundarioServiciosSegura[5] = ["Reclamaciones",getUrl(false,"/" + raiz_web + "/normativaReclamaciones.html"),"/" + raiz_web + "/img/reclamaciones.jpg"];
	

	
var menuSecundarioSobreOcaso = new Array() 
	menuSecundarioSobreOcaso[0] = ["Información Corporativa",getUrl(false,"/" + raiz_web + "/3_1_informacionCorporativa.html"),"/" + raiz_web + "/img/infoCorporativa.jpg"];
	menuSecundarioSobreOcaso[1] = ["La carrera de agente",getUrl(false,"/" + raiz_web + "/3_2_carreraAgente.html"),"/" + raiz_web + "/img/carreraAgente.jpg"];
	menuSecundarioSobreOcaso[2] = ["Dónde estamos",getUrl(false,"/" + raiz_web + "/3_3_dondeEstamos.html"),"/" + raiz_web + "/img/dondeEstamos.jpg"];

var menuSecundarioSobreOcasoSegura = new Array() 
	menuSecundarioSobreOcasoSegura[0] = ["Información Corporativa",getUrl(false,"/" + raiz_web + "/3_1_informacionCorporativa.html"),"/" + raiz_web + "/img/infoCorporativa.jpg"];
	menuSecundarioSobreOcasoSegura[1] = ["La carrera de agente",getUrl(false,"/" + raiz_web + "/3_2_carreraAgente.html"),"/" + raiz_web + "/img/carreraAgente.jpg"];
	menuSecundarioSobreOcasoSegura[2] = ["Dónde estamos",getUrl(false,"/" + raiz_web + "/3_3_dondeEstamos.html"),"/" + raiz_web + "/img/dondeEstamos.jpg"];
}

	if (idioma_web=="en"){
var mr = new Array() 
	mr[0] = ["Home",getUrl(false,"/" + raiz_web + "/index.html"), null ];
	mr[1] = ["Contact",getUrl(true,"/" + raiz_web_din + "/jsp/solicitarMasInformacion.jsp"),"/" + raiz_web + "/img/contacto.jpg"];
	mr[2] = ["Site Map",getUrl(false,"/" + raiz_web + "/a3_mapaWeb.html"),"/" + raiz_web + "/img/mapaWeb.jpg"];
	mr[3] = ["Branches and Offices",getUrl(false,"/" + raiz_web_din + "/jsp/redOficinas.jsp"),"/" + raiz_web + "/img/redOficinas.jpg"];
	mr[4] = ["Join us",getUrl(true,"/" + raiz_web_din + "/jsp/a5_trabajaConNosotros.jsp"),"/" + raiz_web + "/img/trabajacon.jpg"];

var mrs = new Array() 
	mrs[0] = ["Home",getUrl(false,"/" + raiz_web + "/index.html"), null ];
	mrs[1] = ["Contact",getUrl(true,"/" + raiz_web_din + "/jsp/solicitarMasInformacion.jsp"),"/" + raiz_web + "/img/contacto.jpg"];
	mrs[2] = ["Site Map",getUrl(false,"/" + raiz_web + "/a3_mapaWeb.html"),"/" + raiz_web + "/img/mapaWeb.jpg"];
	mrs[3] = ["Branches and Offices",getUrl(false,"/" + raiz_web_din + "/jsp/redOficinas.jsp"),"/" + raiz_web + "/img/redOficinas.jpg"];
	mrs[4] = ["Join us",getUrl(true,"/" + raiz_web_din + "/jsp/a5_trabajaConNosotros.jsp"),"/" + raiz_web + "/img/trabajacon.jpg"];
	
var menuPrincipal = new Array() 
	menuPrincipal[0] = ["PRODUCTS",getUrl(false,"/" + raiz_web + "/1_productos.html"),"/" + raiz_web + "/img/productos.jpg"];
	menuPrincipal[1] = ["CUSTOMER SERVICE",getUrl(false,"/" + raiz_web + "/2_servicioCliente.html"),"/" + raiz_web + "/img/servicioAlCliente.jpg"];
	menuPrincipal[2] = ["ABOUT OCASO",getUrl(false,"/" + raiz_web + "/3_sobreOcaso.html"),"/" + raiz_web + "/img/sobreOcaso.jpg"];

var menuPrincipalSegura = new Array() 
	menuPrincipalSegura[0] = ["PRODUCTS",getUrl(false,"/" + raiz_web + "/1_productos.html"),"/" + raiz_web + "/img/productos.jpg"];
	menuPrincipalSegura[1] = ["CUSTOMER SERVICE",getUrl(false,"/" + raiz_web + "/2_servicioCliente.html"),"/" + raiz_web + "/img/servicioAlCliente.jpg"];
	menuPrincipalSegura[2] = ["ABOUT OCASO",getUrl(false,"/" + raiz_web + "/3_sobreOcaso.html"),"/" + raiz_web + "/img/sobreOcaso.jpg"];
	
var menuSecundarioProductos = new Array() 

	menuSecundarioProductos[0] = ["Life and Accident",getUrl(false,"/" + raiz_web + "/1_1_vidaAccidentes.html"),"/" + raiz_web + "/img/vida.jpg"];
	menuSecundarioProductos[1] = ["Funeral Expenses &nbsp;Insurance",getUrl(false,"/" + raiz_web + "/1_2_fallecimiento.html"),"/" + raiz_web + "/img/fallecimiento.jpg"];
	menuSecundarioProductos[2] = ["Home Insurance",getUrl(false,"/" + raiz_web + "/1_3_hogar.html"),"/" + raiz_web + "/img/hogar.jpg"];
	menuSecundarioProductos[3] = ["Condominium Insurance",getUrl(false,"/" + raiz_web + "/1_4_comunidades.html"),"/" + raiz_web + "/img/comunidades.jpg"];
	menuSecundarioProductos[4] = ["Investment Savings",getUrl(false,"/" + raiz_web + "/1_5_ahorroInversion.html"),"/" + raiz_web + "/img/aInversion.jpg"];
	menuSecundarioProductos[5] = ["Retirement Savings",getUrl(false,"/" + raiz_web + "/1_6_ahorroJubilacion.html"),"/" + raiz_web + "/img/ajubilacion.jpg"];
	menuSecundarioProductos[6] = ["SMEs",getUrl(false,"/" + raiz_web + "/1_7_negocio.html"),"/" + raiz_web + "/img/pyme.jpg"];
	menuSecundarioProductos[7] = ["Motor",getUrl(false,"/" + raiz_web + "/1_8_autos.html"),"/" + raiz_web + "/img/cp-autos.jpg"];
	menuSecundarioProductos[8] = ["Leisure and Pets",getUrl(false,"/" + raiz_web + "/1_9_ocioYAnimales.html"),"/" + raiz_web + "/img/ocioyanimales.jpg"];
//	menuSecundarioProductos[9] = ["Home Insurance UK",getUrl(false,"/" + raiz_web + "/1_10_ocasoUKBranch.html"),"/" + raiz_web + "/img/UK.jpg"];
	menuSecundarioProductos[9] = ["Retail",getUrl(false,"/" + raiz_web + "/1_11_comercio.html"),"/" + raiz_web + "/img/comercio.jpg"];

var menuSecundarioProductosSegura = new Array() 

	menuSecundarioProductosSegura[0] = ["Life and Accident",getUrl(false,"/" + raiz_web + "/1_1_vidaAccidentes.html"),"/" + raiz_web + "/img/vida.jpg"];
	menuSecundarioProductosSegura[1] = ["Funeral Expenses &nbsp;Insurance",getUrl(false,"/" + raiz_web + "/1_2_fallecimiento.html"),"/" + raiz_web + "/img/fallecimiento.jpg"];
	menuSecundarioProductosSegura[2] = ["Home Insurance",getUrl(false,"/" + raiz_web + "/1_3_hogar.html"),"/" + raiz_web + "/img/hogar.jpg"];
	menuSecundarioProductosSegura[3] = ["Condominium Insurance",getUrl(false,"/" + raiz_web + "/1_4_comunidades.html"),"/" + raiz_web + "/img/comunidades.jpg"];
	menuSecundarioProductosSegura[4] = ["Investment Savings",getUrl(false,"/" + raiz_web + "/1_5_ahorroInversion.html"),"/" + raiz_web + "/img/aInversion.jpg"];
	menuSecundarioProductosSegura[5] = ["Retirement Savings",getUrl(false,"/" + raiz_web + "/1_6_ahorroJubilacion.html"),"/" + raiz_web + "/img/ajubilacion.jpg"];
	menuSecundarioProductosSegura[6] = ["SMEs and Retail",getUrl(false,"/" + raiz_web + "/1_7_negocio.html"),"/" + raiz_web + "/img/pyme.jpg"];
	menuSecundarioProductosSegura[7] = ["Motor",getUrl(false,"/" + raiz_web + "/1_8_autos.html"),"/" + raiz_web + "/img/cp-autos.jpg"];
	menuSecundarioProductosSegura[8] = ["Leisure and Pets",getUrl(false,"/" + raiz_web + "/1_9_ocioYAnimales.html"),"/" + raiz_web + "/img/ocioyanimales.jpg"];
//	menuSecundarioProductosSegura[9] = ["Home Insurance UK",getUrl(false,"/" + raiz_web + "/1_10_ocasoUKBranch.html"),"/" + raiz_web + "/img/UK.jpg"];
    menuSecundarioProductosSegura[9] = ["Retail",getUrl(false,"/" + raiz_web + "/1_11_comercio.html"),"/" + raiz_web + "/img/comercio.jpg"];
	
var menuSecundarioServicios = new Array() 
	menuSecundarioServicios[0] = ["Product Information",getUrl(false,"/" + raiz_web + "/2_1_telefonoAtencion24h.html"),"/" + raiz_web + "/img/atencion24.jpg"];
	menuSecundarioServicios[1] = ["Insurance Information",getUrl(false,"/" + raiz_web + "/2_4_informacionAseguradora.html"),"/" + raiz_web + "/img/infoAseguradora.jpg"];
//	menuSecundarioServicios[2] = ["Ocaso Diary",getUrl(true,"/" + raiz_web + "/jsp/2_5_agendaOcaso.jsp"),"/" + raiz_web + "/img/agenda.jpg"];
	menuSecundarioServicios[2] = ["Claim Notification",getUrl(true,"/" + raiz_web + "/jsp/2_2_siniestros.jsp"),"/" + raiz_web + "/img/siniestros.jpg"];
	menuSecundarioServicios[3] = ["Inquiries",getUrl(true,"/" + raiz_web + "/jsp/2_6_incidencias.jsp"),"/" + raiz_web + "/img/incidencias.jpg"];
	menuSecundarioServicios[4] = ["Queries","#","#"];
	menuSecundarioServicios[5] = ["Complaints",getUrl(false,"/" + raiz_web + "/normativaReclamaciones.html"),"/" + raiz_web + "/img/reclamaciones.jpg"];

var menuSecundarioServiciosSegura = new Array() 
	menuSecundarioServiciosSegura[0] = ["Product Information",getUrl(false,"/" + raiz_web + "/2_1_telefonoAtencion24h.html"),"/" + raiz_web + "/img/atencion24.jpg"];
	menuSecundarioServiciosSegura[1] = ["Insurance Information",getUrl(false,"/" + raiz_web + "/2_4_informacionAseguradora.html"),"/" + raiz_web + "/img/infoAseguradora.jpg"];
//	menuSecundarioServiciosSegura[2] = ["Ocaso Diary",getUrl(true,"/" + raiz_web + "/jsp/2_5_agendaOcaso.jsp"),"/" + raiz_web + "/img/agenda.jpg"];
	menuSecundarioServiciosSegura[2] = ["Claim Notification",getUrl(true,"/" + raiz_web + "/jsp/2_2_siniestros.jsp"),"/" + raiz_web + "/img/siniestros.jpg"];
	menuSecundarioServiciosSegura[3] = ["Inquiries",getUrl(true,"/" + raiz_web + "/jsp/2_6_incidencias.jsp"),"/" + raiz_web + "/img/incidencias.jpg"];
	menuSecundarioServiciosSegura[4] = ["Queries","#","#"];
	menuSecundarioServiciosSegura[5] = ["Complaints",getUrl(false,"/" + raiz_web + "/normativaReclamaciones.html"),"/" + raiz_web + "/img/reclamaciones.jpg"];
	

	
var menuSecundarioSobreOcaso = new Array() 
	menuSecundarioSobreOcaso[0] = ["Corporate Information",getUrl(false,"/" + raiz_web + "/3_1_informacionCorporativa.html"),"/" + raiz_web + "/img/infoCorporativa.jpg"];
	menuSecundarioSobreOcaso[1] = ["Join us",getUrl(false,"/" + raiz_web + "/3_2_carreraAgente.html"),"/" + raiz_web + "/img/carreraAgente.jpg"];
	menuSecundarioSobreOcaso[2] = ["Where to find us",getUrl(false,"/" + raiz_web + "/3_3_dondeEstamos.html"),"/" + raiz_web + "/img/dondeEstamos.jpg"];

var menuSecundarioSobreOcasoSegura = new Array() 
	menuSecundarioSobreOcasoSegura[0] = ["Corporate Information",getUrl(false,"/" + raiz_web + "/3_1_informacionCorporativa.html"),"/" + raiz_web + "/img/infoCorporativa.jpg"];
	menuSecundarioSobreOcasoSegura[1] = ["Join us",getUrl(false,"/" + raiz_web + "/3_2_carreraAgente.html"),"/" + raiz_web + "/img/carreraAgente.jpg"];
	menuSecundarioSobreOcasoSegura[2] = ["Where to find us",getUrl(false,"/" + raiz_web + "/3_3_dondeEstamos.html"),"/" + raiz_web + "/img/dondeEstamos.jpg"];
}
  
var menuSecundario = new Array();


function accesoAreaPrivada() {
//	 var urlLogin = "http://svd01001.desa/GUsuarios/jsp/login.jsp";
	 var urlLogin = "https://mediadores.ocaso.es";
	 top.location.href = urlLogin;
}



function escribirCabecera(){


if (estadoMenuPrincipal==0){
		menuSecundario = menuSecundarioProductos;
	} else if (estadoMenuPrincipal==1){
		menuSecundario = menuSecundarioServicios;
	} else if (estadoMenuPrincipal==2){
		menuSecundario = menuSecundarioSobreOcaso;
	}

	txt = "";
	//txt += "<div id=\"contenedorES\">\n";

	txt += "	<div id=\"navrec\">\n";
	txt += "	<img src=\"/" + raiz_web + "/img/logo_ocaso2.gif\" alt=\"Ocaso Seguros\" name=\"logoocaso\" width=\"130\" height=\"60\" border=0 ";
	txt += "id=\"logoocaso\" />\n";
	txt += "		<div id=\"enlacesrec\">\n";
	txt += "		<ul>\n";
	if (idioma_web=="en"){
		txt += "			<li class=\"telefono\">&nbsp;Phone contact: <strong>901 25 65 65</strong></li>\n";
		//txt += "			<li class=\"pais\">go to <a href=\"http://was-desa.desarrollo.ocaso.pri/web_uk/home.html\">ocaso.co.uk</a></li>\n";
		txt += "			<li class=\"pais\">go to <a href=\"http://www.ocaso.co.uk\">ocaso.co.uk</a></li>\n";
		txt += "			<li class=\"idioma\"><img src=\"/" + raiz_web + "/img/ani_globo_ocaso.gif\" align=\"left\" valign=\"middle\"></li>\n";
		txt += "			<li class=\"flecha\"><img src=\"/" + raiz_web + "/img/flecha_naranja.gif\" align=\"left\" valign=\"middle\"></li>\n";
		txt += "			<li class=\"idioma\"><select name=\"selIdioma\" onChange=\"JavaScript=cambiarIdioma(this.value);\"><option value=\"\">Change language ...</option><option value=\"es\">spanish</option><option value=\"en\">english</option></select></li>\n";	
	} else {
		//txt += "			<li class=\"navidad\"> <a href=\"javascript:void(window.open('/" + raiz_web + "/micrositios/Navidad2007/navidad2007.html','popup','toolbar=no,menubar=no,scrollbars=no,resizable=no,width=600, height=500'))\">Felicitación de Navidad</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>\n";
		txt += "			<li class=\"telefono\">&nbsp;Atención al cliente: <strong>901 25 65 65</strong></li>\n";
		//txt += "			<li class=\"tv\"> <a href=\"javascript:void(window.open('/" + raiz_web + "/micrositios/VideoInstitucional/videoInstitucional.html','popup','toolbar=no,menubar=no,scrollbars=no,resizable=no,width=318, height=240'))\">Visualizar Spot de TV</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>\n";

		txt += "			<li class=\"pais\">ir a <a href=\"http://www.ocaso.co.uk\">ocaso.co.uk</a></li>\n";
		txt += "			<li class=\"idioma\"><img src=\"/" + raiz_web + "/img/ani_globo_ocaso.gif\" align=\"left\" valign=\"middle\"></li>\n";
		txt += "			<li class=\"flecha\"><img src=\"/" + raiz_web + "/img/flecha_naranja.gif\" align=\"left\" valign=\"middle\"></li>\n";
		txt += "			<li class=\"idioma\"><select name=\"selIdioma\" onChange=\"JavaScript=cambiarIdioma(this.value);\"><option value=\"\">Cambiar idioma ...</option><option value=\"es\">español</option><option value=\"en\">inglés</option></select></li>\n";	

	}
	txt += "		</ul>\n";
	txt += "		</div>\n";
	txt += "		<div id=\"navpestanyas\">\n";
	txt += "		<ul>\n";
	if (idioma_web=="en"){
		txt += "			<li><a href=\"" + mr[0][1] + "\">Home</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mr[1][1] + "\">Contact</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mr[2][1] + "\">Site&nbsp;Map</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mr[3][1] + "\">Branches&nbsp;and&nbsp;offices</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mr[4][1] + "\">Join&nbsp;us</a><span class=\"separador\"></span></li>\n";
		txt += "			<li class=\"amarilla\"><a href=\"#\" onclick=\"accesoAreaPrivada();\">Restricted&nbsp;Area</a><span ";
		txt += "class=\"finpestanyas\">&nbsp;</span></li>\n";
	} else {
		txt += "			<li><a href=\"" + mr[0][1] + "\">Inicio</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mr[1][1] + "\">Contacto</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mr[2][1] + "\">Mapa&nbsp;Web</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mr[3][1] + "\">Red&nbsp;de&nbsp;Oficinas</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mr[4][1] + "\">Trabaje&nbsp;con&nbsp;Nosotros</a><span class=\"separador\"></span></li>\n";
		txt += "			<li class=\"amarilla\"><a href=\"#\" onclick=\"accesoAreaPrivada();\">Area&nbsp;privada</a><span ";
		txt += "class=\"finpestanyas\">&nbsp;</span></li>\n";
	}
	txt += "		</ul>\n";
	txt += "		</div>\n";
	txt += "  </div>\n";

	txt += "	<div id=\"navppal\">\n";
	txt += "	<ul>\n";

	if (idioma_web=="en"){
		if (estadoMenuPrincipal==-1){
			txt += "		<li><a id=\"enlace1\" title=\"Products\" href=\"" +  menuPrincipal[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Customer Services\" href=\"" + menuPrincipal[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"About Ocaso\"  href=\"" +  menuPrincipal[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==0){
	
			txt += "		<li><a id=\"enlace1sel\" title=\"Products\" href=\"" +  menuPrincipal[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Customer Services\" href=\"" + menuPrincipal[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"About Ocaso\"  href=\"" +  menuPrincipal[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==1){
			txt += "		<li><a id=\"enlace1\" title=\"Products\" href=\"" +  menuPrincipal[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2sel\" title=\"Customer Services\" href=\"" + menuPrincipal[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"About Ocaso\"  href=\"" +  menuPrincipal[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==2){
			txt += "		<li><a id=\"enlace1\" title=\"Products\" href=\"" +  menuPrincipal[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Customer Services\" href=\"" + menuPrincipal[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3sel\" title=\"About Ocaso\"  href=\"" +  menuPrincipal[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		}
	} else {
		if (estadoMenuPrincipal==-1){
			txt += "		<li><a id=\"enlace1\" title=\"Productos\" href=\"" +  menuPrincipal[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Servicios\" href=\"" + menuPrincipal[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipal[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==0){
	
			txt += "		<li><a id=\"enlace1sel\" title=\"Productos\" href=\"" +  menuPrincipal[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Servicios\" href=\"" + menuPrincipal[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipal[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==1){
			txt += "		<li><a id=\"enlace1\" title=\"Productos\" href=\"" +  menuPrincipal[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2sel\" title=\"Servicios\" href=\"" + menuPrincipal[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipal[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==2){
			txt += "		<li><a id=\"enlace1\" title=\"Productos\" href=\"" +  menuPrincipal[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Servicios\" href=\"" + menuPrincipal[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3sel\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipal[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		}	
	}

	txt += "	</ul>\n";
	txt += "	</div>\n";
	txt += "<br clear='all'/>";

	if (estadomr!=0 ){
		// si no estamos en la home
		if (estadomr==-1 && estadoMenuPrincipal==-1 && estadoMenuSecundario==-1){
			imagen="/" + raiz_web + "/img/tituloArea.jpg";
		}else{
			if (estadoMenuSecundario>-1 && estadoMenuSecundario < menuSecundario.length){
				imagen = menuSecundario[estadoMenuSecundario][2];
			} else if (estadoMenuPrincipal>-1 && estadoMenuPrincipal < menuPrincipal.length){
				imagen = menuPrincipal[estadoMenuPrincipal][2];
			} else if (estadomr!=0 && estadomr < mr.length){
				imagen = mr[estadomr][2];
		    }
			if (imagenAlternativa!=null){
				imagen=imagenAlternativa;
			}
		}	 
		txt += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"780\" align=\"center\">\n";
		txt += "<tr>\n";
		txt += "	<td><img src=\"" + imagen + "\" width=\"780\" height=\"87\" border=\"0\"></td>\n";
		txt += "</tr>\n";
		txt += "</table>\n";
	}
	txt += "<input type=\"hidden\" name=\"nombreProducto\" value=\"" + nombreProducto + "\">\n";
	txt += "<input type=\"hidden\" name=\"nombreFamilia\" value=\"" + nombreFamilia + "\">\n";
	txt += "<input type=\"hidden\" name=\"nombreImagen\" value=\"" + nombreImagen + "\">\n";
	document.write(txt);
}

 function escribirCabeceraSegura(){

	if (estadoMenuPrincipal==0){
		menuSecundario = menuSecundarioProductosSegura;
	} else if (estadoMenuPrincipal==1){
		menuSecundario = menuSecundarioServiciosSegura;
	} else if (estadoMenuPrincipal==2){
		menuSecundario = menuSecundarioSobreOcasoSegura;
	}

	txt = "";
	//txt += "<div id=\"contenedorES\">\n";
	txt += "	<div id=\"navrec\">\n";
	txt += "	<img src=\"/" + raiz_web + "/img/logo_ocaso2.gif\" alt=\"Ocaso Seguros\" name=\"logoocaso\" width=\"130\" height=\"60\" ";
	txt += "id=\"logoocaso\" />\n";
	txt += "		<div id=\"enlacesrec\">\n";
	txt += "		<ul>\n";
	if (idioma_web=="en"){
		txt += "			<li class=\"telefono\">&nbsp;Phone contact: <strong>901 25 65 65</strong></li>\n";
		txt += "			<li class=\"pais\">go to <a href=\"http://www.ocaso.co.uk\">ocaso.co.uk</a></li>\n";
		//txt += "			<li class=\"pais\">go to <a href=\"http://empleados.pruebas.ocaso.pri/web_uk/home.html\">ocaso.co.uk</a></li>\n";
		txt += "			<li class=\"idioma\"><img src=\"/" + raiz_web + "/img/ani_globo_ocaso.gif\" align=\"left\" valign=\"middle\"></li>\n";
		txt += "			<li class=\"flecha\"><img src=\"/" + raiz_web + "/img/flecha_naranja.gif\" align=\"left\" valign=\"middle\"></li>\n";
		txt += "			<li class=\"idioma\"><select name=\"selIdioma\" onChange=\"JavaScript=cambiarIdioma(this.value);\"><option value=\"\">Change language ...</option><option value=\"es\">español</option><option value=\"en\">english</option></select></li>\n";
		
	} else {
		txt += "			<li class=\"telefono\">&nbsp;Atención al cliente: <strong>901 25 65 65</strong></li>\n";

		txt += "			<li class=\"pais\">go to <a href=\"http://www.ocaso.co.uk\">ocaso.co.uk</a></li>\n";
		txt += "			<li class=\"idioma\"><img src=\"/" + raiz_web + "/img/ani_globo_ocaso.gif\" align=\"left\" valign=\"middle\"></li>\n";
		txt += "			<li class=\"flecha\"><img src=\"/" + raiz_web + "/img/flecha_naranja.gif\" align=\"left\" valign=\"middle\"></li>\n";
		txt += "			<li class=\"idioma\"><select name=\"selIdioma\" onChange=\"JavaScript=cambiarIdioma(this.value);\"><option value=\"\">Cambiar idioma ...</option><option value=\"es\">español</option><option value=\"en\">english</option></select></li>\n";	

	}		
	txt += "		</ul>\n";
	txt += "		</div>\n";
	txt += "		<div id=\"navpestanyas\">\n";
	txt += "		<ul>\n";
	if (idioma_web=="en"){	
		txt += "			<li><a href=\"" + mrs[0][1] + "\">Home</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[1][1] + "\">Contact</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[2][1] + "\">Site&nbsp;Map</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[3][1] + "\">Branches&nbsp;and&nbsp;offices</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[4][1] + "\">Join&nbsp;us</a><span class=\"separador\"></span></li>\n";
		txt += "			<li class=\"amarilla\"><a href=\"#\" onclick=\"accesoAreaPrivada();\">Restricted&nbsp;Area</a><span ";
		txt += "class=\"finpestanyas\">&nbsp;</span></li>\n";
	} else {
		txt += "			<li><a href=\"" + mrs[0][1] + "\">Inicio</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[1][1] + "\">Contacto</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[2][1] + "\">Mapa&nbsp;Web</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[3][1] + "\">Red&nbsp;de&nbsp;Oficinas</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[4][1] + "\">Trabaje&nbsp;con&nbsp;Nosotros</a><span class=\"separador\"></span></li>\n";
		txt += "			<li class=\"amarilla\"><a href=\"#\" onclick=\"accesoAreaPrivada();\">Area&nbsp;privada</a><span ";
		txt += "class=\"finpestanyas\">&nbsp;</span></li>\n";
	}	
	txt += "		</ul>\n";
	txt += "		</div>\n";
	txt += "  </div>\n";
	txt += "	<div id=\"navppal\">\n";
	txt += "	<ul>\n";

	if (idioma_web=="en"){		
		if (estadoMenuPrincipal==-1){
			txt += "		<li><a id=\"enlace1\" title=\"Products\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Customer Services\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"About Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==0){
			txt += "		<li><a id=\"enlace1sel\" title=\"Products\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Customer Services\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"About Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==1){
			txt += "		<li><a id=\"enlace1\" title=\"Products\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2sel\" title=\"Customer Services\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"About Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==2){
			txt += "		<li><a id=\"enlace1\" title=\"Products\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Customer Services\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3sel\" title=\"About Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		}
	} else {
		if (estadoMenuPrincipal==-1){
			txt += "		<li><a id=\"enlace1\" title=\"Productos\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Servicios\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==0){
			txt += "		<li><a id=\"enlace1sel\" title=\"Productos\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Servicios\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==1){
			txt += "		<li><a id=\"enlace1\" title=\"Productos\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2sel\" title=\"Servicios\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==2){
			txt += "		<li><a id=\"enlace1\" title=\"Productos\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Servicios\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3sel\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		}
	}
	txt += "	</ul>\n";
	txt += "	</div>\n";
	txt += "<br clear='all'/>";
	
	txt += "<input type=\"hidden\" name=\"nombreProducto\" value=\"" + nombreProducto + "\">\n";
	txt += "<input type=\"hidden\" name=\"nombreFamilia\" value=\"" + nombreFamilia + "\">\n";
	txt += "<input type=\"hidden\" name=\"nombreImagen\" value=\"" + nombreImagen + "\">\n";

	if (estadomr!=0 ){
		// si no estamos en la home
		if (estadomr==-1 && estadoMenuPrincipal==-1 && estadoMenuSecundario==-1){
			imagen="/" + raiz_web + "/img/tituloArea.jpg";
		}else{
			if (estadoMenuSecundario>-1 && estadoMenuSecundario < menuSecundario.length){
				imagen = menuSecundario[estadoMenuSecundario][2];
			} else if (estadoMenuPrincipal>-1 && estadoMenuPrincipal < menuPrincipal.length){
				imagen = menuPrincipalSegura[estadoMenuPrincipal][2];
			} else if (estadomr!=0 && estadomr < mr.length){
				imagen = mrs[estadomr][2];
		    }
			if (imagenAlternativa!=null){
				imagen=imagenAlternativa;
			}
		}	 
		txt += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"780\" align=\"center\">\n";
		txt += "<tr>\n";
		txt += "	<td><img src=\"" + imagen + "\" width=\"780\" height=\"87\" border=\"0\"></td>\n";
		txt += "</tr>\n";
		txt += "</table>\n";
	}
	document.write(txt);
}

 function escribirCabeceraContratacionSegura(){

	if (estadoMenuPrincipal==0){
		menuSecundario = menuSecundarioProductosContratacionSegura;
	} else if (estadoMenuPrincipal==1){
		menuSecundario = menuSecundarioProductosContratacionSegura;
	} else if (estadoMenuPrincipal==2){
		menuSecundario = menuSecundarioProductosContratacionSegura;
	}

	txt = "";
	//txt += "<div id=\"contenedorES\">\n";
	txt += "	<div id=\"navrec\">\n";
	txt += "	<img src=\"/" + raiz_web + "/img/logo_ocaso2.gif\" alt=\"Ocaso Seguros\" name=\"logoocaso\" width=\"130\" height=\"60\" ";
	txt += "id=\"logoocaso\" />\n";
	txt += "		<div id=\"enlacesrec\">\n";
	txt += "		<ul>\n";
	if (idioma_web=="en"){
		txt += "			<li class=\"telefono\">&nbsp;Phone contact: <strong>901 25 65 65</strong></li>\n";
		txt += "			<li class=\"pais\">go to <a href=\"http://www.ocaso.co.uk\">ocaso.co.uk</a></li>\n";
		//txt += "			<li class=\"pais\">go to <a href=\"http://empleados.pruebas.ocaso.pri/web_uk/home.html\">ocaso.co.uk</a></li>\n";
		txt += "			<li class=\"idioma\"><img src=\"/" + raiz_web + "/img/ani_globo_ocaso.gif\" align=\"left\" valign=\"middle\"></li>\n";
		txt += "			<li class=\"flecha\"><img src=\"/" + raiz_web + "/img/flecha_naranja.gif\" align=\"left\" valign=\"middle\"></li>\n";
		txt += "			<li class=\"idioma\"><select name=\"selIdioma\" onChange=\"JavaScript=cambiarIdioma(this.value);\"><option value=\"\">Change language ...</option><option value=\"es\">español</option><option value=\"en\">english</option></select></li>\n";
		
	} else {
		txt += "			<li class=\"telefono\">&nbsp;Atención al cliente: <strong>901 25 65 65</strong></li>\n";

		txt += "			<li class=\"pais\">go to <a href=\"http://www.ocaso.co.uk\">ocaso.co.uk</a></li>\n";
		txt += "			<li class=\"idioma\"><img src=\"/" + raiz_web + "/img/ani_globo_ocaso.gif\" align=\"left\" valign=\"middle\"></li>\n";
		txt += "			<li class=\"flecha\"><img src=\"/" + raiz_web + "/img/flecha_naranja.gif\" align=\"left\" valign=\"middle\"></li>\n";
		txt += "			<li class=\"idioma\"><select name=\"selIdioma\" onChange=\"JavaScript=cambiarIdioma(this.value);\"><option value=\"\">Cambiar idioma ...</option><option value=\"es\">español</option><option value=\"en\">english</option></select></li>\n";	

	}		
	txt += "		</ul>\n";
	txt += "		</div>\n";
	txt += "		<div id=\"navpestanyas\">\n";
	txt += "		<ul>\n";
	if (idioma_web=="en"){	
		txt += "			<li><a href=\"" + mrs[0][1] + "\">Home</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[1][1] + "\">Contact</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[2][1] + "\">Site&nbsp;Map</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[3][1] + "\">Branches&nbsp;and&nbsp;offices</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[4][1] + "\">Join&nbsp;us</a><span class=\"separador\"></span></li>\n";
		txt += "			<li class=\"amarilla\"><a href=\"#\" onclick=\"accesoAreaPrivada();\">Restricted&nbsp;Area</a><span ";
		txt += "class=\"finpestanyas\">&nbsp;</span></li>\n";
	} else {
		txt += "			<li><a href=\"" + mrs[0][1] + "\">Inicio</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[1][1] + "\">Contacto</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[2][1] + "\">Mapa&nbsp;Web</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[3][1] + "\">Red&nbsp;de&nbsp;Oficinas</a><span class=\"separador\"></span></li>\n";
		txt += "			<li><a href=\"" + mrs[4][1] + "\">Trabaje&nbsp;con&nbsp;Nosotros</a><span class=\"separador\"></span></li>\n";
		txt += "			<li class=\"amarilla\"><a href=\"#\" onclick=\"accesoAreaPrivada();\">Area&nbsp;privada</a><span ";
		txt += "class=\"finpestanyas\">&nbsp;</span></li>\n";
	}	
	txt += "		</ul>\n";
	txt += "		</div>\n";
	txt += "  </div>\n";
	txt += "	<div id=\"navppal\">\n";
	txt += "	<ul>\n";

	if (idioma_web=="en"){		
		if (estadoMenuPrincipal==-1){
			txt += "		<li><a id=\"enlace1\" title=\"Products\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Customer Services\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"About Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==0){
			txt += "		<li><a id=\"enlace1sel\" title=\"Products\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Customer Services\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"About Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==1){
			txt += "		<li><a id=\"enlace1\" title=\"Products\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2sel\" title=\"Customer Services\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"About Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==2){
			txt += "		<li><a id=\"enlace1\" title=\"Products\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Customer Services\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3sel\" title=\"About Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		}
	} else {
		if (estadoMenuPrincipal==-1){
			txt += "		<li><a id=\"enlace1\" title=\"Productos\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Servicios\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==0){
			txt += "		<li><a id=\"enlace1sel\" title=\"Productos\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Servicios\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==1){
			txt += "		<li><a id=\"enlace1\" title=\"Productos\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2sel\" title=\"Servicios\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		} else if (estadoMenuPrincipal==2){
			txt += "		<li><a id=\"enlace1\" title=\"Productos\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
			txt += "		<li><a id=\"enlace2\" title=\"Servicios\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
			txt += "		<li><a id=\"enlace3sel\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
		}
	}
	txt += "	</ul>\n";
	txt += "	</div>\n";
	txt += "<br clear='all'/>";
	
	txt += "<input type=\"hidden\" name=\"nombreProducto\" value=\"" + nombreProducto + "\">\n";
	txt += "<input type=\"hidden\" name=\"nombreFamilia\" value=\"" + nombreFamilia + "\">\n";
	txt += "<input type=\"hidden\" name=\"nombreImagen\" value=\"" + nombreImagen + "\">\n";

	if (estadomr!=0 ){
		// si no estamos en la home
		if (estadomr==-1 && estadoMenuPrincipal==-1 && estadoMenuSecundario==-1){
			imagen="/" + raiz_web + "/img/tituloArea.jpg";
		}else{
			if (estadoMenuSecundario>-1 && estadoMenuSecundario < menuSecundario.length){
				imagen = menuSecundario[estadoMenuSecundario][2];
			} else if (estadoMenuPrincipal>-1 && estadoMenuPrincipal < menuPrincipal.length){
				imagen = menuPrincipalSegura[estadoMenuPrincipal][2];
			} else if (estadomr!=0 && estadomr < mr.length){
				imagen = mrs[estadomr][2];
		    }
			if (imagenAlternativa!=null){
				imagen=imagenAlternativa;
			}
		}	 
		txt += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"780\" align=\"center\">\n";
		txt += "<tr>\n";
		txt += "	<td><img src=\"" + imagen + "\" width=\"780\" height=\"87\" border=\"0\"></td>\n";
		txt += "</tr>\n";
		txt += "</table>\n";
	}
	document.write(txt);
}


/* function escribirCabeceraSegura(){

	if (estadoMenuPrincipal==0){
		menuSecundario = menuSecundarioProductosSegura;
	} else if (estadoMenuPrincipal==1){
		menuSecundario = menuSecundarioServiciosSegura;
	} else if (estadoMenuPrincipal==2){
		menuSecundario = menuSecundarioSobreOcasoSegura;
	}

	txt = "";
	//txt += "<div id=\"contenedorES\">\n";
	txt += "	<div id=\"navrec\">\n";
	txt += "	<img src=\"/" + raiz_web + "/img/logo_ocaso.gif\" alt=\"Ocaso\" name=\"logoocaso\" width=\"130\" height=\"70\" ";
	txt += "id=\"logoocaso\" />\n";
	txt += "		<div id=\"enlacesrec\">\n";
	txt += "		<ul>\n";
	txt += "			<li class=\"telefono\">&nbsp;Atención al cliente: <strong>901 25 65 65</strong></li>\n";
	txt += "			<li class=\"pais\">go to <a href=\"http://www.ocaso.co.uk\">ocaso.co.uk</a></li>\n";
	txt += "			<li class=\"idioma\"><img src=\"/" + raiz_web + "/img/ani_globo_ocaso.gif\" align=\"left\" valign=\"middle\"></li>\n";
	txt += "			<li class=\"flecha\"><img src=\"/" + raiz_web + "/img/flecha_naranja.gif\" align=\"left\" valign=\"middle\"></li>\n";
	txt += "			<li class=\"idioma\"><select name=\"selIdioma\" onChange=\"JavaScript=cambiarIdioma(this.value);\"><option value=\"\">Cambiar idioma ...</option><option value=\"es\">español</option><option value=\"en\">english</option></select></li>\n";
	
	txt += "		</ul>\n";
	txt += "		</div>\n";
	txt += "		<div id=\"navpestanyas\">\n";
	txt += "		<ul>\n";
	txt += "			<li><a href=\"" + mrs[0][1] + "\">Inicio</a><span class=\"separador\"></span></li>\n";
	txt += "			<li><a href=\"" + mrs[1][1] + "\">Contacto</a><span class=\"separador\"></span></li>\n";
	txt += "			<li><a href=\"" + mrs[2][1] + "\">Mapa&nbsp;Web</a><span class=\"separador\"></span></li>\n";
	txt += "			<li><a href=\"" + mrs[3][1] + "\">Red&nbsp;de&nbsp;Oficinas</a><span class=\"separador\"></span></li>\n";
	txt += "			<li><a href=\"" + mrs[4][1] + "\">Trabaja&nbsp;con&nbsp;Nosotros</a><span class=\"separador\"></span></li>\n";
	txt += "			<li class=\"amarilla\"><a href=\"#\" onclick=\"accesoAreaPrivada();\">Area&nbsp;privada</a><span ";
	txt += "class=\"finpestanyas\">&nbsp;</span></li>\n";
	txt += "		</ul>\n";
	txt += "		</div>\n";
	txt += "  </div>\n";
	txt += "	<div id=\"navppal\">\n";
	txt += "	<ul>\n";
	
	if (estadoMenuPrincipal==-1){
		txt += "		<li><a id=\"enlace1\" title=\"Productos\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
		txt += "		<li><a id=\"enlace2\" title=\"Servicios\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
		txt += "		<li><a id=\"enlace3\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
	} else if (estadoMenuPrincipal==0){
		txt += "		<li><a id=\"enlace1sel\" title=\"Productos\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
		txt += "		<li><a id=\"enlace2\" title=\"Servicios\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
		txt += "		<li><a id=\"enlace3\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
	} else if (estadoMenuPrincipal==1){
		txt += "		<li><a id=\"enlace1\" title=\"Productos\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
		txt += "		<li><a id=\"enlace2sel\" title=\"Servicios\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
		txt += "		<li><a id=\"enlace3\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";
	} else if (estadoMenuPrincipal==2){
		txt += "		<li><a id=\"enlace1\" title=\"Productos\" href=\"" +  menuPrincipalSegura[0][1] + "\"><span>Productos</span></a></li>\n";
		txt += "		<li><a id=\"enlace2\" title=\"Servicios\" href=\"" + menuPrincipalSegura[1][1] + "\"><span>Servicios</span></a></li>\n";
		txt += "		<li><a id=\"enlace3sel\" title=\"Sobre Ocaso\"  href=\"" +  menuPrincipalSegura[2][1] + "\"><span>Sobre Ocaso</span></a></li>\n";	}

	txt += "	</ul>\n";
	txt += "	</div>\n";
	txt += "<input type=\"hidden\" name=\"nombreProducto\" value=\"" + nombreProducto + "\">\n";
	txt += "<input type=\"hidden\" name=\"nombreFamilia\" value=\"" + nombreFamilia + "\">\n";
	txt += "<input type=\"hidden\" name=\"nombreImagen\" value=\"" + nombreImagen + "\">\n";

	if (estadomr!=0 ){
		// si no estamos en la home
		if (estadomr==-1 && estadoMenuPrincipal==-1 && estadoMenuSecundario==-1){
			imagen="/" + raiz_web + "/img/tituloArea.jpg";
		}else{
			if (estadoMenuSecundario>-1 && estadoMenuSecundario < menuSecundario.length){
				imagen = menuSecundario[estadoMenuSecundario][2];
			} else if (estadoMenuPrincipal>-1 && estadoMenuPrincipal < menuPrincipal.length){
				imagen = menuPrincipalSegura[estadoMenuPrincipal][2];
			} else if (estadomr!=0 && estadomr < mr.length){
				imagen = mrs[estadomr][2];
		    }
			if (imagenAlternativa!=null){
				imagen=imagenAlternativa;
			}
		}	 
		txt += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"780\" align=\"center\">\n";
		txt += "<tr>\n";
		txt += "	<td><img src=\"" + imagen + "\" width=\"780\" height=\"87\" border=\"0\"></td>\n";
		txt += "</tr>\n";
		txt += "</table>\n";
	}
	document.write(txt);
}*/

function escribirCabeceraOLD(){
	
	if (estadoMenuPrincipal==0){
		menuSecundario = menuSecundarioProductos;
	} else if (estadoMenuPrincipal==1){
		menuSecundario = menuSecundarioServicios;
	} else if (estadoMenuPrincipal==2){
		menuSecundario = menuSecundarioSobreOcaso;
	}
	
	txt = "";
	txt += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"780\" align=\"center\">\n";
	txt += "<tr>\n";
	txt += "	<td width=\"364\" rowspan=\"2\"><a href=\"JavaScript:this.location=getUrl(false,'/' + raiz_web + '/');\" onclick=\"right(this);\"><img src=\"/" + raiz_web + "/img/logo.gif\" width=\"163\" height=\"65\" alt=\"Volver Inicio\" border=\"0\"></a></td>\n";
    txt += "	<td height=\"50\" width=\"260\">\n";
	txt += "        <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"260\">\n";
	txt += "	    <tr>\n";
	txt += "		    <td colspan=\"5\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"20\"></td>\n";		
	txt += "	    </tr>\n";	
	txt += "	    <tr>\n";
	txt += "		    <td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"39\" height=\"1\"></td>\n";		
	txt += "		    <td><img src=\"/" + raiz_web + "/img/tfno.gif\" width=\"24\" height=\"20\" alt=\"Teléfono atención al cliente:  901 25 65 65\"></td>\n";
	txt += "		    <td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"7\" height=\"1\"></td>\n";	
	txt += "		    <td class=\"t\">Atención al cliente:</td>\n";
	txt += "		    <td class=\"nTfono\">901 25 65 65</td>\n";	
	txt += "	    </tr>\n";
	txt += "	    <tr>\n";
	txt += "		    <td colspan=\"5\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"10\"></td>\n";		
	txt += "	    </tr>\n";	
	txt += "        </table>\n";
    txt +="	   </td>\n";
	txt += "</tr>\n";
	txt += "<tr>\n";
	txt += "	<td align=\"right\">\n";
	txt += "\n";
	txt += "		<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n";
	txt += "		<tr>\n";
	txt += "			<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"14\" border=\"0\" align=\"absmiddle\"></td>\n";
	for (i=0;i<mr.length;i++){
		if (i==0) { 
			txt += "			<td bgcolor=\"#CECECE\" ><a href=\"" + mr[i][1] + "\" class=\"mr\"  ><img src=\"/" + raiz_web + "/img/esq_menu_sup.gif\" width=\"3\" height=\"14\" border=\"0\" id=\"menuEsq\"></td>\n";
		}
		else
		{
			txt += "			<td bgcolor=\"#CECECE\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"1\" border=\"0\"></td>\n";
		}
		if (estadomr==i && i>0){
			txt += "			<td class=\"mrs\" nowrap>&nbsp; &nbsp; " + mr[i][0] + " &nbsp; &nbsp;</td>\n";
		} else {
				if (i==0){
				
					txt += "			<td nowrap><a href=\"" + mr[i][1] + "\" class=\"mr\" onMouseOver=\"cambiar('menuEsq','menuEsquinaon')\" onMouseOut=\"cambiar('menuEsq','menuEsquinaoff')\">&nbsp; &nbsp; " + mr[i][0] + " &nbsp; &nbsp;</a></td>\n";
				}
				else
				{
					txt += "			<td nowrap><a href=\"" + mr[i][1] + "\" class=\"mr\" >&nbsp; &nbsp; " + mr[i][0] + " &nbsp; &nbsp;</a></td>\n";
				}
		}
	}
	txt += "		</tr>\n";
	txt += "		</table>\n";
	txt += "\n";
	txt += "	</td>\n";
	txt += "</tr>\n";
	txt += "</table>\n";
	txt += "\n";
	txt += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"780\" align=\"center\">\n";
	txt += "<tr><td bgcolor=\"#e2e2e2\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"1\" border=\"0\"></td></tr>\n";
	txt += "<tr><td bgcolor=\"#ffffff\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"1\" border=\"0\"></td></tr>\n";
	txt += "<tr><td bgcolor=\"#e2e2e2\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"1\" border=\"0\"></td></tr>\n";
	txt += "<tr><td bgcolor=\"#ffffff\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"1\" border=\"0\"></td></tr> \n";
	txt += "</table>\n";
	txt += "\n";
	txt += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"780\" align=\"center\">\n";
	txt += "<tr>\n";
	txt += "	<td bgcolor=\"#A3C9DA\" width=\"640\" align=\"center\">\n";
	txt += "		<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n";
	txt += "		<tr>\n";
	
	if (estadoMenuPrincipal==-1){
		txt += "			<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"43\" height=\"1\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipal[0][1] + "\" onMouseOver=\"menuP_on('1')\" onMouseOut=\"menuP_off('1')\"><img src=\"/" + raiz_web + "/img/menuP1.gif\" alt=\"Nuestros productos\" name=\"menuP1\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparador.gif\" name=\"sep1\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipal[1][1] + "\" onMouseOver=\"menuP_on('2')\" onMouseOut=\"menuP_off('2')\"><img src=\"/" + raiz_web + "/img/menuP2.gif\" alt=\"Servicio al cliente\" name=\"menuP2\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparador.gif\" name=\"sep2\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipal[2][1] + "\" onMouseOver=\"menuP_on('3')\" onMouseOut=\"menuP_off('3')\"><img src=\"/" + raiz_web + "/img/menuP3.gif\" alt=\"Sobre Ocaso\" name=\"menuP3\" border=\"0\"></a></td>\n";
	} else if (estadoMenuPrincipal==0){
		txt += "			<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"43\" height=\"1\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipal[0][1] + "\"><img src=\"/" + raiz_web + "/img/menuP1act.gif\" alt=\"Nuestros productos\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparadorAct.gif\" name=\"sep1\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipal[1][1] + "\" onMouseOver=\"menuP_on('2')\" onMouseOut=\"menuP_off('2')\"><img src=\"/" + raiz_web + "/img/menuP2.gif\" alt=\"Servicios\" name=\"menuP2\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparador.gif\" name=\"sep2\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipal[2][1] + "\" onMouseOver=\"menuP_on('3')\" onMouseOut=\"menuP_off('3')\"><img src=\"/" + raiz_web + "/img/menuP3.gif\" alt=\"Sobre Ocaso\" name=\"menuP3\" border=\"0\"></a></td>\n";
	} else if (estadoMenuPrincipal==1){
		txt += "			<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"43\" height=\"1\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipal[0][1] + "\" onMouseOver=\"menuP_on('1')\" onMouseOut=\"menuP_off('1')\"><img src=\"/" + raiz_web + "/img/menuP1.gif\" alt=\"Nuestros productos\" name=\"menuP1\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparadorAct.gif\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipal[1][1] + "\"><img src=\"/" + raiz_web + "/img/menuP2act.gif\" alt=\"Servicios\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparadorAct.gif\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipal[2][1] + "\" onMouseOver=\"menuP_on('3')\" onMouseOut=\"menuP_off('3')\"><img src=\"/" + raiz_web + "/img/menuP3.gif\" alt=\"Sobre Ocaso\" name=\"menuP3\" border=\"0\"></a></td>\n";
	} else if (estadoMenuPrincipal==2){
		txt += "			<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"43\" height=\"1\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipal[0][1] + "\" onMouseOver=\"menuP_on('1')\" onMouseOut=\"menuP_off('1')\"><img src=\"/" + raiz_web + "/img/menuP1.gif\" alt=\"Nuestros productos\" name=\"menuP1\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparador.gif\" name=\"sep1\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipal[1][1] + "\" onMouseOver=\"menuP_on('2')\" onMouseOut=\"menuP_off('2')\"><img src=\"/" + raiz_web + "/img/menuP2.gif\" alt=\"Servicios\" name=\"menuP2\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparadorAct.gif\" name=\"sep2\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipal[2][1] + "\"><img src=\"/" + raiz_web + "/img/menuP3act.gif\" border=\"0\" alt=\"Sobre Ocaso\"></a></td>\n";
	}
	
	txt += "		</tr>\n";
	txt += "		</table>\n";
	txt += "	</td>\n";
	txt += "	<td><div id=\"capaAreaPrivada\" style=\"position: relative; visibility: visible;\"><a href=\"#\" onclick=\"accesoAreaPrivada();\"><img id=\"cebo\" src=\"/" + raiz_web + "/img/areaPrivadaOn.gif\" alt=\"Acceso a &Aacute;rea Privada\" name=\"area\" width=\"140\" height=\"22\" border=\"0\"></a></div></td>\n";
	txt += "</tr>\n";
	txt += "</table>\n";
	
	if (estadomr!=0 ){
		// si no estamos en la home
		if (estadomr==-1 && estadoMenuPrincipal==-1 && estadoMenuSecundario==-1){
			imagen="/" + raiz_web + "/img/tituloArea.jpg";
		}else{
			if (estadoMenuSecundario>-1 && estadoMenuSecundario < menuSecundario.length){
				imagen = menuSecundario[estadoMenuSecundario][2];
			} else if (estadoMenuPrincipal>-1 && estadoMenuPrincipal < menuPrincipal.length){
				imagen = menuPrincipal[estadoMenuPrincipal][2]
			} else if (estadomr!=0 && estadomr < mr.length){
				imagen = mr[estadomr][2];
		    }
			if (imagenAlternativa!=null){
				imagen=imagenAlternativa;
			}
		}	 
		txt += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"780\" align=\"center\">\n";
		txt += "<tr>\n";
		txt += "	<td><img src=\"" + imagen + "\" width=\"780\" height=\"87\" border=\"0\"></td>\n";
		txt += "</tr>\n";
		txt += "</table>\n";
	}

	//Fin Comentado Cuadro Login y Password del Usuario
	//txt += "	</div>\n";
	txt += "<input type=\"hidden\" name=\"nombreProducto\" value=\"" + nombreProducto + "\">\n";
	txt += "<input type=\"hidden\" name=\"nombreFamilia\" value=\"" + nombreFamilia + "\">\n";
	txt += "<input type=\"hidden\" name=\"nombreImagen\" value=\"" + nombreImagen + "\">\n";
	document.write(txt);
	

}


function escribirCabeceraSeguraOLD(){
	
	if (estadoMenuPrincipal==0){
		menuSecundario = menuSecundarioProductosSegura;
	} else if (estadoMenuPrincipal==1){
		menuSecundario = menuSecundarioServiciosSegura;
	} else if (estadoMenuPrincipal==2){
		menuSecundario = menuSecundarioSobreOcasoSegura;
	}
	
	txt = "";
	txt += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"780\" align=\"center\">\n";
	txt += "<tr>\n";
	txt += "	<td width=\"364\" rowspan=\"2\"><a href=\"JavaScript:this.location=getUrl(false,'/' + raiz_web + '/');\" onclick=\"right(this);\"><img src=\"/" + raiz_web + "/img/logo.gif\" width=\"163\" height=\"65\" alt=\"Volver Inicio\" border=\"0\"></a></td>\n";
    txt += "	<td height=\"50\" width=\"260\">\n";
	txt += "        <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"260\">\n";
	txt += "	    <tr>\n";
	txt += "		    <td colspan=\"5\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"20\"></td>\n";		
	txt += "	    </tr>\n";	
	txt += "	    <tr>\n";
	txt += "		    <td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"39\" height=\"1\"></td>\n";		
	txt += "		    <td><img src=\"/" + raiz_web + "/img/tfno.gif\" width=\"24\" height=\"20\" alt=\"Teléfono atención al cliente:  901 25 65 65\"></td>\n";
	txt += "		    <td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"7\" height=\"1\"></td>\n";	
	txt += "		    <td class=\"t\">Atención al cliente:</td>\n";
	txt += "		    <td class=\"nTfono\">901 25 65 65</td>\n";	
	txt += "	    </tr>\n";
	txt += "	    <tr>\n";
	txt += "		    <td colspan=\"5\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"10\"></td>\n";		
	txt += "	    </tr>\n";	
	txt += "        </table>\n";
    txt +="	   </td>\n";
	txt += "</tr>\n";
	txt += "<tr>\n";
	txt += "	<td align=\"right\">\n";
	txt += "\n";
	txt += "		<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n";
	txt += "		<tr>\n";
	txt += "			<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"14\" border=\"0\" align=\"absmiddle\"></td>\n";
	for (i=0;i<mrs.length;i++){
		if (i==0) { 
			txt += "			<td bgcolor=\"#e2e2e2\" ><a href=\"" + mrs[i][1] + "\" class=\"mr\"  ><img src=\"/" + raiz_web + "/img/esq_menu_sup.gif\" width=\"3\" height=\"14\" border=\"0\" id=\"menuEsq\"></td>\n";
		}
		else
		{
			txt += "			<td bgcolor=\"#e2e2e2\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"1\" border=\"0\"></td>\n";
		}
		if (estadomr==i && i>0){
			txt += "			<td class=\"mrs\" nowrap>&nbsp; &nbsp; " + mrs[i][0] + " &nbsp; &nbsp;</td>\n";
		} else {
				if (i==0){
				
					txt += "			<td nowrap><a href=\"" + mrs[i][1] + "\" class=\"mr\" onMouseOver=\"cambiar('menuEsq','menuEsquinaon')\" onMouseOut=\"cambiar('menuEsq','menuEsquinaoff')\">&nbsp; &nbsp; " + mrs[i][0] + " &nbsp; &nbsp;</a></td>\n";
				}
				else
				{
					txt += "			<td nowrap><a href=\"" + mrs[i][1] + "\" class=\"mr\" >&nbsp; &nbsp; " + mrs[i][0] + " &nbsp; &nbsp;</a></td>\n";
				}
		}
	}
	txt += "		</tr>\n";
	txt += "		</table>\n";
	txt += "\n";
	txt += "	</td>\n";
	txt += "</tr>\n";
	txt += "</table>\n";
	txt += "\n";
	txt += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"780\" align=\"center\">\n";
	txt += "<tr><td bgcolor=\"#e2e2e2\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"1\" border=\"0\"></td></tr>\n";
	txt += "<tr><td bgcolor=\"#ffffff\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"1\" border=\"0\"></td></tr>\n";
	txt += "<tr><td bgcolor=\"#e2e2e2\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"1\" border=\"0\"></td></tr>\n";
	txt += "<tr><td bgcolor=\"#ffffff\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"1\" border=\"0\"></td></tr> \n";
	txt += "</table>\n";
	txt += "\n";
	txt += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"780\" align=\"center\">\n";
	txt += "<tr>\n";
	txt += "	<td bgcolor=\"#A3C9DA\" width=\"640\" align=\"center\">\n";
	txt += "		<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n";
	txt += "		<tr>\n";
	
	if (estadoMenuPrincipal==-1){
		txt += "			<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"43\" height=\"1\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipalSegura[0][1] + "\" onMouseOver=\"menuP_on('1')\" onMouseOut=\"menuP_off('1')\"><img src=\"/" + raiz_web + "/img/menuP1.gif\" alt=\"Nuestros productos\" name=\"menuP1\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparador.gif\" name=\"sep1\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipalSegura[1][1] + "\" onMouseOver=\"menuP_on('2')\" onMouseOut=\"menuP_off('2')\"><img src=\"/" + raiz_web + "/img/menuP2.gif\" alt=\"Servicio al cliente\" name=\"menuP2\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparador.gif\" name=\"sep2\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipalSegura[2][1] + "\" onMouseOver=\"menuP_on('3')\" onMouseOut=\"menuP_off('3')\"><img src=\"/" + raiz_web + "/img/menuP3.gif\" alt=\"Sobre Ocaso\" name=\"menuP3\" border=\"0\"></a></td>\n";
	} else if (estadoMenuPrincipal==0){
		txt += "			<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"43\" height=\"1\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipalSegura[0][1] + "\"><img src=\"/" + raiz_web + "/img/menuP1act.gif\" alt=\"Nuestros productos\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparadorAct.gif\" name=\"sep1\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipalSegura[1][1] + "\" onMouseOver=\"menuP_on('2')\" onMouseOut=\"menuP_off('2')\"><img src=\"/" + raiz_web + "/img/menuP2.gif\" alt=\"Servicios\" name=\"menuP2\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparador.gif\" name=\"sep2\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipalSegura[2][1] + "\" onMouseOver=\"menuP_on('3')\" onMouseOut=\"menuP_off('3')\"><img src=\"/" + raiz_web + "/img/menuP3.gif\" alt=\"Sobre Ocaso\" name=\"menuP3\" border=\"0\"></a></td>\n";
	} else if (estadoMenuPrincipal==1){
		txt += "			<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"43\" height=\"1\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipalSegura[0][1] + "\" onMouseOver=\"menuP_on('1')\" onMouseOut=\"menuP_off('1')\"><img src=\"/" + raiz_web + "/img/menuP1.gif\" alt=\"Nuestros productos\" name=\"menuP1\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparadorAct.gif\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipalSegura[1][1] + "\"><img src=\"/" + raiz_web + "/img/menuP2act.gif\" alt=\"Servicios\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparadorAct.gif\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipalSegura[2][1] + "\" onMouseOver=\"menuP_on('3')\" onMouseOut=\"menuP_off('3')\"><img src=\"/" + raiz_web + "/img/menuP3.gif\" alt=\"Sobre Ocaso\" name=\"menuP3\" border=\"0\"></a></td>\n";
	} else if (estadoMenuPrincipal==2){
		txt += "			<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"43\" height=\"1\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipalSegura[0][1] + "\" onMouseOver=\"menuP_on('1')\" onMouseOut=\"menuP_off('1')\"><img src=\"/" + raiz_web + "/img/menuP1.gif\" alt=\"Nuestros productos\" name=\"menuP1\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparador.gif\" name=\"sep1\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipalSegura[1][1] + "\" onMouseOver=\"menuP_on('2')\" onMouseOut=\"menuP_off('2')\"><img src=\"/" + raiz_web + "/img/menuP2.gif\" alt=\"Servicios\" name=\"menuP2\" border=\"0\"></a></td>\n";
		txt += "			<td><img src=\"/" + raiz_web + "/img/menuPrincipalSeparadorAct.gif\" name=\"sep2\" width=\"2\" height=\"22\" border=\"0\"></td>\n";
		txt += "			<td><a href=\"" + menuPrincipalSegura[2][1] + "\"><img src=\"/" + raiz_web + "/img/menuP3act.gif\" border=\"0\" alt=\"Sobre Ocaso\"></a></td>\n";
	}
	
	txt += "		</tr>\n";
	txt += "		</table>\n";
	txt += "	</td>\n";
	 // if (estadomr==0){
		txt += "	<td><div id=\"capaAreaPrivada\" style=\"position: relative; visibility: visible;\"><a href=\"#\"><img id=\"cebo\" src=\"/" + raiz_web + "/img/areaPrivadaOn.gif\" alt=\"Acceso a &Aacute;rea Privada\" name=\"area\" width=\"140\" height=\"22\" border=\"0\"></a></div></td>\n";
	//} else {
	//	txt += "	<td><div id=\"capaAreaPrivada\" style=\"position: relative; visibility: visible;\"><a href=\"#\" onClick=\"desplegar('capaAreaPrivadaOn')\" onMouseOver=\"cambiar('area','areaPrivadaOn')\" onMouseOut=\"cambiar('area','areaPrivadaOff')\"><img src=\"/" + raiz_web + "/img/areaPrivada.gif\" name=\"area\" id=\"cebo\" width=\"140\" height=\"22\" border=\"0\"></a></div></td>\n";
	//} 
	txt += "</tr>\n";
	txt += "</table>\n";
	
	if (estadomr!=0 ){
		// si no estamos en la home
		if (estadomr==-1 && estadoMenuPrincipal==-1 && estadoMenuSecundario==-1){
			imagen="/" + raiz_web + "/img/tituloArea.jpg";
		}else{
			if (estadoMenuSecundario>-1 && estadoMenuSecundario < menuSecundario.length){
				imagen = menuSecundario[estadoMenuSecundario][2];
			} else if (estadoMenuPrincipal>-1 && estadoMenuPrincipal < menuPrincipalSegura.length){
				imagen = menuPrincipalSegura[estadoMenuPrincipal][2]
			} else if (estadomr!=0 && estadomr < mrs.length){
				imagen = mrs[estadomr][2];
		    }
			if (imagenAlternativa!=null){
				imagen=imagenAlternativa;
			}
		}	 
		txt += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"780\" align=\"center\">\n";
		txt += "<tr>\n";
		txt += "	<td><img src=\"" + imagen + "\" width=\"780\" height=\"87\" border=\"0\"></td>\n";
		txt += "</tr>\n";
		txt += "</table>\n";
	}

	txt += "	<div id=\"capaAreaPrivadaOn\" style=\"position: absolute; top: 0px; left: 0px; visibility: hidden;\">\n";
	txt += "	<table cellpadding=\"0\" cellspacing=\"0\" width=\"140\" border=\"0\">\n";
	txt += "	<tr valign=\"top\">\n";
	txt += "		<td background=\"/" + raiz_web + "/img/fondoAreaPrivada.gif\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"140\" height=\"1\" border=\"0\">\n";
	txt += "			<table cellpadding=\"0\" cellspacing=\"0\" width=\"140\" border=\"0\">\n";
	txt += "			<tr valign=\"top\">\n";
	txt += "				<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"7\" height=\"105\" border=\"0\"></td>\n";
	txt += "				<td valign=\"top\">\n";
	txt += "					<table cellpadding=\"0\" cellspacing=\"0\" width=\"133\" border=\"0\">\n";
	txt += "					<tr valign=\"top\"><td colspan=\"6\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"10\" border=\"0\"></td></tr>\n";
	txt += "					<tr valign=\"top\">\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"3\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"3\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/usuario.gif\" width=\"39\" height=\"5\" alt=\"Usuario\" border=\"0\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"12\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"15\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"12\" height=\"1\" border=\"0\"></td>\n";
	txt += "					</tr>\n";
	txt += "					<tr valign=\"top\"><td colspan=\"6\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"4\" border=\"0\"></td></tr>\n";
	txt += "					<tr valign=\"top\">\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"3\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"3\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td><input type=\"text\" name=\"user\" class=\"login\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"12\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"15\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"12\" height=\"1\" border=\"0\"></td>\n";
	txt += "					</tr>\n";
	txt += "					<tr valign=\"top\"><td colspan=\"6\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"7\" border=\"0\"></td></tr>\n";
	txt += "					<tr valign=\"top\">\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"3\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"3\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/contrasenia.gif\" width=\"59\" height=\"8\" alt=\"Contraseña\" border=\"0\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"12\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"15\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"12\" height=\"1\" border=\"0\"></td>\n";
	txt += "					</tr>\n";
	txt += "					<tr valign=\"top\"><td colspan=\"6\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"4\" border=\"0\"></td></tr>\n";
	txt += "					<tr valign=\"top\">\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"3\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"3\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td><input type=\"password\" name=\"contrasenia\" class=\"login\"><input type=\"hidden\" name=\"password\" class=\"login\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"12\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td valign=\"bottom\"><a href=\"javascript:validarPass()\" onMouseOver=\"cambiar('ir','irOver')\" onMouseOut=\"cambiar('ir','irOut')\" onMouseDown=\"cambiar('ir','irDown')\" onMouseUp=\"cambiar('ir','irOut')\"><img src=\"/" + raiz_web + "/img/ir.gif\" alt=\"entrar a &aacute;rea privada\" width=\"15\" height=\"15\" border=\"0\" name=\"ir\"></a></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"12\" height=\"1\" border=\"0\"></td>\n";
	txt += "					</tr>\n";
	txt += "					<tr valign=\"top\"><td colspan=\"6\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"4\" border=\"0\"></td></tr>\n";
	txt += "					<tr valign=\"top\"><td colspan=\"6\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"13\" border=\"0\"></td></tr>\n";
	txt += "					<tr valign=\"top\">\n";
	txt += "						<td valign=\"middle\"><img src=\"/" + raiz_web + "/img/bulletClaro.gif\" width=\"3\" height=\"3\" border=\"0\"></td>\n";
	txt += "						<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"3\" height=\"1\" border=\"0\"></td>\n";
	txt += "						<td colspan=\"4\"><a href=\"#\" onclick=\"javascript:info('web','E','areaPrivada')\" class=\"cajaLoginBlanco\">Ayuda</a></td>\n";
	txt += "					</tr>\n";
	txt += "					<tr valign=\"top\"><td colspan=\"6\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"13\" border=\"0\"></td></tr>\n";
	txt += "					</table>\n";
	txt += "				</td>\n";
	txt += "			</tr>\n";
	txt += "			</table>\n";
	txt += "		</td>\n";
	txt += "	</tr>\n";
	txt += "	</table>\n";
	txt += "	</div>\n";
	txt += "<input type=\"hidden\" name=\"nombreProducto\" value=\"" + nombreProducto + "\">\n";
	txt += "<input type=\"hidden\" name=\"nombreFamilia\" value=\"" + nombreFamilia + "\">\n";
	txt += "<input type=\"hidden\" name=\"nombreImagen\" value=\"" + nombreImagen + "\">\n";
	document.write(txt);
	
	/*Comentado capa area privada*/	
/*	reposicionaCapa('capaAreaPrivada','capaAreaPrivadaOn',0,22,'cebo');
	if (estadomr==0){
		mostrarCapa('capaAreaPrivadaOn');	
	}*/
	/*Comentado capa area privada*/
}




function escribirPromocion(i){
	txt = "";
	//alert("begin ->escribirPromocion(" + i+ ")")
	if (i==1){		
		txt += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
		txt += "	<tr>\n";
		txt += "		<td><img src=\"/" + raiz_web + "/img/promocion1CarreraAgente.gif\" width=\"63\" height=\"31\" alt=\"Carrera de Agente\"></td>\n";
		txt += "		<td rowspan=\"3\"><img src=\"/" + raiz_web + "/img/promocion1Imagen.gif\" width=\"57\" height=\"51\" alt=\"Carrera de agente\"></td>\n";
		txt += "		<td rowspan=\"3\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"10\" height=\"1\"></td>\n";		
		txt += "	</tr>\n";
		txt += "	<tr>\n";
		txt += "		<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"5\"></td>\n";
		txt += "	</tr>\n";
		txt += "	<tr>\n";
		txt += "		<td valign=\"top\" align=\"left\"><a href=\"JavaScript:this.location=getUrl(false,'/' + raiz_web + '/3_2_carreraAgente.html');\" class=\"ep\">Infórmese</a>&nbsp;<img src=\"/" + raiz_web + "/img/flechas.gif\" width=\"6\" height=\"5\"></td>\n";
		txt += "	</tr>\n";
		txt += "</table>\n";
	} else if (i==2){
		txt += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
		txt += "	<tr>";
		txt += "		<td colspan=\"3\"><img src=\"/" + raiz_web + "/img/promocion2HablaNosotros.gif\" width=\"120\" height=\"29\" alt=\"Hable con nosotros, le informamos\"></td>";
		txt += "		<td rowspan=\"6\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"10\" height=\"1\"></td>\n";				
		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td colspan=\"3\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"5\"></td>";
		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td valign=\"middle\"><img src=\"/" + raiz_web + "/img/flechaNaranja.gif\" width=\"6\" height=\"5\"></td>";		
		txt += "		<td rowspan=\"4\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"6\" height=\"1\"></td>";		
		txt += "		<td rowspan=\"2\" valign=\"middle\"><a href=\"JavaScript:this.location=getUrl(true,'/' + raiz_web_din + '/jsp/solicitarMasInformacion.jsp');\" class=\"ep\">personalmente en su domicilio</a></td>";
		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"1\"></td>";
		txt += "	</tr>";
//		txt += "	<tr>";
//		txt += "		<td valign=\"baseline\"><img src=\"/" + raiz_web + "/img/flechaNaranja.gif\" width=\"6\" height=\"5\"></td>";
//		txt += "        <td valign=\"baseline\"><a href=\"/" + raiz_web + "/2_1_telefonoAtencion24h.html\" class=\"ep\">en el 901 25 65 65</a></td>";
//		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td valign=\"baseline\"><img src=\"/" + raiz_web + "/img/flechaNaranja.gif\" width=\"6\" height=\"5\"></td>";
		txt += "        <td valign=\"baseline\"><a href=\"JavaScript:this.location=getUrl(false,'/' + raiz_web_din + '/jsp/redOficinas.jsp');\" class=\"ep\">en nuestras oficinas</a></td>";
		txt += "	</tr>";
		txt += "</table>";
	} else if (i==3){
		txt += "<a href=\"JavaScript:this.location=getUrl(false,'/' + raiz_web_din + '/jsp/redOficinas.jsp');\"><img src=\"/" + raiz_web + "/img/promocion3.gif\" alt=\"Consulte nuestra red de oficinas\" width=\"120\" height=\"82\" border=\"0\"></a><img src=\"/" + raiz_web + "/img/b.gif\" width=\"10\" height=\"1\" border=\"0\">\n"; 
	} else if (i==4){
		txt += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
		txt += "	<tr>";
		txt += "		<td colspan=\"3\"><img src=\"/" + raiz_web + "/img/promocion2HablaNosotros.gif\" width=\"120\" height=\"29\" alt=\"Hable con nosotros, le informamos\"></td>";
		txt += "		<td rowspan=\"6\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"10\" height=\"1\"></td>\n";				
		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td colspan=\"3\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"5\"></td>";
		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td valign=\"middle\"><img src=\"/" + raiz_web + "/img/flechaNaranja.gif\" width=\"6\" height=\"5\"></td>";		
		txt += "		<td rowspan=\"4\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"6\" height=\"1\"></td>";		
		txt += "		<td rowspan=\"2\" valign=\"middle\"><a href=\"Javascript:this.location=getUrl(true,'/' + raiz_web_din + '/jsp/a5_trabajaConNosotros.jsp');\" class=\"ep\">enviar Currículum</a></td>";
		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"1\"></td>";
		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td valign=\"baseline\"><img src=\"/" + raiz_web + "/img/flechaNaranja.gif\" width=\"6\" height=\"5\"></td>";
		txt += "        <td valign=\"baseline\"><a href=\"JavaScript:this.location=getUrl(false,'/' + raiz_web_din + '/jsp/redOficinas.jsp');\" class=\"ep\">en nuestras oficinas</a></td>";
		txt += "	</tr>";
		txt += "</table>";
	} else if (i==5){
		txt += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
		txt += "	<tr>";
		txt += "		<td colspan=\"3\"><a href='/' + raiz_web + '/1_3_1a_ocasoHogarDescripcion.html' class='dh2'><img src=\"/" + raiz_web + "/img/banner_lateral.gif\"  alt=\"\" border='0'></a></td>";
		txt += "		<td rowspan=\"6\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"10\" height=\"1\"></td>\n";				
		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td colspan=\"3\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"5\"></td>";
		txt += "	</tr>";
		txt += "</table>";
	}
	/*else if (i==4){
		txt += "<a href=\"#\"><img src=\"/" + raiz_web + "/img/promocion4.gif\" width=\"120\" height=\"89\" border=\"0\"></a><br>\n"; 
	} else if (i==5){
		txt += "<a href=\"#\"><img src=\"/" + raiz_web + "/img/promocion5.gif\" width=\"120\" height=\"65\" border=\"0\"></a><br>\n"; 
	}*/	
	else if (i==6){		
		txt += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";		
		txt += "	<tr>\n";
		txt += "		<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"5\"></td>\n";
		txt += "	</tr>\n";
		txt += "	<tr>\n";
		txt += "		<td valign=\"top\" align=\"left\">\n";
		txt += "			<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" WIDTH=\"130\" HEIGHT=\"165\" id=\"banner_130x165_00\" ALIGN=\"\">\n";
		txt += " 				<PARAM NAME=movie VALUE=\"/" + raiz_web + "/flash/banner_130x165_00.swf\">\n"; 
		txt += "				<PARAM NAME=quality VALUE=high>\n"; 
		txt += "				<PARAM NAME=bgcolor VALUE=#C6C3C6>\n"; 
		txt += "				<EMBED src=\"/" + raiz_web + "/flash/banner_130x165_00.swf\" quality=high bgcolor=#C6C3C6  WIDTH=\"130\" HEIGHT=\"165\" NAME=\"banner_130x165_00\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" </EMBED>\n";
		txt += "			</OBJECT>\n";		
		txt += "		</td>\n";
		txt += "	</tr>\n";
		txt += "</table>\n";
	} 
	else if (i==7){		
		txt += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";		
		txt += "	<tr>\n";
		txt += "		<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"5\"></td>\n";
		txt += "	</tr>\n";
		txt += "	<tr>\n";
		txt += "		<td valign=\"top\" align=\"left\">\n";
		txt += "			<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" id=\"banner_130x165_00\" ALIGN=\"\">\n";
		txt += " 				<PARAM NAME=movie VALUE=\"/" + raiz_web + "/flash/banner_wok_interior.swf\">\n"; 
		txt += "				<PARAM NAME=quality VALUE=high>\n"; 
		txt += "				<PARAM NAME=bgcolor VALUE=#C6C3C6>\n"; 
		txt += "				<EMBED src=\"/" + raiz_web + "/flash/banner_wok_interior.swf\" quality=high NAME=\"banner_130x165_00\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" </EMBED>\n";
		txt += "			</OBJECT>\n";		
		txt += "		</td>\n";
		txt += "	</tr>\n";
		txt += "</table>\n";
	} 
	else if (i==8){		
		txt += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";		
		txt += "	<tr>\n";
		txt += "		<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"5\"></td>\n";
		txt += "	</tr>\n";
		txt += "	<tr>\n";
		txt += "		<td valign=\"top\" align=\"left\">\n";
		txt += "			<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"118\" height=\"150\" id=\"promoA\" ALIGN=\"\">\n";
		txt += " 				<PARAM NAME=movie VALUE=\"/" + raiz_web + "/flash/promoA.swf\">\n"; 
		txt += "				<PARAM NAME=quality VALUE=high>\n"; 
		txt += "				<PARAM NAME=bgcolor VALUE=#FFFFFF>\n"; 
		txt += "				<EMBED src=\"/" + raiz_web + "/flash/promoA.swf\" quality=high NAME=\"promoA\" width=\"118\" height=\"150\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" </EMBED>\n";
		txt += "			</OBJECT>\n";		
		txt += "		</td>\n";
		txt += "	</tr>\n";
		txt += "</table>\n";
	} 
	else if (i==9){                 
		txt += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"; 
        txt += " <tr>\n"; 
        txt += "              <td><img src=\"/" + raiz_web + "/img/Promocion2Ferias.gif\" width=\"63\" height=\"31\" alt=\"Ferias y Congresos\"></td>\n"; 
        txt += "              <td rowspan=\"3\"><img src=\"/" + raiz_web + "/img/promocion2Imagen.gif\" width=\"57\" height=\"51\" alt=\"Ferias y Congresos\"></td>\n"; 
        txt += "              <td rowspan=\"3\"><img src=\"/" + raiz_web + "/b.gif\" width=\"10\" height=\"1\"></td>\n";                  
        txt += " </tr>\n"; 
        txt += " <tr>\n"; 
        txt += "              <td><img src=\"/" + raiz_web + "/b.gif\" width=\"1\" height=\"5\"></td>\n"; 
        txt += " </tr>\n"; 
        txt += " <tr>\n"; 
        txt += "              <td valign=\"top\" align=\"left\"><a style='cursor:hand' onclick=\"javascript:window.open('/' + raiz_web + '/feriasycongresos.html')\" class=\"ep\">Infórmate</a>&nbsp;<img src=\"/" + raiz_web + "/img/flechas.gif\" width=\"6\"   height=\"5\"></td>\n"; 
        txt += " </tr>\n"; 
        txt += "</table>\n"; 
	}
	// EMPIEZAN LOS CASOS PARA LA VERSIÓN INGLESA, ESTAN DUPLICADOS: 2 es ahora el 10; 1 es ahora el 11;14 es comun a todos
	 else if (i==10){
		txt += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
		txt += "	<tr>";
		txt += "		<td colspan=\"3\"><img src=\"/" + raiz_web + "/img/promocion2HablaNosotros.gif\" width=\"120\" height=\"29\" alt=\"Contact us and we’ll inform you further.\"></td>";
		txt += "		<td rowspan=\"6\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"10\" height=\"1\"></td>\n";				
		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td colspan=\"3\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"5\"></td>";
		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td valign=\"middle\"><img src=\"/" + raiz_web + "/img/flechaNaranja.gif\" width=\"6\" height=\"5\"></td>";		
		txt += "		<td rowspan=\"4\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"6\" height=\"1\"></td>";		
		txt += "		<td rowspan=\"2\" valign=\"middle\"><a href=\"JavaScript:this.location=getUrl(true,'/' + raiz_web_din + '/jsp/solicitarMasInformacion.jsp');\" class=\"ep\">personally, at your home</a></td>";
		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"1\"></td>";
		txt += "	</tr>";
//		txt += "	<tr>";
//		txt += "		<td valign=\"baseline\"><img src=\"/" + raiz_web + "/img/flechaNaranja.gif\" width=\"6\" height=\"5\"></td>";
//		txt += "        <td valign=\"baseline\"><a href=\"/" + raiz_web + "/2_1_telefonoAtencion24h.html\" class=\"ep\">en el 901 25 65 65</a></td>";
//		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td valign=\"baseline\"><img src=\"/" + raiz_web + "/img/flechaNaranja.gif\" width=\"6\" height=\"5\"></td>";
		txt += "        <td valign=\"baseline\"><a href=\"JavaScript:this.location=getUrl(false,'/' + raiz_web_din + '/jsp/redOficinas.jsp');\" class=\"ep\">at our offices</a></td>";
		txt += "	</tr>";
		txt += "</table>";
	} else if (i==11){		
		txt += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
		txt += "	<tr>\n";
		txt += "		<td><img src=\"/" + raiz_web + "/img/promocion1CarreraAgente.gif\" width=\"63\" height=\"31\" alt=\"Join us\"></td>\n";
		txt += "		<td rowspan=\"3\"><img src=\"/" + raiz_web + "/img/promocion1Imagen.gif\" width=\"57\" height=\"51\" alt=\"Join us\"></td>\n";
		txt += "		<td rowspan=\"3\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"10\" height=\"1\"></td>\n";		
		txt += "	</tr>\n";
		txt += "	<tr>\n";
		txt += "		<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"5\"></td>\n";
		txt += "	</tr>\n";
		txt += "	<tr>\n";
		txt += "		<td valign=\"top\" align=\"left\"><a href=\"JavaScript:this.location=getUrl(false,'/' + raiz_web + '/3_2_carreraAgente.html');\" class=\"ep\">Find out more</a>&nbsp;<img src=\"/" + raiz_web + "/img/flechas.gif\" width=\"6\" height=\"5\"></td>\n";
		txt += "	</tr>\n";
		txt += "</table>\n";
	} else if (i==12){
		txt += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
		txt += "	<tr>";
		txt += "		<td colspan=\"3\"><img src=\"/" + raiz_web + "/img/promocion2HablaNosotros.gif\" width=\"120\" height=\"29\" alt=\"Contact us and we'll inform you further\"></td>";
		txt += "		<td rowspan=\"6\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"10\" height=\"1\"></td>\n";				
		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td colspan=\"3\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"5\"></td>";
		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td valign=\"middle\"><img src=\"/" + raiz_web + "/img/flechaNaranja.gif\" width=\"6\" height=\"5\"></td>";		
		txt += "		<td rowspan=\"4\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"6\" height=\"1\"></td>";		
		txt += "		<td rowspan=\"2\" valign=\"middle\"><a href=\"Javascript:this.location=getUrl(true,'/' + raiz_web_din + '/jsp/a5_trabajaConNosotros.jsp');\" class=\"ep\">send C.V.</a></td>";
		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"1\"></td>";
		txt += "	</tr>";
		txt += "	<tr>";
		txt += "		<td valign=\"baseline\"><img src=\"/" + raiz_web + "/img/flechaNaranja.gif\" width=\"6\" height=\"5\"></td>";
		txt += "        <td valign=\"baseline\"><a href=\"JavaScript:this.location=getUrl(false,'/' + raiz_web_din + '/jsp/redOficinas.jsp');\" class=\"ep\">at our offices</a></td>";
		txt += "	</tr>";
		txt += "</table>";
	} else if (i==13){
		txt += "<a href=\"JavaScript:this.location=getUrl(false,'/' + raiz_web_din + '/jsp/redOficinas.jsp');\"><img src=\"/" + raiz_web + "/img/promocion3.gif\" alt=\"Branches and Offices\" width=\"120\" height=\"82\" border=\"0\"></a><img src=\"/" + raiz_web + "/img/b.gif\" width=\"10\" height=\"1\" border=\"0\">\n"; 
	} else if (i==14){
		txt += "<a href=\"JavaScript:this.location=getUrl(false,'/' + raiz_web + '/1_2_1c_asistenciaFamiliarAsesoramiento.html');\"><img src=\"/" + raiz_web + "/img/promocion6.jpg\" alt=\"Atención Médica Telefónica\" width=\"120\" height=\"82\" border=\"0\"></a><img src=\"/" + raiz_web + "/img/b.gif\" width=\"10\" height=\"1\" border=\"0\">\n"; 
	}
	//alert(txt)
	document.write(txt);
}



function escribirMenuSecundario(){
	txt = "";
	txt += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"170\">\n";
	txt += "<tr valign=\"top\"><td width=\"10\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"10\" height=\"200\" border=\"0\"></td><td>\n";
	txt += "	<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"155\">\n";
	txt += "	<tr><td colspan=\"3\" width=\"155\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"155\" height=\"12\" border=\"0\"></td></tr>\n";
		for (i=0;i<menuSecundario.length;i++){	
	txt += "	<tr>\n";
			if (estadoMenuSecundario==i) {
	txt += "			<td width=\"3\"><img src=\"/" + raiz_web + "/img/flecha_seleccionada.gif\" width=\"3\" height=\"5\" border=\"0\"></td>\n";
	txt += "			<td width=\"2\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"2\" height=\"1\" border=\"0\"></td>\n";
	txt += "			<td><a href=\"" + menuSecundario[i][1] + "\" class=\"n2ns\" >&nbsp;" + menuSecundario[i][0] + "</a></td>\n";
			}
			else {
	txt += "			<td width=\"3\"><img src=\"/" + raiz_web + "/img/flecha.gif\" name='flecha"+i+"' width=\"3\" height=\"5\" border=\"0\"></td>\n";
	txt += "			<td width=\"2\"><img src=\"/" + raiz_web + "/img/b.gif\"  width=\"2\" height=\"1\" border=\"0\"></td>\n";
	txt += "			<td><a href=\"" + menuSecundario[i][1] + "\" class=\"n2n\" onmouseover=\"cambiar('flecha"+i+"','menuSon')\" onmouseout=\"cambiar('flecha"+i+"','menuSoff')\">&nbsp;" + menuSecundario[i][0] + "</a></td>\n";
			}
	txt += "	</tr>\n";
	txt += "	<tr>\n";
	txt += "		<td colspan=\"2\"><img src=\"/" + raiz_web + "/img/b.gif\"  width=\"3\" height=\"1\" border=\"0\"></td>\n";
	txt += "		<td bgcolor=\"#DDDDDD\" width=\"155\"><img src=\"/" + raiz_web + "/img/b.gif\"  width=\"155\" height=\"1\" border=\"0\"></td>\n";
	txt += "	</tr>\n";
		}
	txt += "	</table>\n";
	txt += "</td></tr>\n";
	txt += "</table>\n";
	document.write(txt);

} 

function escribirPiePagina(){

	var hoy= new Date();
	txt = "";
	txt += "<div id=\"pie\"><div id=\"texto\">\n";
	txt += "Copyright Ocaso Seguros" + hoy.getFullYear();
	txt += " || ";
	if (idioma_web=="en"){
		txt += "<a href=\"#\" id=\"enlace\" onclick=\"javascript:abrirventana('/' + raiz_web + '/B2_glosario_a.html','glosario')\">Glossary</a>\n";
		txt += " || ";
		txt += "<a href=\"#\" id=\"enlace\" onclick=\"javascript:abrirventana('/' + raiz_web + '/b1_avisoLegal.html','aviso')\">Legal Acknowledgment and Data protection</a>\n";	
	} else {
		txt += "<a href=\"#\" id=\"enlace\" onclick=\"javascript:abrirventana('/' + raiz_web + '/B2_glosario_a.html','glosario')\">Glosario de términos</a>\n";
		txt += " || ";
		txt += "<a href=\"#\" id=\"enlace\" onclick=\"javascript:abrirventana('/' + raiz_web + '/b1_avisoLegal.html','aviso')\">Aviso Legal y Protección de Datos</a>\n";	
	}
	txt += "</div>\n</div>\n";
	txt += "<div id=\"sombrapie\"></div>\n";
	
	document.write(txt);
}

function escribirPiePaginaOLD(){


	var hoy= new Date();
	
	txt = "";
	txt += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"780\" align=\"center\" height=\"20\">\n";
	txt += "<tr>\n";
	txt += "	<td colspan=\"6\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"20\"></td>\n";
	txt += "</tr>\n";	
	txt += "<tr bgcolor=\"#E2E2E2\">\n";
	txt += "	<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"200\" height=\"1\"></td>\n";
	txt += "	<td><a class=\"pp1\" href=\"#\" onclick=\"javascript:abrirventana('/' + raiz_web + '/B2_glosario_a.html','glosario')\">Glosario de términos</a></td>\n";
	txt += "	<td class=\"pp2\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"17\" height=\"1\"><img src=\"/" + raiz_web + "/img/separadorPiePagina.gif\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"14\" height=\"1\"></td>\n";
	txt += "	<td class=\"pp2\">Copyright Ocaso " + hoy.getFullYear() + " - </td>\n";
	txt += "	<td><a class=\"pp1\" href=\"#\" onclick=\"javascript:abrirventana('/' + raiz_web + '/b1_avisoLegal.html','aviso')\">Aviso Legal y Protección de Datos</a></td>\n";
	txt += "	<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"172\" height=\"1\"></td>\n";
	txt += "</tr>\n";
	txt += "</table>\n";
	document.write(txt);
}

function escribirPiePaginaSegura(){

	var hoy= new Date();
	txt = "";
	txt += "<div id=\"pie\"><div id=\"texto\">\n";
	txt += "Copyright Ocaso Seguros" + hoy.getFullYear();
	txt += " || ";
	if (idioma_web=="en"){	
	txt += "<a href=\"#\" id=\"enlace\" onclick=\"javascript:abrirventana('/' + raiz_web + '/B2_glosario_a.html','glosario')\">Glossary</a>\n";
	txt += " || ";
	txt += "<a href=\"#\" id=\"enlace\" onclick=\"javascript:abrirventana('/' + raiz_web + '/b1_avisoLegal.html','aviso')\">Legal Acknowledgment and Data protection</a>\n";	
	} else {
	txt += "<a href=\"#\" id=\"enlace\" onclick=\"javascript:abrirventana('/' + raiz_web + '/B2_glosario_a.html','glosario')\">Glosario de términos</a>\n";
	txt += " || ";
	txt += "<a href=\"#\" id=\"enlace\" onclick=\"javascript:abrirventana('/' + raiz_web + '/b1_avisoLegal.html','aviso')\">Aviso Legal y Protección de Datos</a>\n";	
	}	
	txt += "</div>\n</div>\n";
	txt += "<div id=\"sombrapie\"></div>\n";
	document.write(txt);
}

function escribirPiePaginaSeguraOLD(){
	var hoy= new Date();
	
	txt = "";
	txt += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"780\" align=\"center\" height=\"20\">\n";
	txt += "<tr>\n";
	txt += "	<td colspan=\"6\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"1\" height=\"20\"></td>\n";
	txt += "</tr>\n";	
	txt += "<tr bgcolor=\"#E2E2E2\">\n";
	txt += "	<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"200\" height=\"1\"></td>\n";
	txt += "	<td><a class=\"pp1\" href=\"#\" onclick=\"javascript:abrirventana(getUrl(false,'/' + raiz_web + '/B2_glosario_a.html'),'glosario')\">Glosario de términos</a></td>\n";
	txt += "	<td class=\"pp2\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"17\" height=\"1\"><img src=\"/" + raiz_web + "/img/separadorPiePagina.gif\"><img src=\"/" + raiz_web + "/img/b.gif\" width=\"14\" height=\"1\"></td>\n";
	txt += "	<td class=\"pp2\">Copyright Ocaso " + hoy.getFullYear() + " - </td>\n";
	txt += "	<td><a class=\"pp1\" href=\"#\" onclick=\"javascript:abrirventana(getUrl(false,'/' + raiz_web + '/b1_avisoLegal.html'),'aviso')\">Aviso Legal y Protección de Datos</a></td>\n";
	txt += "	<td><img src=\"/" + raiz_web + "/img/b.gif\" width=\"172\" height=\"1\"></td>\n";
	txt += "</tr>\n";
	txt += "</table>\n";
	document.write(txt);
}


function abrirventana(url,name)
  { 
    ventana=window.open(url,"name","location=no,toolbar=no,menubar=no,personalbar=no,resizable=yes,scrollbars=yes,hotkeys=no,top=0,left=0,width=650,height=400");
    ventana.focus();
  }
function abrirVentanaAyuda(url,name)
  { 
    ventana=window.open(url,"name","location=no,toolbar=no,menubar=no,personalbar=no,resizable=yes,scrollbars=yes,hotkeys=no,top=0,left=0,width=450,height=200");
    ventana.focus();
  }
  function abrirVentanaGenerica(url,name, ancho, alto)
  { 
    ventana=window.open(url,"name","location=no,toolbar=no,menubar=no,personalbar=no,resizable=yes,scrollbars=yes,hotkeys=no,top=0,left=0,width=" + ancho + ",height=" + alto);
    ventana.focus();
  }
  function abrirVentanaGenerica2(url,name, ancho, alto)
  { 
    ventana=window.open(url,"name","location=yes,toolbar=yes,menubar=yes,personalbar=no,resizable=yes,scrollbars=yes,hotkeys=no,top=0,left=0,width=" + ancho + ",height=" + alto);
    ventana.focus();
  }
/*
function abrepdf(pagina)
 {
   var ventana=window.open(pagina,"ocaso","location=no,resizable=yes,scrollbars=no,hotkeys=no,width=780,height=420,top=0,left=0");
   ventana.focus();
 }
*/
// La funcion abrirDocumentacion se encuentra duplicada en la Intranet, cualquier cambio ha de hacerse alli tambien
function abrirDocumentacion(prod,name,w,h,l,t){
	if (w==null) w=280;
	if (h==null) h=330;
	
	anchoPantalla = screen.width;
	altoPantalla  = screen.height;
	posX = (anchoPantalla - w)/2;
	posY = (altoPantalla  - h)/2;

	if (l>-1) posX = l;
	if (t>-1) posY = t;
                
                url ="/" + raiz_web + "/documentacion/"+prod+"/"+name;

	Documentacion=window.open(url,'Documentacion','toolbar=no,resizable=no,status=no,scrollbars=no,location=no,menubar=no,width='+w+',height='+h+',left='+posX+',top='+posY);
}

function initPage() {
	//if (ns6){
	//	if (window.innerWidth - document.body.offsetWidth > 0) {
			//Comentaro area Privada
			//reposicionaCapa('capaAreaPrivada','capaAreaPrivadaOn',0,22,'cebo');
			//Comentaro area Privada
	//	}
	//}
	//Comentaro area Privada
	//redimension();
	//Comentaro area Privada
}

function redimension(){
	reposicionaCapa('capaAreaPrivada','capaAreaPrivadaOn',0,22,'cebo');
	aa = setTimeout("redimension()",50);
}

function validarPass(){
	alert("Usuario/contraseña errónea");
	/*user      = document.formulario.user.value;
	contrasenia  = document.formulario.contrasenia.value;
	passwdEnc    = b64_sha1(contrasenia);
	document.formulario.password.value = passwdEnc;
	alert("\t\n-user:\t\t"+document.formulario.user.value+"\n-contraseña:\t"+document.formulario.contrasenia.value+"\n-contraseña enc.:\t"+document.formulario.password.value);
	document.formulario.action = "../../GUsuarios/ServletPermisos"
	document.formulario.submit();*/
}

function submitCampos(producto){
	alert("submitCampos");
	nombreImagen  = menuSecundarioProductos[estadoMenuSecundario][2];
	vNombreImagen = nombreImagen.split("/");
	nombreImagen  = vNombreImagen[vNombreImagen.length-1];
	vNombreImagen = nombreImagen.split(".");
	nombreImagen  = vNombreImagen[0] + "-s.jpg";
	
	document.formulario.nombreProducto.value = producto;
	document.formulario.nombreFamilia.value  = menuSecundarioProductos[estadoMenuSecundario][0];
	document.formulario.nombreImagen.value   = nombreImagen;
	alert(raiz_web_din);
	document.formulario.action = getUrl(true,"/" + raiz_web_din + "/jsp/solicitarMasInformacion.jsp");
//	document.formulario.action = "/" + raiz_web_din + "/jsp/solicitarMasInformacion.jsp";
	document.formulario.submit();
}

function submitCamposIngles(producto){
	
	nombreImagen  = menuSecundarioProductos[estadoMenuSecundario][2];
	vNombreImagen = nombreImagen.split("/");
	nombreImagen  = vNombreImagen[vNombreImagen.length-1];
	vNombreImagen = nombreImagen.split(".");
	nombreImagen  = vNombreImagen[0] + "-s.jpg";
	
	document.formulario.nombreProducto.value = producto;
	document.formulario.nombreFamilia.value  = menuSecundarioProductos[estadoMenuSecundario][0];
//	document.formulario.nombreImagen.value   = nombreImagen;
	document.formulario.nombreImagen.value   = "contact.jpg";
	
	//document.formulario.action = "/" + raiz_web + "/jsp/moreInformation.jsp";
	document.formulario.action = getUrl(true,"/" + raiz_web + "/jsp/moreInformation.jsp");
	document.formulario.submit();
}

function submitCamposParametros(producto){
	nombreImagen  = menuSecundarioProductos[estadoMenuSecundario][2];
	vNombreImagen = nombreImagen.split("/");
	nombreImagen  = vNombreImagen[vNombreImagen.length-1];
	vNombreImagen = nombreImagen.split(".");
	nombreImagen  = vNombreImagen[0] + "-s.jpg";
	
	document.formulario.nombreProducto.value = producto;
	document.formulario.nombreFamilia.value  = menuSecundarioProductos[estadoMenuSecundario][0];
	document.formulario.nombreImagen.value   = nombreImagen;
	
	document.formulario.action = getUrl(true,"/" + raiz_web_din + "/jsp/solicitarMasInformacion.jsp?Origen=Microsite_Ocaso&Evento=Promocion_sept2005");
//	document.formulario.action = "/" + raiz_web_din + "/jsp/solicitarMasInformacion.jsp";
	document.formulario.submit();
}

function irA(menu){
	window.location.href = menu.options[menu.selectedIndex].value;
}  

function irA2(menu){
	if (menu.options[menu.selectedIndex].value == "1")
		window.location.href = "/" + raiz_web + "/jsp/Tarificar.jsp?xmlProd=AhorroActivoPP.xml&xslProd=ahorroActivoPPCalcularPrecio.xsl&inicio=S";
	else
		window.location.href = "/" + raiz_web + "/jsp/Tarificar.jsp?xmlProd=AhorroActivoPU.xml&xslProd=ahorroActivoPUCalcularPrecio.xsl&inicio=S";
}  

function irA2Flexible(menu){
	if (menu.options[menu.selectedIndex].value == "1")
		window.location.href = "Tarificar.jsp?xmlProd=PlanPersonalFlexiblePP.xml&xslProd=planPersonalFlexiblePPCalcularPrecio.xsl&inicio=S";
	else
		window.location.href = "Tarificar.jsp?xmlProd=PlanPersonalFlexiblePU.xml&xslProd=planPersonalFlexiblePUCalcularPrecio.xsl&inicio=S";
}

function irA2Prevision(menu){
	if (menu.options[menu.selectedIndex].value == "1")
		window.location.href = "Tarificar.jsp?xmlProd=PrevisionAseguradaPP.xml&xslProd=previsionAseguradaPPCalcularPrecio.xsl&inicio=S";
	else
		window.location.href = "Tarificar.jsp?xmlProd=PrevisionAseguradaPU.xml&xslProd=previsionAseguradaPUCalcularPrecio.xsl&inicio=S";
}

function irA2Multivida(menu){
	if (menu.options[menu.selectedIndex].value == "1")
		window.location.href = "Tarificar.jsp?xmlProd=MultividaConstante.xml&xslProd=multividaConstanteCalcularPrecio.xsl&inicio=S";
	else
		window.location.href = "Tarificar.jsp?xmlProd=MultividaRenovable.xml&xslProd=multividaRenovableCalcularPrecio.xsl&inicio=S";
}


//Convierte un float en una cadena representativa de un número decimal


function toDoubleComma(numero) 
{
	numero = String(numero).replace(".",",");
	if (numero.indexOf(",") == -1 && numero != "")
	numero = numero + ",00";
	return String(numero);
}	
//Función para calcular el valor del campo contenido en función de los contenidos parciales de la pestaña de valoración
function calcularContenido() {
	document.formulario.R_G1_contenido.value = toDoubleComma(toDouble(document.formulario.R_G1_mobiliario.value));
	document.formulario.R_G1_contenido.value = toDoubleComma(toDouble(document.formulario.R_G1_jCaja.value) + toDouble(document.formulario.R_G1_contenido.value));
	document.formulario.R_G1_contenido.value = toDoubleComma(toDouble(document.formulario.R_G1_jMueble.value) + toDouble(document.formulario.R_G1_contenido.value));
	document.formulario.R_G1_contenido.value = toDoubleComma(toDouble(document.formulario.R_G1_coleccionesC.value) + toDouble(document.formulario.R_G1_contenido.value));
	document.formulario.R_G1_contenido.value = toDoubleComma(toDouble(document.formulario.R_G1_coleccionesFC.value) + toDouble(document.formulario.R_G1_contenido.value));
	document.formulario.R_G1_contenido.value = toDoubleComma(toDouble(document.formulario.R_G1_objArte.value) + toDouble(document.formulario.R_G1_contenido.value));
	document.formulario.R_G1_contenido.value = toDoubleComma(toDouble(document.formulario.R_G1_prendas.value) + toDouble(document.formulario.R_G1_contenido.value));
	document.formulario.R_G1_contenido.value = toDoubleComma(toDouble(document.formulario.R_G1_plata.value) + toDouble(document.formulario.R_G1_contenido.value));
	document.formulario.R_G1_contenido.value = toDoubleComma(toDouble(document.formulario.R_G1_trnsFacil.value) + toDouble(document.formulario.R_G1_contenido.value));  
}

//Función para calcular el valor del campo total joyas y objetos de arte en fc. de los valores parciales
function calcularJoyasObj() {
	document.formulario.R_G1_joyasObj.value = toDoubleComma(toDouble(document.formulario.R_G1_jMueble.value));
	document.formulario.R_G1_joyasObj.value = toDoubleComma(toDouble(document.formulario.R_G1_jCaja.value) + toDouble(document.formulario.R_G1_joyasObj.value));
	document.formulario.R_G1_joyasObj.value = toDoubleComma(toDouble(document.formulario.R_G1_coleccionesC.value) + toDouble(document.formulario.R_G1_joyasObj.value));		
	document.formulario.R_G1_joyasObj.value = toDoubleComma(toDouble(document.formulario.R_G1_coleccionesFC.value) + toDouble(document.formulario.R_G1_joyasObj.value));		
	document.formulario.R_G1_joyasObj.value = toDoubleComma(toDouble(document.formulario.R_G1_objArte.value) + toDouble(document.formulario.R_G1_joyasObj.value));
	document.formulario.R_G1_joyasObj.value = toDoubleComma(toDouble(document.formulario.R_G1_prendas.value) + toDouble(document.formulario.R_G1_joyasObj.value));
	document.formulario.R_G1_joyasObj.value = toDoubleComma(toDouble(document.formulario.R_G1_plata.value) + toDouble(document.formulario.R_G1_joyasObj.value));
	document.formulario.R_G1_joyasObj.value = toDoubleComma(toDouble(document.formulario.R_G1_trnsFacil.value) + toDouble(document.formulario.R_G1_joyasObj.value));
}

//Función para calcular el valor del campo total objetos de arte en fc. de los valores parciales
function calcularObj() {
	document.formulario.R_G1_obj.value = toDoubleComma(toDouble(document.formulario.R_G1_coleccionesC.value));
	document.formulario.R_G1_obj.value = toDoubleComma(toDouble(document.formulario.R_G1_coleccionesFC.value) + toDouble(document.formulario.R_G1_obj.value));
	document.formulario.R_G1_obj.value = toDoubleComma(toDouble(document.formulario.R_G1_objArte.value) + toDouble(document.formulario.R_G1_obj.value));
	document.formulario.R_G1_obj.value = toDoubleComma(toDouble(document.formulario.R_G1_prendas.value) + toDouble(document.formulario.R_G1_obj.value));
	document.formulario.R_G1_obj.value = toDoubleComma(toDouble(document.formulario.R_G1_plata.value) + toDouble(document.formulario.R_G1_obj.value));
	document.formulario.R_G1_obj.value = toDoubleComma(toDouble(document.formulario.R_G1_trnsFacil.value) + toDouble(document.formulario.R_G1_obj.value));
}

//Función para calcular el valor del campo total joyas en fc. de los valores parciales
function calcularJoyas() {
	document.formulario.R_G1_joyas.value = toDoubleComma(toDouble(document.formulario.R_G1_jCaja.value)) ;
	document.formulario.R_G1_joyas.value = toDoubleComma(toDouble(document.formulario.R_G1_jMueble.value) + toDouble(document.formulario.R_G1_joyas.value));
}
function deshabilitarDanosAgua()
{
	if (document.formulario.R_G1_continente.value == "0" || document.formulario.R_G1_continente.value == "")
	{
		document.formulario.R_G1_aguaEstetica.disabled = false;
	}
	else
	{
		document.formulario.R_G1_aguaEstetica.disabled = true;
	}
}
function deshabilitarRoturaCristales()
{
	if (document.formulario.R_G1_mobiliario.value == "0" || document.formulario.R_G1_mobiliario.value == "")
	{
		for (i=0;i<document.formulario.R_G1_roturaCristales.length;i++)
			document.formulario.R_G1_roturaCristales[i].disabled = false;
	}
	else
	{
		for (i=0;i<document.formulario.R_G1_roturaCristales.length;i++)
			document.formulario.R_G1_roturaCristales[i].disabled = true;
	}
	
}
//Función para controlar la aparición de la garantía de capital de muerte
function muestraCMuerte() {
	var valor;
	for(i=0;i<document.formulario.R_G1_acc.length;i++)
		if (document.formulario.R_G1_acc[i].checked)
			valor = document.formulario.R_G1_acc[i].value;
	if (valor == 'S')
	{
		document.formulario.R_G1_nPersonas.disabled = false;
		document.formulario.R_G1_cMuerte.disabled = false;
	} else {
		document.formulario.R_G1_nPersonas.disabled = true;
		document.formulario.R_G1_cMuerte.disabled = true;
		//Limpiamos
		document.formulario.R_G1_nPersonas.options[0].selected = true;
		document.formulario.R_G1_cMuerte.value = "";
	}
}
//Función para calcular el valor del campo continente en fc. de la calidad, superficie, y tipo de la vivienda
function calcularContinente() {
	document.formulario.R_G1_continente.value = Number(0);
	if ((document.formulario.R_C1_tipoViv.value=="VV") || (document.formulario.R_C1_tipoViv.value=="A")) {
		if (document.formulario.R_C1_calidad.value=="M")
			if (!isNaN(document.formulario.R_C1_superficie.value))
				document.formulario.R_G1_continente.value = Number(document.formulario.R_C1_superficie.value) * 660.00;
			
	}
	deshabilitarDanosAgua();
}

// Funcion para llamar al motor de busqueda y realizar la carga de los modelos de vehiculos para una marca.
// Se pasa como parametro el elemento del formulario sobre el que se genera el evento onChange().
// Revisada. 04/12/2003.
//
function cargaModelosAutos(objeto){
	// La consulta debe llevar el parametro cod_marca que tiene que ser un alfanumerico de 3 posiciones
	// y un segundo parametro que es el codigo de modelo de vehiculo, que puede ir vacio.
	cod_marca = "";
	for (i=0; i<objeto.options.length; i++) {
		if (objeto.options[i].selected) {
			if (objeto.options[i].value == "*") {
				objeto.focus();
				return;
			} else {
				cod_marca = objeto.options[i].value;
			}
		}
	}
	// Se deshabilita el combo donde se van a cargar los resultados
	document.formulario.modVeh.disabled = true;
	// Si se cambia la seleccion del combo de marcas hay que limpiar el de los modelos
	longitudCombo = document.formulario.modVeh.options.length - 1;

	for (i=longitudCombo; i>0; i--) {
		document.formulario.modVeh.options[i] = null;
	}

	// Se indica la jsp de búsqueda y el iFrame donde se va a ejecutar
	varGET = "getDatosModelosAutos.jsp?cod_marca=" + cod_marca + "&consulta=N";
	varTarget = "iModelosAutos";
	
	document.formulario.target = varTarget;
	document.formulario.action = varGET;
	document.formulario.submit();	
}

// Esta función es llamada desde el combo de seleccionar modelo. El value de cada uno de los options
// tiene concatenado una serie de valores separados por '|'. Se recogen esos valores y se guardan en
// los campos hidden.
// Revisada. 04/12/2003.
//
function cargaCaractModelo(objeto){
	var valores = objeto.value;
	valores = valores.substring((valores.indexOf("|")+1), valores.length);
	var categoria = valores.substring(0, valores.indexOf("|"));
	valores = valores.substring((valores.indexOf("|")+1), valores.length);
	var valorVehiculo = valores.substring(0, valores.indexOf("|"));
	valores = valores.substring((valores.indexOf("|")+1), valores.length);
	var numeroPlazas = valores;
	document.formulario.R_C1_catVeh.value = categoria;
	document.formulario.R_C1_valVeh.value = valorVehiculo;
	document.formulario.R_C1_numPlazas.value = numeroPlazas;
	document.formulario.R_C1_modVeh.value = valores;
}
function buscaLocalidades(cProv, objeto, persona, numPersona, numDomicilio) 
{			

	if (typeof numDomicilio == "undefined") 
		numDomicilio="1";
	if (typeof numPersona == "undefined") 
		numPersona="1";
	
	if (objeto.disabled==true)
		return false;

	if (cProv=="" || objeto.value.length < 4 )	
		alert("Debe facilitarnos el codigo de provincia y un literal a buscar (minimo cuatro caracteres)");	
	else      
	{		
		window.open("buscaLocalidades_2.jsp?cProv="+cProv+"&lite="+objeto.value+"&numPersona="+numPersona+"&numDomicilio="+numDomicilio+"&persona=" + persona , "", "width=450px,height=400px,top=20px,left=20px,resizable=yes,scrollbars=yes,status=no");
	}
}
//Función para obtener la provincia correspondiente a un código postal
function getProvincia(objeto,tipo) {
	codprov = eval(objeto).value.substring(0,2);
	
	var ctrlProv;
	var ctrlLoc;	
	var accion;
	
	if (tipo == "TP"){ //TomadorPostal
		ctrlProv = document.formulario.R_T1_D1_prov
		ctrlLoc  = document.formulario.R_T1_D1_loc
		accion   = "getProvincia.jsp?param=" + codprov + "&xsl=provinciaTP.xsl";
	} else if (tipo == "TF"){ //TomadorFiscal	
		ctrlProv = document.formulario.R_T1_D2_prov
		ctrlLoc  = document.formulario.R_T1_D2_loc
		accion   = "getProvincia.jsp?param=" + codprov + "&xsl=provinciaTF.xsl";	
	} else if (tipo == "AP"){ //AseguradoPostal			
		ctrlProv = document.formulario.R_A1_D1_prov
		ctrlLoc  = document.formulario.R_A1_D1_loc
		accion   = "getProvincia.jsp?param=" + codprov + "&xsl=provinciaAP.xsl";
	} else if (tipo == "BP"){ //BeneficiarioPostal
		ctrlProv = document.formulario.R_Bf1_D1_prov
		ctrlLoc  = document.formulario.R_Bf1_D1_loc
		accion   = "getProvincia.jsp?param=" + codprov + "&xsl=provinciaBP.xsl";
	} else if (tipo == "R"){ //Riesgo
		ctrlProv = document.formulario.R_C1_prov
		ctrlLoc  = document.formulario.R_C1_loc
		accion   = "getProvincia.jsp?param=" + codprov + "&xsl=provinciaR.xsl";
	} else {					
		ctrlProv = document.formulario.R_S1_D1_prov
		ctrlLoc  = document.formulario.R_S1_D1_loc
		accion   = "getProvincia.jsp?param=" + codprov;
	}
	
	document.formulario.target="iProvincia";
	document.formulario.action= accion;
	document.formulario.submit();
	
	ctrlProv.value = "Cargando...";
	ctrlProv.disabled = true;
	ctrlLoc .value="";
	formulario.R_T1_D1_cProv.value = codprov;
	
	document.formulario.target="";
	document.formulario.action= "/" + raiz_web + "/SvlTarificadorWeb";
}      


function right(e) { 
var msg = "  [ www.fut.es/~pcarmona ] ";if (navigator.appName == 'Netscape' && e.which == 3) { 
alert('© Ocaso 2006');  // Delete this line to disable but not alert user return false; 
} 
else 
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) { 
alert('© Ocaso 2006'); // Delete this line to disable but not alert user 
return false; 
} 
return true; 
} 
document.onmousedown = right; 


function anadirReglada()	{
	var mostrada = false;
	for (i=2;i<6 && !mostrada;i++){
		var linea = eval('lineaArriba'+i).style.display;
		if (linea != 'block'){
			eval("lineaArriba"+i).style.display = 'block'; 
			eval("nivelEstudios"+i).style.display = 'block'; 
			eval("titulacion"+i).style.display = 'block'; 
			eval("estudios"+i).style.display = 'block'; 
			eval("cursos"+i).style.display = 'block'; 
			eval("lineaAbajo"+i).style.display = 'block'; 
			eval("puntos"+i).style.display = 'block'; 
			mostrada = true;
		}
	}
}

function anadirRegladaEN()	{
	var mostrada = false;
	for (i=2;i<6 && !mostrada;i++){
		var linea = eval('lineaArriba'+i).style.display;
		if (linea != 'block'){
			eval("lineaArriba"+i).style.display = 'block'; 
			eval("nivelEstudios"+i).style.display = 'block'; 
			// eval("titulacion"+i).style.display = 'block'; Eliminar esta funcion y dejar la anterior cuando se habilite el campo de los titulos de estudio. Cambiar el nombre de la funcion por al anterior en el jsp.
			eval("estudios"+i).style.display = 'block'; 
			eval("cursos"+i).style.display = 'block'; 
			eval("lineaAbajo"+i).style.display = 'block'; 
			eval("puntos"+i).style.display = 'block'; 
			mostrada = true;
		}
	}
}

function anadirCurso()	{
	var mostrada = false;
	for (j=2;j<6 && !mostrada;j++)	{
		var linea = eval('lineaCursoArriba'+j).style.display;
		if (linea != 'block')	{
			eval("lineaCursoArriba"+j).style.display = 'block'; 
			eval("descripcionCurso"+j).style.display = 'block'; 
			eval("centro"+j).style.display = 'block'; 
			eval("lineaCursoAbajo"+j).style.display = 'block'; 
			eval("puntosCurso"+j).style.display = 'block'; 
			mostrada = true;
		}
	}
}

function anadirExperiencia(){
	var mostrada = false;
	for (j=2;j<6 && !mostrada;j++)	{
		var linea = eval('lineaExperienciaArriba'+j).style.display;
		if (linea != 'block'){
			eval("lineaExperienciaArriba"+j).style.display = 'block'; 
			eval("lineaSector"+j).style.display = 'block'; 
			eval("lineaEmpresa"+j).style.display = 'block'; 
			eval("lineaPInicial"+j).style.display = 'block'; 
			eval("lineaRInicial"+j).style.display = 'block'; 
			eval("lineaPFinal"+j).style.display = 'block'; 
			eval("lineaRFinal"+j).style.display = 'block'; 
			eval("lineaExperienciaAbajo"+j).style.display = 'block'; 
			eval("lineaPuntosExperiencia"+j).style.display = 'block'; 
			mostrada = true;
		}
	}
}

function anadirIdioma()	{
	var mostrada = false;
	for (j=2;j<6 && !mostrada;j++)	{
		var linea = eval('lineaIdiomasArriba'+j).style.display;
		if (linea != 'block')	{
			eval("lineaIdiomasArriba"+j).style.display = 'block'; 
			eval("lineaIdioma"+j).style.display = 'block'; 
			eval("lineaNivel"+j).style.display = 'block'; 
			eval("lineaIdiomasAbajo"+j).style.display = 'block'; 
			eval("lineaPuntosIdioma"+j).style.display = 'block'; 
			mostrada = true;
		}
	}
}

//-------------------------------------------------------------------------
//Funcion: vaciarCombo
//Descripción: vaciamos el COMBO
//Parámetros: combo (el combo a vaciar)
//Retorno: 
//--------------------------------------------------------------------------- 
function vaciarCombo(Cbo, bDisabled) {
	if (typeof bDisabled == "undefined")
		bDisabled = true;

	if (document.layers) {	
		Cbo.length = 0;
		Cbo.options.length = 0;
	}
	else {
		Cbo.innerHTML = "";
	}

	Cbo.disabled = bDisabled;
}

//-------------------------------------------------------------------------
//Funcion: Tags de Realmedia
//Descripción: Código de seguimiento de Realmedia
//-------------------------------------------------------------------------

var refr=escape(document.referrer); /* get the http referer and encode it */
var dom=location.hostname; /* get the host domain */
var stURL="http://eu.link.decdna.net/n/15298/22049/www.ocaso.es/7538695c0025030000000006000000000f09dddb0000000000000000000000000000000100/i/c?0&1pixgif&referer="
+ refr;
if ( (refr && refr.search(dom) == -1) && (location.href.toUpperCase().indexOf("247SEO=N") == -1) ) /* if the referrer is external preload the image request and does not contain 247SEO argument = "N" */
{
imageTR = new Image();
imageTR.src = stURL;
}

