if(idioma!=""){
	dirimg = "../images/" + idioma + "/"
}else{
	dirimg = "images/";
}


var menu = ''
	+'<div id="menuMarc">'
	
		+'<div id="menuContent">'
		+'<table border=0 cellpadding=0 cellspacing=0 width=100%>'
		+'<tr bgcolor="#ADC1F9">'
			+'<td bgcolor="white"><img width=3 height=21 src="images/pix_trans.gif"></td>'
			+'<td valign=top>'
			+'<a href="javascript:moveIt(-1,1)" onmouseover="rollover(\'up\',\'on\',ns)" onmouseout="rollover(\'up\',\'off\',ns)"><img src="' + dirimg + 'bt_up_off.gif" width="20" height="21" border="0" alt="" name="up"></a>'
			+'<a href="' + dirurl + 'doc_consell.asp" onmouseover="rollover(\'documents\',\'on\',ns)" onmouseout="rollover(\'documents\',\'off\',ns)"><img src="' + dirimg + 'bt_documents_off.gif" height="21" border="0" alt="" name="documents"></a>'
			+'<a href="' + dirurl + 'doc_general.asp" onmouseover="rollover(\'documentaciogen\',\'on\',ns)" onmouseout="rollover(\'documentaciogen\',\'off\',ns)"><img src="' + dirimg + 'bt_documentaciogen_off.gif" height="21" border="0" alt="" name="documentaciogen"></a>'
			+'</td>'
			+'<td width=90%><img width=3 height=21 src="images/pix_trans.gif"></td>'
		+'</tr>'
		+'<tr>'
			+'<td><img width=1 height=13 src="../images/pix_trans.gif"></td>'
		+'</tr>'
		+'</table>'
		+'</div>'
		
		+'<div id="menuContent2">'
		+'<table border=0 cellpadding=0 cellspacing=0 width=100%>'
		+'<tr bgcolor="#ADC1F9">'
			+'<td bgcolor="white"><img width=3 height=21 src="images/pix_trans.gif"></td>'
			+'<td valign=top>'
			+'<a href="javascript:moveIt(-2,2)" onmouseover="rollover(\'up\',\'on\',ns)" onmouseout="rollover(\'up\',\'off\',ns)"><img src="' + dirimg + 'bt_up_off.gif" width="20" height="21" border="0" alt="" name="up"></a>'
			+'<a href="' + dirurl + 'cooperacio_metropolitana.asp?id=2" onmouseover="rollover(\'iniciativa\',\'on\',ns)" onmouseout="rollover(\'iniciativa\',\'off\',ns)"><img src="' + dirimg + 'bt_iniciativa_off.gif" height="21" border="0" alt="" name="iniciativa"></a>'
			+'<a href="' + dirurl + 'cooperacio_metropolitana.asp?id=3" onmouseover="rollover(\'ongs\',\'on\',ns)" onmouseout="rollover(\'ongs\',\'off\',ns)"><img src="' + dirimg + 'bt_ongs_off.gif" height="21" border="0" alt="" name="ongs"></a>'
			+'<a href="' + dirurl + 'cooperacio_metropolitana.asp?id=4" onmouseover="rollover(\'metropolitana\',\'on\',ns)" onmouseout="rollover(\'metropolitana\',\'off\',ns)"><img src="' + dirimg + 'bt_metropolitana_off.gif" height="21" border="0" alt="" name="metropolitana"></a>'
			+'</td>'
			+'<td width=90%><img width=3 height=21 src="images/pix_trans.gif"></td>'
		+'</tr>'
		+'<tr bgcolor="#ADC1F9">'
			+'<td bgcolor="white"><img width=3 height=21 src="images/pix_trans.gif"></td>'
			+'<td valign=top>'
			+'<a href="' + dirurl + 'cooperacio_metropolitana.asp?id=5" onmouseover="rollover(\'emergencies\',\'on\',ns)" onmouseout="rollover(\'emergencies\',\'off\',ns)"><img src="' + dirimg + 'bt_emergencies_off.gif" height="21" border="0" alt="" name="emergencies"></a>'
			+'<a href="' + dirurl + 'cooperacio_metropolitana.asp?id=6" onmouseover="rollover(\'sensibilitzacio\',\'on\',ns)" onmouseout="rollover(\'sensibilitzacio\',\'off\',ns)"><img src="' + dirimg + 'bt_sensibilitzacio_off.gif" height="21" border="0" alt="" name="sensibilitzacio"></a>'
			+'</td>'
			+'<td width=90%><img width=3 height=21 src="images/pix_trans.gif"></td>'
		+'</tr>'
		+'</table>'
		+'</div>'
		
		+'<div id="menuContent3">'
		+'<table border=0 cellpadding=0 cellspacing=0 width=100%>'
		+'<tr bgcolor="#ADC1F9">'
			+'<td bgcolor="white"><img width=3 height=21 src="images/pix_trans.gif"></td>'
			+'<td valign=top>'
			+'<a href="javascript:moveIt(-2,3)" onmouseover="rollover(\'up\',\'on\',ns)" onmouseout="rollover(\'up\',\'off\',ns)"><img src="' + dirimg + 'bt_up_off.gif" width="20" height="21" border="0" alt="" name="up"></a>'
			+'<a href="' + dirurl + 'ajuntaments.asp" onmouseover="rollover(\'ajuntaments\',\'on\',ns)" onmouseout="rollover(\'ajuntaments\',\'off\',ns)"><img src="' + dirimg + 'bt_ajuntaments_off.gif" height="21" border="0" alt="" name="ajuntaments"></a>'
			+'<a href="' + dirurl + 'trobades_cooperacio.asp" onmouseover="rollover(\'forum\',\'on\',ns)" onmouseout="rollover(\'forum\',\'off\',ns)"><img src="' + dirimg + 'bt_forum_off.gif" height="21" border="0" alt="" name="forum"></a>'
			+'</td>'
			+'<td width=90%><img width=3 height=21 src="images/pix_trans.gif"></td>'
		+'</tr>'
		+'</table>'
		+'</div>'
		
	+'</div>'
	
document.write(menu)
////////////////////////////////////////////////////////////////////////////////7// moviment del menu
var ns;
if(document.all)
{
	var menu = menuContent.style
	var menu2 = menuContent2.style
	var menu3 = menuContent3.style
}else if(!window.getComputedStyle){
	var menu = document.menuMarc.document.menuContent
	var menu2 = document.menuMarc.document.menuContent2
	var menu3 = document.menuMarc.document.menuContent3
}

if(window.getComputedStyle){
	document.getElementById("menuContent").style.top = 0
	document.getElementById("menuContent2").style.top = 0
	document.getElementById("menuContent3").style.top = 0
}else{
	menu.top = 0;
	menu2.top = 0;
	menu3.top = 0;
}

var inc = 0;
var inc2 = 0;
var inc3 = 0;

function moveIt(n,tipo){
	if(tipo==1)
	{
		menuToTop = n * 21
		menuToTop2 = -42
		menuToTop3 = -42
		menu2.visibility = "hidden"
		menu3.visibility = "hidden"
		menu.visibility = "visible"
	}else{
		if(tipo==2)
		{
			menuToTop2 = n * 21
			menuToTop = -42
			menuToTop3 = -42
			menu.visibility = "hidden"
			menu3.visibility = "hidden"
			menu2.visibility = "visible"
		}else{
			menuToTop3 = n * 21
			menuToTop = -42
			menuToTop2 = -42
			menu.visibility = "hidden"
			menu2.visibility = "hidden"
			menu3.visibility = "visible"
		}
	}
}

menuTop = 0;
menuTop2 = 0;
menuTop3 = 0;

function menuListen(){
	/*if(parseInt(menu.top) != menuToTop)
	{
		inc -= (menuToTop - parseInt(menu.top))/5
		inc *= 0.7
		menu.top = parseInt(menu.top) - Math.round(inc)
	}

	if(parseInt(menu2.top) != menuToTop2)
	{
		inc2 -= (menuToTop2 - parseInt(menu2.top))/5
		inc2 *= 0.7
		menu2.top = parseInt(menu2.top) - Math.round(inc2)
	}
	
	
	setTimeout('menuListen()',20)*/
	
	
	if(window.getComputedStyle){
		menuTop = document.getElementById("menuContent").style.top
		menuTop2 = document.getElementById("menuContent2").style.top
		menuTop3 = document.getElementById("menuContent3").style.top
	}else{
		menuTop = menu.top
		menuTop2 = menu2.top
		menuTop3 = menu3.top
	}
	
	if(parseInt(menuTop) != menuToTop)
	{
		inc -= (menuToTop - parseInt(menuTop))/5
		inc *= 0.6
		if(window.getComputedStyle){
			document.getElementById("menuContent").style.top = parseInt(menuTop) - Math.round(inc)
		}else{
			menu.top = parseInt(menuTop) - Math.round(inc)
		}
		menu.visibility = "visible"
	}
	
	
	if(parseInt(menuTop2) != menuToTop2)
	{
		inc2 -= (menuToTop2 - parseInt(menuTop2))/5
		inc2 *= 0.6
		if(window.getComputedStyle){
			document.getElementById("menuContent2").style.top = parseInt(menuTop2) - Math.round(inc2)
		}else{
			menu2.top = parseInt(menuTop2) - Math.round(inc2)
		}
		menu2.visibility = "visible"
	}
	
	if(parseInt(menuTop3) != menuToTop3)
	{
		inc3 -= (menuToTop3 - parseInt(menuTop3))/5
		inc3 *= 0.6
		if(window.getComputedStyle){
			document.getElementById("menuContent3").style.top = parseInt(menuTop3) - Math.round(inc3)
		}else{
			menu3.top = parseInt(menuTop3) - Math.round(inc3)
		}
		menu3.visibility = "visible"
	}
	
	setTimeout('menuListen()',20)
	
}
menuListen()
// activo el rollover relativo a la seccion

if(idioma!=""){
	dirimg = "../images/" + idioma + "/"
}else{
	dirimg = "images/";
}

if(seccion){
	if(seccion=="login"){
		dirimg = "../images/"
	}
	if(document.all)
	{
		document.images[seccion].src = dirimg + "bt_" + seccion + "_on.gif"
	}else{
		ns.document.images[seccion].src = dirimg + "bt_" + seccion + "_on.gif"
	}
}

if(subseccion){
	if(document.all)
	{
		document.images[subseccion].src = dirimg + "bt_" + subseccion + "_on.gif"
	}else{
		ns.document.images[subseccion].src = dirimg + "bt_" + subseccion + "_on.gif"
	}
}
////////////////////////////////////////////////////////////////////////////////7// moviment del menu		

inicio = 1