var tcat = [];
  tcat[0]="28,12,203,42,40,6,204,22,103,9,4,102,2,29,24,19,16,41,";
  tcat[1]="32,101,38,202,17,35,4,102,";
  tcat[2]="7,";
  tcat[3]="23,37,39,13,1,15,34,18,3,10,8,";
  tcat[4]="201,";

var cat = [];
cat[0] = "General";
cat[1] = "Noticias";
cat[2] = "Musica";
cat[3] = "Local";
cat[4] = "Peliculas";

var chn = [];
chn[0] = "A3 Noticias 24h";
chn[1] = "Localia TV";
chn[2] = "TV Girona";
chn[3] = "TV Mas";
chn[4] = "TN 24 horas";
chn[5] = "";
chn[6] = "La Otra";
chn[7] = "";
chn[8] = "Velevisa";
chn[9] = "Telecorazon";
chn[10] = "Telemadrid Sat";
chn[11] = "TV conciertos";
chn[12] = "Antenna 3 Int.";
chn[13] = "InterAlmeria";
chn[14] = "Sol";
chn[15] = "Lepevision";
chn[16] = "TVVi";
chn[17] = "Intereconomia";
chn[18] = "TV Leon";
chn[19] = "TVCi";
chn[20] = "Kiss Television";
chn[21] = "";
chn[22] = "Mirame TV";
chn[23] = "Aragon TV";
chn[24] = "TVA InfoCanal";
chn[25] = "TVA";
chn[26] = "TVA Canalimagen";
chn[27] = "Telemundo";
chn[28] = "Andorra TV";
chn[29] = "Teletrebol";
chn[30] = "";
chn[31] = "";
chn[32] = "A3 Noticias 24h";
chn[33] = "";
chn[34] = "Torrevieja TV";
chn[35] = "RTVV";
chn[36] = "";
chn[37] = "Barcelona TV";
chn[38] = "Canal Parlamento";
chn[39] = "Canal GV";
chn[40] = "IB3 TV";
chn[41] = "VEO TV";
chn[42] = "ETB Sat";

chn[101] = "Canal 3/24";
chn[102] = "TV 3";
chn[103] = "Popular TV";

chn[201] = "Aullidos TV";
chn[202] = "CRN noticias";
chn[203] = "Canal Fix";
chn[204] = "LD TV";

var chs = [];
chs[0] = "mms://antena3livewm.fplive.net/antena3wmlive-live/canal24h";
chs[1] = "http://streaming.wdreams.com/localiatv";
chs[2] = "http://www.tvgirona.tv/directe.asx";
chs[3] = "mms://win.1.c3.audiovideoweb.com/1c3winlive6808";
chs[4] = "mms://streamtn.uigc.net/TN";
chs[5] = "http://195.10.10.209/cope/populartv";
chs[6] = "http://live2.telemadrid.stream.flumotion.com/telemadrid/live2.asf.asx";
chs[7] = "mms://88.87.218.43/teletaxitv";
chs[8] = "mms://212.163.215.206/Directo/";
chs[9] = "mms://video.ono.com/telecorazon?WMBitrate=512000";
chs[10] = "http://mfile.akamai.com/19048/live/reflector:42503.asx?bkup=42504";
chs[11] = "mms://www.tvconciertos.com/reggeton";
chs[12] = "mms://antena3livewm.fplive.net/antena3wmlive-live/canalinternacional";
chs[13] = "mms://91.121.209.14:8081/interalmeria";
chs[14] = "mms://89.29.128.6:7009";
chs[15] = "mms://212.34.155.198/lepevision";
chs[16] = "mms://cache2.gva.es/tvvi?rtvv";
chs[17] = "mms://www.intereconomia.com/INTERECONOMIA-TV";
chs[18] = "mms://video.ono.com/tvcyl_tvl";
chs[19] = "mms://i2catvserver.i2cat.net/tvc_inter";
chs[20] = "mms://66.225.235.202/va92winlive2314";
chs[21] = "http://www.mytvonline.org/files/3-24-esp.asx";
chs[22] = "mms://verdi.serveisweb.com/ME088";
chs[23] = "http://live1.interoutemediaservices.com/?id=87286583-3b70-4a8a-92df-66110398e814";
chs[24] = "mms://89.29.128.6:7007";
chs[25] = "http://89.29.128.6:7009";
chs[26] = "http://89.29.128.6:7008";
chs[27] = "mms://public.wmv.mobitv.com/wm1504-320";
chs[28] = "mms://194.158.91.91/Atv";
chs[29] = "http://streaming.alisys.net/rsa_tv";
chs[30] = "mms://a1808.l1571639807.c15716.e.lm.akamaistream.net/D/1808/15716/v0001/reflector:39807";
chs[31] = "mms://antena3livewm.fplive.net/antena3wmlive-live/preguntasweb";
chs[32] = "mms://antena3livewm.fplive.net/antena3wmlive-live/canal24h";
chs[33] = "";
chs[34] = "mms://84.20.4.142/torreviejatv";
chs[35] = "http://www.rtvv.es/directe/flumotion_Flashplayer.swf?fluURL=http://rtvv.stream.flumotion.com/rtvv/canal9.flv.m3u";
chs[36] = "http://mfile.akamai.com/8813/live/reflector:44188.asx?bkup=44522";
chs[37] = "http://barcelonatv.stream.flumotion.com/barcelonatv/barcelonatv.asf.asx";
chs[38] = "mms://stream2.terra.es/wm2live1";
chs[39] = "http://www.canalgv.com/canalgv/resources/asx_enlaces_externos/rtvv_tvvi.asx";
chs[40] = "mms://streamingtv01.ib3.es/ib3tv_en_directe";
chs[41] = "mms://reflector.marca.com:9003";
chs[42] = "http://mfile.akamai.com/8813/live/reflector:20216.asx?bkup=46398&prop=e";
chs[43] = "http://ikunamedia-esmadrid700.wm.llnwd.net/ikunamedia_ESMadrid700";

chs[101] = "http://wwitv.com/tv_channels/player14.swf?file=rtmp://324.directe-f4v.emissio.tvcatalunya.cat:1935/live/&id=324_FLV@13068&autostart=true";
chs[102] = "http://wwitv.com/tv_channels/player14.swf?file=rtmp://tv3.directe-f4v.emissio.tvcatalunya.cat:1935/live/&id=TV3_FLV@12888&autostart=true";
chs[103] = "http://populartv.net/playernuevo/populartv-video.swf?fluURL=http://populartv.cope.stream.flumotion.com/cope/populartv.flv.m3u";

chs[201] = "aullidos";
chs[202] = "CRN_noticias";
chs[203] = "fix";
chs[204] = "libertaddigital";

var chw = [];
chw[0] = "http://www.antena3tv.es";
chw[1] = "http://www.radiohuesca.com/";
chw[2] = "http://www.tvgirona.tv";
chw[3] = "http://www.tvmas-palomas.com/tvmas.html";
chw[4] = "http://www.tn.com.ar/";
chw[5] = "http://www.populartv.net/";
chw[6] = "http://www.laotra.es/";
chw[7] = "http://www.teletaxitv.com/home.html";
chw[8] = "http://www.velevisa.com/";
chw[9] = "http://www.telecorazon.com/";
chw[10] = "http://www.telemadrid.es/home.pag";
chw[11] = "http://www.tvconciertos.com/";
chw[12] = "http://www.antena3tv.es";
chw[13] = "http://www.interalmeria.tv/";
chw[14] = "http://www.solmusica.com";
chw[15] = "http://www.lepevision.com/";
chw[16] = "http://www.tvvi.es/";
chw[17] = "http://www.intereconomia.com/";
chw[18] = "http://www.tvcyl.es/";
chw[19] = "http://www.tv3.cat/";
chw[20] = "http://www.kisstelevision.es/";
chw[21] = "http://www.tv3.cat";
chw[22] = "http://www.mirametv.com/";
chw[23] = "http://www.cartv.es/";
chw[24] = "http://www.tvalmansa.es/";
chw[25] = "http://www.tvazteca.com.mx/programacion/7.shtml";
chw[26] = "http://www.azteca13.com/";
chw[27] = "http://msnlatino.telemundo.com/";
chw[28] = "http://www.rtvasa.ad/";
chw[29] = "http://www.teletrebol.com/";
chw[30] = "http://www.cnnplus.com/";
chw[31] = "http://www.antena3.es/";
chw[32] = "http://www.antena3tv.es";
chw[33] = "http://www.radiotelevisionestepona.com/";
chw[34] = "http://www.torreviejanet.com/";
chw[35] = "http://www.cnnplus.com/";
chw[36] = "http://www.eitb.com/television/canal-vasco/programacion/";
chw[37] = "http://www.barcelonatv.com/";
chw[38] = "http://www.congreso.es/";
chw[39] = "http://www.canalgv.com/";
chw[40] = "http://www.ib3.es/";
chw[41] = "http://www.veo.es/";
chw[42] = "http://www.eitb.com/";

chw[101] = "http://www.tv3.cat/ptv3/tv3EnDirecte.jsp?canal=324";
chw[102] = "http://www.tv3.cat/ptv3/tv3EnDirecte.jsp?canal=TV3";
chw[103] = "http://www.tv3.cat/ptv3/tv3EnDirecte.jsp?canal=TV3";

chw[201] = "http://www.livestream.com/aullidos";
chw[202] = "http://www.livestream.com/CRN_noticias";
chw[203] = "http://www.livestream.com/fix";
chw[204] = "http://www.livestream.com/libertaddigital";