/*****************************************************************************
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
}
var bw=new lib_bwcheck() //Making browsercheck object

var mDebugging=2 

oCMenu=new makeCoolMenu("oCMenu") 
oCMenu.useframes=0
oCMenu.frame=""
oCMenu.useNS4links=1 
oCMenu.checkselect=0
oCMenu.offlineUrl="http://www.jumilla.org"
oCMenu.onlineUrl="http://www.jumilla.org"


oCMenu.pagecheck=1
oCMenu.checkscroll=0
oCMenu.resizecheck=1 
oCMenu.wait=100

oCMenu.usebar=0
oCMenu.barcolor="transparent" 
oCMenu.barwidth="menu" 
oCMenu.barheight="menu" 
oCMenu.barx="menu"
oCMenu.bary="menu"
oCMenu.barinheritborder=0 

oCMenu.rows=1
oCMenu.fromleft=0
oCMenu.fromtop=94
oCMenu.pxbetween=0

//avail="190+((toppage.x2-210)/6)" 
//oCMenu.menuplacement=new Array(190,avail,avail+"*2",avail+"*3",avail+"*4",avail+"*5")
//oCMenu.menuplacement=0
oCMenu.menuplacement=new Array("140","242","320","390","460")

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=100
oCMenu.level[0].height=12
oCMenu.level[0].bgcoloroff="transparent"
oCMenu.level[0].bgcoloron="transparent" 
oCMenu.level[0].textcolor="#cfcfcf"
oCMenu.level[0].hovercolor="#e7bd6d" 
oCMenu.level[0].style="font-family:arial; font-size:10px; font-weight:bold"
oCMenu.level[0].border=1
oCMenu.level[0].bordercolor="transparent" 
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=3
oCMenu.level[0].NS4font="arial,helvetica"
oCMenu.level[0].NS4fontSize="2"
oCMenu.level[0].NS4fontColor="white"
oCMenu.level[0].clip=1 
oCMenu.level[0].clippx=15 
oCMenu.level[0].cliptim=15
oCMenu.level[0].align="bottom" 

oCMenu.level[1]=new Array() 
oCMenu.level[1].width=110
oCMenu.level[1].height=16
oCMenu.level[1].bgcoloroff="#ffffff"
oCMenu.level[1].bgcoloron="#eaeaea"
oCMenu.level[1].textcolor="#782756"
oCMenu.level[1].hovercolor="#782756"
oCMenu.level[1].style="padding:2px; font-family:arial,helvetica; font-size:10px; font-weight:bold"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=-1
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#782756"
oCMenu.level[1].NS4font="arial,helvetica"
oCMenu.level[1].NS4fontSize="2"
oCMenu.level[1].NS4fontColor="black"


oCMenu.makeMenu('top0','','AYUNTAMIENTO','','','95')
	oCMenu.makeMenu('sub00','top0','· Alcaldia ...[+]','','','150')
		oCMenu.makeMenu('sub001','sub00','- Saluda','ayuntamiento/saluda.asp','')
		oCMenu.makeMenu('sub002','sub00','- Corporación','ayuntamiento/corporacion.asp','')
		oCMenu.makeMenu('sub003','sub00','- Organigrama','ayuntamiento/organigrama.asp','')
		oCMenu.makeMenu('sub004','sub00','- Directorio','ayuntamiento/directorio.asp','')
	oCMenu.makeMenu('sub01','top0','· Secretaría General','ayuntamiento/secretaria.asp','','150')
	oCMenu.makeMenu('sub02','top0','· Intervención','ayuntamiento/intervencion.asp','','150')
	oCMenu.makeMenu('sub03','top0','· Registro General','ayuntamiento/registro.asp','','150')
	oCMenu.makeMenu('sub04','top0','· Policía Local','ayuntamiento/policia.asp','','150')
	oCMenu.makeMenu('sub05','top0','· Agencia de Desarrollo Local','ayuntamiento/desarrollo_local.asp','','150')
	oCMenu.makeMenu('sub06','top0','· Actividades Económicas','ayuntamiento/actividades_econ.asp','','150')
	oCMenu.makeMenu('sub07','top0','· Padrón de Habitantes','ayuntamiento/padron.asp','','150')
	oCMenu.makeMenu('sub08','top0','· Personal y Contratación','ayuntamiento/personal_contrat.asp','','150')
	oCMenu.makeMenu('sub09','top0','· Tráfico','ayuntamiento/trafico.asp','','150')
	oCMenu.makeMenu('sub010','top0','· Urbanismo y Servicios','ayuntamiento/urbanismo_obras.asp','','150')
	oCMenu.makeMenu('sub011','top0','· Servicios Sociales','ayuntamiento/servicios_sociales.asp','','150')
	oCMenu.makeMenu('sub012','top0','· Cultura y Educación','ayuntamiento/cultura_educacion.asp','','150')
	oCMenu.makeMenu('sub013','top0','· Juventud y Deportes','ayuntamiento/juventud_deportes.asp','','150')
	oCMenu.makeMenu('sub014','top0','· Ordenanzas Municipales','ayuntamiento/ordenanzas.asp','','150')
	oCMenu.makeMenu('sub015','top0','· Acuerdos y Actas ...[+]','','','150')
		oCMenu.makeMenu('sub0151','sub015','- Actas de Plenos','ayuntamiento/actas_plenos.asp','','190')
		oCMenu.makeMenu('sub0152','sub015','- Actas de Comisiones de Gobierno','ayuntamiento/actas_comisiones.asp','','190')
	oCMenu.makeMenu('sub016','top0','· Gestiones On Line ...[+]','','','150')
		oCMenu.makeMenu('sub0162','sub016','- Impresos','ayuntamiento/impresos.asp','')
		oCMenu.makeMenu('sub0163','sub016','- Formularios','ayuntamiento/formularios.asp','')
	oCMenu.makeMenu('sub017','top0','· Tablón de Anuncios','noticias/tablon.asp','','150')
		
oCMenu.makeMenu('top1','','MUNICIPIO','','','55')
	oCMenu.makeMenu('sub10','top1','· Situación Geográfica','municipio/situacion_geografica.asp','','135')
	oCMenu.makeMenu('sub11','top1','· Medio Natural','municipio/medio_natural.asp','','135')
	oCMenu.makeMenu('sub12','top1','· Historia','municipio/historia.asp','','135')
	oCMenu.makeMenu('sub13','top1','· Medio Urbano','municipio/medio_urbano.asp','','135')
	oCMenu.makeMenu('sub14','top1','· Datos Socio-económicos','municipio/indicadores_eco.asp','','135')
	
oCMenu.makeMenu('top2','','TURISMO','','','48')
	oCMenu.makeMenu('sub21','top2','· Fiestas','turismo/fiestas.asp','','118')
	oCMenu.makeMenu('sub22','top2','· Ruta del Vino','turismo/rutas_del_vino/rutas_del_vino.asp','','118')
	oCMenu.makeMenu('sub23','top2','· Servicios Turísticos','turismo/servicios.asp','','118')
	oCMenu.makeMenu('sub24','top2','· Ciudad del Vino ... [+]','','','118')
		oCMenu.makeMenu('sub241','sub24','- Historia','turismo/el_vino.asp','')
		oCMenu.makeMenu('sub242','sub24','- C.R.D.O.','turismo/el_vino.asp','')
		oCMenu.makeMenu('sub243','sub24','- La Cultura del Vino','turismo/saber_de_vino.asp','')
	oCMenu.makeMenu('sub25','top2','· Album','turismo/album.asp','','118')

oCMenu.makeMenu('top3','','CULTURA','','','48')
	oCMenu.makeMenu('sub30','top3','· Patrimonio','cultura/patrimonio.asp','')
	oCMenu.makeMenu('sub31','top3','· Cultura Popular','cultura/cultura_popular.asp','')
	oCMenu.makeMenu('sub32','top3','· Servicios Culturales','cultura/servicios.asp','')
	oCMenu.makeMenu('sub33','top3','· Asociaciones','cultura/asociaciones.asp','')
	oCMenu.makeMenu('sub34','top3','· Agenda Cultural','cultura/agenda_cultural.asp','')
	
oCMenu.makeMenu('top5','','SERVICIOS','','','58')
	oCMenu.makeMenu('sub50','top5','· Guia de Servicios','servicios/guia_servicios.asp','','100')
	oCMenu.makeMenu('sub51','top5','· Buzón Ciudadano','servicios/buzon.asp','','100')
	oCMenu.makeMenu('sub52','top5','· Callejero','servicios/callejero.asp','','100')
	oCMenu.makeMenu('sub53','top5','· Encuesta','servicios/encuestas/encuestas.asp','','100')
	oCMenu.makeMenu('sub54','top5','· Postales','servicios/postales/postales.asp','','100')
	oCMenu.makeMenu('sub55','top5','· Enlaces','servicios/enlaces/enlaces.asp','','100')
	oCMenu.makeMenu('sub56','top5','· Aula Internet','ayuntamiento/aula_internet.asp','','100')
	
oCMenu.makeStyle(); oCMenu.construct()		

function cm_checkScrolled(obj){
	if(bw.ns4 || bw.ns6) obj.scrolledY=obj.win.pageYOffset
	else obj.scrolledY=obj.win.document.body.scrollTop
	if(obj.scrolledY!=obj.lastScrolled){
		if(!obj.useframes){
			self.status=obj.scrolledY
			if(obj.scrolledY>119){
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.scrolledY)}
				if(obj.usebar) obj.oBar.moveY(obj.scrolledY)
			}else{
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.fromtop)}
				if(obj.usebar) obj.oBar.moveY(obj.fromtop)
			}

		}
		obj.lastScrolled=obj.scrolledY; page.y=obj.scrolledY; page.y2=page.y2orig+obj.scrolledY
		if(!obj.useframes || bw.ie){ clearTimeout(obj.tim); obj.isover=0; obj.hideSubs(1,0)}
	}
	if((bw.ns4 || bw.ns6) && !obj.useframes) setTimeout("cm_checkScrolled("+obj.name+")",200)
}