/**********************************************************************************   
SlideMenu 
*   Copyright (C) 2001 Thomas Brattli
*   This script was released at DHTMLCentral.com
*********************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-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)
	return this
}
var bw=lib_bwcheck()
//Opera didn't seem to like the padding in the layers, it messes up the background-images, so here's a version without it.
if(bw.opera5) document.write("<style>DIV.clSlide{padding:0px; background-image:url(' ')}\nDIV.clSlideSub{padding:0px; background-image:url(' ')}\nDIV.clSlideSub2{padding:0px; background-image:url(' ')}</style>")

/************************************************************************************
Making cross-browser objects
************************************************************************************/
function makeMenuObj(obj,nest){
	nest=(!nest) ? "":'document.'+nest+'.'										
   	this.css=bw.dom? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers." +obj):0;		
	this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;	
	this.ref=bw.dom || bw.ie4? document:bw.ns4?eval(nest+"document.layers." +obj+".document"):0;		
	this.x=(bw.ns4 || bw.ns5)? this.css.left:this.css.offsetLeft;
	this.y=(bw.ns4 || bw.ns5)? this.css.top:this.css.offsetTop;		
	this.hideIt=b_hideIt; this.showIt=b_showIt; this.movey=b_movey
	this.moveIt=b_moveIt; this.moveBy=b_moveBy; this.status=0; 
	this.bgImg=b_bgImg;	this.obj = obj + "Object"; eval(this.obj + "=this"); 
	this.clipTo=b_clipTo;
	return this
}
function b_showIt(){this.css.visibility="visible"; this.status=1}
function b_hideIt(){this.css.visibility="hidden"; this.status=0}
function b_movey(y){this.y=y; this.css.top=this.y}	
function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x;this.css.top=this.y}
function b_moveBy(x,y){this.x=this.x+x; this.y=this.y+y; this.css.left=this.x;this.css.top=this.y}
function b_bgImg(img){if(bw.ie||bw.dom)this.css.backgroundImage="url("+img+")"
else this.css.background.src=img
}
function b_clipTo(t,r,b,l,w){if(bw.ns4){this.css.clip.top=t;this.css.clip.right=r
this.css.clip.bottom=b;this.css.clip.left=l
}else{this.css.clip="rect("+t+","+r+","+b+","+l+")"; if(w){this.css.width=r; this.css.height=b}}}
/********************************************************************************
Initiating page, making objects..
********************************************************************************/
function SlideMenuInit(){
	oSlideMenu=new makeMenuObj('divSlideCont')
	oSlideMenu.moveIt(menux,menuy)
	oSlide=new Array()
	for(i=0;i<menus.length;i++){
		oSlide[i]=new makeMenuObj('divSlide'+i,'divSlideCont')
		oSlide[i].subs=menus[i].subs
		oSlide[i].sub=new Array()
		oSlide[i].moveIt(0,mainheight*i)
		oSlide[i].starty=oSlide[i].y
    if(bw.opera) oSlide[i].css.paddingLeft="10px"
		if(!menus[i].seperator) oSlide[i].bgImg(level0_regular)
		for(j=0;j<oSlide[i].subs;j++){
			oSlide[i].sub[j]=new makeMenuObj('divSlideSub'+i+"_"+j,'divSlideCont')
			oSlide[i].sub[j].moveIt(10,oSlide[i].y+subheight*j+between)
			oSlide[i].sub[j].starty=oSlide[i].sub[j].y
			oSlide[i][j]=new Array()
			oSlide[i][j].subs=menus[i][j].subs
			oSlide[i][j].sub=new Array()
			img=level1_round
			if(oSlide[i][j].subs!=0){
				if(j!=oSlide[i].subs-1) img=level1_sub
				else img=level1_sub_round
				oSlide[i].sub[j].css.color="white"
			}else{
				if(j!=oSlide[i].subs-1)img=level1_regular
			}
			oSlide[i].sub[j].origimg=img
			oSlide[i].sub[j].bgImg(img)
			for(a=0;a<oSlide[i][j].subs;a++){
				oSlide[i][j].sub[a]=new makeMenuObj('divSlideSub'+i+"_"+j+"_"+a,'divSlideCont')
				oSlide[i][j].sub[a].moveIt(20,oSlide[i].sub[j].y+subheight*a+between-2)
				oSlide[i][j].sub[a].starty=oSlide[i][j].sub[a].y			
				oSlide[i][j][a]=new Array()
				oSlide[i][j][a].subs=menus[i][j][a].subs
				oSlide[i][j][a].sub=new Array()
				if(a!=oSlide[i][j].subs-1) img=level2_regular
				else img=level2_round
				oSlide[i][j].sub[a].origimg=img
				oSlide[i][j].sub[a].bgImg(img)
			}
		}
	}
	oSlideMenu.showIt()
}
/********************************************************************************
Variables
********************************************************************************/
var active=-1;var going;var isthere; var sactive=-1; var sisthere=-1; var s2active=-1; var s2isthere=-1
/********************************************************************************
Switch menu function.
********************************************************************************/
function swmenu(num,snum,s2num){
	if(snum!=-1){
		if(oSlide[num][snum].subs==0) return
	}
	if(s2num!=-1){
		if(oSlide[num][snum][s2num].subs==0) return
	}
	if((num!=active || snum!=sactive || s2num!=s2active) && !going){going=true;isthere=0;sisthere=0;moveUp(num,snum,s2num)}
}
/********************************************************************************
Moving the menus upward to their original position.
********************************************************************************/
function moveUp(num,snum){
	if(snum==-1){
		for(i=0;i<oSlide.length;i++){
			if(oSlide[i].y>oSlide[i].starty+pxspeed && active!=i) oSlide[i].moveBy(0,-pxspeed)
			else{if(active!=i) oSlide[i].moveIt(oSlide[i].x,oSlide[i].starty); isthere=i}
		}
		
		if(isthere<oSlide.length-1) setTimeout("moveUp("+num+","+snum+")",timspeed)
		else swmenu2(num,snum)
	}else{
		if(num==oSlide.length-1) isthere=num
	
		if(sactive!=-1){ //Is out!
			//Slide subs
			j=0
			for(i=sactive+1;i<oSlide[num].sub.length;i++){
				j++
				if(oSlide[num].sub[i].y>oSlide[num].sub[i].starty+pxspeed) oSlide[num].sub[i].moveBy(0,-pxspeed)
				else{oSlide[num].sub[i].moveIt(oSlide[num].sub[i].x,oSlide[num].sub[i].starty); sisthere=i}
			}
			//Slide main
			for(i=num+1;i<oSlide.length;i++){
				if(oSlide[i].y>oSlide[i].starty + oSlide[num].sub[sactive].y +subheight*j )  oSlide[i].moveBy(0,-pxspeed)
				else{oSlide[i].moveIt(oSlide[i].x,oSlide[i].starty + oSlide[num].sub[sactive].y +subheight*j ); isthere=i}
			}
		}else{ //Slide to the one clicked
			for(i=num+1;i<oSlide.length;i++){
				if(oSlide[i].y>oSlide[i].starty + snum*between+between)  oSlide[i].moveBy(0,-pxspeed)
				else{oSlide[i].moveIt(oSlide[i].x,oSlide[i].starty + snum*between+between); isthere=i}
			}
		}
		if(isthere<oSlide.length-1 || (sactive!=-1 && sisthere<oSlide[num].sub.length-1 && sactive!=oSlide[num].sub.length-1)) setTimeout("moveUp("+num+","+snum+")",timspeed)
		else swmenu2(num,snum)
	}
}
/********************************************************************************
Switch menu 2, stuff that happens before the menus are moved down again.
********************************************************************************/
function swmenu2(num,snum){
	isthere=0;
	sisthere=0;
	if(active>-1 && snum==-1){
		//Hiding submenus
		for(j=0;j<oSlide[active].subs;j++){oSlide[active].sub[j].hideIt()}
		oSlide[active].bgImg(level0_regular)
		oSlide[active].moveIt(0,oSlide[active].starty)
	}
	if(sactive>-1){
		//Hiding submenus
		for(j=0;j<oSlide[active][sactive].sub.length;j++){oSlide[active][sactive].sub[j].hideIt()}
		oSlide[active].sub[sactive].bgImg(oSlide[active].sub[sactive].origimg)
		oSlide[active].sub[sactive].moveIt(10,oSlide[active].sub[sactive].starty)
		//Move back to place
		for(i=sactive+1;i<oSlide[active].sub.length;i++){
			oSlide[active].sub[i].moveIt(oSlide[active].sub[i].x,oSlide[active].sub[i].starty)
		}
	}
	active=num
	//Showing submenus
	if(snum>-1){
		sactive=snum
		for(j=0;j<oSlide[num][snum].sub.length;j++){oSlide[num][snum].sub[j].showIt()}
		oSlide[num].sub[snum].moveBy(10,3)
		oSlide[num].sub[snum].bgImg(level1_round2)
	}else{
		sactive=-1
		for(j=0;j<oSlide[active].subs;j++){oSlide[active].sub[j].showIt()}
		oSlide[num].moveBy(10,3)
		oSlide[num].bgImg(level0_round)
	}
	if(num!=oSlide.length-1) moveDown(num,snum)
	else{
		isthere=num
		moveDown(num,snum)
	}
}
/********************************************************************************
Moving the menus down
********************************************************************************/
function moveDown(num,snum){
	//if(num==oSlide.length-1) isthere=num
	for(i=num+1;i<oSlide.length;i++){
		if(snum==-1){
			if(oSlide[i].y<(oSlide[num].subs-1)*subheight+oSlide[i].starty+between-pxspeed) oSlide[i].moveBy(0,pxspeed)
			else{oSlide[i].moveIt(oSlide[i].x,(oSlide[num].subs-1)*subheight+oSlide[i].starty+between); isthere=i}
		}else{
			if(oSlide[i].y<(oSlide[num].subs-1)*subheight+oSlide[i].starty+between-pxspeed + (oSlide[num][snum].subs-1)*subheight+between)  oSlide[i].moveBy(0,pxspeed)
			else{oSlide[i].moveIt(oSlide[i].x,(oSlide[num].subs-1)*subheight+oSlide[i].starty+between  + (oSlide[num][snum].subs-1)*subheight+between); isthere=i}
		}
	}
	if(snum!=-1){
		for(i=snum+1;i<oSlide[num].sub.length;i++){		
			if(oSlide[num].sub[i].y<(oSlide[num][snum].subs-1)*subheight+oSlide[num].sub[i].starty+between-pxspeed) oSlide[num].sub[i].moveBy(0,pxspeed)
			else{oSlide[num].sub[i].moveIt(oSlide[num].sub[i].x,(oSlide[num][snum].subs-1)*subheight+oSlide[num].sub[i].starty+between); sisthere=i}
		}
	}
	if(snum==-1){
		if(isthere<oSlide.length-1) setTimeout("moveDown("+num+","+snum+")",timspeed)
		else going=false
	}else{
		if(isthere<oSlide.length-1 || (sisthere<oSlide[num].sub.length-1 && snum!=oSlide[num].sub.length-1)) setTimeout("moveDown("+num+","+snum+")",timspeed)
		else going=false
	}
}
var test=0
/********************************************************************************
Functions to write out the layers...
********************************************************************************/
menus=new Array(); var a=0; var b=0; var c=0; var d=0
function makeMenu(type,text,lnk,target,end){
	str=""; tg="";
  if(target) tg='target="'+target+'"'
  if(!lnk) lnk="#"
  self.status=lnk
	if(a==0) str='<div id="divSlideCont">\n'
	if(type=="top"){
		menus[a]=new Array();
		if(text=="seperator"){
			str+='\t<div id="divSlide'+a+'" class="clSlide"></div>\n'
			menus[a].seperator=1
		}else{
      str+='\t<div id="divSlide'+a+'" class="clSlide"><a href="'+lnk+'" '+tg+' onclick="swmenu('+a+',-1,-1); if(bw.ie || bw.ns6) this.blur(); '
      if(lnk=="#") str+='return false'
      str+='" class="clSlideLinks"> '+text+'</a><br></div>\n'
		}
    menus[a].subs=0; a++; b=0
	}else if(type=="sub"){
		str+='\t\t<div id="divSlideSub'+(a-1)+'_'+(b)+'" class="clSlideSub"><a '+tg+' onclick="swmenu('+(a-1)+','+b+',-1); if(bw.ie || bw.ns6) this.blur(); '
    if(lnk=="#") str+='return false'
    str+='" href="'+lnk+'" class="clSlideSubLinks">  '+text+'</a><br></div>\n'
		b++; menus[a-1].subs=b; menus[a-1][b-1]=new Array(); c=0; menus[a-1][b-1].subs=0
	}else if(type=="sub2"){
		str+='\t\t<div id="divSlideSub'+(a-1)+'_'+(b-1)+'_'+c+'" class="clSlideSub2"><a '+tg+' href="'+lnk+'" class="clSlideSub2Links">  '+text+'</a><br></div>\n'
		c++; menus[a-1][b-1].subs=c; menus[a-1][b-1][c-1]=new Array(); d=0; menus[a-1][b-1][c-1].subs=0
	}
	if(end) str+="</div>"
	document.write(str)
}
function preLoadBackgrounds(){
  for(i=0;i<arguments.length;i++){
    this[i]=new Image()
    this[i].src=arguments[i]
  }
  return this
}


//Variables to set
between=28 //The pixel between the menus and the submenus
mainheight=25 //The height of the mainmenus
subheight=22 //The height of the submenus
pxspeed=13 //The pixel speed of the animation
timspeed=15 //The timer speed of the animation
menuy=125 //The top placement of the menu.
menux=0 //The left placement of the menu
INICI="/CAS/"


//Images - Play with these
level0_regular=INICI+"../imagens/menu/level0_regular.gif"
level0_round=INICI+"../imagens/menu/level0_round.gif"
level1_regular=INICI+"../imagens/menu/level1_regular.gif"
level1_round=INICI+"../imagens/menu/level1_round.gif"
level1_sub=INICI+"../imagens/menu/level1_sub.gif"
level1_sub_round=INICI+"../imagens/menu/level1_sub_round.gif"
level1_round2=INICI+"../imagens/menu/level1_round2.gif"
level2_regular=INICI+"../imagens/menu/level2_regular.gif"
level2_round=INICI+"../imagens/menu/level2_round.gif"

//Leave this line
preLoadBackgrounds(level0_regular,level0_round,level1_regular,level1_round,level1_sub,level1_sub_round,level1_round2,level2_regular,level2_round)


//There are 3 different types of menus you can make
//top = Main menus
//sub = Sub menus
//sub2 = SubSub menus

//You control the look of the menus in the stylesheet

//makeMenu('TYPE','TEXT','LINK','TARGET', 'END (THE LAST MENU)')

//Menu 0 
makeMenu('top','Ayuntamiento')
	makeMenu('sub','Saludo del Alcalde',INICI+'ajuntament/salutacio.php')
	makeMenu('sub','Composición Política',INICI+'ajuntament/composicio.php')
	makeMenu('sub','Área Concejalía',INICI+'ajuntament/arees_regidoria.php')	
    makeMenu('sub','Documentación',INICI+'ajuntament/documentacio.php')		

//Menu 1
makeMenu('top','Boletines')
	makeMenu('sub','BIM',INICI+'butlletins/butlletins.php')
	makeMenu('sub','BOP','http://www.dipcas.es/bop','blank')
	makeMenu('sub','DOCV','http://www.docv.gva.es','blank')
	makeMenu('sub','BOE','http://www.boe.es/','blank')
	makeMenu('sub','DOUE','http://europa.eu.int/eur-lex/lex/JOIndex.do','blank')

//Menu 2
makeMenu('top','Normativa')
	makeMenu('sub','Local',INICI+'normativa/local.php')
	makeMenu('sub','Autonómica',INICI+'normativa/autonomica.php')
	makeMenu('sub','Estatal',INICI+'normativa/estatal.php')	
	
//Menu 3    
makeMenu('top','Perfil contratante')
  makeMenu('sub','Perfil del contratante',INICI+'perfil/perfil.php')

//Menu 4    
makeMenu('top','Departamentos')
  makeMenu('sub','Departamentos',INICI+'departaments/departaments.php')
  
//Menu 5
makeMenu('top','Info. Ciudad')
  makeMenu('sub','Historia',INICI+'info_ciutat/historia.php')
  makeMenu('sub','Borriol en imágenes',INICI+'info_ciutat/imagens.php')
  makeMenu('sub','Teléfonos de interés',INICI+'info_ciutat/telefons.php')
  makeMenu('sub','El tiempo','http://www.inm.es/cgi-bin/locali.cgi?ig=12150','blank')
  makeMenu('sub','Información General',INICI+'info_ciutat/info.php')
  makeMenu('sub','Atención Sanitaria',INICI+'info_ciutat/sanitat.php')
  makeMenu('sub','Horario de autobuses',INICI+'info_ciutat/autobus.php')
  makeMenu('sub','Servicios Agrarios',INICI+'info_ciutat/agraris.php')
  makeMenu('sub','Naturaleza')
	  makeMenu('sub2','Vegetación',INICI+'info_ciutat/natura/vegetacio.php')
	  makeMenu('sub2','Fauna',INICI+'info_ciutat/natura/fauna.php')
  makeMenu('sub','Fiestas')
	  makeMenu('sub2','Programas de fiestas',INICI+'info_ciutat/festes/llibret.php')
	  makeMenu('sub2','Calendario de fiestas',INICI+'info_ciutat/festes/calendari.php')
  makeMenu('sub','Cultura')
	  makeMenu('sub2','Patrimonio de Borriol',INICI+'info_ciutat/cultura/patrimoni.php')
//	  makeMenu('sub2','Pinturas Rupestres',INICI+'info_ciutat/cultura/pintures.php')
//	  makeMenu('sub2','Biblioteca',INICI+'info_ciutat/cultura/biblioteca.php')
//	  makeMenu('sub2','Escuela Hereu',INICI+'info_ciutat/cultura/escola.php')
//	  makeMenu('sub2','Potenciación del Valenciano',INICI+'info_ciutat/cultura/llengua.php')
// 	  makeMenu('sub2','Museos',INICI+'info_ciutat/cultura/museus.php')
 	  makeMenu('sub2','Piedra de Borriol',INICI+'info_ciutat/cultura/pedra.php')	  	  
//  makeMenu('sub','Deportes')
//	  makeMenu('sub2','Piscina Municipal',INICI+'info_ciutat/esports/piscina.php')
//	  makeMenu('sub2','Futbol',INICI+'info_ciutat/esports/futbol.php')
//	  makeMenu('sub2','Polideportivo',INICI+'info_ciutat/esports/poliesportiu.php')
//	  makeMenu('sub2','Golf',INICI+'info_ciutat/esports/golf.php')        
//	  makeMenu('sub2','Clubs Deportivos',INICI+'info_ciutat/esports/clubs.php')        
  makeMenu('sub','Deportes',INICI+'info_ciutat/esports.php')
//  makeMenu('sub','Activitat Economica',INICI+'info_ciutat/economia.php') 
  makeMenu('sub','Caract. de Borriol',INICI+'info_ciutat/caracteristiques.php')
//  makeMenu('sub','Activitat Economica',INICI+'info_ciutat/economia.php')        
  makeMenu('sub','Gastronomia')          
	  makeMenu('sub2','Aceitunas de Borriol',INICI+'info_ciutat/gastronomia/olives.php')
	  makeMenu('sub2','Dulces',INICI+'info_ciutat/gastronomia/dols.php')        
  makeMenu('sub','Webcam',INICI+'varios/webcam.php')            
  makeMenu('sub','Obras de Consulta',INICI+'info_ciutat/consulta.php')  

//Menu 6    
makeMenu('top','Policía Local')
  makeMenu('sub','Contacto',INICI+'recomanacions/contacte.php')
  makeMenu('sub','Recomendaciones',INICI+'recomanacions/recomanacions.php')
  makeMenu('sub','Funciones',INICI+'recomanacions/funcions.php')


//Menu 7  
makeMenu('top','Ent. Municipales')
  makeMenu('sub','Clubes Deportivos')
	  makeMenu('sub2','Bici Extrem',INICI+'ent_municipals/clubs/bici_extrem.php')
	  makeMenu('sub2','Club de Futbol',INICI+'ent_municipals/clubs/futbol.php')        
	  makeMenu('sub2','Ciclismo de Montaña',INICI+'ent_municipals/clubs/ciclisme.php')        
	  makeMenu('sub2','Club La Pedrera',INICI+'ent_municipals/clubs/pedrera.php')        
	  makeMenu('sub2','Club de Pelota',INICI+'ent_municipals/clubs/pilota.php')        
	  makeMenu('sub2','Colombicultura',INICI+'ent_municipals/clubs/estrella.php')
  	  makeMenu('sub2','Fútbol Sala',INICI+'ent_municipals/clubs/futbol_sala.php')
	  makeMenu('sub2','Club de Básquet',INICI+'ent_municipals/clubs/club_basquet.php')
  makeMenu('sub','Asociaciones')
	  makeMenu('sub2','Banda Municipal',INICI+'ent_municipals/associacions/banda.php')
	  makeMenu('sub2','Amas de Casa',INICI+'ent_municipals/associacions/ames_de_casa.php')        
	  makeMenu('sub2','Caza La Montaña',INICI+'ent_municipals/associacions/muntanya.php')
	  makeMenu('sub2','Jubilados',INICI+'ent_municipals/associacions/jubilats.php')	  	  
	  makeMenu('sub2','Madres y Padres',INICI+'ent_municipals/associacions/ampa.php')	  	  	  
	  makeMenu('sub2','Camino de Santiago',INICI+'ent_municipals/associacions/camino.php')	  	  	  
	  makeMenu('sub2','Cofradia Sant Antoni',INICI+'ent_municipals/associacions/sant_antoni.php')	  	  	  
	  makeMenu('sub2','Nueva Jerusalen',INICI+'ent_municipals/associacions/nueva.php')
	  makeMenu('sub2','Creus del Calvari',INICI+'ent_municipals/associacions/calvari.php')
	  makeMenu('sub2','Anar Fent',INICI+'ent_municipals/associacions/anar_fent.php')
	  
  makeMenu('sub','Entidades de Borriol',INICI+'ent_municipals/entitats.php')
  
//Menu 8  
makeMenu('top','Localización')
  makeMenu('sub','Localización',INICI+'localitzacio/localitzacio.php')

//Menu 9
makeMenu('top','Tablón de anuncios')
  makeMenu('sub','Noticias',INICI+'index.php')  
  makeMenu('sub','Buscar Noticias',INICI+'tauler_anuncis/busqueda.php')  
  makeMenu('sub','Urbanismo',INICI+'tauler_anuncis/urbanisme.php') 
  makeMenu('sub','Contratación',INICI+'tauler_anuncis/contractacio.php')  


//Menu 10  
makeMenu('top','Enlaces de interés')
  makeMenu('sub','Universidades')
  	  makeMenu('sub2','UJI','http://www.uji.es','blank')	  	  
	  makeMenu('sub2','Univ. de Alicante','http://www.ua.es','blank')
	  makeMenu('sub2','Miguel Hernández','http://www.umh.es','blank')
	  makeMenu('sub2','Univ. Pol. de Valencia','http://www.upv.es','blank')
          makeMenu('sub2','Univ. de Valencia','http://www.uv.es','blank')
          makeMenu('sub2','Univ. a distancia','http://www.uned.es','blank')
          makeMenu('sub2','Cardenal Herrera','http://www.uch.ceu.es','blank')
          makeMenu('sub2','Int. Menéndez Pelayo','http://www.uimp.es','blank')
  makeMenu('sub','GVA','http://www.gva.es','blank')	  	  
  makeMenu('sub','AEAT','http://www.aeat.es','blank')
  makeMenu('sub','CIDAJ','http://www.cidaj.gva.es','blank')
  makeMenu('sub','SALT','http://www.edu.gva.es/polin/val/salt/apolin_salt.htm','blank')
  makeMenu('sub','IVAJ','http://www.ivaj.es','blank')
  makeMenu('sub','FVMP','http://www.fvmp.es','blank')
  makeMenu('sub','PROP','http://www.gva.es/portal/page/portal/inicio/atencion_ciudadano/buscadores','blank')
  makeMenu('sub','INC','http://www.consumo-inc.es/','blank')
  makeMenu('sub','Agencia Lectura','http://biblioborriol.blogspot.com/','blank')

//Menu 11  
makeMenu('top','Sugerencias')
  makeMenu('sub','Sugerencias',INICI+'suggerencies/suggerencies.php')

//Menu 12  
makeMenu('top','Mapa del Web')
  makeMenu('sub','Mapa del Web',INICI+'mapa/mapa.php')

//Missatge de la Barra de Estado
window.status='Ayuntamiento de Borriol';

//Starting the menu
onload=SlideMenuInit;
