var fsList; var fsSchedList; var fsSched; var color_bg = "#fc5"; var color_sched_head = "color:white"; var color_sched_font = "color:black"; var color_progress1 = ""; var color_progress2 = ""; function setOSDscale() { fsList = "34px"; //1080 = 34, 720 = 23, 576 = 18 fsSchedList = "34px"; //1080 = 34, 720 = 23, 576 = 18 fsSched = "49px"; //1080 = 49, 720 = 33, 576 = 26 } function GuideView_start() { NowNext = 0; videoplane.style.width = "44%"; videoplane.style.height = "42%"; videoplane.style.left = "53%"; videoplane.style.top = "52%"; isFullscreen = 0; ClearScreen(); channellist.style.opacity = 1; colorkeys.innerHTML = "
" + " "
				+  NN[3 + (1 - NowNext)] + "  " 
				+ NN[1 - NowNext] + "  " + NN[2] + "  " 
				+ NN[5] + " 
"; colorkeys.style.opacity = 1; showChannelList(); if(!SwitchGuide) { preChan = currChan; preGrp = ChanGroup; } } function GuideView_end() { isSchedule = 0; schedule.style.opacity = 0; isFullscreen = 1; FullScreen(); if(!SwitchGuide) { currChan = preChan; ChanGroup = preGrp; } } function GetSchedule(schchan,tablelength){ //Old style Schedule, used in Guide View. SI = ""; try { StreamInfo(schchan); eitService = toi.statics.ToiDvbEitCacheServiceItem.create(SI[1],SI[2],SI[3]); eitCache.addService(eitService); event = eitCache.getPresentEvent(eitService); events = eitCache.getEvents(eitService, (Math.round(new Date().getTime()/1000.0)), 2000000000); if (event.name) { if (events.more) { var t = eitCache.getEvents(eitService, (Math.round(new Date().getTime()/1000.0)), 2000000000); events.infoSequence.concat(t.infoSequence); events.more = t.more; } var txt = ""; var i = 0; for (i = 0; i < events.infoSequence.length && i < tablelength; i++) { while ((i > 0) && (events.infoSequence[i].eventId == events.infoSequence[(i-1)].eventId)) { i = i + 1; } tijd = events.infoSequence[i].time; date = new Date(tijd*1000); tijd = date.toUTCString(); tijd = new Date(tijd); var tm = tijd.getMinutes(); var th = tijd.getHours(); th=addzero(th); tm=addzero(tm); txt = txt + ""; } txt = txt + "
\uE003\uE003\uE003\uE003\uE003" + th + ":" + tm + " (" + (events.infoSequence[i].duration/60).toFixed(0) + ") " + Left(events.infoSequence[i].name,30) + "
"; schedule.innerHTML = "

" + "\uE003" + schchan + "\uE003" + channelsnames[schchan] + txt + "

"; } else { schedule.innerHTML = "

" + "\uE003" + schchan + "\uE003" + channelsnames[schchan] + "

"; } } catch(e) { alert("Get EPG problem: " + e); schedule.innerHTML = "

" + "\uE003" + schchan + "\uE003" + channelsnames[schchan] + "

" + Lang[6] + "

"; } } // Channelslist / EPG Guide // // show currchan - 5 // highlite currchan // show currchan + 5 // // check if chan is OK // function showChannelList() { var liststyle = ""; var htmlstring = ""; listChan = currChan-5; for(var i=currChan-5; i<=currChan+5; i++) { do { listChan += 1; if (listChanmaxChan[ChanGroup]) { listChan=minChan[ChanGroup]; } } while (!channels[listChan] && (listChan\uE003\uE003" + listChan + "\uE003"; } htmlstring = htmlstring + "
" + Left(channelsnames[listChan],15) + "\uE003" + Left(EpgInfo[NowNext],64) + "
"; channellist.innerHTML = htmlstring; chanlistepg.innerHTML = "

" + EPG[NowNext][1][currChan] + "

" + Left(EPG[NowNext][4][currChan],250) + "

" ; } // END of Channelslist / EPG Guide