if(typeof (Archospipe)=="undefined"){
try{
eval("function Archospipe(){}Archospipe.prototype={productKey:\"NMNUTHAP8SL8PY\",error:0,connect:function(p0){},send_code:function(p0){},send_string:function(p0,p1){},get_string:function(p0){return(p0==\"2\")?this.productKey:\"\";},get_bool:function(p0){return true;},get_number:function(p0){return 0;},free_memory:function(){}}");
}
catch(e){
}
}
var ap=new Archospipe();
function archospipe_connect(id){
ap.connect(id);
return ap.error;
}
function archospipe_send_dxml(_271){
ap.send_string("1",_271);
ap.free_memory();
return ap.error;
}
function archospipe_download_view(){
ap.send_code("2");
ap.free_memory();
return ap.error;
}
function archospipe_itemlist_view(_272){
ap.send_string("3",_272);
ap.free_memory();
return ap.error;
}
function archospipe_web_automatic_navigation(_273){
ap.send_string("4",_273);
ap.free_memory();
return ap.error;
}
function archospipe_set_current_partner(id){
ap.send_string("5",id);
ap.free_memory();
return ap.error;
}
function archospipe_set_as_preferred_store(){
ap.send_code("6");
ap.free_memory();
return ap.error;
}
function archospipe_preview(_275,url){
ap.send_string("7",_275,url);
ap.free_memory();
return ap.error;
}
function archospipe_firmware_auto_update(){
ap.send_string("8");
ap.free_memory();
return ap.error;
}
function archospipe_send_email_data(_277){
ap.send_string("9",_277);
ap.free_memory();
return ap.error;
}
function archospipe_registration_done(_278){
ap.send_string("10",_278);
ap.free_memory();
return ap.error;
}
function archospipe_epgconfig_done(_279){
ap.send_string("11",_279);
ap.free_memory();
return ap.error;
}
function archospipe_send_msisdn(_27a){
ap.send_string("12",_27a);
ap.free_memory();
return ap.error;
}
function archospipe_close_browser(){
ap.send_string("13");
ap.free_memory();
return ap.error;
}
function archospipe_get_productname(){
data_string=ap.get_string("1");
ap.free_memory();
if(ap.error){
return "";
}else{
return data_string;
}
}
function archospipe_get_productkey(){
data_string=ap.get_string("2");
ap.free_memory();
if(ap.error){
return "";
}else{
return data_string;
}
}
function archospipe_get_drm_clientinfo(){
data_string=ap.get_string("3");
ap.free_memory();
if(ap.error){
return "";
}else{
return data_string;
}
}
function archospipe_get_language(){
data_string=ap.get_string("6");
ap.free_memory();
if(ap.error){
return "";
}else{
return data_string;
}
}
function archospipe_get_country(){
data_string=ap.get_string("7");
ap.free_memory();
if(ap.error){
return "";
}else{
return data_string;
}
}
function archospipe_get_timezone(){
data_string=ap.get_string("8");
ap.free_memory();
if(ap.error){
return "";
}else{
return data_string;
}
}
function archospipe_get_list_of_items(_27b){
data_string=ap.get_string("9",_27b);
ap.free_memory();
if(ap.error){
return "";
}else{
return data_string;
}
}
function archospipe_get_item_properties(_27c){
data_string=ap.get_string("10",_27c);
ap.free_memory();
if(ap.error){
return "";
}else{
return data_string;
}
}
function archospipe_get_battery_level(){
data_value=ap.get_number("11");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_value;
}
}
function archospipe_get_plugin_webbrowser_state(){
data_bool=ap.get_bool("12");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_bool;
}
}
function archospipe_get_plugin_web_state(){
data_bool=ap.get_bool("12");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_bool;
}
}
function archospipe_get_plugin_widgets_state(){
data_bool=ap.get_bool("13");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_bool;
}
}
function archospipe_get_plugin_cinema_state(){
data_bool=ap.get_bool("4");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_bool;
}
}
function archospipe_get_plugin_videopodcast_state(){
data_bool=ap.get_bool("5");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_bool;
}
}
function archospipe_get_plugin_hidefvideo_state(){
data_bool=ap.get_bool("14");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_bool;
}
}
function archospipe_get_plugin_realvideo_state(){
data_bool=ap.get_bool("15");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_bool;
}
}
function archospipe_get_plugin_alpha_state(){
data_bool=ap.get_bool("16");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_bool;
}
}
function archospipe_get_plugin_webtvradio_state(){
data_bool=ap.get_bool("25");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_bool;
}
}
function archospipe_get_acpgroup(){
data_value=ap.get_number("17");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_value;
}
}
function archospipe_get_power_supply_state(){
data_bool=ap.get_bool("18");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_bool;
}
}
function archospipe_get_free_space(){
data_value=ap.get_number("19");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_value;
}
}
function archospipe_get_swversion(){
data_string=ap.get_string("20");
ap.free_memory();
if(ap.error){
return "1.5.99";
}else{
return data_string;
}
}
function archospipe_is_tv_mode(){
data_bool=ap.get_bool("21");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_bool;
}
}
function archospipe_is_parental_control_disabled(){
data_bool=ap.get_bool("22");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_bool;
}
}
function archospipe_get_bearer(){
data_value=ap.get_number("23");
ap.free_memory();
if(ap.error){
return 0;
}else{
return data_value;
}
}
function archospipe_get_list_of_downloads(_27d){
data_string=ap.get_string("24",_27d);
ap.free_memory();
if(ap.error){
return "";
}else{
return data_string;
}
}
function Lang(){
this.MESSAGE_ADD_TO_FAVORITES="AJOUTER A MES FAVORIS";
this.MESSAGE_REMOVE_FROM_FAVORITES="RETIRER DES FAVORIS";
this.MESSAGE_SEE="VOIR";
this.MESSAGE_RENT="LOUER";
this.MESSAGE_BUY="ACHETER";
this.MESSAGE_VF_LABEL="VF";
this.MESSAGE_VO_LABEL="VO";
this.MESSAGE_VOST_LABEL="VOST Fran\xe7ais";
this.MESSAGE_BUY_ILLIMITED="Illimit\xe9";
this.MESSAGE_RENT_LIMITED="Location de";
this.MESSAGE_RESULT="r\xe9sultat";
this.MESSAGE_RESULTS="r\xe9sultats";
this.MESSAGE_FREE="Gratuit";
this.MESSAGE_TTC="TTC";
this.MESSAGE_LENGTH="Dur\xe9e";
this.MESSAGE_PRICE="Tarif";
this.MESSAGE_TITLE="Titre";
this.MESSAGE_FROM="De";
this.MESSAGE_WITH="Avec";
this.MESSAGE_YEAR="Ann\xe9e";
this.MESSAGE_STUDIO="Studio";
this.MESSAGE_ORIGINE="Orig.";
this.MESSAGE_VERSION="Version";
this.MESSAGE_FORMAT="Format";
this.MESSAGE_EXPIRE="Expir\xe9";
this.MESSAGE_PROD="Prod.";
this.MESSAGE_EMPTY_LIST="Cette liste est vide";
this.MESSAGE_ORDER_LABEL_AZ="Tri A \xe0 Z";
this.MESSAGE_ORDER_LABEL_SELL="Top VENTES";
this.MESSAGE_ORDER_LABEL_DATE="Tri DATES";
this.MESSAGE_CENSURE_10="Interdit aux moins de 10 ans";
this.MESSAGE_CENSURE_12="Interdit aux moins de 12 ans";
this.MESSAGE_CENSURE_16="Interdit aux moins de 16 ans";
this.MESSAGE_CENSURE_18="Interdit aux moins de 18 ans";
this.MESSAGE_ERROR1="Votre achat ne peut \xeatre r\xe9alis\xe9 pour l'instant, veuillez r\xe9essayer ult\xe9rieurement.<br>"+"Veuillez nous excuser de la g\xeane occasionn\xe9e";
this.MESSAGE_ERROR2="Une erreur s'est produite. Veuillez r\xe9essayer ult\xe9rieurement.<br>"+"Veuillez nous excuser de la g\xeane occasionn\xe9e";
this.MESSAGE_ERROR3="Une erreur s'est produite. Veuillez contacter votre service client.<br>"+"Veuillez nous excuser de la g\xeane occasionn\xe9e";
this.MESSAGE_ERROR_GO_BACK="<br><br>Appuyer sur OK pour revenir \xe0 l'\xe9cran pr\xe9c\xe9dent.";
this.MESSAGE_HOME_SEARCH_TITLE="PAR TITRE DE FILM";
this.MESSAGE_HOME_SEARCH_PERSON="PAR ACTEUR OU REALISATEUR";
this.MESSAGE_HOME_SEARCH_BACK="REVENIR A L'ECRAN PRECEDENT";
this.MESSAGE_SEARCH_LOADING="Recherche en cours...";
this.MESSAGE_SEARCH_NOT_ENOUGH_CHAR="Saisissez au minimum 3 caract\xe8res";
this.MESSAGE_SEARCH_NO_SEARCH="Aucune recherche en cours";
this.MESSAGE_SEARCH_NO_RESULT="Aucun r\xe9sultat trouv\xe9";
this.MESSAGE_SEARCH_TYPE_3CHAR="Saisissez 3 caract\xe8res<br />au minimum pour<br>lancer la recherche";
this.MESSAGE_LIST_FAVORITES1="Pour ajouter vos films pr\xe9f\xe9r\xe9s \xe0 cette liste, il suffit de s\xe9lectionner le bouton";
this.MESSAGE_LIST_FAVORITES2="disponible depuis les fiches film.<br />(Hors films ADULTE)";
this.MESSAGE_HEADER_LABEL_ADDED="Ajout\xe9 le";
this.MESSAGE_HEADER_LABEL_PAGE="Page";
this.MESSAGE_HEADER_LABEL_EPISODES="Episodes";
this.MESSAGE_TITLE_CHOOSE_HD="CHOIX DE QUALITE";
this.MESSAGE_TITLE_CONFIRMATION="CONFIRMATION DE COMMANDE";
this.MESSAGE_TITLE_ADULT="ESPACE CONTENUS ADULTES PROTEGES";
this.MESSAGE_TITLE_SEARCH="RECHERCHE";
this.MESSAGE_VALIDATION_I_AGREE="J'ACCEPTE";
this.MESSAGE_VALIDATION_I_CANCEL="ANNULER";
this.MESSAGE_VALIDATION_INFO1="Vous venez de s&eacute;lectionner la location du film :";
this.MESSAGE_VALIDATION_INFO2="Merci de valider votre achat.";
this.MESSAGE_VALIDATION_STEP1="VALIDATION D'ACHAT<br />&nbsp;&nbsp;&nbsp;ETAPE 1/2";
this.MESSAGE_VALIDATION_STEP2="VALIDATION D'ACHAT<br />&nbsp;&nbsp;&nbsp;ETAPE 2/2";
this.MESSAGE_PROMOCODE_QUIT="Si vous d\xe9sirez sortir de cette \xe9tape, appuyez sur <b>RETOUR</b>&nbsp;<img src='/image/footer_menu_button_red.gif' align='absmiddle'>";
this.MESSAGE_CONFIRMATION_INFO1="<span class='titre'>Merci !</span><br /><br />Votre film va d&eacute;marrer AUTOMATIQUEMENT dans quelques instants.<br /><br /><br />Pour le visionner plus tard,<br />acc&eacute;dez &agrave; votre film depuis la section &quot;MON COMPTE&quot;";
this.MESSAGE_CONFIRMATION_INFO2="Pour tout probl&egrave;me technique ou besoin d'aide,<br />contactez nos conseillers 7j/7 - 24h/24 (0,12 &euro; TTC /min.)<br />au <span class='orange'>32 34</span>";
this.MESSAGE_CHOOSE_HD_INFO1="Quelle qualit\xe9 souhaitez-vous pour cette vid\xe9o ?";
this.MESSAGE_CHOOSE_HD_INFO2="* : Nos vid\xe9os HAUTE DEFINITION sont de type <b class='label'>FULL HD 1080 (1920x1080 pixels)</b> qui"+"est l'une des meilleures qualit\xe9s de diffusion du march\xe9.<br />"+"Afin d'en profiter pleinement, veillez \xe0 poss\xe9der un \xe9cran compatible.";
this.MESSAGE_SYNOPSIS_UNAVAILABLE="Resum\xe9 indisponible";
}
Object.prototype.inherits=function(_1){
for(var _2 in _1){
if(!this[_2]){
this[_2]=_1[_2];
}
}
for(var _2 in _1["prototype"]){
if(!this[_2]){
this[_2]=_1["prototype"][_2];
}
}
};
Function.prototype.bind=function(_3,_4){
var me=this;
return function(){
var _6=new Array();
if(!_4){
_4=new Array();
}
if(arguments){
for(var i=0;i<arguments.length;i++){
_6.push(arguments[i]);
}
}
return me.apply(_3,_6);
};
};
String.prototype.replaceAll=function(_8,_9){
var _a=this.indexOf(_8);
var _b=this;
while(_a!=-1){
_b=_b.substr(0,_a)+_9+_b.substr(_a+_8.length);
_a=_b.indexOf(_8);
}
return _b;
};
function ComponentFactorySingleton(){
}
ComponentFactorySingleton.prototype={create:function(_c){
var _d=new _c();
_d.prototype=_c.prototype;
if(App!=null&&App.remoteControl!=null){
_d.setInput(App.remoteControl);
}
return _d;
}};
function IDGeneratorSingleton(_e){
this.name=_e;
this.counter=0;
}
IDGeneratorSingleton.prototype={name:null,counter:null,getNewId:function(){
return "_"+this.name+"_"+this.counter++;
}};
function LoggerSingleton(_f){
this.level=_f;
}
LoggerSingleton.prototype={WARNING:2,DEBUG:1,NONE:3,level:null,warn:function(msg){
},debug:function(msg){
},initialize:function(){
}};
var HttpUtils={getCookie:function(_12){
if(document.cookie.length>0){
var _13=document.cookie.indexOf(_12+"=");
if(_13!=-1){
_13=_13+_12.length+1;
var end=document.cookie.indexOf(";",_13);
if(end==-1){
end=document.cookie.length;
}
return unescape(document.cookie.substring(_13,end));
}
}
return null;
},setCookie:function(_15,_16,_17){
var _18=new Date(new Date().getTime()+((_17+1)*(24*60*60*1000)));
document.cookie=_15+"="+escape(_16)+((_17==null)?"":";expires="+_18);
},removeCookie:function(_19){
HttpUtils.setCookie(_19,"",-1);
},getParameter:function(_1a){
var loc=window.location.search;
if(loc!=""){
var _1c=loc.substring(1);
var _1d=_1c.split("&");
for(var i=0;i<_1d.length;i++){
var _1f=_1d[i].split("=");
var _20=_1f[0];
var _21=_1f[1];
if(_20==_1a){
return _21;
}
}
}
return null;
},removeAllCookie:function(){
var _22=document.cookie.split(";");
for(var i=0;i<_22.length;i++){
var _24=_22[i].split("=");
if(_24[0]){
HttpUtils.removeCookie(_24[0]);
}
}
}};
var GlowriaUtils={formatPeopleData:function(_25,_26,sep,_28){
var _29=new String();
if(_25.length<_26){
_26=_25.length;
}
for(var i=0;i<_26;i++){
if(i>0){
_29+=sep;
}
if(_25[i].peoFirstName){
if(_28&&_25[i].peoName){
_29+=_25[i].peoFirstName.charAt(0)+".";
}else{
_29+=_25[i].peoFirstName;
}
if(_25[i].peoName){
_29+=" ";
}
}
if(_25[i].peoName){
_29+=_25[i].peoName;
}
}
return _29;
},formatPeopleDataArray:function(_2b){
var _2c=new Array();
var str=new String();
for(var i=0;i<_2b.length;i++){
str="";
if(_2b[i].peoFirstName){
str+=_2b[i].peoFirstName;
if(_2b[i].peoName){
str+=" ";
}
}
if(_2b[i].peoFirstName){
str+=_2b[i].peoName;
}
_2c[i]=str;
}
return _2c;
},formatSynopsis:function(_2f,_30){
if(!_2f){
return Lang.MESSAGE_SYNOPSIS_UNAVAILABLE;
}
if(_2f.length>_30){
_2f=_2f.substr(0,_30)+"...";
}
return _2f;
},formatTitle:function(_31,_32){
if(_31!=null&&_31.length>_32){
_31=_31.substr(0,_32)+"...";
}
return _31;
},formatLanguage:function(_33){
var _34;
if(_33.vtiVoFlag){
_34=Lang.MESSAGE_VO_LABEL;
}else{
if(_33.vtiStVfFlag){
_34=Lang.MESSAGE_VOST_LABEL;
}else{
_34=Lang.MESSAGE_VF_LABEL;
}
}
return _34;
},formatLocationLabel:function(_35,_36,_37){
var _38=null;
if(_36){
_38=_35.vtiCustomerCost+"&#8364;";
}else{
if(_35.licenseReattributed){
_38=Lang.MESSAGE_SEE;
}else{
if(_35.licenseTime){
_38=Lang.MESSAGE_SEE+" "+_35.licenseTime;
}else{
var _39=_35.vtiCustomerCost;
if(_37){
_39=_37;
}
_38=Lang.MESSAGE_RENT+" "+_35.vtiLicenceDuration+""+_35.vtiLicenceDurationUnit.toUpperCase()+" / "+_39+"&#8364;";
}
}
}
return _38;
},formatFavoriteLabel:function(_3a){
var _3b=null;
if(_3a.inFavorites){
_3b=Lang.MESSAGE_REMOVE_FROM_FAVORITES;
}else{
_3b=Lang.MESSAGE_ADD_TO_FAVORITES;
}
return _3b;
},formatStudio:function(_3c,_3d){
var _3e=_3c.editor.ediName;
if(_3e.length>15){
_3e=_3e.substr(0,_3d);
}
return _3e;
},formatVodLabel:function(_3f){
if(_3f.illimited){
return Lang.MESSAGE_BUY+"<br/>"+_3f.vtiCustomerCost+"&#8364;";
}else{
return Lang.MESSAGE_RENT+"<br/>"+_3f.vtiCustomerCost+"&#8364;/"+_3f.vtiLicenceDuration+_3f.vtiLicenceDurationUnit;
}
},formatVodLicenceLabel:function(_40){
if(_40.illimited){
return Lang.MESSAGE_BUY_ILLIMITED;
}else{
return Lang.MESSAGE_RENT_LIMITED+" "+_40.vtiLicenceDuration+_40.vtiLicenceDurationUnit;
}
},formatHD:function(_41){
var _42="";
if(_41.HD&&App.hdEnabled){
_42="<img src='/css/"+App.referer+"/image/hd.png' align='absmiddle' />&nbsp;";
}
return _42;
},formatHD2:function(_43){
var _44="";
if(_43.HD&&App.hdEnabled){
_44="<br><span class='HD'>Aussi disponible en <img src='/css/"+App.referer+"/image/hd.png' align='absmiddle' />&nbsp;</span>";
}
return _44;
},formatHD3:function(_45){
var _46="";
if(_45.HD&&App.hdEnabled){
_46="Disponible en <img src='/css/"+App.referer+"/image/hd.png' align='absmiddle' />&nbsp;";
}
return _46;
},formatCensure:function(_47){
var _48=new String();
switch(_47){
case Lang.MESSAGE_CENSURE_10:
_48="<img src='/css/"+App.referer+"/image/csa-10.png' />";
break;
case Lang.MESSAGE_CENSURE_12:
_48="<img src='/css/"+App.referer+"/image/csa-12.png' />";
break;
case Lang.MESSAGE_CENSURE_16:
_48="<img src='/css/"+App.referer+"/image/csa-16.png' />";
break;
case Lang.MESSAGE_CENSURE_18:
_48="<img src='/css/"+App.referer+"/image/csa-18.png' />";
break;
}
return _48;
},getImage:function(_49,_4a,_4b){
var _4c="@SERVER/img/fr_FR/@ADULT@SIZE/@IMAGE";
var _4d=new String();
var _4e=new String();
var _4f=null;
if(_49.titAdult){
_4d="adult_";
}
if(_4a!=""){
_4e=_4a;
if(_49.titPicture1=="generique.jpeg"){
_4f="generique.jpg";
}else{
if(parseInt(_4b)>0){
_4f=_49.titId+"_"+_49.vodItems[_4b].vtiOrder+".jpg";
}else{
_4f=_49.titId+".jpg";
}
}
}else{
if(_49.titPicture1=="generique.jpeg"){
_4f="generique_vod.jpg";
}else{
_4e="129x180/";
_4f=_49.titId+".jpg";
}
}
var _50=App.configuration.imageServer||"";
_4c=_4c.replace("@SERVER",_50);
_4c=_4c.replace("@ADULT",_4d);
_4c=_4c.replace("@SIZE",_4e);
_4c=_4c.replace("@IMAGE",_4f);
return _4c;
},getVodImagePath:function(_51){
var _52=_51.titAdult?"/img/upload_adult/":"/img/vodplayer/";
var _53=_51.vodItems[_51.currentVodItem];
_52+=(_51.isEpisode&&_53.imageSource)?_53.imageSource:_51.titId+".jpeg";
return _52;
},getFlashPromoMsg:function(_54,_55){
var msg=null;
if(_54.flashPromotionApplicable){
if(_54.serie){
msg="A partir de<br>"+_54.flashPromotionPrice+" &euro;";
}else{
msg=_54.flashPromotionPrice+"&euro;";
if(_55){
msg=msg+"<br>au lieu de "+_54.flashNormalPrice+"&euro;";
}
}
}
return msg;
}};
function Template(_57){
this.html=_57;
this.variables=[];
}
Template.prototype={html:null,variables:null,put:function(key,_59){
this.variables.push({"key":"#"+key+"#","value":_59});
},parse:function(){
var _5a=this.html;
for(var i=0;i<this.variables.length;i++){
var _5c=this.variables[i];
_5a=_5a.replaceAll(_5c.key,_5c.value);
}
return _5a;
}};
var DateUtils={addZero:function(_5d){
return ((_5d<10)?"0":"")+_5d;
},format:function(_5e,_5f){
var _60=this.addZero(_5e.getDate());
var _61=this.addZero(_5e.getMonth()+1);
var _62=this.addZero(_5e.getFullYear());
var _63=this.addZero(_5e.getFullYear().toString().substring(3,4));
var _64=(_5f.indexOf("yyyy")>-1?_62:_63);
var _65=this.addZero(_5e.getHours());
var _66=this.addZero(_5e.getMinutes());
var _67=this.addZero(_5e.getSeconds());
var _68=_5f.replace(/dd/g,_60).replace(/MM/g,_61).replace(/y{1,4}/g,_64);
_68=_68.replace(/hh/g,_65).replace(/mm/g,_66).replace(/ss/g,_67);
return _68;
},duration:function(_69){
var _6a={w:Math.floor(_69/86400/7),d:Math.floor(_69/86400%7),h:Math.floor(_69/3600%24),m:Math.floor(_69/60%60),s:Math.floor(_69%60)};
return this.addZero(_6a.h)+":"+this.addZero(_6a.m)+":"+this.addZero(_6a.s);
}};
function registerEventListener(obj,_6c,_6d){
if(obj.addEventListener){
obj.addEventListener(_6d,_6c,false);
}else{
if(obj.attachEvent){
obj.attachEvent("on"+_6d,_6c);
}else{
if(obj[_6d]){
var _6e=obj[_6d];
obj.onfocus=function(e){
_6e(e);
_6c(e);
};
}else{
obj[_6d]=_6c;
}
}
}
}
function focusElement(_70){
var obj=document.getElementById(_70);
if(obj){
obj.focus();
}
}
function blurElement(_72){
var obj=document.getElementById(_72);
if(obj){
obj.blur();
}
}
function Device(_74){
this.id=_74;
this.buffer=new String();
this.initialize();
}
Device.prototype={id:null,internal:null,buffer:null,initialize:function(){
},write:function(_75){
},getBuffer:function(){
}};
function NavHistory(){
this.entries=[];
}
NavHistory.prototype={entries:null,cookieName:"TVAppNavHistory",cookieTTL:2500,addEntry:function(_76){
this.entries.push(_76);
if(this.entries.length>15){
var el=this.entries.shift();
HttpUtils.removeCookie(el.id);
}
HttpUtils.setCookie(this.cookieName,this.entries,NavHistory.prototype.cookieTTL);
},updateEntry:function(_78,_79){
var _7a=this.entries.length-1;
this.entries[_7a+_78]=_79;
HttpUtils.setCookie(this.cookieName,this.entries,NavHistory.prototype.cookieTTL);
},clear:function(){
for(var i=0;i<this.entries.length;i++){
var el=this.entries[i];
el.parameters=null;
HttpUtils.removeCookie(el.id);
delete el;
}
this.entries=null;
this.entries=[];
HttpUtils.removeCookie(this.cookieName);
},getEntry:function(_7d,_7e,_7f,_80,_81){
var _82=this.entries.length-1;
var _83=this.entries[_82+_7d];
if(_7e){
this.removeEntry(_82);
}
if(_83&&_83.adult&&!_7f&&_80){
if(_83.name!=_81){
_83=this.getEntry(_7d-1,false,_7f,_80,_81);
}
}
return _83;
},initialize:function(){
var _84=HttpUtils.getCookie(NavHistory.prototype.cookieName);
if(_84){
_84=_84.substring(0,_84.length-1);
var _85=_84.split("],");
for(var i=0;i<_85.length;i++){
_85[i]=_85[i].substring(1,_85[i].length);
}
for(i=0;i<_85.length;i++){
var tmp=_85[i].split("|");
var _88=tmp[1];
var _89=[];
if(tmp[2]){
var _8a=tmp[2].split(",");
for(var j=0;j<_8a.length;j++){
var _8c=_8a[j].split("=");
_89.push(new AjaxParameter(_8c[0],_8c[1]));
}
}
this.entries.push(new AjaxQuery(_88,_89));
}
}
},removeEntry:function(){
this.entries.splice(this.entries.length-2,this.entries.length);
HttpUtils.setCookie(this.cookieName,this.entries,NavHistory.prototype.cookieTTL);
},removeLastEntry:function(_8d){
var _8e=this.getEntry(0);
if(_8e.name==_8d){
this.entries.splice(this.entries.length-1,this.entries.length);
HttpUtils.setCookie(this.cookieName,this.entries,NavHistory.prototype.cookieTTL);
}
},findEntryPosition:function(_8f){
for(var i=this.entries.length-1;i>0;i--){
if(this.entries[i].name==_8f){
var _91=-(this.entries.length-i-1);
Logger.warn(_91);
return _91;
}
}
return null;
},save:function(){
HttpUtils.setCookie(this.cookieName,this.entries,NavHistory.prototype.cookieTTL);
},saveState:function(_92,_93){
HttpUtils.setCookie(_92.id,_93,NavHistory.prototype.cookieTTL);
},getState:function(_94){
var _95=HttpUtils.getCookie(_94);
HttpUtils.removeCookie(_94);
return _95;
}};
function RemoteControl(){
}
RemoteControl.prototype={eggCounter:0,UNKNOWN_ERROR:-9999999,MW_REQUEST_TIMEOUT:-9999998,getKeyCode:function(_96){
return _96.keyCode||_96.which;
},isNumberKey:function(_97){
var key=this.getKeyCode(_97);
if(key==this.NUMBER_0||key==this.NUMBER_1||key==this.NUMBER_2||key==this.NUMBER_3||key==this.NUMBER_4||key==this.NUMBER_5||key==this.NUMBER_6||key==this.NUMBER_7||key==this.NUMBER_8||key==this.NUMBER_9){
return true;
}
},catchSystemEvents:function(_99){
var key=this.getKeyCode(_99);
switch(key){
case RemoteControl.prototype.UNKNOWN_ERROR:
_99.source.showErrorPanel({errorMessage:Lang.MESSAGE_ERROR3,errorCodeSI:TVApp.prototype.UNKNOWN_ERROR_CODE,message:_99.message});
return true;
case RemoteControl.prototype.MW_REQUEST_TIMEOUT:
_99.source.showErrorPanel({errorMessage:Lang.MESSAGE_ERROR2,errorCodeSI:TVApp.prototype.MW_REQUEST_TIMEOUT_CODE});
return true;
}
}};
function Navigator(_9b,_9c,_9d){
this.name=_9b.toLowerCase();
this.version=_9c;
this.platform=_9d;
}
Navigator.prototype={DARTYBOX_NAVIGATOR:"ant fresco",NEUFBOX_NAVIGATOR:"netgem",name:null,version:null,playDuring:null,isDartyBox:function(){
return this.name.toLowerCase().indexOf(this.DARTYBOX_NAVIGATOR)!=-1;
},isBrowser:function(){
return !this.isDartyBox()&&!this.isNeufBox();
},isNeufBox:function(){
return this.platform.toLowerCase().indexOf(this.NEUFBOX_NAVIGATOR)!=-1;
}};
function Dimension(_9e,_9f){
this.width=_9e;
this.height=_9f;
}
var IDGenerator=new IDGeneratorSingleton("Component");
var ComponentFactory=new ComponentFactorySingleton();
function Component(){
this.id=IDGenerator.getNewId();
this.keyListeners=new Array();
this.focused=false;
this.visible=true;
this.leftPadding=0;
this.topPadding=0;
}
Component.prototype={id:null,keyListeners:null,singleClickListener:null,doubleClickListener:null,focused:null,parent:null,size:null,cssClass:null,input:null,focusListener:null,blurListener:null,leftPadding:null,topPadding:null,visible:null,needsRepaint:null,initialize:function(_a0){
},paint:function(_a1){
},releaseFocus:function(){
this.focused=false;
this.needsRepaint=true;
if(this.blurListener){
this.blurListener.apply(this,[]);
}
return true;
},requestFocus:function(){
this.focused=true;
this.needsRepaint=true;
if(this.focusListener){
this.focusListener.apply(this,[]);
}
if(this.parent){
this.parent.requestFocus(this);
}
return true;
},focus:function(){
this.requestFocus();
if(this.parent){
this.parent.requestFocus(this);
}
return true;
},addFocusListener:function(_a2){
this.focusListener=_a2;
},addBlurListener:function(_a3){
this.blurListener=_a3;
},addKeyListener:function(_a4){
this.keyListeners.push(_a4);
},addSingleClickListener:function(_a5){
this.singleClickListener=_a5;
},addDoubleClickListener:function(_a6){
this.doubleClickListener=_a6;
},isFocused:function(){
return this.focused;
},setCssClass:function(_a7){
this.cssClass=_a7;
},setVisible:function(_a8){
if(this.visible!=_a8){
this.notifyForRepaint();
}
this.visible=_a8;
},setInput:function(_a9){
this.input=_a9;
},setParent:function(_aa){
if(_aa){
_aa.parent=this;
}
},setSize:function(_ab){
this.size=_ab;
},setLeftPadding:function(_ac){
this.leftPadding=_ac;
},setTopPadding:function(_ad){
this.topPadding=_ad;
},processEvent:function(_ae){
var _af=false;
for(var i=0;i<this.keyListeners.length;i++){
if(this.input.getKeyCode(_ae)==this.keyListeners[i].keyCode){
if(this.keyListeners[i].handler.apply(this,[_ae])){
_af=true;
}
}
}
return _af;
},notifyForRepaint:function(){
if(this.parent){
this.parent.notifyForRepaint();
}
this.needsRepaint=true;
},dumpState:function(){
return new String();
},clear:function(){
this.id=null;
this.keyListeners=null;
this.singleClickListener=null;
this.doubleClickListener=null;
this.focused=null;
this.parent=null;
this.size=null;
this.cssClass=null;
this.input=null;
this.focusListener=null;
this.blurListener=null;
this.leftPadding=null;
this.topPadding=null;
this.visible=null;
this.needsRepaint=null;
}};
function TripleTapComponent(){
this.inherits(ComponentFactory.create(Component));
this.value="";
this.limit=20;
this.TTDelay=1000;
this.TTCharIndex=0;
this.TTTimers={};
this.TTChars={key0:["0"],key1:["@","/",".",":","~","1"],key2:["a","b","c","2","A","B","C"],key3:["d","e","f","3","D","E","F"],key4:["g","h","i","4","G","H","I"],key5:["j","k","l","5","J","K","L"],key6:["m","n","o","6","M","N","O"],key7:["p","q","r","s","7","P","Q","R","S"],key8:["t","u","v","8","T","U","V"],key9:["w","x","y","z","9","W","X","Y","Z"]};
this.doTripleTap=function(key){
var now=new Date().getTime();
var _b3=eval("this.TTChars.key"+key);
var _b4=eval("this.TTTimers.key"+key);
if(this.value.length==this.limit){
return;
}
if(this.TTCharIndex>=_b3.length){
this.TTCharIndex=0;
}
if(_b4==null||now-_b4>this.TTDelay){
this.TTCharIndex=0;
this.value+=_b3[this.TTCharIndex++];
eval("this.TTTimers.key"+key+" = "+new Date().getTime()+";");
}else{
if(_b4!=null&&now-_b4<=this.TTDelay){
this.value=this.value.substr(0,this.value.length-1)+_b3[this.TTCharIndex++];
eval("this.TTTimers.key"+key+" = "+new Date().getTime()+";");
}else{
this.TTCharIndex=0;
this.value+=_b3[this.TTCharIndex++];
eval("this.TTTimers.key"+key+" = null;");
}
}
this.notifyForRepaint();
if(this.autoValidateEntry){
this.autoValidateEntry();
}
};
this.addKeyListener({keyCode:this.input.NUMBER_0,handler:function(_b5){
if(this.isFocused()){
this.doTripleTap(0);
return true;
}
}});
this.addKeyListener({keyCode:this.input.NUMBER_1,handler:function(_b6){
if(this.isFocused()){
this.doTripleTap(1);
return true;
}
}});
this.addKeyListener({keyCode:this.input.NUMBER_2,handler:function(_b7){
if(this.isFocused()){
this.doTripleTap(2);
return true;
}
}});
this.addKeyListener({keyCode:this.input.NUMBER_3,handler:function(_b8){
if(this.isFocused()){
this.doTripleTap(3);
return true;
}
}});
this.addKeyListener({keyCode:this.input.NUMBER_4,handler:function(_b9){
if(this.isFocused()){
this.doTripleTap(4);
return true;
}
}});
this.addKeyListener({keyCode:this.input.NUMBER_5,handler:function(_ba){
if(this.isFocused()){
this.doTripleTap(5);
return true;
}
}});
this.addKeyListener({keyCode:this.input.NUMBER_6,handler:function(_bb){
if(this.isFocused()){
this.doTripleTap(6);
return true;
}
}});
this.addKeyListener({keyCode:this.input.NUMBER_7,handler:function(_bc){
if(this.isFocused()){
this.doTripleTap(7);
return true;
}
}});
this.addKeyListener({keyCode:this.input.NUMBER_8,handler:function(_bd){
if(this.isFocused()){
this.doTripleTap(8);
return true;
}
}});
this.addKeyListener({keyCode:this.input.NUMBER_9,handler:function(_be){
if(this.isFocused()){
this.doTripleTap(9);
return true;
}
}});
this.addKeyListener({keyCode:this.input.DELETE,handler:function(_bf){
if(this.isFocused()){
window.clearInterval(this.timer);
if(this.value.length>0){
this.value=this.value.substr(0,this.value.length-1);
this.notifyForRepaint();
}
if(this.autoValidateEntry){
this.autoValidateEntry();
}
return true;
}
}});
}
function SimpleTapComponent(_c0){
this.inherits(ComponentFactory.create(Component));
this.input=_c0;
this.value="";
this.limit=20;
this.displayValue="";
this.isPassword=false;
this.doSimpleTap=function(key){
if(this.value.length==this.limit){
return;
}
this.value+=""+key;
if(this.isPassword){
this.displayValue+=" * ";
}
this.notifyForRepaint();
};
this.addKeyListener({keyCode:this.input.NUMBER_0,handler:function(_c2){
if(!this.isFocused()){
this.focus();
}
this.doSimpleTap(0);
return true;
}});
this.addKeyListener({keyCode:this.input.NUMBER_1,handler:function(_c3){
if(!this.isFocused()){
this.focus();
}
this.doSimpleTap(1);
return true;
}});
this.addKeyListener({keyCode:this.input.NUMBER_2,handler:function(_c4){
if(!this.isFocused()){
this.focus();
}
this.doSimpleTap(2);
return true;
}});
this.addKeyListener({keyCode:this.input.NUMBER_3,handler:function(_c5){
if(!this.isFocused()){
this.focus();
}
this.doSimpleTap(3);
return true;
}});
this.addKeyListener({keyCode:this.input.NUMBER_4,handler:function(_c6){
if(!this.isFocused()){
this.focus();
}
this.doSimpleTap(4);
return true;
}});
this.addKeyListener({keyCode:this.input.NUMBER_5,handler:function(_c7){
this.doSimpleTap(5);
return true;
}});
this.addKeyListener({keyCode:this.input.NUMBER_6,handler:function(_c8){
if(!this.isFocused()){
this.focus();
}
this.doSimpleTap(6);
return true;
}});
this.addKeyListener({keyCode:this.input.NUMBER_7,handler:function(_c9){
if(!this.isFocused()){
this.focus();
}
this.doSimpleTap(7);
return true;
}});
this.addKeyListener({keyCode:this.input.NUMBER_8,handler:function(_ca){
if(!this.isFocused()){
this.focus();
}
this.doSimpleTap(8);
return true;
}});
this.addKeyListener({keyCode:this.input.NUMBER_9,handler:function(_cb){
if(!this.isFocused()){
this.focus();
}
this.doSimpleTap(9);
return true;
}});
this.addKeyListener({keyCode:this.input.DELETE,handler:function(_cc){
if(this.isFocused()){
if(this.value.length>0){
this.value=this.value.substr(0,this.value.length-1);
if(this.isPassword){
this.displayValue="";
for(var i=0;i<this.value.length;i++){
this.displayValue+=" * ";
}
}
this.notifyForRepaint();
}
return true;
}
}});
}
function Container(){
this.inherits(ComponentFactory.create(Component));
this.components=[];
this.layout=null;
this.add=function(_ce){
if(_ce){
this.setParent(_ce);
_ce.setInput(this.input);
}
this.components.push(_ce);
};
this.getComponentIndex=function(_cf){
var _d0=this.components.length;
for(var i=0;i<_d0;i++){
var _d2=this.components[i];
if(_d2&&_d2.id==_cf.id){
return i;
}
}
return -1;
};
this.getComponent=function(_d3){
return this.components[_d3];
};
this.getFocusedComponent=function(){
var _d4=this.components.length;
for(var i=0;i<_d4;i++){
var _d6=this.components[i];
if(_d6&&_d6.isFocused()){
return _d6;
}
}
};
this.requestFocus=function(_d7){
var _d8=this.components.length;
if(_d7){
this.needsRepaint=true;
this.focused=true;
for(var i=0;i<_d8;i++){
var _da=this.components[i];
if(_da&&_da.isFocused()&&_da.id!=_d7.id){
_da.releaseFocus();
}
}
if(this.parent){
this.parent.requestFocus(this);
}
return true;
}
for(var i=0;i<_d8;i++){
var _da=this.components[i];
if(_da&&_da.visible&&_da.requestFocus()){
this.needsRepaint=true;
this.focused=true;
return true;
}
}
return false;
};
this.releaseFocus=function(){
var _db=this.components.length;
for(var i=0;i<_db;i++){
var _dd=this.components[i];
if(_dd&&_dd.isFocused()){
_dd.releaseFocus();
this.needsRepaint=true;
this.focused=false;
return true;
}
}
return false;
};
this.processIsolatedEvents=function(_de){
var _df=this.components.length;
for(var i=0;i<_df;i++){
var _e1=this.components[i];
if(_e1){
if(_e1.components){
if(_e1.processIsolatedEvents(_de)){
return true;
}
}else{
if(_e1.processEvent(_de)){
return true;
}
}
}
}
return false;
};
this.removeAll=function(){
var _e2=this.components.length;
for(var i=0;i<_e2;i++){
var _e4=this.components[i];
if(_e4&&_e4.components){
_e4.removeAll();
}
}
this.components.length=0;
};
this.dumpState=function(){
var _e5=this.components.length;
var _e6=new String();
var sep=new String();
for(var i=0;i<_e5;i++){
var _e9=this.components[i];
if(_e9){
var _ea=_e9.dumpState();
if(_ea!=""){
if(!_e6){
_e6+="{";
}
_e6+=sep+_ea;
sep=", ";
}
}
}
if(!_e6){
_e6+="}";
}
return _e6;
};
this.clear=function(){
for(var i=0;i<this.components.length;i++){
if(this.components[i]){
this.components[i].clear();
delete this.components[i];
this.components[i]=null;
}
}
this.components=null;
this.id=null;
this.keyListeners=null;
this.singleClickListener=null;
this.doubleClickListener=null;
this.focused=null;
this.parent=null;
this.size=null;
this.cssClass=null;
this.input=null;
this.focusListener=null;
this.blurListener=null;
this.leftPadding=null;
this.topPadding=null;
this.visible=null;
this.needsRepaint=null;
};
}
function BorderContainer(_ec,_ed,_ee,_ef,_f0){
this.inherits(new Container());
this.layout="<table border='0' cellpadding='0' cellspacing='0' style='width: #WIDTH#px; height: #HEIGHT#px'"+"width='#WIDTH#' height='#HEIGHT#'> \n"+" #NORTH# #WEST# #CENTER# #EAST# #SOUTH# "+"</table>";
this.add(this.NORTH,(_ec)?new DynContainer():null);
this.add(this.WEST,(_ed)?new DynContainer():null);
this.add(this.CENTER,(_ee)?new DynContainer():null);
this.add(this.EAST,(_ef)?new DynContainer():null);
this.add(this.SOUTH,(_f0)?new DynContainer():null);
}
BorderContainer.prototype={NORTH:0,WEST:1,CENTER:2,EAST:3,SOUTH:4,setZoneSize:function(_f1,_f2){
this.components[_f1].setSize(_f2);
},add:function(_f3,_f4){
if(_f4){
this.setParent(_f4);
_f4.setInput(this.input);
}
if((App.referer==App.REFERER_NEUF||App.referer==App.REFERER_SFR)&&this.components[_f3]){
this.components[_f3].clear();
delete this.components[_f3];
this.components[_f3]=null;
}
this.components[_f3]=_f4;
},getColspanValue:function(){
var _f5=this.components.length;
var _f6=0;
for(var i=0;i<_f5;i++){
var _f8=this.components[i];
if(_f8){
switch(i){
case this.WEST:
_f6++;
break;
case this.CENTER:
_f6++;
break;
case this.EAST:
_f6++;
break;
}
}
}
return _f6;
},addComponent:function(_f9,_fa){
if(_f9){
var _fb=this.components[_fa].id;
_f9.initialize(new Device(_fb));
}
this.components[_fa].add(_f9);
},getComponent:function(_fc){
return this.components[_fc].getComponent(0);
},initialize:function(_fd){
var _fe=this.getColspanValue();
var _ff=new Template(this.layout);
var _100=false;
_ff.put("WIDTH",this.size.width);
_ff.put("HEIGHT",this.size.height);
for(var i=0;i<this.components.length;i++){
var _102=this.components[i];
var _103=new String();
var _104=new String();
var _105=new String();
if(_102){
var _106=new Device();
_102.initialize(_106);
_103=_106.getBuffer();
if(_102.size){
_105=" style='width: "+_102.size.width+"px; height:"+_102.size.height+"px'"+" width='"+_102.size.width+"' height='"+_102.size.height+"' ";
}
}
switch(i){
case this.NORTH:
var html=new String();
if(_102){
html="<tr><td valign='top'"+_105+" colspan='"+_fe+"'>"+_103+"</td></tr>\n";
}
_ff.put("NORTH",html);
break;
case this.WEST:
var html=new String();
if(_102){
if(!_100){
_104="<tr>";
_100=true;
}
html=_104+"<td valign='top'"+_105+">"+_103+"</td>\n";
}
_ff.put("WEST",html);
break;
case this.CENTER:
var html=new String();
if(_102){
if(!_100){
_104="<tr>";
_100=true;
}
html=_104+"<td valign='top' align='left'"+_105+">"+_103+"</td>\n";
}
_ff.put("CENTER",html);
break;
case this.EAST:
var html=new String();
if(!_100){
_104="<tr>";
_100=true;
}
if(_102){
if(!_100){
_104="<tr>";
_100=true;
}
html=_104+"<td valign='top'"+_105+">"+_103+"</td>\n";
}
_ff.put("EAST",html);
break;
case this.SOUTH:
var html=new String();
if(_100){
_104="</tr>\n";
}
if(_102){
html="<tr><td valign='top' colspan='"+_fe+"'"+_105+">"+_103+"</td></tr>\n";
}
_ff.put("SOUTH",_104+html);
break;
}
}
_fd.write(_ff.parse());
},paint:function(_108){
for(var i=0;i<this.components.length;i++){
var _10a=this.components[i];
if(_10a&&_10a.needsRepaint){
var _10b=new Device(_10a.id);
if(!_10b.internal){
this.initialize(_108);
_10a.paint(new Device(_10b.id));
_10a.needsRepaint=false;
}else{
_10a.paint(_10b);
_10a.needsRepaint=false;
}
}
}
this.needsRepaint=false;
},processEvent:function(_10c){
var _10d=this.getFocusedComponent();
if(_10d&&!_10d.processEvent(_10c)){
var _10e=this.input.getKeyCode(_10c);
if(this.isFocused()){
var _10f=this.getComponentIndex(_10d);
var _110=null;
if(_10e==this.input.DOWN){
if(_10f==this.NORTH){
_110=this.components[this.CENTER];
}else{
if(_10f==this.CENTER){
_110=this.components[this.SOUTH];
}
}
}else{
if(_10e==this.input.UP){
if(_10f==this.CENTER){
_110=this.components[this.NORTH];
}else{
if(_10f==this.SOUTH){
_110=this.components[this.CENTER];
}
}
}else{
if(_10e==this.input.LEFT){
if(_10f==this.EAST){
_110=this.components[this.CENTER];
}else{
if(_10f==this.CENTER){
_110=this.components[this.WEST];
}
}
}else{
if(_10e==this.input.RIGHT){
if(_10f==this.WEST){
_110=this.components[this.CENTER];
}else{
if(_10f==this.CENTER){
_110=this.components[this.EAST];
}
}
}
}
}
}
if(_110&&_110.visible&&_110.requestFocus()){
_10d.releaseFocus();
this.needsRepaint=true;
return true;
}
}
return false;
}
return true;
}};
function DynContainer(){
this.inherits(new Container());
this.initializeLayout();
}
DynContainer.prototype={initializeLayout:function(){
},initialize:function(_111){
var _112=new Template(this.layout);
_112.put("ID",this.id);
if(this.size){
_112.put("WIDTH",this.size.width);
_112.put("HEIGHT",this.size.height);
}
_111.write(_112.parse());
},add:function(_113){
if(_113){
this.setParent(_113);
_113.notifyForRepaint();
_113.setInput(this.input);
}
if((App.referer==App.REFERER_NEUF||App.referer==App.REFERER_SFR)&&this.components[0]){
this.components[0].clear();
delete this.components[0];
this.components[0]=null;
}
this.components[0]=_113;
},paint:function(_114){
var _115=this.components[0];
if(_115&&_115.needsRepaint){
if(!_115.visible){
_114.write("");
}else{
_115.paint(_114);
}
_115.needsRepaint=false;
}
},processEvent:function(_116){
var _117=this.components[0];
return _117&&_117.processEvent(_116);
}};
var AjaxQueryIDGenerator=new IDGeneratorSingleton("AjaxQuery");
function AjaxQuery(name,_119){
this.id=AjaxQueryIDGenerator.getNewId();
this.name=name;
this.parameters=_119;
this.adult=false;
}
AjaxQuery.prototype={id:null,name:null,parameters:null,adult:false,getParameterValue:function(name){
if(this.parameters==null){
return;
}
for(var i=0;i<this.parameters.length;i++){
if(this.parameters[i].name==name){
return this.parameters[i].value;
}
}
},setParameterValue:function(name,_11d){
if(this.parameters==null){
return;
}
for(var i=0;i<this.parameters.length;i++){
if(this.parameters[i].name==name){
this.parameters[i].value=_11d;
return;
}
}
this.parameters.push(new AjaxParameter(name,_11d));
},setAdult:function(_11f){
this.adult=_11f;
},toString:function(){
return "["+this.id+"|"+this.name+"|"+this.parameters+"]";
}};
function AjaxParameter(name,_121){
this.name=name;
this.value=_121;
}
AjaxParameter.prototype={name:null,value:null,toString:function(){
return this.name+"="+this.value;
}};
function AjaxEngine(_122){
var _123=window.location.href;
this.timeout=30000;
this.running=false;
this.application=_122;
this.hostName=_123.substring(0,_123.indexOf("/",7));
}
AjaxEngine.prototype={id:null,timeout:null,running:null,timer:null,xmlHttpRequest:null,iframeWrapper:null,application:null,hostName:null,abort:function(){
App.ajaxEngine.reset();
if(App.ajaxEngine.xmlHttpRequest){
App.ajaxEngine.xmlHttpRequest.abort();
}else{
if(this.iframeWrapper){
this.iframeWrapper.setAttribute("src","/html/blank.html");
}else{
window.frames[this.id].location="/html/blank.html";
}
}
App.remoteControl.catchSystemEvents({keyCode:RemoteControl.prototype.MW_REQUEST_TIMEOUT,source:App});
},call:function(_124,_125){
this.showWaitLogo();
var _126=_124.name;
var _127=_124.parameters;
var _128=new Date().getTime();
var url=this.hostName+"/tv/"+this.application.referer+"/"+_126+".js?t="+_128;
if(_127){
for(var i=0;i<_127.length;i++){
url+="&"+_127[i].toString();
}
}
if(_125!=null){
url+="&appWidgetState="+escape(_125);
}
this.running=true;
Logger.warn(url);
if(this.xmlHttpRequest){
url+="&xhrMode=true";
this.xmlHttpRequest.open("GET",url);
this.xmlHttpRequest.onreadystatechange=this.xhrHandler.bind(this);
this.xmlHttpRequest.send(null);
}else{
if(this.iframeWrapper){
this.iframeWrapper.setAttribute("src",url);
}else{
window.frames[this.id].location=url;
}
}
if(this.timer){
Logger.warn("### timer en cours!!!!");
window.clearTimeout(this.timer);
}
this.timer=window.setTimeout("App.ajaxEngine.abort(); "+"window.clearTimeout(App.ajaxEngine.timer); ",this.timeout);
},xhrHandler:function(){
var xhr=this.xmlHttpRequest;
if(xhr.readyState==4||xhr.readyState=="4"){
if(xhr.status==200||xhr.status==0||xhr.status==undefined){
try{
eval(xhr.responseText);
}
catch(e){
var _12c="js error in callback file, line"+e.lineNumber+":<br>"+e.message;
this.reset();
this.application.remoteControl.catchSystemEvents({keyCode:RemoteControl.prototype.UNKNOWN_ERROR,source:this.application,message:_12c});
Logger.warn(_12c);
}
}
}
},initialize:function(){
this.id="AjaxEngine";
if(!this.application.navigator.isNeufBox()&&typeof XMLHttpRequest!="undefined"){
this.xmlHttpRequest=new XMLHttpRequest();
}else{
if(!this.application.navigator.isNeufBox()&&typeof ActiveXObject!="undefined"){
try{
this.xmlHttpRequest=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
try{
this.xmlHttpRequest=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
Logger.warn("Votre navigateur ne prend pas en charge l'objet XMLHTTPRequest.");
}
}
}else{
if(document&&document.getElementById){
var _12d=document.createElement("iframe");
_12d.id=this.id;
_12d.width=1;
_12d.height=1;
_12d.frameBorder=0;
document.body.appendChild(_12d);
this.iframeWrapper=_12d;
}else{
document.write("<iframe name='"+this.id+"' width='0' height='0' frameBorder='0'></iframe>");
}
}
}
},reset:function(){
window.clearInterval(this.timer);
this.timer=null;
this.running=false;
this.hideWaitLogo();
},showWaitLogo:function(){
},hideWaitLogo:function(){
}};
function AjaxController(_12e){
this.application=_12e;
}
AjaxController.prototype={application:null,previousQuery:null,buildParameters:function(_12f,_130){
var _131=_130.mapEntry.label||"";
_131=_131.replaceAll("&nbsp;","%20");
return [new AjaxParameter("titId",_12f.titId),new AjaxParameter("mapEntryId",_130.mapEntry.id),new AjaxParameter("mapEntryAction",_130.mapEntry.action),new AjaxParameter("mapEntryLabel",_131),new AjaxParameter("mapEntryManual",_130.mapEntry.manual),new AjaxParameter("mapEntryCollectionId",_130.mapEntry.collectionId),new AjaxParameter("mapEntryCollectionSize",_130.mapEntry.collectionSize),new AjaxParameter("listOrder",_130.mapEntry.collectionOrder),new AjaxParameter("listDirection",_130.mapEntry.collectionOrderDirection)];
},mergeSameQuery:function(_132){
if(this.previousQuery!=null&&this.previousQuery.name!=_132.name){
var _133=this.application.history.getEntry(0);
if(_133){
var _134=_133.getParameterValue("mapEntryId");
var _135=this.previousQuery.getParameterValue("mapEntryId");
if(_134==_135){
this.application.history.updateEntry(0,this.previousQuery);
}
}
}
},getTitle:function(_136,_137,_138,_139,_13a){
var _13b=this.buildParameters(_136,_137,_139);
var _13c=new AjaxQuery("GetTitle",_13b);
this.mergeSameQuery(_13c);
this.processQuery(_13c,_138,_13a);
},getTitleDetails:function(_13d,_13e,_13f,_140){
var _141=this.buildParameters(_13d,_13e,_140);
var _142=new AjaxQuery("GetTitleDetails",_141);
this.processQuery(_142,_13f);
},selectTitle:function(_143,_144,_145,_146){
var _147=[new AjaxParameter("titId",_144.titId),new AjaxParameter("vtiId",_145.vtiId)];
var _148=false;
var _149=null;
var hdON=true;
if(this.application.referer==this.application.REFERER_DARTY){
hdON=this.application.hdEnabled;
}
if(_145.licenseActive||_145.licenseReattributed){
_147.push(new AjaxParameter("vhiId",_145.vhiId));
_149=new AjaxQuery("CheckMovieLicense",_147);
}else{
if(_144.HD&&!_146&&hdON){
_149=new AjaxQuery("ChooseHD",_147);
}else{
_148=true;
if(_143.source.referer==_143.source.REFERER_DARTY){
var _14b=HttpUtils.getCookie(_143.source.PIN_COOKIE_NAME);
if(_14b=="1"){
_149=new AjaxQuery("GetValidationCodePin",_147);
}
}
if(!_149){
_147.push(new AjaxParameter("hd",(_145.HD&&hdON)));
_149=new AjaxQuery("GetValidation",_147);
}
}
}
this.processQuery(_149,_148);
},getTitleEpisodes:function(_14c,_14d,_14e){
var _14f=this.buildParameters(_14c,_14d);
var _150=new AjaxQuery("GetTitleEpisodes",_14f);
this.processQuery(_150,_14e);
},getSerieEpisodes:function(_151,_152,_153,_154){
var _155=this.buildParameters(_151,_152,_154);
var _156=new AjaxQuery("GetSeries",_155);
this.processQuery(_156,_153);
},getEpisode:function(_157,_158,_159,_15a,_15b){
var _15c=this.buildParameters({titId:_157},_159);
_15c.push(new AjaxParameter("vtiId",_158));
_15c.push(new AjaxParameter("isEpisode","true"));
var _15d=new AjaxQuery("GetTitle",_15c);
this.mergeSameQuery(_15d);
this.processQuery(_15d,_15a,_15b);
},getEpisodeDetails:function(_15e,_15f,_160,_161,_162,_163){
var _164=this.buildParameters({titId:_15e},_160,_162);
_164.push(new AjaxParameter("vtiId",_15f));
_164.push(new AjaxParameter("isEpisode","true"));
var _165=new AjaxQuery("GetTitleDetails",_164);
this.processQuery(_165,_161,_163);
},getValidation:function(_166,_167,_168){
var _169=[new AjaxParameter("titId",_166.titId),new AjaxParameter("vtiId",_166.vodItems[_167].vtiId)];
var _16a=new AjaxQuery("GetValidation",_169);
this.processQuery(_16a,_168);
},getPreviousItems:function(_16b,_16c,_16d,_16e){
var _16f=_16b.mapEntry.label||"";
_16f=_16f.replaceAll("&nbsp;","%20");
var _170=[new AjaxParameter("mapEntryId",_16b.mapEntry.id),new AjaxParameter("listIndex",_16b.listIndex-_16b.elementsPerPage),new AjaxParameter("mapEntryCollectionSize",_16b.elementsPerPage),new AjaxParameter("listOrder",_16b.mapEntry.collectionOrder),new AjaxParameter("listDirection",_16b.mapEntry.collectionOrderDirection),new AjaxParameter("mapEntryCollectionAdult",_16b.mapEntry.collectionAdult),new AjaxParameter("mapEntryCollectionId",_16b.mapEntry.collectionId),new AjaxParameter("mapEntryAction",_16b.mapEntry.action),new AjaxParameter("mapEntryLabel",_16f)];
var _171=new AjaxQuery(_16b.mapEntry.action,_170);
this.processQuery(_171,_16c,_16d);
},getNextItems:function(_172,_173,_174,_175){
var _176=_172.mapEntry.label||"";
_176=_176.replaceAll("&nbsp;","%20");
var _177=[new AjaxParameter("mapEntryId",_172.mapEntry.id),new AjaxParameter("listIndex",_172.listIndex+_172.elementsPerPage),new AjaxParameter("mapEntryCollectionSize",_172.elementsPerPage),new AjaxParameter("listOrder",_172.mapEntry.collectionOrder),new AjaxParameter("listDirection",_172.mapEntry.collectionOrderDirection),new AjaxParameter("mapEntryCollectionAdult",_172.mapEntry.collectionAdult),new AjaxParameter("mapEntryCollectionId",_172.mapEntry.collectionId),new AjaxParameter("mapEntryAction",_172.mapEntry.action),new AjaxParameter("mapEntryLabel",_176)];
var _178=new AjaxQuery(_172.mapEntry.action,_177);
this.processQuery(_178,_173,_174);
},getBuyingPage:function(_179,_17a,_17b,_17c){
var _17d=this.buildParameters(_179,_17a,_17c);
_17d.push(new AjaxParameter("vtiId",_179.vodItems[_179.currentVodItem].vtiId));
var _17e=new AjaxQuery("GetBuyingPage",_17d);
this.processQuery(_17e,_17b);
},searchTitle:function(_17f,_180,_181){
var _182=[new AjaxParameter("mapEntryId",0),new AjaxParameter("mapEntryAction","GetSearchTitle"),new AjaxParameter("mapEntryLabel","RECHERCHE%20PAR%20TITRE"),new AjaxParameter("mapEntryManual",true),new AjaxParameter("mapEntryCollectionId",_17f),new AjaxParameter("mapEntryCollectionAdult",this.application.adultAccessCheck),new AjaxParameter("mapEntryCollectionSize",_180?_180:10)];
var _183=new AjaxQuery("GetSearchTitle",_182);
this.processQuery(_183,_181);
},searchPeople:function(_184,_185,_186){
var _187=[new AjaxParameter("mapEntryId",0),new AjaxParameter("mapEntryAction","GetSearchPeople"),new AjaxParameter("mapEntryLabel","RECHERCHE%20PAR%20NOM"),new AjaxParameter("mapEntryManual",true),new AjaxParameter("mapEntryCollectionId",_184),new AjaxParameter("mapEntryCollectionAdult",this.application.adultAccessCheck),new AjaxParameter("mapEntryCollectionSize",_185?_185:10)];
var _188=new AjaxQuery("GetSearchPeople",_187);
this.processQuery(_188,_186);
},checkPromocode:function(_189,_18a){
var _18b=[new AjaxParameter("titId",_189),new AjaxParameter("promocode",_18a)];
var _18c=new AjaxQuery("CheckPromocode",_18b);
this.processQuery(_18c);
},get:function(_18d,_18e,_18f,_190){
if(!(this.application.adultAccessCheck&&_18d.collectionAdult)||!_190){
this.application.adultAccessCheck=false;
}
var _191=[new AjaxParameter("mapEntryId",_18d.id),new AjaxParameter("listIndex",0),new AjaxParameter("mapEntryCollectionAdult",_18d.collectionAdult),new AjaxParameter("mapEntryCollectionSize",_18d.collectionSize),new AjaxParameter("listOrder",_18d.collectionOrder),new AjaxParameter("listDirection",_18d.collectionOrderDirection||"asc")];
if(_18d.action=="GetGameHome"){
_191.push(new AjaxParameter("refererField",App.subscriber.refererField));
}
var _192=new AjaxQuery(_18d.action,_191);
this.processQuery(_192,_18e,_18f);
},processCallback:function(_193,_194){
_193.apply(this.application,_194);
this.application.ajaxEngine.reset();
if(this.application.backFromTrailerOrMovie){
if(!this.application.goToScreen(0,true)){
this.application.show();
}
this.application.backFromTrailerOrMovie=false;
}else{
if(App.game){
var _195=App.container.getComponent(BorderContainer.prototype.NORTH);
menu=_195.getComponent(BorderContainer.prototype.CENTER);
App.ajaxController.get(menu.getCurrentItem().getData(),true);
App.game=null;
}else{
this.application.show();
}
}
},processQuery:function(_196,_197,_198){
if((_196.name=="GetHome"||_196.name=="GetBarker"||_196.name=="GetGameHome")&&_197){
var p=_196.parameters;
this.application.history.clear();
_196.parameters=p;
}
_196.setAdult(this.application.adultAccessCheck);
if(_197){
this.application.history.addEntry(_196);
if(this.previousQuery!=null){
this.application.history.saveState(this.previousQuery,this.application.dumpState());
}
}
if(this.previousQuery!=null){
this.application.previousActionName=this.previousQuery.name;
}
this.application.currentActionName=_196.name;
this.application.ajaxEngine.call(_196,_198);
this.previousQuery=_196;
},handleError:function(_19a){
this.application.ajaxEngine.reset();
var _19b=_19a.stackTrace;
if(_19b){
_19b=_19b.replaceAll("\n","<br>");
Logger.warn(_19a.message+"\n\n"+_19b);
}
if(this.application.showErrorPanel){
this.application.showErrorPanel(_19a.exception);
}
}};
var Logger=new LoggerSingleton(LoggerSingleton.prototype.WARNING);
var Lang=new Lang();
function TVApp(_19c,_19d,_19e){
this.referer=window.location.href.split("/")[4];
this.navigator=new Navigator(navigator.appName,navigator.appVersion,navigator.platform);
this.ajaxController=new AjaxController(this);
this.history=new NavHistory();
this.appContainer=_19e;
this.remoteControl=new RemoteControl();
this.ajaxEngine=new AjaxEngine(this);
this.resolution=_19c;
this.widgetCache=new Array();
this.leftPadding=0;
this.topPadding=0;
this.adultAccessCheck=false;
this.domWindow=window;
this.backFromTrailerOrMovie=HttpUtils.getParameter(this.PARAM_BACK_FROM_MOVIE);
this.hdEnabled=true;
this.version="GLOWRIA_4_59_04";
if(this.referer==this.REFERER_DARTY){
this.hdEnabled=HttpUtils.getParameter(this.PARAM_HD_ENABLED)=="true";
}
HttpUtils.removeCookie(this.WIDGET_COOKIE_NAME);
if(this.navigator.isBrowser()){
document.onkeydown=this.eventListener.bind(this);
document.onclick=this.clickListener.bind(this);
document.ondblclick=this.doubleClickListener.bind(this);
}else{
if(this.navigator.isDartyBox()){
document.onload=this.synchronize.bind(this);
document.onkeypress=this.eventListener.bind(this);
}else{
if(this.navigator.isNeufBox()){
document.body.onkeydown=function(e){
return App.eventListener(e);
};
}
}
}
this.ajaxEngine.initialize();
if(this.backFromTrailerOrMovie){
this.history.initialize();
}else{
if(!this.player){
this.history.clear();
}
if(this.navigator.isNeufBox()){
HttpUtils.removeAllCookie();
}
}
}
TVApp.prototype={navigator:null,ajaxController:null,widgetCache:null,history:null,device:null,remoteControl:null,ajaxEngine:null,resolution:null,container:null,leftPadding:null,topPadding:null,appContainer:null,__state:null,configuration:null,subscriber:null,adultAccessCheck:null,backFromTrailerOrMovie:null,previousActionName:null,currentActionName:null,referer:null,REFERER_NEUF:"neuf",REFERER_DARTY:"darty",REFERER_ARCHOS:"archos",REFERER_SFR:"sfr",WIDGET_COOKIE_NAME:"TVAppWidgetCache",UNKNOWN_ERROR_CODE:"GMW-000",MW_REQUEST_TIMEOUT_CODE:"GMW-001",PARAM_BACK_FROM_MOVIE:"backFromMovie",PARAM_HD_ENABLED:"hd",PROSPECT_PACK_STATE:1,PROSPECT_FORFAIT_STATE:2,SUBSCRIBER_PACK_STATE:3,SUBSCRIBER_FORFAIT_STATE:4,SVOD_TYPE_PACK:1,SVOD_TYPE_FORFAIT:2,onError:false,start:function(){
Logger.initialize();
this.device=new Device(this.appContainer);
this.container=new BorderContainer(true,false,true,false,true);
this.container.setZoneSize(BorderContainer.prototype.NORTH,new Dimension(this.resolution.width,133));
this.container.setZoneSize(BorderContainer.prototype.CENTER,new Dimension(this.resolution.width,361));
this.container.setZoneSize(BorderContainer.prototype.SOUTH,new Dimension(this.resolution.width,81));
this.container.setSize(this.resolution);
this.container.setInput(this.remoteControl);
this.container.initialize(this.device);
},synchronize:function(){
this.subscriber=this.getSubscriber();
var _1a0="GetHome";
var _1a1=HttpUtils.getParameter("barker");
this.game=HttpUtils.getParameter("game");
var _1a2=[new AjaxParameter("refererField",this.subscriber.refererField),new AjaxParameter("deviceUID",this.subscriber.deviceUID),new AjaxParameter("backFromMovie",this.backFromTrailerOrMovie)];
if(_1a1){
_1a2.push(new AjaxParameter("mapEntryId",2));
_1a0="GetBarker";
}else{
_1a2.push(new AjaxParameter("mapEntryId",1));
}
var _1a3=new AjaxQuery(_1a0,_1a2);
this.ajaxController.processQuery(_1a3,!this.backFromTrailerOrMovie);
},eventListener:function(e){
var _1a5=e||window.event;
_1a5.source=this;
if(this.ajaxEngine.running){
if(this.navigator.isNeufBox()){
_1a5.stopPropagation();
}
return false;
}
if(this.remoteControl.catchSystemEvents(_1a5)){
return true;
}
if(this.container.processEvent(_1a5)||this.container.processIsolatedEvents(_1a5)){
if(this.container.needsRepaint){
this.container.paint(this.device);
}
}
if(this.navigator.isNeufBox()){
_1a5.stopPropagation();
}
return false;
},clickListener:function(e){
},doubleClickListener:function(e){
},storeWidget:function(name,_1a9){
this.widgetCache[name]=_1a9;
if(this.navigator.isBrowser()){
window[name]=_1a9;
}
},createWidget:function(name,args){
var _1ac=new String();
var sep="";
for(var i=0;i<args.length;i++){
_1ac+=sep+"args["+i+"]";
sep=", ";
}
var _1af=eval("new this.widgetCache['"+name+"']("+_1ac+")");
_1af.__name=name;
if(this.__state&&this.__state[name]){
_1af.__state=this.__state[name];
}
var _1b0=new String();
for(var prop in this.widgetCache){
_1b0+=prop+" ";
}
HttpUtils.setCookie(this.WIDGET_COOKIE_NAME,_1b0,2500);
return _1af;
},getWidget:function(name){
return this.widgetCache[name];
},goToScreen:function(_1b3,_1b4,_1b5){
var _1b6=true;
if(_1b4||this.history.entries.length==1){
_1b6=false;
}
var _1b7=this.history.getEntry(_1b3,_1b6,this.adultAccessCheck,true,"GetHomeCategory");
if(_1b7){
if(!_1b5&&!_1b7.adult&&this.adultAccessCheck){
this.adultAccessCheck=false;
}
var _1b8=this.history.getState(_1b7.id);
if(_1b7){
this.ajaxController.processQuery(_1b7,_1b6,_1b8);
return true;
}
}
return false;
},setLeftPadding:function(_1b9){
this.leftPadding=_1b9;
},setTopPadding:function(_1ba){
this.topPadding=_1ba;
},dumpState:function(){
return "{"+this.container.dumpState()+"}";
},getBackURL:function(){
var _1bb=this.domWindow.location.href;
if(_1bb.indexOf(TVApp.prototype.PARAM_BACK_FROM_MOVIE)==-1){
if(_1bb.indexOf("?")==-1){
_1bb+="?";
}else{
_1bb+="&";
}
_1bb+=TVApp.prototype.PARAM_BACK_FROM_MOVIE+"=1";
}
return escape(_1bb);
},isSameScreen:function(){
return this.previousActionName==this.currentActionName;
},show:function(){
},showErrorPanel:function(ex){
var _1bd=this.container.getComponent(BorderContainer.prototype.NORTH);
this.normalizeError(ex);
var _1be=new ErrorPanel(ex);
this.onError=true;
_1be.setSize(new Dimension(576,340));
_1be.setCssClass("ErrorPanel");
_1be.setLeftPadding(60);
if(_1bd){
var menu=_1bd.getComponent(BorderContainer.prototype.CENTER);
menu.setVisible(false);
}
this.container.addComponent(_1be,BorderContainer.prototype.CENTER);
_1be.focus();
this.container.paint(this.device);
this.show();
this.logWSError(ex);
},showConfirmPanel:function(_1c0,_1c1){
var _1c2=this.container.getComponent(BorderContainer.prototype.NORTH);
var _1c3=new ConfirmPanel(_1c0,_1c1);
_1c3.setSize(new Dimension(576,340));
_1c3.setCssClass("ErrorPanel");
_1c3.setLeftPadding(60);
var menu=_1c2.getComponent(BorderContainer.prototype.CENTER);
menu.setVisible(false);
this.container.addComponent(_1c3,BorderContainer.prototype.CENTER);
_1c3.focus();
this.container.paint(this.device);
},quitApp:function(){
},reloadApp:function(){
this.domWindow.location.href=unescape(HttpUtils.getParameter("from"));
},personnalizeUI:function(_1c5){
var _1c6=this.container.getComponent(BorderContainer.prototype.NORTH);
var logo=_1c6.getComponent(BorderContainer.prototype.NORTH);
var _1c8=false;
var _1c9;
for(var key in this.personnalizedUI){
if(_1c5==key){
_1c8=true;
_1c9=this.personnalizedUI[key];
}
}
if(_1c8){
logo.setTitle("<img src='/image/"+_1c9+"'/>");
return true;
}else{
logo.setTitle(" ");
}
return false;
},sendSearchQuery:function(_1cb,type){
var _1cd=null;
var _1ce=this.container.getComponent(BorderContainer.prototype.CENTER);
var _1cf=_1ce.getComponent(BorderContainer.prototype.CENTER);
var _1d0=_1cf.getComponent(BorderContainer.prototype.CENTER);
var _1d1=_1ce.getComponent(BorderContainer.prototype.WEST);
if(_1cb.length>=3){
_1d0.currentItem=0;
if(this.timer){
clearTimeout(this.timer);
}
this.timer=setTimeout("App.ajaxController."+type+"('"+_1cb+"'); App.timer = null;",1000);
_1cd=Lang.MESSAGE_SEARCH_LOADING;
}else{
_1cd=Lang.MESSAGE_SEARCH_NOT_ENOUGH_CHAR;
}
_1d0.setEmptyMessage(_1cd);
_1d0.updateData(null);
_1d1.updateData(null);
this.container.paint(this.device);
},checkPromocode:function(_1d2,_1d3){
if(_1d2.length==12){
window.setTimeout("App.ajaxController.checkPromocode("+_1d3+", '"+_1d2+"'); App.timer = null;",1000);
var _1d4=this.container.getComponent(BorderContainer.prototype.CENTER);
_1d4.showWaitMessage(_1d2);
this.container.paint(this.device);
}
},logWSError:function(){
},normalizeError:function(){
}};
function ErrorPanel(_1d5){
ComponentFactory.create(Component);
this.inherits(ComponentFactory.create(Component));
this.exception=_1d5;
this.paint=function(_1d6){
var _1d7=this.exception.errorMessage;
var _1d8=this.exception.errorCodeSI;
_1d7+=Lang.MESSAGE_ERROR_GO_BACK;
var _1d9=new Template(this.html);
_1d9.put("TOP_PADDING",this.topPadding);
_1d9.put("LEFT_PADDING",this.leftPadding);
_1d9.put("WIDTH",this.size.width);
_1d9.put("HEIGHT",this.size.height);
_1d9.put("CSS_CLASS",this.cssClass);
_1d9.put("MESSAGE",_1d7);
_1d9.put("ERROR_CODE",_1d8);
_1d6.write(_1d9.parse());
};
this.addKeyListener({keyCode:this.input.OK,handler:function(_1da){
_1da.source.onError=false;
if(_1da.source.history.entries.length<=1){
if(_1da.source.player){
_1da.source.quitPlayer();
}else{
_1da.source.quitApp();
}
}else{
_1da.source.goToScreen(-1);
}
return true;
}});
this.html="<table align='left' border='0' cellpadding='0' cellspacing='0'>"+" <tr>"+"  <td colspan='4' height='#TOP_PADDING#'></td>"+" </tr>"+" <tr>"+"  <td width='#LEFT_PADDING#' nowrap><img src='/image/x.gif' width='#LEFT_PADDING#'></td>"+"  <td width='#WIDTH#' height='#HEIGHT#' valign='top' align='left' nowrap>"+"   <table width='#WIDTH#' height='#HEIGHT#' border='0' cellspacing='0' cellpadding='0' class='#CSS_CLASS#'>"+"    <tr>"+"     <td valign='middle' align='center'>#MESSAGE#</td>"+"    </tr>"+"    <tr>"+"     <td height='15' align='right'>#ERROR_CODE#&nbsp;</td>"+"    </tr>"+"   </table>"+"  </td>"+" </tr>"+"</table>";
}
function ConfirmPanel(_1db,_1dc){
ComponentFactory.create(Component);
this.inherits(ComponentFactory.create(Component));
this.message=_1db;
this.callback=_1dc;
this.paint=function(_1dd){
var _1de=new Template(this.html);
_1de.put("TOP_PADDING",this.topPadding);
_1de.put("LEFT_PADDING",this.leftPadding);
_1de.put("WIDTH",this.size.width);
_1de.put("HEIGHT",this.size.height);
_1de.put("CSS_CLASS",this.cssClass);
_1de.put("MESSAGE",this.message);
_1dd.write(_1de.parse());
};
this.addKeyListener({keyCode:this.input.DELETE,handler:function(_1df){
this.OK=false;
this.callback.apply(this,[_1df]);
return true;
}});
this.addKeyListener({keyCode:this.input.OK,handler:function(_1e0){
this.OK=true;
this.callback.apply(this,[_1e0]);
return true;
}});
this.html="<table align='left' border='0' cellpadding='0' cellspacing='0'>"+" <tr>"+"  <td colspan='4' height='#TOP_PADDING#'></td>"+" </tr>"+" <tr>"+"  <td width='#LEFT_PADDING#' nowrap><img src='/image/x.gif' width='#LEFT_PADDING#'></td>"+"  <td width='#WIDTH#' height='#HEIGHT#' valign='top' align='left' nowrap>"+"   <table width='#WIDTH#' height='#HEIGHT#' border='0' cellspacing='0' cellpadding='0' class='#CSS_CLASS#'>"+"    <tr>"+"     <td valign='middle' align='center'>#MESSAGE#</td>"+"    </tr>"+"    <tr>"+"     <td height='15' align='right'>&nbsp;</td>"+"    </tr>"+"   </table>"+"  </td>"+" </tr>"+"</table>";
}
function findDOMElement(_244){
var pEl=_244.parentElement||_244.parentNode;
if(!pEl){
return null;
}
if(pEl&&pEl.id&&pEl.id.indexOf("_Component")!=-1){
return pEl;
}
return findDOMElement(pEl);
}
function findComponent(id,_247){
if(_247!=null&&_247.id==id){
return _247;
}
if(_247!=null&&_247.components){
for(var i=0;i<_247.components.length;i++){
var _249=_247.components[i];
if(_249){
if(_249.id==id){
return _249;
}else{
var _24a=findComponent(id,_249);
if(_24a){
return _24a;
}
}
}
}
}
return null;
}
TVApp.prototype.sessionData=null;
TVApp.prototype.setSessionData=function(_24b){
this.sessionData=_24b;
};
TVApp.prototype.getSessionData=function(){
return this.sessionData;
};
TVApp.prototype.getSubscriber=function(){
return {refererField:"",deviceUID:archospipe_get_productkey()};
};
TVApp.prototype.checkAdult=function(_24c,pass,_24e,_24f){
if((this.remoteControl.getKeyCode(_24c)==this.remoteControl.OK||_24f)&&pass.length>0){
return pass==_24e;
}
return false;
};
TVApp.prototype.clickListener=function(e){
if(this.ajaxEngine.running){
return true;
}
var _251=e||window.event;
_251.source=this;
var _252=_251.target||_251.srcElement;
var _253=_252.getAttribute("index");
if(_253){
var _254=findDOMElement(_252);
if(_254){
var _255=findComponent(_254.id,this.container);
var comp;
if(_255&&(comp=_255.components[0])&&comp.singleClickListener&&comp.singleClickListener.apply(comp,[_251])){
this.container.paint(this.device);
}
}
}
};
TVApp.prototype.doubleClickListener=function(e){
if(this.ajaxEngine.running){
return true;
}
var _258=e||window.event;
var _259=_258.target||_258.srcElement;
var _25a=_259.getAttribute("index");
if(_25a){
var _25b=findDOMElement(_259);
if(_25b){
var _25c=findComponent(_25b.id,this.container);
if(_25c){
_25c.processEvent({keyCode:this.remoteControl.OK,source:this,srcIndex:_259.getAttribute("index")});
}
}
}
};
TVApp.prototype.start=function(){
Logger.initialize();
this.device=new Device(this.appContainer);
this.container=new DynContainer();
this.container.setSize(this.resolution);
this.container.setInput(this.remoteControl);
this.container.initialize(this.device);
};
TVApp.prototype.synchronize=function(_25d,qs){
var _25f=[];
if(!_25d){
_25d=HttpUtils.getParameter("startPage");
}
if(!_25d){
_25d="GetHome";
_25f.push(new AjaxParameter("mapEntryId",1));
}
if(!qs){
qs=HttpUtils.getParameter("qs");
}
if(!qs){
var _260=this.getSubscriber();
_25f.push(new AjaxParameter("refererField",_260.refererField));
_25f.push(new AjaxParameter("deviceUID",_260.deviceUID));
Logger.warn("refererField = "+_260.refererField);
Logger.warn("deviceUID = "+_260.deviceUID);
}else{
qs=unescape(qs);
Logger.warn("qs = "+qs);
var _261=qs.split("&");
_25f=new Array();
for(var x=0;x<_261.length;x++){
var _263=_261[x].split("=");
_25f.push(new AjaxParameter(_263[0],_263[1]));
}
}
var _264=new AjaxQuery(_25d,_25f);
this.ajaxController.processQuery(_264,true);
};
TVApp.prototype.showErrorPanel=function(ex){
Logger.warn("ERROR: "+ex.errorCodeSI+" - "+ex.errorMessage);
};
TVApp.prototype.showConfirmPanel=function(msg){
Logger.warn("CONFIRM: "+msg);
};
RemoteControl.prototype.UP=38;
RemoteControl.prototype.DOWN=40;
RemoteControl.prototype.LEFT=37;
RemoteControl.prototype.RIGHT=39;
RemoteControl.prototype.OK=13;
RemoteControl.prototype.BUTTON_RED=112;
RemoteControl.prototype.BUTTON_GREEN=113;
RemoteControl.prototype.BUTTON_YELLOW=114;
RemoteControl.prototype.BUTTON_BLUE=115;
Device.prototype.initialize=function(){
this.internal=document.getElementById(this.id);
};
Device.prototype.write=function(_267){
if(!this.internal){
this.internal={};
}
this.internal.innerHTML=_267;
};
Device.prototype.getBuffer=function(){
return this.internal.innerHTML;
};
DynContainer.prototype.initializeLayout=function(){
this.layout="<div id='#ID#'>#ID#</div>";
};
AjaxController.prototype.get=function(_268,_269,_26a,_26b){
if(!_26b){
this.application.adultAccessCheck=false;
}
var _26c=[new AjaxParameter("mapEntryId",_268.id),new AjaxParameter("listIndex",0),new AjaxParameter("mapEntryCollectionSize",_268.collectionSize),new AjaxParameter("listOrder",_268.collectionOrder),new AjaxParameter("listDirection",_268.collectionOrderDirection)];
var _26d=new AjaxQuery(_268.action,_26c);
this.processQuery(_26d,_269,_26a,true);
};
LoggerSingleton.prototype.initialize=function(){
};
LoggerSingleton.prototype.warn=function(msg){
};
LoggerSingleton.prototype.debug=function(msg){
};
var imgs=["1001_Off.gif","1001_On.gif","1001_Sel.gif","3023_Off.gif","3023_On.gif","3023_Sel.gif","3024_Off.gif","3024_On.gif","3024_Sel.gif","3027_Off.gif","3027_On.gif","3027_Sel.gif","6000_Off.gif","6000_On.gif","6000_Sel.gif","6001_Off.gif","6001_On.gif","6001_Sel.gif","6002_Off.gif","6002_On.gif","6002_Sel.gif","6003_Off.gif","6003_On.gif","6003_Sel.gif","6004_Off.gif","6004_On.gif","6004_Sel.gif","6006_Off.gif","6006_On.gif","6006_Sel.gif","6007_Off.gif","6007_On.gif","6007_Sel.gif","6008_Off.gif","6008_On.gif","6008_Sel.gif","6009_Off.gif","6009_On.gif","6009_Sel.gif","6013_Off.gif","6013_On.gif","6013_Sel.gif","6014_Off.gif","6014_On.gif","6014_Sel.gif","6017_Off.gif","6017_On.gif","6017_Sel.gif","6026_Off.gif","6026_On.gif","6026_Sel.gif","7000_Off.gif","7000_On.gif","7000_Sel.gif","7001_Off.gif","7001_On.gif","7001_Sel.gif","7002_Off.gif","7002_On.gif","7002_Sel.gif","7003_Off.gif","7003_On.gif","7003_Sel.gif","7004_Off.gif","7004_On.gif","7004_Sel.gif","7005_Off.gif","7005_On.gif","7005_Sel.gif","7006_Off.gif","7006_On.gif","7006_Sel.gif","arrowDown_Off.gif","arrowDown_On.gif","arrowDown_Sel.gif","arrowDownOff.gif","arrowDownOn.gif","arrowLeftOff.gif","arrowLeftOn.gif","arrowRightOff.gif","arrowRightOn.gif","arrowUp_Off.gif","arrowUp_On.gif","arrowUp_Sel.gif","arrowUpOff.gif","arrowUpOn.gif","background.png","bdContBtn_Off.gif","bdContBtn_On.gif","bdContBtn_Sel.gif","bdRetourBtn_Off.gif","bdRetourBtn_On.gif","bdRetourBtn_Sel.gif","bpdAcheBtn_Off.gif","bpdAcheBtn_On.gif","bpdAcheBtn_Sel.gif","bpdAnnuleBtn_Off.gif","bpdAnnuleBtn_On.gif","bpdAnnuleBtn_Sel.gif","bpdLeft.gif","bpdPromBtn_Off.gif","bpdPromBtn_On.gif","bpdPromBtn_Sel.gif","bpdRight.gif","bpdTeleBtn_Off.gif","bpdTeleBtn_On.gif","bpdTeleBtn_Sel.gif","buttonGreenOff.gif","buttonYellowOff.gif","buttonYellowOn.gif","cbConfirmBtn_Off.gif","cbConfirmBtn_On.gif","cbConfirmBtn_Sel.gif","cornerBL.gif","cornerBR.gif","cornerTL.gif","cornerTR.gif","dlAccueil_Off.gif","dlAccueil_On.gif","dlAccueil_Sel.gif","dlRetour_Off.gif","dlRetour_On.gif","dlRetour_Sel.gif","dlVideo_Off.gif","dlVideo_On.gif","dlVideo_Sel.gif","encore_Off.gif","encore_On.gif","encore_Sel.gif","greyBackL.gif","greyBackM.gif","greyBackR.gif","help_Off.gif","help_On.gif","help_Sel.gif","helpBig_Off.gif","helpBig_On.gif","helpBig_Sel.gif","helpQOff.gif","helpQOn.gif","hLMIBottomOff.gif","hLMIBottomOn.gif","hLMIMiddleOff.gif","hLMIMiddleOn.gif","hLMITopOff.gif","hLMITopOn.gif","ilLeftOff.gif","ilLeftOn.gif","ilRightOff.gif","ilRightOn.gif","img18.gif","labelBackRed.gif","labelLeftRed.gif","labelRightRed.gif","mdaSynL.gif","mdaSynM.gif","mdaSynR.gif","next_Off.gif","next_On.gif","next_Sel.gif","ok_Off.gif","ok_On.gif","ok_Sel.gif","parental_Off.gif","parental_On.gif","parental_Sel.gif","ppOkBtn_Off.gif","ppOkBtn_On.gif","ppOkBtn_Sel.gif","ppRetour_Off.gif","ppRetour_On.gif","ppRetour_Sel.gif","prev_Off.gif","prev_On.gif","prev_Sel.gif","retour_Off.gif","retour_On.gif","retour_Sel.gif","retourHelp_Off.gif","retourHelp_On.gif","retourHelp_Sel.gif","scrollDownOff.gif","scrollDownOn.gif","scrollUpOff.gif","scrollUpOn.gif","search_Off.gif","search_On.gif","search_Sel.gif","searchBig_Off.gif","searchBig_On.gif","searchBig_Sel.gif","sell_Asc_Off.gif","sell_Asc_On.gif","sell_Asc_Sel.gif","sell_Off.gif","sell_On.gif","sell_Sel.gif","slItemOff.gif","slItemOn.gif","spRechBtn_Off.gif","spRechBtn_On.gif","spRechBtn_Sel.gif","spRetoBtn_Off.gif","spRetoBtn_On.gif","spRetoBtn_Sel.gif","title_Asc_Off.gif","title_Asc_On.gif","title_Asc_Sel.gif","title_Desc_Off.gif","title_Desc_On.gif","title_Desc_Sel.gif","title_Off.gif","title_On.gif","title_Sel.gif","vmcLeftOff.gif","vmcLeftOn.gif","vmcMidOff.gif","vmcMidOn.gif","vmcRightOff.gif","vmcRightOn.gif","year_Asc_Off.gif","year_Asc_On.gif","year_Asc_Sel.gif","year_Desc_Off.gif","year_Desc_On.gif","year_Desc_Sel.gif","year_Off.gif","year_On.gif","year_Sel.gif","help/homepage.gif","help/registration.gif"];
var objs=new Array();
for(var x=0;x<imgs.length;x++){
var img=new Image();
img.src="/css/archos/image/"+imgs[x];
objs.push(img);
}

