var epg={};
if(getURLParam("anytime")!==null&&getURLParam("anytime")==1){location.href="/saotv/saotv.html"
}function getProxyRoot(){return"/tvlistings-proxy/TVListingsProxy"
}epg.config={siteId:1,cookieSuffix:"",hitbox_root:"/epg/mysky",hitbox_root2:"_epg_mysky",general:{default_view:0,enable_grid:true,enable_grid_detailed:true,enable_list:true,enable_saotv:true,enable_login:true,enable_favourites:true,enable_search:true,enable_search_upsell:true,enable_filter_bar:true,enable_filters:true,enable_survey:true,enableChannelPrefs:true,timeOfDay_format:[{hour:0,text:"12am+",duration:480},{hour:8,text:"8am+",duration:240},{hour:12,text:"12pm+",duration:180},{hour:15,text:"3pm+",duration:180},{hour:18,text:"6pm+",duration:240},{hour:22,text:"10pm+",duration:120}],enable_remote_record:true,enable_watch_now:false,enable_remind_me:true,enable_send_to_friend:true,enable_rating:true,enable_promos:true,enable_colour_icons_by_default:false,infoPane_position:0,infoPane_trigger:0,infoPane_textarea:'<div id="epg_info_text"><strong><span class="title"></span>, <span class="start"></span>, <span class="duration"></span></strong><span class="desc"></span></div>',infoPane_branding_enabled:true,animation_frameRate:25,modalOffset:{top:0,left:0}},auth:{loginHeader:"Welcome to Sky TV listings! Just log in and start to make Sky TV listings your own. And remember, you don't need to be a Sky customer.",loginCopy:"If you are a Sky customer, you can personalise your TV listings view to show only the channels included in your Sky package. If you have registered for Remote Record you can do that here too! Just log in to get started.",enableChannelSetup:true},toolbar:{enable_dates:true,enable_now:true,enable_time_of_day:true,enable_provider:true,nowPos:"right"},grid:{enable_channel_categories:true,enable_detailed_grid_channel_titles:true,gridWithBubbleOffsetX:-240,gridWithBubbleOffsetY:-10,enable_genre_labels:true,showFullTimeBarTime:false,paddingBottom:237,timelineInsideGrid:true,enableNextDayOverlay:true,enableChannelClick:false,watchliveHtml:"",extendedGridWatchliveHtml:""},bubble:{enable_bubble:true,enable_other_airings:true,enable_editors_choice:true,enable_related_programs:true,enable_tags:true,closeButton:true,bubbleTitle:true,html:'<div id="epg_bubble"><div id="epg_bubble_BG"></div><div id="epg_bubble_inner"></div></div>',iBubbleXOffset:-230,iBubbleYOffset:-35,iInverseBubbleYOffset:30,iMinBubbleY:0,requiresRequest:true,programInfoTarget:"bubble",programDescriptionTarget:"bubble",remoteRecordTarget:"bubble",watchNowTarget:"bubble",remindMeTarget:"bubble",sendToFriendTarget:"bubble",packageInfoTarget:"bubble",techDetailsTarget:"bubble",editorsChoiceTarget:"bubble",ratingTarget:"bubble",relatedProgramsTarget:"bubble",otherAiringsTarget:"bubble",relatedTagsTarget:"bubble",clearingDiv:true,watchliveHtml:"",vodHtml:""},urlRegister:"/portal/site/skycom/mysky/register",urlForgottenPassword:"/portal/site/skycom/mysky/register",urlForgottenUsername:"/portal/site/skycom/mysky/register",urlRemoteRecordCheckBoxSetup:"/portal/site/skycom/mysky/remoterecord",urlFindOutAboutGettingSky:"/portal/site/skycom/skyproducts/getsky",urlFindOutAboutRemoteRecord:"/portal/site/skycom/mysky/remoterecord",urlFindOutAboutGettingSkyPlus:"/portal/site/skycom/skyproducts/getsky",urlActivateRemoteRecord:"/portal/site/skycom/mysky/remoterecord",urlRemoteRecordUpgradeAccount:"/portal/site/skycom/mysky/profile?formaction=mpViewProfileAccount",urlTermAndConditions:"/portal/site/skycom/terms",urlMySkyProfile:"https://mysky.sky.com/portal/site/skycom/mysky/manageprofile/edit?formaction=mpViewUserProfile",urlWatchNow:"#",trace:{traceAll:false,traceCurrentTime:false,traceGrid:false,traceBubble:false,traceInitVars:false,traceList:false,traceAuth:false,traceSearch:false,traceUi:false,traceData:false,traceFiltering:false,traceViews:false},ajaxTimeout:20000,ajaxTimeoutRetryLimit:2,folderPrefix:getProxyRoot()+"/",fileInit:getProxyRoot()+"/init.json",fileInitUser:getProxyRoot()+"/initUser.json",fileGrid:getProxyRoot()+"/tvlistings.json",fileProgram:getProxyRoot()+"/programmeDetails.json",fileProgramUser:getProxyRoot()+"/programmeDetailsUser.json",fileSearch:getProxyRoot()+"/freeTextSearch.json",fileSuggestion:getProxyRoot()+"/suggestions.json",fileFilterGenres:getProxyRoot()+"/categories.json",fileFilterChannels:getProxyRoot()+"/filter.json",fileUserLogin:getProxyRoot()+"/login.do",fileUserLogOut:getProxyRoot()+"/logout.do",fileRemoteRecord:getProxyRoot()+"/remoteRecord.json",fileChannelPrefs:getProxyRoot()+"/packageAndRegionList.json",fileUserPackage:getProxyRoot()+"/userProductAndRegion.json",filePublicKey:getProxyRoot()+"/getPublicKey.json",ajaxReminderDetails:getProxyRoot()+"/reminderDetails.json",ajaxReminderSave:getProxyRoot()+"/reminderSave.json",ajaxReminderDelete:getProxyRoot()+"/reminderDelete.json",ajaxEmailToFriend:getProxyRoot()+"/emailToFriend.json",ajaxEmailToFriendDetails:getProxyRoot()+"/emailToFriendDetails.json",ajaxGetTime:getProxyRoot()+"/getTime.json",sRPCMethod:"post",eEPG:"skyEPG",eToolbar:"epg_header",eGrid:"epg_grid",eSchedule:"gridSchedule",eWrapper:"gridWrapper",eChannels:"epg_key",eFavourite:"gridFavourite",eProgramme:"gridProgramme",ePromo:"gridPromo",eTimeline:"epg_timeline",eList:"epg_list",eListBar:"listViewBar",eListBarSortOptions:"epg_ListViewChoice",eListBarSortChannel:"epg_listChannel",eListBarSortTime:"epg_listTime",eListBarFilterWrapper:"epg_list_filters",eListMain:"epg_listViewArea",eListScroller:"epg_listViewScroller",eSearch:"epg_search",eSearchPane:"epg_searchPane",eFilterCloud:"epg_filterCloud",eInfoPane:"epg_info",eLoader:"epg_loading",eShowInfo:"epg_info_text",eBrand:"epg_branding",eAlert:"epg_alert_pane",eModalDialogue:"epg_modalDialogue",eModalOverlay:"epg_modalOverlay",eModalPane:"epg_modalPane",eInfoDrag:"epg_info_drag",eInfoCloseDrag:"epg_close_info_drag",sExtendedGridCSS:"epg_extendedGrid",sGridCSS:"epg_grid",sExtendedGridChannelsCSS:"epg_keyExtended",sGridChannelsCSS:"epg_key",iMaxChannels:9,iFirstRequestChannels:13,iMaxChannelsLists:5,iChannelWidth:6000,iGridHeight:30,iExtendedHeight:100,iBannerHeight:90,iExtendedBannerHeight:180,sFaveHTML:"Click ( &#160; &#160; ) to add favourite",iTabHeight:30,iMaxTimeShows:25,extendedGrid:"epg_extendedGrid",p_dontmiss:"epg_dontmiss",p_offair:"epg_offair",listHiddenBubble:"epg_hidden_bubble",listBubbleRow:"epg_bubbleRow",listCollapse:"epg_expand_hide",listExpand:"epg_expand_show",api:{view:{enabled:{grid:true,detailed:true,list:true}},toolbar:{dates:{initial:0,days:7,enabled:true},time_of_day:{initial:0,enabled:true},provider:{initial:0,enabled:true}},authentication:{enabled:true},channels:{categories:{enabled:true}},favourites:{enabled:true},providers:{enabled:true,initial:0,default_packages:null},promos:{enabled:true},search:{enabled:true,upsell_message:{enabled:true,link:false}},filters:{enabled:true,initial:null,editable:false,quickbrowse:{enabled:true},special:true},list:{sort_type:{initial:0,enabled:{channel:true,time:true}},dropdowns:{enabled:{genre:true,channel:true}}},bubble:{enabled:true,editors_choice:{enabled:true},other_airings:{enabled:true},related_programs:{enabled:true},tags:{enabled:true}},remote_record:{enabled:true},other:{branding:{enabled:true}}},init:function(){},constants:{editableIMGurl:"images",skyIMGurl:"images/sky",colourLogoPath:"http://www1.sky.com/epglogos/colour",monoLogoPath:"http://www1.sky.com/epglogos/mono",favouritesHeader:"Favourites",channelHeaderLength:16,uid:null,gridTimeOffset:0,duration:24,maxChannels:5,em_minute:0.2,em_minuteextendedGrid:null,firstTime:-1,lastTime:+8,maxDays:8,channelHeight:3,channelKeyId:"epg_channels",charsPer15mins:6.75,charsPer15minsextendedGrid:12,charsPerMin:10,isClickDelay:750,infobarDescLength:45,ultraMiniProg:3*60,miniProg:5*60,smallProg:10*60,listViewBarId:"listViewBar",listwrapperId:"epg_listViewArea",loadingImageId:"epg_loading_img",loadingImage:null}};
epg.config.deepLinking={bDeepLinkCheckedOnPageLoad:false,bReminderActionComplete:false,bShareActionComplete:false,checkDeepLink:function(C){if(C&&epg.config.deepLinking.bDeepLinkCheckedOnPageLoad){return false
}epg.config.deepLinking.bDeepLinkCheckedOnPageLoad=true;
var D=getURLParam("channelId");
var E=getURLParam("eventId");
var F=getURLParam("epgSearchQuery");
var A=getURLParam("epgMethod");
var B=getURLParam("watchnowurl");
if(B!==null&&B!=""){urlWatchNow=B
}if(E&&D&&(A=="event"||A===null)){epg.data._showid=E;
epg.data._channelid=D;
return[E,D]
}else{if(F&&A=="search"){epg.search.ajaxSearch(F,false)
}else{if(F&&A=="searchExact"){epg.search.ajaxSearch(F,true)
}else{if(D&&A=="findChannel"){epg.grid.gotoChannel(D)
}}}}return false
},getProgramStartTime:function(D){var B=D.program.eventid;
var A=D.program.channelid;
var C=D.program.start;
epg.views.gotoEvent(B,A,C,true)
}};
function trace(C,B,A){if(navigator.appName!="Netscape"){return 
}if(epg.config.trace[C]===undefined||(!epg.config.trace[C]&&!epg.config.trace.traceAll)){return 
}var D=C+": "+B;
if(A&&A.callee!==undefined){for(var E=0;
E<A.length;
E++){D+=", "+A[E]
}console.log(D)
}else{if(A&&typeof A=="object"){console.log(D);
console.dir(A)
}else{if(A){console.log(D+", "+A)
}else{console.log(D)
}}}}function traceCurrentTime(A){trace("traceCurrentTime",A,epg.date.currentTime.toString())
}function traceGrid(A,B){trace("traceGrid",A,B)
}function traceBubble(A,B){trace("traceBubble",A,B)
}function traceInitVars(A,B){trace("traceInitVars",A,B)
}function traceList(A,B){trace("traceList",A,B)
}function traceAuth(A,B){trace("traceAuth",A,B)
}function traceSearch(A,B){trace("traceSearch",A,B)
}function traceUi(A,B){trace("traceUi",A,B)
}function traceData(A,B){trace("traceData",A,B)
}function traceFiltering(A,B){trace("traceFiltering",A,B)
}function traceViews(A,B){trace("traceViews",A,B)
}function getURLParam(F){var E=null;
var D=window.location.href;
if(D.indexOf("?")>-1){var B=D.substr(D.indexOf("?"));
var G=B.split("&");
for(var A=0,C=G.length;
A<C;
A++){if(G[A].indexOf(F+"=")>-1){var H=G[A].split("=");
E=H[1];
break
}}}return E
};