/***
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu.pxBetween=10
oCMenu.fromLeft=25 
oCMenu.fromTop=100 
oCMenu.rows=0 
oCMenu.menuPlacement=0

oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1
oCMenu.wait=2000 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="menu"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=125
oCMenu.level[0].height=23
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass=0
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=1
oCMenu.level[0].align="right" 


//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=oCMenu.level[0].width-2
oCMenu.level[1].height=22
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].style=""
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].borderX=1 
oCMenu.level[1].borderY=1
oCMenu.level[1].rows=0
oCMenu.level[1].align="bottom" 

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
oCMenu.makeMenu('top0','','<b>&nbsp;Mis bienes</b>','')
oCMenu.makeMenu('top0','','<b>&nbsp;Mis bienes</b>','')
	oCMenu.makeMenu('sub00','top0','Automóvil','','',90)
		oCMenu.makeMenu('sub001','sub00','FORMULA GLOBAL, para todos los buenos conductores','/castella/formula global.htm','',120,50)
		oCMenu.makeMenu('sub002','sub00','FORMULA DINAMIC, el mejor precio si ya tiene más de treinta años','/castella/formula dinamic.htm','',120,60)
		//oCMenu.makeMenu('sub003','sub00','- Opera 6 supports innerHTML','','',180,0)
	oCMenu.makeMenu('sub01','top0','Hogar','','',90)
		oCMenu.makeMenu('sub011','sub01','PISOS, para su piso o apartamento','/castella/pisos.htm','',120,40)
		oCMenu.makeMenu('sub012','sub01','CHALETS, si vive en un chalet o en una casa tradicional','/castella/xalet.htm','',120,50)
		oCMenu.makeMenu('sub013','sub01','VACACIONES, para su segunda residencia','/castella/vacaciones.htm','',120,50)
	oCMenu.makeMenu('sub02','top0','Comunidades','','',90)
		oCMenu.makeMenu('sub021','sub02','MULTIEDIFICIO SEGURO','/castella/comunidad.htm','',120,40)
	oCMenu.makeMenu('sub03','top0','Comercios','','',90)
		oCMenu.makeMenu('sub031','sub03','MUNDICOMERCIO','/castella/comercio.htm','',120,30)
	oCMenu.makeMenu('sub04','top0','Oficinas','','',90)
		oCMenu.makeMenu('sub041','sub04','MULTIRIESGO PARA OFICINAS','/castella/oficinas.htm','',120,40)
	oCMenu.makeMenu('sub05','top0','Permiso de conducción','','',140)
		oCMenu.makeMenu('sub051','sub05','RETICAR','/castella/reticar.htm','',140,30)
	
oCMenu.makeMenu('top1','','&nbsp;Mi familia','')
	oCMenu.makeMenu('sub10','top1','Vida Riesgo','','',90)
		oCMenu.makeMenu('sub101','sub10','VIDASEGURA TEMPORAL ANUAL RENOVABLE, protección en función de las necesidades de cada persona','/castella/vida segura anual.htm','',170,60)
		oCMenu.makeMenu('sub102','sub10','VIDASEGURA TEMPORAL A PLAZO, máxima seguridad para usted y su familia por el periodo que elija','/castella/vida segura plazo.htm','',170,65)
		oCMenu.makeMenu('sub103','sub10','VIDASEGURA TEMPORAL AMORTIZACION, garantize también la seguridad del pago de préstamos contraidos','/castella/vida segura amortizacion.htm','',170,70)
	oCMenu.makeMenu('sub11','top1','Accidentes','','',90)
		oCMenu.makeMenu('sub111','sub11','GENERAL, para cubrir todas sus contingencias','/castella/accidentes general.htm','',140,40)
		oCMenu.makeMenu('sub112','sub11','ELITE, para los profesionales liberales o con negocio propio','/castella/accidentes elite.htm','',140,50)
		oCMenu.makeMenu('sub113','sub11','PROTECCION 10, una opción segura para su tranquilidad y la de los suyos','/castella/proteccion 10.htm','',140,60)
	oCMenu.makeMenu('sub12','top1','Salud','','',90)
		oCMenu.makeMenu('sub121','sub12','SEGURO INTEGRAL DE SALUD, para cuidar al máximo la salud de su familia','/castella/integral salud.htm','',120,60)
		oCMenu.makeMenu('sub122','sub12','SALUD DENTAL, la mejor asitencia odontológica','/castella/segurdental.htm','',120,50)
	oCMenu.makeMenu('sub13','top1','Decesos','','',90)
		oCMenu.makeMenu('sub131','sub13','FRONTERA','/castella/frontera.htm','',90,30)
	
oCMenu.makeMenu('top2','','&nbsp;Mis ahorros','','')
	oCMenu.makeMenu('sub21','top2','Ahorro seguro','','',90,20)
		oCMenu.makeMenu('sub210','sub21','PLAN FLEXIBLE, ahorrar sin riesgos y con la máxima rentabilidad','/castella/plan flexible.htm','',120,60)
		oCMenu.makeMenu('sub211','sub21','PLAN INTEGRAL, combina los seguros de ahorro y los de riesgo','/castella/plan integral.htm','',120,60)
		oCMenu.makeMenu('sub212','sub21','PLAN GARANTIZADO CON PARTICIPACION DE BENEFICIOS, un plan de ahorro a largo plazo','/castella/plan garantizado.htm','',120,75)
	oCMenu.makeMenu('sub22','top2','Depósitos','','',60,20)
		oCMenu.makeMenu('sub220','sub22','SEGURINVERSION GARANTIZADO, máxima rentabilidad garantizada para sus ahorros','/castella/depositos segurinversion.htm','',130,75)
		oCMenu.makeMenu('sub221','sub22','MUNDICAPITAL DINERO SEGURO, cada año el máximo rendimiento para su dinero','/castella/depositos mundicapital.htm','',130,75)
	oCMenu.makeMenu('sub23','top2','Unit Linked','','',70,20)
		oCMenu.makeMenu('sub230','sub23','PRIMACTIVA, mueva su dinero con total flexibilidad','/castella/primactiva.htm','',120,50)
		oCMenu.makeMenu('sub231','sub23','PRIMACTIVA GESTION 10, cambie entre fondos de inversión sin pagar','/castella/primactiva gestion 10.htm','',120,60)
	oCMenu.makeMenu('sub24','top2','Planes pensiones','','',110,20)
		oCMenu.makeMenu('sub240','sub24','MUNDIPLAN DE PENSIONES, rentabilice sus ahorros en el futuro y obtenga ventajas fiscales ahora','/castella/planes pensiones.htm','',120,90)
	oCMenu.makeMenu('sub25','top2','Planes previsión','','',100,20)
		oCMenu.makeMenu('sub250','sub25','BIDEPENSION, asegura su nivel de vida llegada su jubilación','/castella/bidepension.htm','',120,60)
		oCMenu.makeMenu('sub251','sub25','PREVISION SEGURA PPA, formulas personales para una jubilación segura','/castella/prevision segura ppa.htm','',120,60)
	oCMenu.makeMenu('sub26','top2','Fondos inversión','/castella/fondos inversion.htm','',100,20)
		oCMenu.makeMenu('sub260','sub26','Presentación AXA IBERCAPITAL','/castella/fondos inversion.htm#1','',190)
		oCMenu.makeMenu('sub261','sub26','¿Qué es un Fondo de Inversión?','/castella/fondos inversion.htm#2','',190)
		oCMenu.makeMenu('sub262','sub26','Fiscalidad de los Fondos de Inversión','/castella/fondos inversion.htm#3','',190,30)
		oCMenu.makeMenu('sub263','sub26','Fondos Monetarios - Renta Fija','/castella/fondos inversion.htm#4','',190)
		oCMenu.makeMenu('sub264','sub26','Fondos Mixtos - Perfilados','/castella/fondos inversion.htm#5','',190)
		oCMenu.makeMenu('sub265','sub26','Fondos de Renta Variable','/castella/fondos inversion.htm#6','',190)
	oCMenu.makeMenu('sub27','top2','Referenciados','','',90,20)
		oCMenu.makeMenu('sub270','sub27','SEGUR INVERSION INDICE: 100% de la inversión garantizado','/castella/segurinversion.htm','',90,70)

oCMenu.makeMenu('top3','','&nbsp;Mi ocio','')
	oCMenu.makeMenu('sub30','top3','Embarcaciones de recreo','','',160,20)
		oCMenu.makeMenu('sub301','sub30','SEGURO DE EMBARCACIONES DE RECREO','/castella/embarcaciones de recreo.htm','',120,50)
	oCMenu.makeMenu('sub31','top3','Responsabildad civil caza y pesca','','',200,20)
		oCMenu.makeMenu('sub311','sub31','SEGURO DE REPONSABILIDAD CIVIL DEL CAZADOR','/castella/responsabilidad civil cazador.htm','',120,50)
		oCMenu.makeMenu('sub312','sub31','SEGURO DE RESPONSABILIDAD CIVIL DEL PESCADOR','/castella/responsabilidad civil pescador.htm','',120,60)
	oCMenu.makeMenu('sub32','top3','Responsabilidad civil perros','','',180,20)
		oCMenu.makeMenu('sub321','sub32','RESPONSABILIDAD CIVIL PARA PERROS DE COMPAÑIA','/castella/responsabilidad civil perros.htm','',120,50)
	
oCMenu.makeMenu('top5','','&nbsp;Mi empresa','')
	oCMenu.makeMenu('sub50','top5','Empresas agrícolas','','',120,20)
		oCMenu.makeMenu('sub501','sub50','EXPLOTACIONES AGROPECUARIAS','/castella/provisional.htm','',130,40)
		oCMenu.makeMenu('sub502','sub50','FÁBRICAS DE VINOS  Y BODEGAS','/castella/provisional.htm','',130,40)
		oCMenu.makeMenu('sub503','sub50','CENTRALES HORTIFRUTÍCOLAS','/castella/provisional.htm','',130,40)
	oCMenu.makeMenu('sub51','top5','Empresas de servicios','','',140,20)
		oCMenu.makeMenu('sub511','sub51','HOSTALES Y HOTELES','/castella/provisional.htm','',140,30)
	oCMenu.makeMenu('sub52','top5','Empresas industriales','','',140,20)
		oCMenu.makeMenu('sub521','sub52','TALLERES MECÁNICOS','/castella/provisional.htm','',140,30)
		

//Leave this line - it constructs the menu
oCMenu.construct()
