
var num=0;
var subnum=0;
ids = new Array();
noms = new Array();
urls = new Array();
titles = new Array();

function carga_logo() {

}

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>=6){for1 = num-6;}			
			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=2></TD>";
	  strout += "<TD width=3 bgColor=#ffdb4c><IMG height=30 src='images/ge_arac.gif' width=3></TD>";
	  strout += "<td class=petit width=100 bgColor=#ffdb4c><CENTER><FONT color=#0b479c>";
	  strout += noms[i];
	  strout += "</center></font></td>";
	  strout += "<TD width=2 bgColor=#ffdb4c><IMG height=30 src='images/gd_arac.gif' width=3 NOSAVE></TD>";
      strout += "<TD width=2></TD>";
	}  
	else	{
		strout += "<TD vAlign=top width=2></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=#ffdb4c><IMG height=30 src='images/ve_arac.gif' width=3></TD>";		  
		  	strout += "<TD width=100 bgColor=#0b479c><CENTER>";}
      if (urls[i]!='-1') {
	      strout += "<a class=petit href='" + urls[i];
	      strout += "' title='";
	      strout += titles[i] + "'><FONT color=white>";
	      strout += noms[i];
	      strout += "</font></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=#ffdb4c><IMG height=30 src='images/vd_arac.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=2></TD>";
				  strout += "<TD width=3 bgColor=#ffdb4c><IMG height=30 src='images/ge_arac.gif' width=3></TD>";
				  strout += "<td class=petit width=100 bgColor=#ffdb4c><CENTER><FONT color=#0b479c><b>";
				  strout += noms[i];
				  strout += "<b></font></center></td>";
				  strout += "<TD width=2 bgColor=#ffdb4c><IMG height=30 src='images/gd_arac.gif' width=3 NOSAVE></TD>";
				  strout += "<TD width=2></TD>";
				}  
				else	{
				  strout += "<TD vAlign=top width=2></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=#ffdb4c><IMG height=30 src='images/ve_arac.gif' width=3></TD>";		  
						strout += "<TD width=100 bgColor=#0b479c><CENTER>";}
				  if (urls[i]!='-1') {
					  strout += "<a class=petit href='" + urls[i];
					  strout += "' title='";
					  strout += titles[i] + "'><FONT color=white><b>";
					  strout += noms[i];
					  strout += "<b></font></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=#ffdb4c><IMG height=30 src='images/vd_arac.gif' width=3 NOSAVE></TD>";
				  strout += "<TD width=2></TD>";		  
					  }
				}
			}
}
strout += "</tr></table>";
strout += "<table border=0 cellspacing=0 cellpadding=0 bgcolor=#ffdb4c width='100%'>";
strout += "<tr><td width=770 height=14 bgColor=#ffdb4c></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;
opcion(1,"Realizar Seguro",str2,"Realizar un nuevo seguro");

if (grupo) {
	str2= "RealizadosAgrupacion.asp?lookandfeel=" + lookandfeel;
	opcion(2,"Seguros realizados",str2,"Ver seguros realizados");
	}
else {
	str2= "RealizadosAgencia.asp?lookandfeel=" + lookandfeel;
	opcion(2,"Seguros realizados",str2,"Ver seguros realizados");
	}
if (grupo) {
	str2= "AgenciasGrupo.asp?lookandfeel=" + lookandfeel;
	opcion(4,"Agencias",str2,"Ver agencias");
	}
str2= "modalidades.asp?lookandfeel=" + lookandfeel;
opcion(10,"Modalidades",str2,"Ver familias de las distintas modalidades");	
str2= "precios.asp?lookandfeel=" + lookandfeel;
opcion(5,"Precios",str2,"Ver precios de las distintas modalidades");
if (!(grupo)){
str2= "estudios.asp?lookandfeel=" + lookandfeel;
opcion(6,"Estudios",str2,"Ver estudios");
}	
str2= "listforo.asp?lookandfeel=" + lookandfeel;
opcion(7,"Mensajes",str2,"Canal de comunicación con TAEDS");	

		//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;
if (central) {
	opcion(9,"Administración",str2,"Propiedades Centrales");
	}
if (grupo) {
	str2= "MantFact.asp?lookandfeel=" + lookandfeel;
	opcion(11,"Configuración listados",str2,"Configuración listados");	
	}
		str2= "Particulares.asp?lookandfeel=" + lookandfeel;
		opcion(12,"EXCLUSIVO AGENTES",str2,"Seguros Particulares");	
		str2= "MenuIncent.asp?lookandfeel=" + lookandfeel;
		opcion(13,"Incentivos",str2,"Mantenimiento Usuarios");
		if (grupo) {}
		else{
		str2= "EstadisticasSucu.asp?lookandfeel=" + lookandfeel;
		opcion(14,"Estad&iacute;sticas",str2,"Estad&iacute;sticas");		
		}		
		str2= "Archivo_list.asp?lookandfeel=" + lookandfeel;
		opcion(3,"Archivos de ayuda",str2,"Archivos de ayuda");
		str2= "ArchivoSin_list.asp?lookandfeel=" + lookandfeel;
		opcion(15,"Ayuda siniestros",str2,"Ayuda siniestros");
		str2= "ArchivoNew_list.asp?lookandfeel=" + lookandfeel;
		opcion(16,"Newsletters",str2,"Archivos de ayuda");	
		if (segGen==1){
			str2= "ListSegGen.asp?lookandfeel=" + lookandfeel;
			opcion(17,"Seguros Generales",str2,"Seguros Generales");			
			}		
		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;
opcion(1,"Seguros realizados",str2,"Ver seguros realizados");

str2= "AgenciasSucursales.asp?lookandfeel=" + lookandfeel;
opcion(2,"Agencias",str2,"Ver Agencias");

str2= "modGastos.asp?lookandfeel=" + lookandfeel;
opcion(3,"Cambiar Gastos de Gesti&oacute;n",str2,"Ver precios de las distintas modalidades");

str2= "selectmod.asp?lookandfeel=" + lookandfeel;
opcion(5,"Modalidades Web",str2,"Selección de las modalidades que aparecerán en la web de la agencia");
if(grupo){
str2= "selectmodAsociacion.asp?lookandfeel=" + lookandfeel;
opcion(6,"Modalidades Web Asociacion",str2,"Selección de las modalidades que aparecerán en la web de la agencia");
}
str2= "excluirModAge.asp?lookandfeel=" + lookandfeel;
opcion(7,"Desactivar modalidades",str2,"Desactiva modalidades para cada agencia");
		if(grupo){
			str2= "estadisticasAso.asp?lookandfeel=" + lookandfeel;
		}
		else{
			str2= "estadisticas.asp?lookandfeel=" + lookandfeel;	
		}
		
		opcion(10,"Estad&iacute;sticas",str2,"Filtros Estad&iacute;sticas");
		
		str2= "mantenusu.asp?lookandfeel=" + lookandfeel;
		opcion(9,"Incentivos",str2,"Mantenimiento Usuarios");
		
str2= "NuevoSeguro.asp?lookandfeel=" + lookandfeel;
opcion(4,"Salir",str2,"Aplicación 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;
opcion(1,"Clases Seguro",str2,"Detalle seguros disponibles");

str2= "Seguros_part.asp?lookandfeel=" + lookandfeel;
opcion(2,"Seguros realizados",str2,"Ver seguros realizados");

str2= "NuevoSeguro.asp?lookandfeel=" + lookandfeel;
opcion(3,"Volver menú principal",str2,"Aplicación 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;
opcion(5,"Precio y Modalidad",str2,"Ver");

str2= "interface.asp?lookandfeel=" + lookandfeel;
opcion(1,"Realizar Seguro",str2,"Realizar un nuevo seguro");
		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;
			opcion(2,"Seguros realizados",str2,"Ver seguros realizados");
			}
		else {
			str2= "RealizadosAgencia.asp?lookandfeel=" + lookandfeel;
			opcion(2,"Seguros realizados",str2,"Ver seguros realizados");
			}
		if (grupo) {
			str2= "AgenciasGrupo.asp?lookandfeel=" + lookandfeel;
			opcion(4,"Agencias",str2,"Ver agencias");
			}
		Dibujamenu(opcion2,1);
	}	

function pieseguros() {
	var strout;
	var fecha=new Date();
	strout = "<table border=0 cellpadding=0 cellspacing=0 width='100%'><tr><td bgcolor='#ffdb4c'>"
	strout += "<center><font face='Verdana' color='#0b479c' size=1>&copy;1996-"+fecha.getYear()+" TAEDS-Juniper Consulting SL</font></center>"
	strout += "</td></tr></table>"

	document.write(strout);
}

