// JavaScript Document

function actualizarLineas() {
	var selectElem = document.getElementById('filtro_transporte');
	var barrioId = selectElem.selectedIndex;
	var linea11 = document.getElementById('trlinea11');
	var linea12 = document.getElementById('trlinea12');
	var linea13 = document.getElementById('trlinea13');
	var linea14 = document.getElementById('trlinea14');
	var linea15 = document.getElementById('trlinea15');
	var linea16 = document.getElementById('trlinea16');
	var linea17 = document.getElementById('trlinea17');
	var linea17b = document.getElementById('trlinea17b');
	var linea19 = document.getElementById('trlinea19');
	var linea20 = document.getElementById('trlinea20');
	var linea103 = document.getElementById('trlinea103');
	var linea104 = document.getElementById('trlinea104');
	var linea105 = document.getElementById('trlinea105');
	
	linea11.style.display = "";
	linea12.style.display = "";
	linea13.style.display = "";
	linea14.style.display = "";
	linea15.style.display = "";
	linea16.style.display = "";
	linea17.style.display = "";
	linea17b.style.display = "";
	linea19.style.display = "";
	linea20.style.display = "";
	linea103.style.display = "";
	linea104.style.display = "";
	linea105.style.display = "";
	
	switch(barrioId) {
		case 1: // Almirante Brown: 11, 103, 105
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea104.style.display = 'none';
			break;
		case 2: // Ameghino: 12, 13, 103, 104, 105
			linea11.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			break;
		case 3: // Belgrano: 11, 105
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			break;
		case 4: // Bello Horiz: 14, 16
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea15.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 5: // Carlos Pellegrini: 11, 12, 13, 103, 104
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 6: // Centro: 11, 12, 13, 14, 15, 16, 17, 17b, 19, 20, 103, 104, 105
			break;
		case 7: // Felipe Botta: 12, 13
			linea11.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 8: // Guemes: 19, 20, 103
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';
			break;
		case 9: // Lamadrid: 12, 13, 14, 15, 104, 105
			linea11.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			break;
		case 10: //General Paz: 19, 103
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea20.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';
			break;
		case 11: // General Roca: 105
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			break;
		case 12: // Industrial: 17, 17b
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 13: // Las Acacias: 19, 20
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 14: // Las Playas: 15, 17, 17b
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea16.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 15: // Los Olmos: 14, 15, 16
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 16: // Mariano Moreno: 19, 20
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 17: // N Avellaneda: 12, 13
			linea11.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 18: // Palermo: 19
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 19: // Parque Norte: 11, 103, 104
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 20: // Rivadavia: 17, 17b
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 21: // Roque Saenz Peña: 20, 103
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';
			break;
		case 22: // San Juan Bautista: 14, 16
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea15.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 23: // San Justo: 15, 16
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 24: // San Martín: 12, 13, 14
			linea11.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 25: // San Nicolas: 12, 13
			linea11.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 26: // Santa Ana: 103
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 27: // Sarmiento: 103
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';
			break;
		case 28: //Trinitarios: 11, 103, 104, 105
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			break;
		case 29: // UNVM: 103, 104, 105
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			break;
		case 30: // Villa Albertina: 17b
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea19.style.display = 'none';
			linea20.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';			
			break;
		case 31: // Vista Verde: 20
			linea11.style.display = 'none';
			linea12.style.display = 'none';
			linea13.style.display = 'none';
			linea14.style.display = 'none';
			linea15.style.display = 'none';
			linea16.style.display = 'none';
			linea17.style.display = 'none';
			linea17b.style.display = 'none';
			linea19.style.display = 'none';
			linea103.style.display = 'none';
			linea104.style.display = 'none';
			linea105.style.display = 'none';
			break;
		default:
			linea11.style.display = 'table-row';
			linea12.style.display = 'table-row';
			linea13.style.display = 'table-row';
			linea14.style.display = 'table-row';
			linea15.style.display = 'table-row';
			linea16.style.display = 'table-row';
			linea17.style.display = 'table-row';
			linea17b.style.display = 'table-row';
			linea19.style.display = 'table-row';
			linea20.style.display = 'table-row';
			linea103.style.display = 'table-row';
			linea104.style.display = 'table-row';
			linea105.style.display = 'table-row';
			break;
			
	}
	
}
