 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("Av. Costanera - Esmeralda",      "0", "200.75.19.185", "8080");  
 matrizjunction[2]  = new Junction("O'Higgins - Rengo",     "2", "200.75.19.185", "8080");  
 matrizjunction[3]  = new Junction("O'Higgins - Tucapel",     "1", "200.75.19.185", "8080");  
 matrizjunction[4]  = new Junction("Los Carrera - Paicavi",   "5", "200.75.19.185","8080");  
 matrizjunction[5]  = new Junction("Los Carrera - Collao - Av. Juan Bosco",       "3", "200.75.19.185", "8081");  
 matrizjunction[6]  = new Junction("21 de Mayo - Pedro de Ona - Vega Monumental",    "3", "200.75.19.185", "8080");
 matrizjunction[7]  = new Junction("M.Rodriguez - Santa Sofia",    "4", "200.75.19.185", "8081");
 matrizjunction[8]  = new Junction("Ruta O-60 - Lonco - Binimellis",    "4", "200.75.19.185", "8080");
 matrizjunction[9]  = new Junction("P.Aguirre Cerda - San Pedro",    "0", "200.75.19.185", "8081");
 matrizjunction[10]  = new Junction("P.Aguirre Cerda - Diagonal BioBio",    "5", "200.75.19.185", "8081");
 matrizjunction[11]  = new Junction("Colon - San Martin",    "1", "200.75.19.185", "8081");
 matrizjunction[12]  = new Junction("Blanco Encalada - Valdivia",    "2", "200.75.19.185", "8081");
 matrizjunction[13]  = new Junction("Los Carrera - Av. Prat",    "0", "200.75.19.185", "8082"); 
 matrizjunction[14]  = new Junction("P.Aguirre Cerda - Los Canelos",    "1", "200.75.19.185", "8082");

 

 function RedirectUrl(num)
 {
    if (num >= 1 || num <= 100)
    {
	   //para regiones el unico formato disponible es Video => 1
	   formato = 1;
	   // 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);
       }	   
    }	   
 }
