if(idioma!=""){
	dirimg = "../images/" + idioma + "/";
	dirurl = "../" + idioma + "/";
}
else{
	dirimg = "images/";
	dirurl = ""
}

var menu = ''
	+'<div id="menuMarc">'
		+'<div id="menuContent">'
		+'<table border=0 cellpadding=0 cellspacing=0 width=100%>'
/*		+'<tr>'
			+'<td colspan=2><img width=1 height=21 src="images/pix_trans.gif"></td>'
			+'<td valign=top><img width=1 height=4 src="images/pix_trans.gif"><br>'
			+'<a href="javascript:moveIt(-1)" onmouseover="rollover(\'proyecto\',\'on\',ns)" onmouseout="rollover(\'proyecto\',\'off\',ns)"><img src="images/bt_proyecto_off.gif" width="68" height="21" border="0" alt="" name="proyecto"></a><a href="errordsn.htm" onmouseover="rollover(\'best\',\'on\',ns)" onmouseout="rollover(\'best\',\'off\',ns)"><img src="images/bt_best_off.gif" width="102" height="21" border="0" alt="" name="best"></a><a href="newsletter.htm" onmouseover="rollover(\'newsletter\',\'on\',ns)" onmouseout="rollover(\'newsletter\',\'off\',ns)"><img src="images/bt_newsletter_off.gif" width="83" height="21" border="0" alt="" name="newsletter"></a>'
			+'<a href="errordsn.htm" onmouseover="rollover(\'novedades\',\'on\',ns)" onmouseout="rollover(\'novedades\',\'off\',ns)"><img src="images/bt_novedades_off.gif" width="77" height="21" border="0" alt="" name="novedades"></a><a href="errordsn.htm" onmouseover="rollover(\'urbal\',\'on\',ns)" onmouseout="rollover(\'urbal\',\'off\',ns)"><img src="images/bt_urbal_off.gif" width="92" height="21" border="0" alt="" name="urbal"></a><a href="errordsn.htm" onmouseover="rollover(\'contacte\',\'on\',ns)" onmouseout="rollover(\'contacte\',\'off\',ns)"><img src="images/bt_contacte_off.gif" width="69" height="21" border="0" alt="" name="contacte"></a><a href="errordsn.htm" onmouseover="rollover(\'foro\',\'on\',ns)" onmouseout="rollover(\'foro\',\'off\',ns)"><img src="images/bt_foro_off.gif" width="38" height="21" border="0" alt="" name="foro"></a></td>'
		+'</tr>'
*/		+'<tr bgcolor="#FDCE9A">'
			+'<td><img width=1 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 + 'actualidad.asp" onmouseover="rollover(\'noticies\',\'on\',ns)" onmouseout="rollover(\'noticies\',\'off\',ns)"><img src="' + dirimg + 'bt_noticies_off.gif" height="21" border="0" alt="" name="noticies"></a>'
			+ '<a href="' + dirurl + 'calendario.asp" onmouseover="rollover(\'calendario\',\'on\',ns)" onmouseout="rollover(\'calendario\',\'off\',ns)"><img src="' + dirimg + 'bt_calendario_off.gif" height="21" border="0" alt="" name="calendario"></a>'
			+'</td>'
		+'</tr>'
		+'</table>'
		+'</div>'
		
		+'<div id="menuContent2">'
		+'<table border=0 cellpadding=0 cellspacing=0 width=100%>'
		+'<tr bgcolor="#FDCE9A">'
			+'<td><img width=1 height=21 src="images/pix_trans.gif"></td>'
			+'<td valign=top>'
			+'<a href="javascript:moveIt(-1,2)" onmouseover="rollover(\'up_2\',\'on\',ns)" onmouseout="rollover(\'up_2\',\'off\',ns)"><img src="' + dirimg + 'bt_up_off.gif" width="20" height="21" border="0" alt="" name="up_2"></a>'
			+ '<a href="' + dirurl + 'actualidad_eur.asp" onmouseover="rollover(\'noticies_2\',\'on\',ns)" onmouseout="rollover(\'noticies_2\',\'off\',ns)"><img src="' + dirimg + 'bt_noticies_off.gif" height="21" border="0" alt="" name="noticies_2"></a>'
			+ '<a href="' + dirurl + 'documents.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>'
			+'</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
}else{
	var menu = document.menuMarc.document.menuContent
	var menu2 = document.menuMarc.document.menuContent2
}

if(window.getComputedStyle){
	document.getElementById("menuContent").style.top = 0
	document.getElementById("menuContent2").style.top = 0
}else{
	menu.top = 0;
	menu2.top = 0;
}
var inc = 0;
var inc2 = 0;

function moveIt(n,tipo){
	if(tipo==1)
	{
		menuToTop = n * 21
		menuToTop2 = -42
		menu2.visibility = "hidden"
		menu.visibility = "visible"
	}else{
		menuToTop2 = n * 21
		menuToTop = -42
		menu.visibility = "hidden"
		menu2.visibility = "visible"
	}
}

menuTop = 0;
menuTop2 = 0;

function menuListen(){
	if(window.getComputedStyle){
		menuTop = document.getElementById("menuContent").style.top
		menuTop2 = document.getElementById("menuContent2").style.top
	}else{
		menuTop = menu.top
		menuTop2 = menu2.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"
	}
	
	setTimeout('menuListen()',20)
}
menuListen()
// activo el rollover relativo a la seccion

if(idioma!=""){
	dirimg = "../images/" + idioma + "/"
}else{
	dirimg = "images/";
}

if(seccion){
	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){
	var a = subseccion.split('_')
	if(a[1]!=null){
		img = a[0]
	}else{
		img = subseccion
	}
	
	if(document.all)
	{
		document.images[subseccion].src = dirimg + "bt_" + img + "_on.gif"
	}else{
		ns.document.images[subseccion].src = dirimg + "bt_" + img + "_on.gif"
	}
}
////////////////////////////////////////////////////////////////////////////////7// moviment del menu		

inicio = 1