
var num=0;
var subnum=0;
ids = new Array();
noms = new Array();
urls = new Array();
titles = new Array();

function carga_logo() {
	var strout;
	strout = "<center><img src ='images/ucave_aavv.jpg'></center><br>"
	document.write(strout);
}

function mensajebienvenida() {

}

function veapolizas() {

}

function opcion(id,nom,url,title) {
num++;
ids[num] = id;
noms[num] = nom;
urls[num] = url;
titles[num] = title;
}

	function Dibujamenu(opcio,menu) {
var strout="";
var i=0;
var j=0; 
		var for1, for2, entra; 
strout = "<table border=0 cellspacing=0 cellpadding=0 bgcolor='white'><tr>";
		if (menu==1) {
			entra = true;
			for1 =0;
			if (num>=8){for1 = num-8;}			
			for2 = for1+1;
		}
		if (menu==2){
			entra = false;
			for1 = num;
		}
		for (i=1;i<=for1;i++) {
   if (ids[i]==opcio) {
	  strout += "<TD vAlign=top width=3></TD>";
	  strout += "<TD width=3 bgColor=#666699><IMG height=30 src='images/ve_ucave.gif' width=3></TD>";
	  strout += "<td class=petit width=100 bgColor=#666699><CENTER><FONT color=#cccccc>";
	  strout += noms[i];
	  strout += "</center></font></td>";
	  strout += "<TD width=3 bgColor=#666699><IMG height=30 src='images/vd_ucave.gif' width=3 NOSAVE></TD>";
      strout += "<TD width=2></TD>";
	}  
	else	{
	  strout += "<TD vAlign=top width=3></TD>";
	  if (ids[i] == 8){
			strout += "<TD width=2 bgColor=red><IMG height=30 src='images/ve_ret.gif' width=3></TD>";		  
		  	strout += "<TD width=100 bgColor=red><CENTER>";}
	  else{
			strout += "<TD width=2 bgColor=#cccccc><IMG height=30 src='images/ge.gif' width=3></TD>";		  
		  	strout += "<TD width=100 bgColor=#cccccc><CENTER>";}	  
      if (urls[i]!='-1') {
	      strout += "<a class=petit href='" + urls[i];
	      strout += "' title='";
	      strout += titles[i] + "'>";
	      strout += noms[i];
	      strout += "</a></center></td>";
      }
      else {
	    strout += noms[i];
	    strout += "</center></td>";
	  }
	  if (ids[i] == 8){
	  strout += "<TD width=3 bgColor=red><IMG height=30 src='images/vd_ret.gif' width=3 NOSAVE></TD>";
      strout += "<TD width=2></TD>";}
	  else{
	  strout += "<TD width=3 bgColor=#cccccc><IMG height=30 src='images/gd.gif' width=3 NOSAVE></TD>";
      strout += "<TD width=2></TD>";		  
				  }
			}
	}
		if (entra){
			strout += "</tr><tr><td height='1px'></td></tr><tr>";
			for (i=for2;i<=num;i++) {
   if (ids[i]==opcio) {
	  strout += "<TD vAlign=top width=3></TD>";
	  strout += "<TD width=3 bgColor=#666699><IMG height=30 src='images/ve_ucave.gif' width=3></TD>";
	  strout += "<td class=petit width=100 bgColor=#666699><CENTER><FONT color=#cccccc>";
	  strout += noms[i];
	  strout += "</center></font></td>";
	  strout += "<TD width=3 bgColor=#666699><IMG height=30 src='images/vd_ucave.gif' width=3 NOSAVE></TD>";
      strout += "<TD width=2></TD>";
	}  
	else	{
	  strout += "<TD vAlign=top width=3></TD>";
	  if (ids[i] == 8){
			strout += "<TD width=2 bgColor=red><IMG height=30 src='images/ve_ret.gif' width=3></TD>";		  
		  	strout += "<TD width=100 bgColor=red><CENTER>";}
	  else{
			strout += "<TD width=2 bgColor=#cccccc><IMG height=30 src='images/ge.gif' width=3></TD>";		  
		  	strout += "<TD width=100 bgColor=#cccccc><CENTER>";}	  
      if (urls[i]!='-1') {
	      strout += "<a class=petit href='" + urls[i];
	      strout += "' title='";
	      strout += titles[i] + "'>";
	      strout += noms[i];
	      strout += "</a></center></td>";
      }
      else {
	    strout += noms[i];
	    strout += "</center></td>";
	  }
	  if (ids[i] == 8){
	  strout += "<TD width=3 bgColor=red><IMG height=30 src='images/vd_ret.gif' width=3 NOSAVE></TD>";
      strout += "<TD width=2></TD>";}
	  else{
	  strout += "<TD width=3 bgColor=#cccccc><IMG height=30 src='images/gd.gif' width=3 NOSAVE></TD>";
      strout += "<TD width=2></TD>";		  
					  }
				}
			}
}
strout += "</tr></table>";
strout += "<table border=0 cellspacing=0 cellpadding=0 bgcolor=#666699>";
strout += "<tr><td width=800 height=14 bgColor=#666699></td></tr>"
strout += "</table>";
document.write(strout);
}


	function menuseguros(opcion2,grupo,lookandfeel,central)
	{
		var strout;
		var str2;
		
		strout ="<basefont face='Arial,Helvetica,San Serif' size=2>"
		document.write(strout);
		str2= "NuevoSeguro.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;		
		opcion(1,ObtMensajs('Realizar Seguro','Realitzar Assegurança'),str2,ObtMensajs('Realizar Seguro','Realitzar Assegurança'));

	    if (grupo) {
			str2= "RealizadosAgrupacion.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
			opcion(2,ObtMensajs('Seguros realizados','Assegurances Realitzades'),str2,ObtMensajs('Ver seguros realizados','Veure assegurances realitzades'));
			}
		else {
			str2= "RealizadosAgencia.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
			opcion(2,ObtMensajs('Seguros realizados','Assegurances Realitzades'),str2,ObtMensajs('Ver seguros realizados','Veure assegurances realitzades'));
			}
		if (grupo) {
			str2= "AgenciasGrupo.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
			opcion(4,ObtMensajs('Agencias','Agencies'),str2,ObtMensajs('Ver agencias','Veure Agencies'));
			}
		str2= "modalidades.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(10,ObtMensajs('Modalidades','Modalitats'),str2,ObtMensajs('Ver familias de las distintas modalidades','Veure families de les diferents modalitats'));	
		str2= "precios.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(5,ObtMensajs('Precios','Preus'),str2,ObtMensajs('Ver precios de las distintas modalidades','Veure preus de les diferents modalitats'));
		if (!(grupo)){
		str2= "estudios.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
			if(Eroski){opcion(6,ObtMensajs('Presupuestos','Pressupostos'),str2,ObtMensajs('Ver Presupuestos','Veure pressupostos'));}
			else{opcion(6,ObtMensajs('Estudios','Estudis'),str2,ObtMensajs('Ver estudios','Veure estudis'));}
		}	
		str2= "listforo.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(7,ObtMensajs('Mensajes','Missatges'),str2,ObtMensajs('Canal de comunicación con TAEDS','Canal de comunicació amb TAEDS'));	
		//Antigua pestaña de asesor
		//str2= "cuestionario.asp?lookandfeel=" + lookandfeel;
		//opcion(8,"Asesor",str2,"Asesor de Seguros");	
		
		//str2= "SinAgencia.asp?lookandfeel=" + lookandfeel;
		//opcion(8,"Siniestros",str2,"Siniestros de certificados");	
		//Nos vamos a administración de las centrales
        	str2= "submenu.asp?lookandfeel=" + lookandfeel + "&idioma="+idioma;
		if (central) {
			opcion(9,ObtMensajs('Administración','Administració'),str2,ObtMensajs('Propiedades Centrales','Propietats Centrals'));
			}
		if (grupo) {
			str2= "MantFact.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
			opcion(11,ObtMensajs('Configuración listados','Configuració llistats'),str2,ObtMensajs('Configuración listados','Configuració llistats'));	
			}
		if (Eroski==0){
			str2= "Particulares.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
			opcion(12,ObtMensajs('EXCLUSIVO AGENTES','EXCLUSSIU AGENTS'),str2,ObtMensajs('Seguros Particulares','Assegurances Particulars'));
		}
		if (config1==0 && Eroski==0 && config2==0){
			str2= "MenuIncent.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
			opcion(13,ObtMensajs('Incentivos','Incentius'),str2,ObtMensajs('Mantenimiento Usuarios','Manteniment Usuaris'));
		}
		if (grupo) {}
		else{
		str2= "EstadisticasSucu.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(14,ObtMensajs('Estad&iacute;sticas','Estad&iacute;stiques'),str2,ObtMensajs('Estad&iacute;sticas','Estad&iacute;stiques'));		
		}		
		str2= "Archivo_list.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(3,ObtMensajs('Archivos de ayuda','Arxius d\'ajuda'),str2,ObtMensajs('Archivos de ayuda','Arxius d\'ajuda'));
		str2= "ArchivoSin_list.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(15,ObtMensajs('Ayuda siniestros','Ajuda sinistres'),str2,ObtMensajs('Ayuda siniestros','Ajuda sinistres'));
		str2= "ArchivoNew_list.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(16,ObtMensajs('Newsletters','Newsletters'),str2,ObtMensajs('Archivos de ayuda','Arxius d\'ajuda'));	
		if (segGen==1){
			str2= "ListSegGen.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
			opcion(17,ObtMensajs('Seguros Generales','Assegurances Generals'),str2,ObtMensajs('Seguros Generales','Assegurances Generals'));
			str2= "SegGenRealizados.asp?lookandfeel=" + lookandfeel;		
			opcion(19,'Seguros Gen. Realizados',str2,'Seguros Gen. Realizados');
		}
		//alert('WebPropia='+WebPropia);
		if (WebPropia==1){
			str2= "ListaNoticiaCliente.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
			opcion(20,ObtMensajs('Lista Home','Llista Home'),str2,ObtMensajs('Lista Home','Llista Home'));
			str2= "ListaProductoCliente.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
			opcion(21,ObtMensajs('Lista de Productos','Llista de Porductes'),str2,ObtMensajs('Lista Productos','Llista de Porductes'));			
		}
		Dibujamenu(opcion2,1);
	}
	
	function menuseguros_adm (opcion2,lookandfeel,grupo)
	{
		var strout;
		var str2;
		strout ="<basefont face='Arial,Helvetica,San Serif' size=2>"
		document.write(strout);
		
		str2= "RSeguros.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(1,ObtMensajs('Seguros realizados','Assegurances Realitzades'),str2,ObtMensajs('Ver seguros realizados','Veure Assegurances Realitzades'));
		
		str2= "AgenciasSucursales.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(2,ObtMensajs('Agencias','Agencies'),str2,ObtMensajs('Ver Agencias','Veure Agencies'));
		
		str2= "modGastos.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(3,ObtMensajs('Gastos de Gesti&oacute;n','Gastos de Gesti&oacute'),str2,ObtMensajs('Ver precios de las distintas modalidades','Veure preus de les diferents modalitats'));
		
		if(sinModWeb==0){		
			str2= "selectmod.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
			opcion(5,ObtMensajs('Modalidades Web','Modalitats Web'),str2,ObtMensajs('Selección de las modalidades que aparecerán en la web de la agencia','Selecció de les modalitats que apareixeran a la web de l\'agencia'));
		}
		
		if(grupo){
			str2= "selectmodAsociacion.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
			opcion(6,ObtMensajs('Modalidades Web Asociacion','Modalitats Web Associació'),str2,ObtMensajs('Selección de las modalidades que aparecerán en la web de la agencia','Selecció de les modalitats que apareixeran a la web de l\'agencia'));
		}
		
		str2= "excluirModAge.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(7,ObtMensajs('Desactivar modalidades','Desactivar modalitats'),str2,ObtMensajs('Desactiva modalidades para cada agencia','Desactiva modalitats per cada agencia'));
		
		if(grupo){
			str2= "estadisticasAso.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		}
		else{
			str2= "estadisticas.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		}
		
		opcion(10,ObtMensajs('Estad&iacute;sticas','Estad&iacute;stiques'),str2,ObtMensajs('Filtros Estad&iacute;sticas','Filtres d\'Estad&iacute;stiques'));
		
		str2= "mantenusu.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(9,ObtMensajs('Incentivos','Incentius'),str2,ObtMensajs('Mantenimiento Usuarios','Manteniment d\'Usuaris'));
		
		str2= "NuevoSeguro.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(4,ObtMensajs('Salir','Sortir'),str2,ObtMensajs('Aplicación General','Aplicació General'));
		
		Dibujamenu(opcion2,1);
	}
	
	function menuseguros_particulares (opcion2,lookandfeel)
	{
		var strout;
		var str2;
		strout ="<basefont face='Arial,Helvetica,San Serif' size=2>"
		document.write(strout);
		
		str2= "Particulares.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(1,ObtMensajs('Clases Seguro','Classes Assegurances'),str2,ObtMensajs('Detalle seguros disponibles','Detall assegurances disponibles'));
		
		str2= "Seguros_part.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(2,ObtMensajs('Seguros realizados','Assegurances realitzades'),str2,ObtMensajs('Ver seguros realizados','Veure assegurances realitzades'));
		
		str2= "NuevoSeguro.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(3,ObtMensajs('Volver menú principal','Tornar menú principal'),str2,ObtMensajs('Aplicación General','Aplicació General'));
		
		Dibujamenu(opcion2,2);
	}
	
	function menuseguros_estudio(opcion2,grupo,lookandfeel,central)
	{
		var strout;
		var str2;
		strout ="<basefont face='Arial,Helvetica,San Serif' size=2>";
		document.write(strout);
		str2= "precios_int.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(5,ObtMensajs('Precio y Modalidad','Preu y Modalitat'),str2,ObtMensajs('Ver','Veure'));
		str2= "interface.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
		opcion(1,ObtMensajs('Realizar Seguro','Realitzar Assegurança'),str2,ObtMensajs('Realizar un nuevo seguro','Realitzar una nova assegurança'));
		Dibujamenu(opcion2,1);
	}
	
	function menuseguros_restric(opcion2,grupo,lookandfeel,central)
	{		
		var strout;
		var str2;
		strout ="<basefont face='Arial,Helvetica,San Serif' size=2>";
		document.write(strout);
		if (grupo) {
			str2= "RealizadosAgrupacion.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
			opcion(2,ObtMensajs('Seguros realizados','Assegurances realitzades'),str2,ObtMensajs('Ver seguros realizados','Veure assegurances realitzades'));
			}
		else {
			str2= "RealizadosAgencia.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
			opcion(2,ObtMensajs('Seguros realizados','Assegurances realitzades'),str2,ObtMensajs('Ver seguros realizados','Veure assegurances realitzades'));
			}
		if (grupo) {
			str2= "AgenciasGrupo.asp?lookandfeel=" + lookandfeel + "&idioma=" + idioma;
			opcion(4,ObtMensajs('Agencias','Agencies'),str2,ObtMensajs('Ver agencias','Veure agencies'));
			}
		Dibujamenu(opcion2,1);
	}	

function pieseguros() {
	var strout;
	var fecha=new Date();
	strout = "<table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td align='center'>"
	strout += "<b><font face='Arial'>UCAVE</font></b></td></tr>"
	strout +="<tr><td align='center'><font face='Arial' size=1>Estatutos depositados y registrados en el Mº de Trabajo,</font></td></tr>"
	strout +="<tr><td align='center'><font face='Arial' size=1>Oficina de Depósito de Estatutos.</font></td></tr>"
	strout +="<tr><td align='center'><font face='Arial' size=1>C/Pio Baroja, 6 Madrid. C.I.F G-60433695</font></td></tr>"
	strout +="<tr><td align='center'><font face='Arial' size=1>Teléfono 934.51.77.60</font></td></tr>"
	strout +="<tr><td align='center'><font face='Arial' size=1>ucave@ucave.com</font>"
	strout += "</td></tr></table><br>"
	strout += "<table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td bgcolor='#666699'>"
	strout += "<center><font face='Verdana' color='white' size=1>&copy;1996-"+fecha.getYear()+" TAEDS-Juniper Consulting SL</font></center>"
	strout += "</td></tr></table>"

	document.write(strout);
}


