var coolFName=""; var onload; var coolFMouseup="";
var bw=new lib_bwcheck()
var mDebugging=0

function makeCoolMenu(name){
        coolFName=name; this.name=name; this.lastScrolled=0;
        this.win=window; toppage=new makePageCoords(window,parent.frames.length);
        this.aobj=new Array(); this.m=new Array(); this.l=new Array()
        this.level=new Array(); this.resized=cm_resized;
        this.makeMenu=cm_makeMenu; this.showSubs=cm_showSubs; this.makeTop=cm_makeTop;
        this.getCoords=cm_getCoords; this.checkPage=cm_checkPage;
        this.mmout=cm_mout; this.mover=cm_mover; this.checkp=cm_checkp;
        this.hideSubs=cm_hideSubs; this.construct=cm_construct;
        this.makeStyle=cm_makeStyle; this.refresh=cm_refresh;
        this.go=cm_go; this.frstr=""; this.mobj=new Array()
        this.totwidth=0; this.totheight=0; this.maxwidth=0; this.maxheight=0
        this.tim=10; this.loaded=0; this.isover=false; this.checkFrame=cm_checkFrame;
        this.checkFolder=cm_checkFolder; this.hcode=""; this.oNS=new Array(); this.oNS2=new Array()
        bw.filter=(bw.ie6||bw.ver.indexOf("MSIE 5.5")>-1) && !bw.mac
}

/*****************************************************************************
Default browsercheck - Leave this one
******************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
	return this
}


function creaMenu(){

oCMenu=new makeCoolMenu("oCMenu")
oCMenu.useframes=1
oCMenu.frame="centro"

oCMenu.useclick=0

oCMenu.useNS4links=1  

oCMenu.NS4padding=0

oCMenu.checkselect=1
oCMenu.offlineUrl="file:///C|/Inetpub/wwwroot/dhtmlcentral/"
oCMenu.onlineUrl="http://www.dhtmlcentral.com/coolmenus/examples/withframes/"

oCMenu.pagecheck=1
oCMenu.checkscroll=1
oCMenu.resizecheck=1
oCMenu.wait=500

oCMenu.usebar=0
oCMenu.barcolor="#FFFFFF"
oCMenu.barwidth="100%"
oCMenu.barheight="20"
oCMenu.barx=0
oCMenu.bary=0
oCMenu.barinheritborder=0

oCMenu.rows=1
oCMenu.fromleft=0
oCMenu.fromtop=91
oCMenu.pxbetween=0

oCMenu.menuplacement="left"

oCMenu.level[0]=new Array()
oCMenu.level[0].width=130
oCMenu.level[0].height=17
oCMenu.level[0].bgcoloroff="#FFFFFF"
oCMenu.level[0].bgcoloron="#D40000"
oCMenu.level[0].textcolor="#000000"
oCMenu.level[0].hovercolor="#FFFFFF"
oCMenu.level[0].style="padding:0px; font-family:arial,helvetica; font-size:11px; font-weight:normal; vertical-align: middle; align: center"
oCMenu.level[0].border=0
oCMenu.level[0].bordercolor="#000000"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].NS4font="arial,helvetica"
oCMenu.level[0].NS4fontSize="2"

oCMenu.level[0].clip=1
oCMenu.level[0].clippx=10
oCMenu.level[0].cliptim=10
oCMenu.level[0].filter=0
oCMenu.level[0].align="bottom"

oCMenu.level[1]=new Array()

oCMenu.level[1].width=oCMenu.level[0].width
oCMenu.level[1].height=19
oCMenu.level[1].style="padding:1px; font-family:arial,helvetica; font-size:12px; font-weight:normal; vertical-align: middle"
oCMenu.level[1].align="top" 
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+30
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#774352"

oCMenu.level[1].bgcoloroff="#C7C3C3"
oCMenu.level[1].bgcoloron="#E4DFDF"
oCMenu.level[1].textcolor="#000000"
oCMenu.level[1].hovercolor="#AE0606"


	oCMenu.makeMenu('sub00','','&nbsp;fundacion','','centro',80,21,'/recursos/botones_menu/fundacion_off.gif','/recursos/botones_menu/fundacion_on.gif')
		oCMenu.makeMenu('sub0000','sub00','&nbsp;¿qué es la fundación?','/fundacion/que_es.html','centro',160,21,'','')
		oCMenu.makeMenu('sub0001','sub00','&nbsp;¿quién participa?','/fundacion/quien.html','centro',160,21,'','')
		oCMenu.makeMenu('sub0002','sub00','&nbsp;¿cómo se puede participar?','/fundacion/como.html','centro',160,21,'','')
		oCMenu.makeMenu('sub0003','sub00','&nbsp;patronato','/fundacion/patronato.html','centro',160,21,'','')

	oCMenu.makeMenu('sub01','','&nbsp;actividades','','centro',89,21,'/recursos/botones_menu/actividades_off.gif','/recursos/botones_menu/actividades_on.gif')
		oCMenu.makeMenu('sub0100','sub01','&nbsp;seminarios','/actividades/seminarios/seminarios.html','centro',130,21,'','')
		oCMenu.makeMenu('sub0101','sub01','&nbsp;grupos de trabajo','/actividades/grupos/grupos.html','centro',130,21,'','')
		oCMenu.makeMenu('sub0102','sub01','&nbsp;ciclo de conferencias','/actividades/conferencias/conferencias.html','centro',130,21,'','')

	oCMenu.makeMenu('sub02','','&nbsp;colabora','','centro',71,21,'/recursos/botones_menu/colabora_off.gif','/recursos/botones_menu/colabora_on.gif')
		oCMenu.makeMenu('sub0200','sub02','&nbsp;formulario de suscripción','/colabora/suscripcion.html','centro',150,17,'','')
		oCMenu.makeMenu('sub0201','sub02','&nbsp;sugerencias','/colabora/sugerencias.html','centro',150,17,'','')

	oCMenu.makeMenu('sub03','','&nbsp;publicaciones','','centro',103,21,'/recursos/botones_menu/publicaciones_off.gif','/recursos/botones_menu/publicaciones_on.gif')
		oCMenu.makeMenu('sub0300','sub03','&nbsp;cuadernos FIES','/publicaciones/cuadernos/cuadernos.html','centro',155,17,'','')
		oCMenu.makeMenu('sub0301','sub03','&nbsp;la escuela del nuevo siglo','/publicaciones/la_escuela/la_escuela.html','centro',155,17,'','')
		oCMenu.makeMenu('sub0302','sub03','&nbsp;artículos de prensa','/publicaciones/articulos_prensa/articulos.html','centro',155,17,'','')
		oCMenu.makeMenu('sub0303','sub03','&nbsp;otras publicaciones','/publicaciones/otras/otras.html','centro',155,17,'','')

	oCMenu.makeMenu('sub04','','&nbsp;enlaces','','centro',64,21,'/recursos/botones_menu/enlaces_off.gif','/recursos/botones_menu/enlaces_on.gif')
		oCMenu.makeMenu('sub0400','sub04','&nbsp;varios','/enlaces/varios.html','centro',200,17,'','')
		oCMenu.makeMenu('sub0401','sub04','&nbsp;federación de enseñanza CC.OO.','/enlaces/ccoo.html','centro',200,17,'','')

	oCMenu.makeMenu('sub05','','&nbsp;foro de debate','','centro',110,21,'/recursos/botones_menu/foro_off.gif','/recursos/botones_menu/foro_on.gif')
		oCMenu.makeMenu('sub0500','sub05','&nbsp;espacio de debate','/debates/debates.html','centro',125,17,'','')

	oCMenu.makeMenu('sub06','','&nbsp;contacto','','centro',69,21,'/recursos/botones_menu/contacto_off.gif','/recursos/botones_menu/contacto_on.gif')
		oCMenu.makeMenu('sub0600','sub06','&nbsp;dirección postal','/contacto/datos.html#direccion','centro',110,17,'','')
		oCMenu.makeMenu('sub0601','sub06','&nbsp;teléfono y fax','/contacto/datos.html#telefono','centro',110,17,'','')
		oCMenu.makeMenu('sub0602','sub06','&nbsp;e-mail','/contacto/datos.html#email','centro',110,17,'','')

oCMenu.makeStyle(); oCMenu.construct();			
}