 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("Balmaceda - Uribe",         			"0", "172.25.25.101", "8080");  
 matrizjunction[2]  = new Junction("Argentina - Ossa",          			"1", "172.25.25.101", "8080");  
 matrizjunction[3]  = new Junction("Latorre - Maipu",           			"2", "172.25.25.101", "8080");  
 matrizjunction[4]  = new Junction("Baquedano - Condell",       			"3", "172.25.25.101","8080");  
 matrizjunction[5]  = new Junction("Sucre - Matta",             			"4", "172.25.25.101", "8080"); 
 matrizjunction[6]  = new Junction("Avda. Angamos - Av. Rep. de Croacia",   "5", "172.25.25.101", "8080"); 
 
 matrizjunction[7]  = new Junction("Grecia - Matta",            "0", "172.25.25.102", "8080");
 matrizjunction[8]  = new Junction("Balmaceda - Bolívar",       "1", "172.25.25.102", "8080"); 
 matrizjunction[9]  = new Junction("O'Higgins - 14 de Febrero", "2", "172.25.25.102", "8080");
 matrizjunction[10]  = new Junction("San Martin - Orella",       "3", "172.25.25.102", "8080");
 matrizjunction[11]  = new Junction("Argentina - 21 de Mayo",    "4", "172.25.25.102", "8080");



 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);
       }	   
    }	   
 }
