function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function procesaMenu(activo) {
	enlaces = ["queesmedia.php", "estrenes.php", "publicaciones.php", "convocatories.php", "resultados.php", "cursos.php", "links.php", "direcciones.php","estadistiques.php","prodcat.php"]
	textos = ["Qu&egrave; &eacute;s MEDIA?", "Estrenes amb ajut MEDIA", "Publicacions", "Convocat&ograve;ries", "Resultats", "Cursos", "Links", "Adreces MEDIA","Estadístiques","Produccions catalanes amb ajut MEDIA" ]
	for (var i=1; i<=enlaces.length; i++) {
		document.write("<tr>");
		document.write("<td>&nbsp;</td>");
		if (i==activo) {
			document.write("<td class=\"menulinkactivo\">"+textos[i-1]+"</td>")
		} else{
			document.write("<td><a href=\"" + enlaces[i-1]+ "\" class=\"menulink\">" + textos[i-1] + "</a></td>")
		}		
		document.write("</tr>");
		document.write("<tr><td height=\"7\" colspan=\"2\"></td></tr>");
	}
	document.write("<tr>");
	document.write("<td>&nbsp;</td>");
	document.write("<td><a href=\"home.php\" class=\"menulink\">Inici</a></td>")
	document.write("</tr>");
}

function procesaComboConvocatorias(activo) 
{
	enlaces = [
	"convocatorias.php",
	"convocatorias_festivales.php",
	"convocatorias_desarrollo.php",
	"convocatorias_distribucion.php",
	"convocatorias_formacion.php",
	"convocatorias_promocion.php",
	"convocatorias_proyectos.php",
	"convocatorias_audiovisual.php",
	"convocatorias_exhibicio.php",
	"convocatorias_altres.php"
	]
	textos = [" ", "Festivals", "Desenvolupament", "Distribuci&oacute;", "Formaci&oacute", "Promoci&oacute;", "Projectes Pilot","i2i Audiovisual","Exhibici&oacute;","Altres"]

	for (var i=1; i<=enlaces.length; i++) 
	{
		if (i==activo) 
		{
			document.write("<option value=\"" + enlaces[i-1] + "\" selected>&nbsp;&nbsp;" + textos[i-1] + "&nbsp;&nbsp;</option>");
		} 
		else
		{
			document.write("<option value=\"" + enlaces[i-1] + "\">&nbsp;&nbsp;" + textos[i-1] + "&nbsp;&nbsp;</option>");
		}
	}
}

function procesaComboPublicaciones(activo) {
	enlaces = [
	"publicaciones.php", 
	"publicaciones_otras.php",
	"publicaciones_boletin.php", 
	"publicaciones_revista.php"]
	textos = [" ", "Altres informacions", "Butllet&iacute; de not&iacute;cies", "Revista MEDIA"]
	for (var i=1; i<=enlaces.length; i++) {
		if (i==activo) {
			document.write("<option value=\"" + enlaces[i-1] + "\" selected>&nbsp;&nbsp;" + textos[i-1] + "&nbsp;&nbsp;</option>");
		} else{
			document.write("<option value=\"" + enlaces[i-1] + "\">&nbsp;&nbsp;" + textos[i-1] + "&nbsp;&nbsp;</option>");
		}
	}
}

function procesaComboResultados(activo) {
	enlaces = ["resultados.php", "resultados_catalunya.php","resultados_espanya.php", "resultados_europa.php"]
	textos = [" ", "Catalunya", "Espanya", "Europa"]
	for (var i=1; i<=enlaces.length; i++) {
		if (i==activo) {
			document.write("<option value=\"" + enlaces[i-1] + "\" selected>&nbsp;&nbsp;" + textos[i-1] + "&nbsp;&nbsp;</option>");
		} else{
			document.write("<option value=\"" + enlaces[i-1] + "\">&nbsp;&nbsp;" + textos[i-1] + "&nbsp;&nbsp;</option>");
		}
	}
}
function procesaComboEstadistiques(activo) {
	enlaces = ["estadistiques.php", "estadistiques_g.php","estadistiques_c.php", "estadistiques_a.php"]
	textos = [" ", "Resultats globals per anys", "Comparatives", "Altres"]
	for (var i=1; i<=enlaces.length; i++) {
		if (i==activo) {
			document.write("<option value=\"" + enlaces[i-1] + "\" selected>" + textos[i-1] + "</option>");
		} else{
			document.write("<option value=\"" + enlaces[i-1] + "\">" + textos[i-1] + "</option>");
		}
	}
}

function procesaComboDirecciones(activo) {
	enlaces = ["direcciones.php", "direcciones_desk.php","direcciones_media.php", "direcciones_tao.php"]
	textos = [" ", "Oficines MEDIA", "Unitat MEDIA", "EACEA"]
	for (var i=1; i<=enlaces.length; i++) {
		if (i==activo) {
			document.write("<option value=\"" + enlaces[i-1] + "\" selected>&nbsp;&nbsp;" + textos[i-1] + "&nbsp;&nbsp;</option>");
		} else{
			document.write("<option value=\"" + enlaces[i-1] + "\">&nbsp;&nbsp;" + textos[i-1] + "&nbsp;&nbsp;</option>");
		}
	}
}
		