 matrizjunction = new Array();

 function Junction(nombre, numero, server, vsorce)
 {
    this.nombre = nombre;
    this.numero = numero;
    this.server = server;
    this.vsorce = vsorce;
 }

 matrizjunction[1]  = new Junction("Alameda - V. Mackenna",      "9", "webcam8.uoct.cl", "3");  
 matrizjunction[2]  = new Junction("Purísima - Bellavista",     "10", "webcam9.uoct.cl", "3");  
 matrizjunction[3]  = new Junction("Recoleta - Santa María",     "8", "webcam7.uoct.cl", "5");  
 //CAMARA 4 C. Caro - Independencia 
 matrizjunction[5]  = new Junction("Alameda - Santa Rosa",       "1", "webcam.uoct.cl", "0");  
 matrizjunction[6]  = new Junction("C. Caro - Puente Loreto",    "1", "webcam.uoct.cl", "1");
 matrizjunction[7]  = new Junction("Alameda - Matucana",         "1", "webcam.uoct.cl", "2");   
 //CAMARA 8 C. Toro - San Carlos 
 matrizjunction[9]  = new Junction("A. Vespucio - Sta. Rosa",    "3", "webcam2.uoct.cl", "0");     
 matrizjunction[10] = new Junction("A. Vespucio - San Carlos",   "3", "webcam2.uoct.cl", "1");    
 //matrizjunction[11] = new Junction("Av. Irarrázaval - Macul",    "3", "webcam2.uoct.cl", "2");    
 matrizjunction[12] = new Junction("V. Mackenna - A. Vespucio",  "3", "webcam2.uoct.cl", "3");    
 matrizjunction[13] = new Junction("A. Bello - Nueva Tajamar" , "1", "webcam.uoct.cl",  "5");    
 matrizjunction[14] = new Junction("Las Condes - Estoril",   "11", "webcam10.uoct.cl","2");  
 matrizjunction[15] = new Junction("V. Mackenna - D. Paraguay",  "4", "webcam3.uoct.cl", "0");    
 matrizjunction[16] = new Junction("V. Mackenna - Av . Matta",   "4", "webcam3.uoct.cl", "1");    
 matrizjunction[17] = new Junction("Providencia - P. Valdivia",  "4", "webcam3.uoct.cl", "2");    
 matrizjunction[18] = new Junction("Apoquindo - Manquehue",      "4", "webcam3.uoct.cl", "3");    
 matrizjunction[19] = new Junction("Ricardo Lyon - 11 de Sept.", "4", "webcam3.uoct.cl", "4");    
 matrizjunction[20] = new Junction("Providencia - E. Yañez",     "4", "webcam3.uoct.cl", "5");    
 matrizjunction[21] = new Junction("A. Vespucio - Independenc.", "5", "webcam4.uoct.cl", "0");    
 matrizjunction[22] = new Junction("Alameda - Las Rejas",        "5", "webcam4.uoct.cl", "1");    
 matrizjunction[23] = new Junction("Irarrázaval - V. Mackenna",  "5", "webcam4.uoct.cl", "2");    
 matrizjunction[24] = new Junction("Ochagavía - Departamental",  "6", "webcam5.uoct.cl", "0");    
 matrizjunction[25] = new Junction("P.A. Cerda - Departamental", "5", "webcam4.uoct.cl", "3");    
 matrizjunction[26] = new Junction("A. Vespucio - Colón",        "5", "webcam4.uoct.cl", "4");     
 matrizjunction[27] = new Junction("A. Vespucio - P. de Gales",  "5", "webcam4.uoct.cl", "5");     
 matrizjunction[28] = new Junction("Alameda - V. Mackenna",  "6", "webcam5.uoct.cl", "1");     
 matrizjunction[29] = new Junction("Las Condes - San F. Asís",   "6", "webcam5.uoct.cl", "2");     
 matrizjunction[30] = new Junction("Rotonda Pérez Zujovic",      "7", "webcam6.uoct.cl", "0");     
 matrizjunction[31] = new Junction("Larraín - A. Vespucio",      "6", "webcam5.uoct.cl", "3");     
 matrizjunction[32] = new Junction("Rotonda Lo Curro",           "6", "webcam5.uoct.cl", "4");     
 matrizjunction[33] = new Junction("Kennedy - Padre Hurtado",    "6", "webcam5.uoct.cl", "5");     
 matrizjunction[34] = new Junction("A. Cordova - P. Riesco",     "7", "webcam6.uoct.cl", "1");     
 matrizjunction[35] = new Junction("A. Vespucio - Recoleta",     "7", "webcam6.uoct.cl", "2");     
 matrizjunction[36] = new Junction("A. Vespucio - Vitacura",     "7", "webcam6.uoct.cl", "3");     
 matrizjunction[37] = new Junction("Vitacura - I. Goyenechea",   "7", "webcam6.uoct.cl", "4");   
 matrizjunction[38] = new Junction("La Florida - Departamental", "7", "webcam6.uoct.cl", "5");
 matrizjunction[39] = new Junction("A. Vespucio - Fontova",      "2", "webcam1.uoct.cl", "0");
 matrizjunction[40] = new Junction("Pajaritos - 5 de Abril",     "8", "webcam7.uoct.cl", "1");     
 matrizjunction[41] = new Junction("Pajaritos - Gral. Bueras",   "8", "webcam7.uoct.cl", "2");     
 matrizjunction[42] = new Junction("La Dehesa - C. Malbec",      "8", "webcam7.uoct.cl", "3");      
 matrizjunction[44] = new Junction("Alameda - M.Rodriguez",           "2", "webcam1.uoct.cl", "1");      
 matrizjunction[45] = new Junction("Costanera - R. Lyon",        "9", "webcam8.uoct.cl", "0");      
 matrizjunction[46] = new Junction("S. María - El Gobernador",   "9", "webcam8.uoct.cl", "1");      
 matrizjunction[47] = new Junction("A. Vespucio - F. Roa",       "9", "webcam8.uoct.cl", "2");      
 matrizjunction[48] = new Junction("Gran Av. - C. Valdovinos",   "9", "webcam8.uoct.cl", "4");      
 matrizjunction[50] = new Junction("A. Vespucio - Ruta 5 Norte", "8", "webcam7.uoct.cl", "0");
// matrizjunction[51] = new Junction("A. Vespucio - San Martín",   "9", "webcam8.uoct.cl", "5");      
 matrizjunction[52] = new Junction("Costanera - La Concepción", "10", "webcam9.uoct.cl", "0");      
 matrizjunction[53] = new Junction("Apoquindo - El Bosque",     "10", "webcam9.uoct.cl", "1");      
 matrizjunction[54] = new Junction("Alameda - Obispo Umaña",    "10", "webcam9.uoct.cl", "2");      
 matrizjunction[56] = new Junction("Alameda - Toro Mazotte",    "10", "webcam9.uoct.cl", "4");
 matrizjunction[57] = new Junction("A. Vespucio - P.A. Cerda",  "10", "webcam9.uoct.cl", "5");      
 matrizjunction[58] = new Junction("Costanera - P. Riesco",      "8", "webcam7.uoct.cl", "4");      
 matrizjunction[59] = new Junction("A. Vespucio - P. Riesco",    "1", "webcam.uoct.cl" , "3");    
 matrizjunction[60] = new Junction("Alameda - Matucana",       "11", "webcam10.uoct.cl","0");    
 matrizjunction[61] = new Junction("Tobalaba - El Bosque"  ,    "11", "webcam10.uoct.cl","1"); 
 matrizjunction[62] = new Junction("Manquehue - Colon"  ,        "2", "webcam1.uoct.cl", "2");    
 matrizjunction[63] = new Junction("Vitacura - Holanda",        "11", "webcam10.uoct.cl","3");    
 matrizjunction[64] = new Junction("A. Vespucio - E. Balaguer", "11", "webcam10.uoct.cl","4");    
 matrizjunction[65] = new Junction("A. Vespucio - A. Córdova",  "11", "webcam10.uoct.cl","5");    
 matrizjunction[66] = new Junction("Colon - Freire",             "2", "webcam1.uoct.cl", "3");    
 matrizjunction[67] = new Junction("Santa Isabel - Nataniel",    "2", "webcam1.uoct.cl", "4");   
 matrizjunction[68] = new Junction("Apoquindo - La Gloria"  ,    "1", "webcam.uoct.cl",  "4");   
 matrizjunction[69] = new Junction("A. Cordova - Los Militares", "2", "webcam1.uoct.cl", "5");    
 matrizjunction[70] = new Junction("El Cerro - Los Conquist.",   "9", "webcam8.uoct.cl", "5");      

 function RedirectUrl(num)
 {
    if (num >= 1 || num <= 100)
    {
	   // Video
       if (formato == 1)
	   {
          parent.frames['mainFrame'].location = ("view_camara.jsp?camara="+num);
       }
	   
	   // Foto
       if (formato == 2)
	   {
          parent.frames['mainFrame'].location = ("view_imagen.jsp?camara="+num);
       }
	   
	   // Información
       if (formato == 3)
	   {
          parent.frames['mainFrame'].location = ("view_informa.jsp?camara="+num);
       }	   
    }	   
 }
