// IMC JavaScript Document
function cambiarIdioma(pagina,idioma,stringquery){
	intPos = stringquery.indexOf("&");
	if(intPos!=-1){
		stringquery = stringquery.substr(intPos + 1,stringquery.length - intPos);
	}
	intPosIdioma = stringquery.indexOf("idioma");
	if(intPosIdioma!=-1){
		stringquery = "";
	}
	window.location.href = pagina + "?idioma=" + idioma + "&" + stringquery;
	//window.location.href = "default.asp?idioma=ca";
}
function fjsGoto(intLink) {
	switch (intLink) {
		case 0:
			location.href = "index.php";
		break;		
		case 1:
			location.href = "somos.php";
		break;
		case 11:
			location.href = "objetivos.php";
		break;
		case 3:
			location.href = "productos_catalogo.php";
		break;
		case 33:
			location.href = "productos_servicios.php";
		break;
		case 4:
			location.href = "ventajas_solar.php";
		break;
		case 41:
			location.href = "kyoto.php";
		break;
		case 42:
			location.href = "plan_fomento.php";
		break;
		case 43:
			location.href = "mercado_catalunya.php";
		break;
		case 44:
			location.href = "normativa_aplicable.php";
		break;
		case 45:
			location.href = "emision.php";
		break;
		case 5:
			location.href = "acs.php";
		break;
		case 51:
			location.href = "piscinas.php";
		break;
		case 52:
			location.href = "suelo.php";
		break;
		case 53:
			location.href = "aire.php";
		break;
		case 54:
			location.href = "aplicaciones.php";
		break;
		case 59:
			location.href = "ventajas_termica.php";
		break;
		case 6:
			location.href = "aisladas.php";
		break;
		case 61:
			location.href = "red.php";
		break;
		case 62:
			location.href = "servicios_fotovoltaicos.php";
		break;
		case 69:
			location.href = "ventajas_fotovoltaica.php";
		break;
		case 7:
			location.href = "concentracion.php";
		break;
		case 79:
			location.href = "ventajas_concentracion.php";
		break;
		case 8:
			location.href = "termoelectrica.php";
		break;
		case 88:
			location.href = "plan_fomento.php";
		break;
		case 9:
			location.href = "contacto.php";
		break;
		case 10:
			location.href = "proyectos.php";
		break;
		case 111:
			location.href = "biogas.php";
		break;
		case 112:
			location.href = "biogas_pl.php";
		break;
		case 113:
			location.href = "biogas_vent.php";
		break;
		case 114:
			location.href = "biogas_serv.php";
		break;
		case 115:
			location.href = "biogas_merc.php";
		break;
		case 121:
			location.href = "biomasa.php";
		break;
		case 122:
			location.href = "biomasa_ap.php";
		break;
		case 131:
			location.href = "biomasa_soluciones.php";
		break;
		case 132:
			location.href = "biomasa_soluciones1.php";
		break;
		case 133:
			location.href = "biomasa_soluciones2.php";
		break;
		case 134:
			location.href = "cogeneracion_inf.php";
		break;
		case 135:
			location.href = "cogeneracion_apl.php";
		break;
		case 136:
			location.href = "cogeneracion_mic.php";
		break;
		case 137:
			location.href = "cogeneracion_pri.php";
		break;	
		case 99:
			location.href = "oportunidades_trabajo.php";
		break;
		default:
			location.href = "index.php";
		break;
	}
}