menunum=0;
menus=new Array();
_d=document;

function addmenu(){
	menunum++;
	menus[menunum]=menu;
}

function abrirpopup(){
window.open('http://80.81.124.202/coacm',null,'menubar=no, height=450, width=675, scrollbars=no, top=20, left=20');
}

function dumpmenus(){
	mt="<script language=javascript>";
	for(a=1;a<menus.length;a++){
		mt+=" menu"+a+"=menus["+a+"];"
	}
	mt+="<\/script>";_d.write(mt);
}

timegap=100					// The time delay for menus to remain visible
followspeed=1				// Follow Scrolling speed
followrate=10
suboffset_top=-2;			// Sub menu offset Top position 
suboffset_left=10;			// Sub menu offset Left position

/*retg = new Image()	//imagenes de los cuadraditos
retg.src="imagenes/ret.gif"
retgb = new Image()
retgb.src="imagenes/retb.gif"
retp = new Image()
retp.src="imagenes/ret2.gif"
retpb = new Image()
retpb.src="imagenes/ret2b.gif"
retxp = new Image()
retxp.src="../imagenes/ret3.gif"
retxpb = new Image()
retxpb.src="../imagenes/ret3b.gif"*/

retg = new Image()	//imagenes de los cuadraditos
retg.src="../imagenes/hito_off_rojo.jpg"
retgb = new Image()
retgb.src="../imagenes/hito_on_rojo.jpg"
retp = new Image()
retp.src="../imagenes/hito_off_rojo.jpg"
retpb = new Image()
retpb.src="../imagenes/hito_on_rojo.jpg"
retxp = new Image()
retxp.src="../imagenes/hito_off_rojo.jpg"
retxpb = new Image()
retxpb.src="../imagenes/hito_on_rojo.jpg"

effect = "fade(duration=0.1);, Direction=135, Strength=5)" // Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters

style1=[					// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"000000",					// Mouse Off Font Color
"ffffff",					// Mouse Off Background Color
"dc143c",					// Mouse On Font Color
"ffffff",					// Mouse On Background Color
"ffdab9",		            		// Menu Border Color
9,							// Font Size
"normal",					// Font Style 
"",					// Font Weight
"verdana",	// Font Name
3,							// Menu Item Padding
,							// 3D Border & Separator bar
,		            		// 3D High Color
,	                		// 3D Low Color
,							// Referer Item Font Color (leave this blank to disable)
,							// Referer Item Background Color (leave this blank to disable)
,							// Top Bar image (Leave this blank to disable)
"ffffff",							// Menu Header Font Color (Leave blank if headers are not needed)
"",							// Menu Header Background Color (Leave blank if headers are not needed)
""					//color de fondo cuando está activo
]

//style2=["000000", "f9e4cb", "006466", "f9e4cb", "c25500", 9, "normal", "", "verdana",	3,,,,,,,,,]		            
style3=["666666", "f9e4cb", "000000", "f9e4cb", "e2c0ab", 9, "normal", "", "verdana",	3,,,,,,,,,]		            
style2=["007476", "FFFFFF", "006466", "cdd5d5", "cdd5d5", 8, "normal", "", "verdana",	3,,,,,,,,,]		            


addmenu(menu=[				// This is the array that contains your menu properties and details
"mainmenu",					// Menu Name - This is needed in order for the menu to be called
130,							// Menu Top - The Top position of the menu in pixels
,							// Menu Left - The Left position of the menu in pixels
144,							// Menu Width - Menus width in pixels
,							// Menu Border Width 
"left",					// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,						// Properties Array - this is set higher up, as above
1,							// Always Visible - allows the menu item to be visible at all time
"left",					// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
effect,							// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,							// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times)
0, 							// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style
,							// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page
,					// Position of TOP sub image left:center:right
,							// Type of menu use "form" or blank
,							// Right To Left - Used in Hebrew for example.
,							// Open the Menus OnClick - leave blank for OnMouseover
,							// Menu Header Text (only works on Vertical menus)
,							// Reserved for future use
,							// Reserved for future use
1,							// Mostrar el cuadradito delante del texto? 0=ninguno, 1=pequeño, 2=más pequeño

,"EL COLEGIO","show-menu=colegio","javascript:void(null)","",		// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"ACTUALIDAD","show-menu=actualidad","javascript:void(null)","",
,"CIRCULARES","../circulares/consulta_circulares.asp","javascript:void(null)","",
,"GESTION COLEGIAL","javascript:abrirpopup();","javascript:void(null)","",
//,"NORMATIVA","../normativa/disposiciones_oficiales_consulta.asp","javascript:void(null)","",
,"NORMATIVA","show-menu=normativa","javascript:void(null)","",
,"PUBLICACIONES","show-menu=publicaciones","javascript:void(null)","",
,"DESCARGAS","show-menu=descargas","javascript:void(null)","",
,"SUGERENCIAS","../sugerencias/sugerencias.asp","javascript:void(null)","",
,"ENLACES","../enlaces/enlaces.asp","javascript:void(null)","",

])

addmenu(menu=["colegio",,120,150,1,"",style1,,"left",effect,,,,,,,,,,,1,
	,"Sede","../asp/sede.asp",,,1
	,"Demarcaciones","../asp/delegaciones.asp",,,1
	,"Junta de Gobierno","../asp/junta.asp",,,1
	,"Estatutos","../asp/estatutos.asp",,,1
	,"Plan de Pensiones","../asp/plan_pensiones.asp",,,1
        ,"Colegiados Residentes","http://www.cscae.com/registro_consolidado",,,1
])

addmenu(menu=["actualidad",,120,150,1,"",style1,,"left",effect,,,,,,,,,,,1,
	,"Actividades","../actualidad/consulta_actividades_agrupadas.asp",,,1
	,"Noticias","../actualidad/noticias_consulta.asp",,,1
	,"Agenda","../actualidad/agenda_calendario.asp",,,1
])
	
addmenu(menu=["gestion",,,150,1,"",style1,,"left",effect,,,,,,,,,,,1,
	,"Ficha colegiado","../ficha/ficha_colegiado.asp",,,1
	,"Expedientes","../expedientes/expedientes_consulta.asp",,,1
	,"Información Económica","show-menu=inf_economica",,,1
	,"Lista Colegiados","../colegiados/colegiados_consulta.asp",,,1
	,"Consulta Clientes","../clientes/clientes_consulta.asp",,,1
])

			addmenu(menu=["inf_economica",,,200,1,"",style1,,"left",effect,,,,,,,,,,,1,
				,"Facturación","../facturacion/facturacion_consulta.asp",,,1
				,"Contabilidad","../contabilidad/contabilidad_consulta.asp",,,1
			])

addmenu(menu=["normativa",,120,150,1,"",style1,,"left",effect,,,,,,,,,,,1,
	,"Colegial","../asp/ncolegial.asp",,,1
	,"Reglamentos","../asp/reglamentos.asp",,,1
	,"Disposiciones Oficiales","../normativa/disposiciones_oficiales_consulta.asp",,,1
	,"Normativa básica","../normativa/apartados.asp",,,1
	,"Últimas disposiciones","../normativa/ultimas_disposiciones.asp",,,1
])

addmenu(menu=["publicaciones",,120,150,1,"",style1,,"left",effect,,,,,,,,,,,1,
	,"Biblioteca","../publicaciones/publicaciones_consulta.asp",,,1
	,"Libros en venta","../publicaciones/publicaciones_consulta.asp",,,1
	,"CD en venta","../publicaciones/publicaciones_consulta.asp",,,1
	,"Revistas","../publicaciones/publicaciones_consulta.asp",,,1
])

addmenu(menu=["descargas",,120,150,1,"",style1,,"left",effect,,,,,,,,,,,1,
	,"Documentos","../descargas/consulta_documentos.asp",,,1
	,"Software","../descargas/listado_sw.asp",,,1
])





dumpmenus() 

