function parseUri(c){var a=parseUri.options,d=a.parser[a.strictMode?"strict":"loose"].exec(c),e={},b=14;while(b--){e[a.key[b]]=d[b]||""}e[a.q.name]={};e[a.key[12]].replace(a.q.parser,function(g,h,f){if(h){e[a.q.name][h]=f}});return e}parseUri.options={strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};function PropBrowser(){var e,f,d;this.isIE=false;this.isOP=false;this.isNS=false;this.version=null;e=navigator.userAgent;f="Opera";if((d=e.indexOf(f))>=0){this.isOP=true;this.version=parseFloat(e.substr(d+f.length));return}f="Netscape6/";if((d=e.indexOf(f))>=0){this.isNS=true;this.version=parseFloat(e.substr(d+f.length));return}f="Gecko";if((d=e.indexOf(f))>=0){this.isNS=true;this.version=6.1;return}f="MSIE";if((d=e.indexOf(f))){this.isIE=true;this.version=parseFloat(e.substr(d+f.length));return}}var vbrowser=new PropBrowser();function MM_openBrWindow(f,g,h){var e=window.open(f,g,h);e.focus()}function ppv(b){if(vbrowser.isNS||vbrowser.isOP){MM_openBrWindow(b,"premiershipplayer","location=no,menubar=no,width=1011,height=674,scrollbars=no,status=no,resizable=no,top=400, left=350")}else{MM_openBrWindow(b,"premiershipplayer","menubar=no,resizable=0,scrollbars=no,status=no,toolbar=no,width=1011,height=629")}}function EsoV6GenericDivDisplayer(n,q,l,r,m,o,s,k){var p=0;if(m>0){for(p=0;p<=m;p++){if(document.getElementById(r+p)!=null){if(p==o){document.getElementById(r+p).style.display="block"}else{document.getElementById(r+p).style.display="none"}}}}if(q>0){for(p=0;p<=q;p++){if(document.getElementById(n+p)!=null){if(p==l){document.getElementById(n+p).className=k}else{document.getElementById(n+p).className=s}}}}}function EsoV6SpecificDivDisplayer(t,y,r,o,s,v,p,q,n,x,u){var w=0;if(s>0){for(w=0;w<=s;w++){if(document.getElementById(o+w)!=null){if(w==v){document.getElementById(o+w).style.display="block"}else{document.getElementById(o+w).style.display="none"}}}}if(y>0){for(w=0;w<=y;w++){if(document.getElementById(t+w)!=null){if(w==r){if(r==n){document.getElementById(t+w).className=u}else{document.getElementById(t+w).className=q}}else{if(w==n){document.getElementById(t+w).className=x}else{document.getElementById(t+w).className=p}}}}}}function Team(d,c){this.id=d;this.name=c}onClickHandler=function(e){var d;if(!document.getElementsByClassName){try{d=$$("BODY")[0].getElements("div[class=combo]")}catch(f){}if(d!=null){d.each(function(a){a.getElements("ul").setStyle("display","none");a.getElements("ul").setStyle("visibility","hidden")})}}else{d=document.getElementsByClassName("combo");if(d){for(iComboElts=0;iComboElts<d.length;iComboElts++){try{if(d[iComboElts].getElements("ul")){d[iComboElts].getElements("ul").setStyle("display","none");d[iComboElts].getElements("ul").setStyle("visibility","hidden")}}catch(f){}}}}e=new Event(e);targetElt=$(e.target);parentElt=$(targetElt.parentNode);if(targetElt&&typeof targetElt.hasClass=="function"&&targetElt.hasClass("combo_box")&&targetElt.getTag()=="p"){$(targetElt.parentNode).getElements("ul").setStyle("display","block");$(targetElt.parentNode).getElements("ul").setStyle("visibility","visible")}else{if(parentElt&&typeof parentElt.hasClass=="function"&&parentElt.hasClass("combo_box")&&parentElt.getTag()=="p"){$(parentElt.parentNode).getElements("ul").setStyle("display","block");$(parentElt.parentNode).getElements("ul").setStyle("visibility","visible")}}};window.addEvent("load",function(){var c;try{c=$$("div.pubHidden")}catch(d){}if(c!=null){c.each(function(a){idOrigin=a.id.substring(0,a.id.indexOf("_Hidden"));if($chk($(idOrigin))){a.injectInside($(idOrigin));a.removeClass("pubHidden")}})}if(window.ie){$$("BODY").addEvent("click",onClickHandler)}else{window.addEvent("click",onClickHandler)}});function StringBuffer(){this.buffer=[]}StringBuffer.prototype.append=function append(b){this.buffer.push(b);return this};StringBuffer.prototype.toString=function toString(){return this.buffer.join("")};function sendMsgError(b,c){var d;var a;switch(b){case"ErrorAlreadySubscribed":d=my_labels.libErrorAlreadyRegistered;break;case"ErrorInvalidPseudo":d=my_labels.libErrorInvalidPseudo;break;case"ErrorPseudoExists":d=my_labels.libErrorLoginExists;a=getEltById("pseudo");break;case"ErrorWrongPassword":d=my_labels.libErrorPwd;a=getEltById("passsword");break;case"ErrorInvalidEmail":d=my_labels.libErrorInvalidEmail;a=getEltById("email");case"ErrorEmailExists":d=my_labels.libErrorEmailExists;a=getEltById("email");break;case"ErrorUnknownUser":d=my_labels.libUnknownUser;break;case"ErrorCommentAlreadyDeleted":d=ErrorCommentAlreadyDeleted;break;case"ErrorNotAdmin":d=ErrorNotAdmin;break;case"SessionError":case"Session.Error":d=my_labels.libErrorSession;break;case"ErrorSubscription":d=my_labels.libErrorSession;break;case"Captcha NOK":setField(getEltById("code_captcha"),"nok");if(c=="delete"){HideModalGlobal()}loadCaptcha();d=false;break;case"Error":default:d=my_labels.libErrorAccountCreate;break}if(d){alert(d);if(a){setField(a,"nok")}if(b=="SessionError"||b=="Session.Error"||b=="ErrorSubscription"){Disconnect()}}}function cree_radio(k,l,h,f,c,a){var d=navigator.userAgent.toLowerCase();var m="";if(d.indexOf("macintosh")!=-1&&d.indexOf("safari")!=-1){m="safari_mac"}else{if(d.indexOf("windows")!=-1&&d.indexOf("msie")!=-1){m="ie6_pc"}}var j=window.document.createElement("input");j.setAttribute("type","radio");j.setAttribute("id",l);j.setAttribute("name",h);j.setAttribute("value",c);var e=getEltsByTgN("input",getEltById("oldPseudo"));for(var n=0;n<e.length;n++){e[n].onclick=function(){updatePseudo(this)}}if(a){if(mode_navi=="ie6_pc"){var b=new Function(a);j.setAttribute("onclick",b)}else{j.setAttribute("onclick",a)}}var g=window.document.createElement("span");g.setAttribute("id","val_radio_"+c);g.setAttribute("name","val_radio");g.innerHTML=c;if(k){k.appendChild(j);k.appendChild(g)}return j}function manageRadio(a,b){if(b){b.checked=true;getEltById("reason_choose").value=b.value;var c=document.forms[a].elements.reason;for(var d=0;d<c.length;d++){if(b.id!=c[d].id){c[d].checked=false;if(getEltById("dok_reason_"+c[d].value)){setDisplayNone("dok_reason_"+c[d].value)}}}if(b.id=="reason_8"&&b.checked){setDisplayBlock("otherReasons");getEltById("otherReason").value="";getEltById("otherReason").focus()}else{if(a=="myaccountformdelete"){displayDoUNo(b)}}return false}}function displayDoUNo(a){if(a.checked){setDisplayBlock("dok_"+a.id)}setDisplayNone("otherReasons")}function removeChilds(f,a){var c=getEltById(f);var d=getEltsByN(a);var e=d.length;var g=new Array();if(e>0){for(var b=0;b<e;b++){g[b]=d[b].id}for(var b=0;b<g.length;b++){curDivRadio=getEltById(g[b]);c.removeChild(curDivRadio)}}}function setDisplayNone(a,c){var b=getEltById(a);if(b!=null){b.style.display="none";if(c=="important"){b.style.display="none !important"}}}function setDisplayBlock(b,d,e){var c=getEltById(b);var a="block";if(d=="inline"){a=d}if(e=="important"){a+=" !important"}if(c!=null){c.style.display=a}}function getEltById(a){var b=document.getElementById(a);return b}function getEltsByTgN(c,b){var a=document.getElementsByTagName(c);if(b){a=b.getElementsByTagName(c)}return a}function getEltsByN(e,b,a){var d=document.getElementsByName(e);if(b){var c=getEltById(b);d=c.getElementsByName(e)}return d}function removeChildByName(b,d){var a=getEltById(b);var c=getEltById(d);if(c!=null&&a!=null){a.removeChild(c)}}function appendElt(b,a){if(a!=null&&b!=null){b.appendChild(a)}}function setField(a,g,h){if(a){if(document.getElementById("myaccountform")||document.getElementById("userlogin")||document.getElementById("myaccountformdelete")||document.getElementById("myprofileplayer_form_unsub")){var e=document.getElementById("msgError_"+a.id);if(document.getElementById("myaccountform")){var b=document.getElementById("blockPseudo")}if(a.id=="email"){var c=document.getElementById("msgError_"+a.id+"_Format")}if(a.id=="password_delete"){var f=document.getElementById("msgError_"+a.id+"_Wp")}}if(a.id=="id_email"){var c=document.getElementById("msgError_"+a.id+"_Format")}switch(g){case"std":if(a.id=="div_termandconditions"){a.style.backgroundColor=""}else{if(e){e.style.display="none"}if(c){c.style.display="none"}if(f){f.style.display="none"}a.style.backgroundColor="#FFFFFF";if(a.type&&a.type.indexOf("select")==-1){a.style.border="1px solid #7F9DB9"}}break;case"nok":if(e){e.style.display="block"}if(c){c.style.display="none"}if(f){f.style.display="none"}if(a.id!="birthdate"){a.style.backgroundColor="#FFBCBC"}if(a.type&&a.type.indexOf("select")==-1){a.style.border="1px solid #C24949"}if(h){a.focus();if(a.type=="text"){a.select()}}break;case"nokfe":if(c){c.style.display="block"}a.style.backgroundColor="#FFBCBC";break;case"nokwp":if(f){f.style.display="block"}a.style.backgroundColor="#FFBCBC";break;case"nokpseudo":var d=document.getElementById("propositionsPseudo");d.style.display="block";b.style.height="78px";d.style.padding="10px";break;case"okpseudo":a.src=my_ctes.avaiable;var d=document.getElementById("propositionsPseudo");d.style.display="none";b.style.height="";d.style.padding="0px";break;default:break}}}function VerifDate(a,c){var b;b=1;if(c=="jj/mm/aaaa"){if((a.length!=10)||(a.substring(2,3)!="/")||(a.substring(5,6)!="/")){b=-1}else{jour=a.substring(0,2);mois=a.substring(3,5);annee=a.substring(6,10)}}else{if(c=="jjmmaaaa"){if((a.length!=8)){b=-1}else{jour=a.substring(0,2);mois=a.substring(2,4);annee=a.substring(4,8)}}else{if(c=="jj/mm/aa"){if((a.length!=8)||(a.substring(2,3)!="/")||(a.substring(5,6)!="/")){b=-1}else{jour=a.substring(0,2);mois=a.substring(3,5);annee="20"+a.substring(6,8)}}else{if(c=="jjmmaa"){if((a.length!=6)){b=-1}else{jour=a.substring(0,2);mois=a.substring(2,4);annee="20"+a.substring(4,6)}}}}}if(b>0){if((isNaN(jour))||(isNaN(mois))||(isNaN(annee))){b=-1}else{if((parseInt(mois,10)<1)||(parseInt(mois,10)>12)){b=-1}else{if((parseInt(mois,10)==1||parseInt(mois,10)==3||parseInt(mois,10)==5||parseInt(mois,10)==7||parseInt(mois,10)==8||parseInt(mois,10)==10||parseInt(mois,10)==12)&&(parseInt(jour,10)<1||parseInt(jour,10)>31)){b=-1}else{if((parseInt(mois,10)==4||parseInt(mois,10)==6||parseInt(mois,10)==9||parseInt(mois,10)==11)&&(parseInt(jour,10)<1||parseInt(jour,10)>30)){b=-1}else{if(parseInt(mois,10)==2&&((annee%400==0)||(annee%4==0&&annee%100!=0))){if(parseInt(jour,10)<1||parseInt(jour,10)>29){b=-1}}else{if((parseInt(mois,10)==2)&&((parseInt(jour,10)<1)||(parseInt(jour,10)>28))){b=-1}}}}}}}return b}function valid_pattern(pattern,valeur,sep,field){var test=-1;if(valeur){if(sep){test=1;if(typeof sep=="object"){if(sep.length==1){sep=sep[0]}else{var ref_car=sep[0];var car="";for(var i=1;i<sep.length;i++){car=sep[i];var rgx=eval("/["+car+"]+/g");valeur=valeur.replace(rgx,ref_car)}var rgx=eval("/["+ref_car+"]+/g");valeur=valeur.replace(rgx,ref_car);if(field){field.value=valeur}sep=ref_car}}var valeurs=valeur.split(sep);for(var i=0;i<valeurs.length;i++){test=trim(valeurs[i]).search(pattern);if(test==-1){break}}}else{test=valeur.search(pattern)}}return test}function displayError(c,b){var d="";if(c!="none"&&getEltById(c)){d=getEltById(c).value}var a=getEltById(b+"_myprofile_error");a.innerHTML=d;a.style.display="block"}function buildJsonParam(b,e){var k=new Array();var d={ServiceId:parseInt(my_ctes.newsTVId),SiteId:parseInt(my_ctes.sitId),Selected:false,OpeId:-1,Frequence:"-1",SportIds:null};var f=getEltById("suscribeTv");if(b==my_ctes.newsTVId){if(e!=undefined&&e.checked){setDisplayBlock("suscribeTv");selectAllSportMajor();getEltById("serviceNewsTv").value="checked"}else{if(e!=undefined&&!e.checked){setDisplayNone("suscribeTv");getEltById("serviceNewsTv").value=0}}}else{if(b==0){var m=document.forms.myaccountformsubs;for(var h=0;h<m.length;h++){var g=false;var c=m[h];if(c.id.indexOf("service_news_")==0){if(c.checked){g=true}var l=c.id.split("_");if(l[2]==my_ctes.newsESPId){var q={ServiceId:parseInt(my_ctes.newsESPId),SiteId:parseInt(l[3]),Selected:true};q.ServiceId=parseInt(l[2]);q.SiteId=parseInt(l[3]);q.Selected=g;k.push(q)}if(l[2]==my_ctes.newsTVId&&g){var a=d;var p=getEltById("operators");if(m.elements.operators.value==""){setField(p,"nok");return false}else{setField(p,"std")}a.ServiceId=parseInt(l[2]);a.SiteId=parseInt(l[3]);a.Selected=g;a.OpeId=m.elements.operators.value;a.OpeId=parseInt(a.OpeId);a.Frequence=m.elements.frequency.value;a.SportIds=new Array();if(getNbSportSelected()){a.SportIds.push(parseInt("95"))}else{for(var h=0;h<m.length;h++){var j=m[h];if(j.id.indexOf("sports_tv_")==0){var n=j.id.split("_");if(j.checked){a.SportIds.push(parseInt(n[3]))}}}}if(a.SportIds.length==0){alert(libErrorNotSport);return false}k.push(a)}else{if(l[2]==2&&!g){var a=d;a.SiteId=parseInt(l[3]);k.push(a)}}}}}}var o=getEltById("hideUserServices");o.value=JSON.stringify(k,null,null);return true}function checkBirthday(){var c=getEltById("birthdate");var f=getEltById("dnaiss_a");var d=getEltById("dnaiss_m");var b=getEltById("dnaiss_j");var e=f.value;var a=d.value;var g=b.value;player_usr_birthdate_format=g+"/"+a+"/"+e;if(e==""||a==""||g==""){if(e==""){setField(f,"nok")}else{setField(f,"std")}if(a==""){setField(d,"nok")}else{setField(d,"std")}if(g==""){setField(b,"nok")}else{setField(b,"std")}setField(c,"nok");return false}else{if(VerifDate(player_usr_birthdate_format,"jj/mm/aaaa")==-1){setField(c,"nok");return false}else{setField(f,"std");setField(d,"std");setField(b,"std");setField(c,"std")}}return player_usr_birthdate_format}function createCookie(e,a,d){if(d){var b=new Date();b.setTime(b.getTime()+(d*24*60*60*1000));var c="; expires="+b.toGMTString()}else{var c=""}document.cookie=e+"="+a+c+"; path=/"}function createCookieWithDomain(f,a,e,b){if(e){var d=new Date();d.setTime(d.getTime()+(e*24*60*60*1000));var c="; expires="+d.toGMTString()}else{var c=""}document.cookie=f+"="+a+c+"; path=/; domain="+b}function readCookie(f){var b=f+"=";var e=document.cookie.split(";");for(var a=0;a<e.length;a++){var d=e[a];while(d.charAt(0)==" "){d=d.substring(1,d.length)}if(d.indexOf(b)==0){return d.substring(b.length,d.length)}}return null}function eraseCookieWithDomain(a,b){createCookieWithDomain(a,"",-1,b)}function eraseCookie(a){createCookie(a,"",-1)}function GetParamFromCookie(g){var b=readCookie("CommunityUserHash");var e=g+"=";var f=b.split("&");for(var a=0;a<f.length;a++){var d=f[a];if(d.indexOf(e)==0){return decode_utf8(d.substring(e.length,d.length))}}}function watchCookie(){eraseCookie("CommunityCheck");eraseCookie("CommunityUserHash");eraseCookie("CommunityCheck_IsPermanent");var b=readCookie("CommunityCheck");var a=readCookie("CommunityUserHash");var d=readCookie("CommunityRememberMe");if(b){if(a!=null){if(d){var c=getCookieDomain();createCookieWithDomain("CommunityCheck",b,30,c);createCookieWithDomain("CommunityUserHash",a,30,c);createCookieWithDomain("CommunityRememberMe",d,30,c)}userPseudo=GetParamFromCookie("pseudo");return true}}eraseCookie("CommunityCheck_IsPermanent");eraseCookie("CommunityUserHash");return false}function getCookieDomain(){var b="";var c=new Array();c=dom.substring(0,(dom.length-1)).split(".");var a=c.length;while(a>0&&c[a-1].length<4){b="."+c[a-1]+b;a=a-1}return"."+c[a-1]+b}function eso_docwrite(a){document.write(a)}function VideoListItem(j,l,f,d,g,m,a,e,h,c,k,b){this.titre=j;this.desc=l;this.imgsrc=f;this.link=d;this.trackinfos=g;this.date=m;this.hour=a;this.sportname=e;this.position=h;this.islive=c;this.livestart=k;this.liveend=b}function decode_utf8(a){return decodeURIComponent(a.replace(/\+/g," "))}function loadConfUnsub(){setDisplayNone("labelNews");setDisplayNone("titleUnsub");setDisplayBlock("titleConfUnsub","inline");setDisplayBlock("user_unsubscription_conf")}function loadNoConfUnsub(){setDisplayNone("labelNews");setDisplayNone("titleUnsub");setDisplayBlock("titleConfUnsub","inline");setDisplayBlock("user_unsubscription_noconf")}var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(d){var f="";var b,h,j,g,c,k,e;var a=0;d=Base64._utf8_encode(d);while(a<d.length){b=d.charCodeAt(a++);h=d.charCodeAt(a++);j=d.charCodeAt(a++);g=b>>2;c=((b&3)<<4)|(h>>4);k=((h&15)<<2)|(j>>6);e=j&63;if(isNaN(h)){k=e=64}else{if(isNaN(j)){e=64}}f=f+this._keyStr.charAt(g)+this._keyStr.charAt(c)+this._keyStr.charAt(k)+this._keyStr.charAt(e)}return f},decode:function(d){var f="";var b,h,j;var g,c,k,e;var a=0;d=d.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(a<d.length){g=this._keyStr.indexOf(d.charAt(a++));c=this._keyStr.indexOf(d.charAt(a++));k=this._keyStr.indexOf(d.charAt(a++));e=this._keyStr.indexOf(d.charAt(a++));b=(g<<2)|(c>>4);h=((c&15)<<4)|(k>>2);j=((k&3)<<6)|e;f=f+String.fromCharCode(b);if(k!=64){f=f+String.fromCharCode(h)}if(e!=64){f=f+String.fromCharCode(j)}}f=Base64._utf8_decode(f);return f},_utf8_encode:function(b){b=b.replace(/\r\n/g,"\n");var d="";for(var e=0;e<b.length;e++){var a=b.charCodeAt(e);if(a<128){d+=String.fromCharCode(a)}else{if((a>127)&&(a<2048)){d+=String.fromCharCode((a>>6)|192);d+=String.fromCharCode((a&63)|128)}else{d+=String.fromCharCode((a>>12)|224);d+=String.fromCharCode(((a>>6)&63)|128);d+=String.fromCharCode((a&63)|128)}}}return d},_utf8_decode:function(e){var d="";var a=0;var b=c1=c2=0;while(a<e.length){b=e.charCodeAt(a);if(b<128){d+=String.fromCharCode(b);a++}else{if((b>191)&&(b<224)){c2=e.charCodeAt(a+1);d+=String.fromCharCode(((b&31)<<6)|(c2&63));a+=2}else{c2=e.charCodeAt(a+1);c3=e.charCodeAt(a+2);d+=String.fromCharCode(((b&15)<<12)|((c2&63)<<6)|(c3&63));a+=3}}}return d}};function resetValue(a,b){if(b){getEltById(a).innerHTML=""}else{getEltById(a).value=""}}function OAS_NORMAL(a){document.write('<a href="'+OAS_url+"click_nx.ads/"+OAS_sitepage+"/1"+OAS_rns+"@"+OAS_listpos+"!"+a+OAS_query+'" target=new>');document.write('<img src="'+OAS_url+"adstream_nx.ads/"+OAS_sitepage+"/1"+OAS_rns+"@"+OAS_listpos+"!"+a+OAS_query+'" border=0></a>')}function OAS_AD(a){if(OAS_version>=11){OAS_RICH(a)}else{OAS_NORMAL(a)}}var zindex=100000;var opacity=50;var opaque=0.5;var modalBg="black";var boxBg="#191919";var modal_close="";var isIE6=function(){var a=0;if(navigator.appVersion.indexOf("MSIE")!=-1){temp=navigator.appVersion.split("MSIE");a=parseFloat(temp[1])}if(a>=6&&a<7){return true}else{return false}}();var type="vid";function createCssModalGlobal(e,c,b){if(e=="picture"){var c=458;var b=250}var f=document.getElementById("container");f.style.display="block";f.style.visibility="visible";f.style.position="fixed";f.style.top="50%";f.style.left="50%";f.style.color="#FF0000";f.style.height=b+"px";f.style.zIndex=zindex+3;f.style.marginLeft="-"+c/2+"px";f.style.marginTop="-"+b/2+"px";if(isIE6){f.style.position="absolute"}var d=document.getElementById("opacitycontainer");if(e=="login_form"||e=="deleteModal"){d.style.width=(c-2)+"px";d.style.height="23px";d.style.borderTopLeftRadius="5px";d.style.borderTopRightRadius="5px";d.style.MozBorderRadius="5px 5px 0 0";d.style.WebkitBorderRadius="5px";d.style.background="#004898";if(my_ctes.sitId==79||my_ctes.sitId==80){d.style.background="#046B02"}d.style.border="1px solid #b4b4b4";d.style.marginLeft="1px"}else{d.style.width=(c+15)+"px";d.style.paddingRight="5px";d.style.background=boxBg;d.style.border="1px solid #4a4a4a";d.style.borderBottom="0px"}d.style.textAlign="right";var a=document.getElementById("contentBox");a.style.overflow="hidden";a.style.position="absolute";a.style.zIndex=zindex+2;a.style.display="block";a.style.opacity="1";a.style.MozOpacity="1";a.style.filter="alpha(opacity=100)";a.style.visibility="visible";a.style.width=c+"px";a.style.textAlign="center";if(e=="login_form"||e=="deleteModal"){}else{a.style.background=boxBg;a.style.height=b+"px";a.style.padding="10px 10px 15px 10px"}a.style.border="1px solid #4a4a4a";a.style.borderTop="0px"}function CreateLoginForm(c){var b=new StringBuffer();b.append("");b.append('<div id="'+c.id+'">');b.append('<div style="text-align:center;">');b.append('<img src="'+logoEurosport+'" class="logo">');if(c.siteId=="1"&c.langId=="3"||c.siteId=="2"&c.langId=="3"){b.append('<img src="'+logoPartnerSmall+'" class="logo" style="padding-bottom:20px;margin-left:40px;">')}b.append("</div>");b.append("<h3>"+libIfSubscribe+"</h3>");if(c.siteId=="1"&c.langId=="3"||c.siteId=="2"&c.langId=="3"){b.append("<strong>"+libIdEuroRugby+"</strong>")}else{b.append("<strong>"+libIdSubscribEuro+"</strong>")}b.append('<form name="'+c.id+'" id="'+c.id+'" onsubmit="verify_my_account_form_modal();return false;" class="login_form">');b.append("<fieldset>");b.append("<ul>");b.append("<li>");b.append('<label for="'+libEmail+'">'+libEmail+"<sup>*</sup></label>");b.append('<input type="text" name="email" id="email" value="">');b.append('<div id="msgError_email_Format" class="error">'+libErrorEmailFormat+"</div>");b.append('<div id="msgError_email" class="error">'+libRequiredField+"</div>");b.append("</li>");b.append("<li>");b.append('<label for="'+libPassword+'">'+libPassword+"<sup>*</sup></label>");b.append('<input type="password" name="password" id="password" value="">');b.append('<div id="msgError_password" class="error">'+libRequiredField+"</div>");b.append("</li>");b.append('<li class="remember">');b.append('<label for="'+libRememberMeSimple+'">'+libRememberMeSimple+"</label>");b.append('<input type="checkbox" name="remember" class="check" id="remember"  onclick="if(this.checked) this.value = true; else this.value = false;" value="false" >');b.append("</li>");b.append('<li class="submit">');b.append('<button class="community_login_button" type="submit" name="send" id="id_send_login_'+c.id+'">'+libLogin+"</button>");b.append("</li>");b.append('<li class="lostpassword">');b.append("<span>"+libLostPassword+"</span>");b.append('<a onclick="resetMyPwd(); return false;" class="form_link" href="#">'+libClickHere+"</a>");b.append("<br/><sup>*</sup>"+libRequired+"");b.append("</li>");b.append("</ul>");b.append("</fieldset>");b.append('<input type="hidden" value="-1" name="UserIdFB" id="UserIdFB">');b.append("</form>");b.append("<strong>"+libWithFacebookId+"</strong>");b.append("<p>"+libUseCpteFacebook+"</p>");b.append('<div style="text-align: center;" id="fb">');b.append('<fb:login-button scope="email,user_birthday" autologoutlink="true">connect with facebook</fb:login-button>');b.append('<div id="fb-root">&nbsp;</div>');b.append("</div>");b.append("<hr/>");if(document.domain=="localhost"){var a="http://"+document.domain+"/twister/subscription.shtml"}else{var a="http://"+document.domain+"/subscription.shtml"}b.append('<h3 style="display:inline;">'+libIfNoMember+'</h3> <a style="font-weight:bold;" href="'+a+'">'+libClickHere+"</a> ");b.append("<div>");b.append('<iframe scrolling="no" frameborder="0" src="javascript:false;" style="display: none; left: 0px; position: absolute; top: 0px;" id="login_form_iframe_'+c.id+'">&amp;lt;!----&amp;gt;</iframe>');b.append("</div>");return b}function createDivModalGlobal(j){var f=new StringBuffer();var a=document.createElement("div");a.className="modalBackground";a.setAttribute("id","modalBackgroundEmbed");a.style.display="block";a.style.visibility="visible";a.style.zIndex=zindex;a.style.overflow="hidden";a.style.height="100%";a.style.opacity=opaque;a.style.MozOpacity=opaque;a.style.filter="alpha(opacity=50)";a.style.backgroundColor=modalBg;a.style.width="100%";a.style.top="0";a.style.left="0";a.style.cursor="pointer";a.onclick=function(){HideModalGlobal()};var b="";var g=document.createElement("div");g.id="container";f.append('<div id="opacitycontainer">');f.append("<h2>"+j.title+'</h2><a href="Javascript:HideModalGlobal();" style="color:white;cursor:pointer;text-decoration:underline;margin-top:4px;display:block;">');if(modal_close!=""){f.append("<small>"+modal_close+"</small>")}f.append("</a></div>");f.append('<div id="contentBox" class="container"></div>');g.innerHTML=f.toString();document.body.appendChild(a);document.body.appendChild(g);createCssModalGlobal(j.type,j.width,j.height);var d=document.createElement("div");d.id=j.genId;var c=document.getElementById("contentBox");if(c){c.appendChild(d);if(j.type=="video"){if(queryStat[j.genId].mediaFormatId!=""){if(queryStat[j.genId].mediaFormatId=="66"){createPlayerWat(j.genId,queryStat)}else{createPlayer(j.genId,queryStat)}}}else{if(j.type=="picture"){var h=new StringBuffer();h.append('<img src="');h.append(queryStat[j.genId].mediaUrl);h.append('"/>');d.innerHTML=h.toString()}else{if(j.type=="login_form"){var e=new StringBuffer();e.append(CreateLoginForm(j));d.setAttribute("id",j.id);d.className="modalBody";d.style.background="white";d.innerHTML=e.toString();FB_connect(j)}else{if(j.type=="videoplayer"){CreateVideoPlayer(j.genId)}else{if(j.type=="deleteModal"){var e=new StringBuffer();e.append(createDeleteModal(j));d.setAttribute("id",j.id);d.className="modalBody";d.style.background="white";d.innerHTML=e.toString()}}}}}}}function createDeleteModal(a){var b=new StringBuffer();b.append("");b.append('<div id="'+a.id+'">');b.append('<p style="text-align:center;">');b.append('<img src="'+logoEurosport+'" class="logo" style="padding:5px;"/>');if(a.siteId=="1"&a.langId=="3"||a.siteId=="2"&a.langId=="3"){b.append('<img src="'+logoPartnerSmall+'" class="logo" vspace="23" style="padding:5px 5px 5px 15px;"/>')}b.append("</p>");b.append('<p style="padding-top:5px; margin:15px;">'+msgConfDelete+"</p>");b.append('<p style="padding:5px;margin-left:5px;float:left;"><button name="send" class="community_login_button" onclick="Javascript:deleteUser();">'+libValidate+"</button></p>");b.append('<p style="padding:5px;"><button name="send" class="community_login_button" onclick="Javascript:HideModalGlobal(true);">'+libCancel+"</button></p>");b.append("</div>");return b}function FB_connect(a){FB.init({appId:a.appId,status:true,cookie:true,xfbml:true,oauth:true});FB.getLoginStatus(function(b){if(b.authResponse){FB.api("/me",function(c){if(c.birthday!=null){reqAjaxFB(c,a)}},{scope:"email, read_stream"})}});FB.Event.subscribe("auth.authResponseChange",function(b){FB.login(function(c){if(c.authResponse){FB.api("/me",function(d){if(d.birthday!=null){reqAjaxFB(d,a)}})}else{}},{scope:"user_birthday,email"})})}function FBDisConnect(a){FB.init({appId:a,status:true,cookie:true,xfbml:true,oauth:true});FB.getLoginStatus(function(b){if(b.status=="connected"){FB.logout(function(c){window.location.reload()})}else{window.location.reload()}})}var resp=new Array();function reqAjaxFB(c,b){resp={id:c.id,first_name:c.first_name,last_name:c.last_name,email:c.email,birthday:c.birthday,mode:b.mode};var a=new StringBuffer;url=b.ws_dom+"/PublicCommunity.asmx/LogonUserByFacebookId";reqFBAjax=new Ajax(url,{method:"post",postBody:"facebookId="+c.id+"&email="+c.email+"&siteId="+b.siteId+"&siteGroupId="+b.sitGroupId,onComplete:ReturnAjax,onFailure:ReturnFailed,evalScripts:false});reqFBAjax.request()}function ReturnFailed(a){}function ReturnAjax(f,d){var c=d.getElementsByTagName("AjaxResponse");if(c.length>0){var a=c[0].getElementsByTagName("Success")[0].firstChild;var e=(a!=null?a.nodeValue:"0");var g=c[0].getElementsByTagName("Message")[0].firstChild;var b=(g!=null?g.nodeValue:"");var h=readCookie("urlRet");if(e=="1"&&b==""){if(h){document.location.href=h}else{window.location.reload()}}else{if(e=="0"&&b=="ErrorUnknownUser"){if(document.domain=="localhost"){createCookie("urlRet",window.location.href,1);document.location.href="http://"+document.domain+"/twister/subscription.shtml?domain=www.eurosport.fr"}else{if(h){FB_Response(resp)}else{createCookie("urlRet",window.location.href,1);document.location.href="http://"+document.domain+"/subscription.shtml"}}}else{FB_Response(resp)}}}}function FB_Response(a){if(a.email){my_ctes.FacebookId=a.id;if(document.getElementById("firstname")){document.getElementById("UserIdFB").value=a.id;document.getElementById("firstname").value=a.first_name;document.getElementById("lastname").value=a.last_name;document.getElementById("email").value=a.email;var c=a.birthday;var b=c.split("/");document.getElementById("dnaiss_m").value=b[0];document.getElementById("dnaiss_j").value=b[1];document.getElementById("dnaiss_a").value=b[2];document.getElementById("cpteFB").style.display="none";document.getElementById("fn_input").style.display="none";document.getElementById("ln_input").style.display="none";document.getElementById("country_input").style.display="none";document.getElementById("birth_input").style.display="none";document.getElementById("responseFB").style.display="block";document.getElementById("email_input").style.display="block"}else{document.location.href="http://"+document.domain+"/subscription.shtml"}}}function HideModalGlobal(b){var c=document.getElementById("modalBackgroundEmbed");c.style.display="none";c.style.visibility="hidden";var d=document.getElementById("container");d.style.display="none";d.style.visibility="hidden";document.getElementById("contentBox").innerHTML="";var a=document.getElementsByTagName("body")[0];a.removeChild(d);a.removeChild(c);if(b){loadCaptcha()}}function resetMyPwd(){var a=getEltById("email");if(a.value!=""){resetPassword();setField(a,"std")}else{setField(a,"nok")}}function messRateOk(c,d){if(true){messOk=new StringBuffer();messOk.append('<div class="modalMessage" style="text-align: center; width: 250px;">');messOk.append('<p style="background-color: white; font-size: 14px; height: 150px;padding-top:25px;">');messOk.append(d);messOk.append("</p>");messOk.append("</div>");return messOk}}function createModalBackground(f){if(!f){f="modalBackground"}var g=document.getElementById(f);if(!g){g=document.createElement("div");g.className=f;g.setAttribute("id",f);var e=document.getElementsByTagName("body")[0];e.appendChild(g);if(f=="modalBackground"){e.style.height="100%";var a=10000;var d=50;var c=0.5;var b="#000000";g.style.overflow="hidden";g.style.display="none";g.style.height="100%";g.InnerText=" ";g.style.opacity=c;g.style.MozOpacity=c;g.style.filter="alpha(opacity="+d+")";g.style.zIndex=a;g.style.backgroundColor=b;g.style.display="none"}}return g}function CreateModalContainer(f,d,k,a){var c=document.getElementById("modalContainer_"+f);if(!c){c=document.createElement("div");c.className="modalContainer";c.setAttribute("id","modalContainer_"+f);if(d){var j=document.createElement("div");j.className="modalTop";j.setAttribute("id","modalTop_"+f);var g=document.createElement("span");g.appendChild(document.createTextNode(d));j.appendChild(g);if(k||a){var e=document.createElement("div");e.className="modalButtonCloseMe";e.setAttribute("id","modalButton_"+f+"_close_me");if(k){var b=document.createElement("span");b.appendChild(document.createTextNode(k));e.appendChild(b)}if(a){var l=document.createElement("img");l.src=a;e.appendChild(l)}j.appendChild(e)}c.appendChild(j)}var h=document.createElement("div");h.className="modalBody";h.setAttribute("id","modalBody_"+f);c.appendChild(h);var m=document.getElementsByTagName("body")[0];m.appendChild(c)}return c}function revealModal(k,f,l,j){var t=document.getElementById("modalBackground");if(!t){t=createModalBackground()}var p=k.id;var a=document.getElementById("modalContainer_"+p);if(!a){a=CreateModalContainer(p,f,l,j);if(k){var g=document.getElementById("modalBody_"+p);if(g){g.innerHTML="";var h=document.createElement("div");if(k.css){h.className=k.css}var q;if(k.node){var d,m;d=k.node;if(typeof k.node=="string"){d=document.getElementById(k.node)}if(d){m=d.innerHTML;if(k.button){var s;if(typeof k.button=="string"){s=document.getElementById(k.button)}else{s=k.button}if(s){q=s.onclick}}var r=m;try{d.parentNode.removeChild(d)}catch(n){}h.setAttribute("id",d.id);h.innerHTML=m}}else{if(k.txt){h.setAttribute("id",k.id);h.innerHTML=k.txt}else{if(k.span){var o=document.createElement("span");o.appendChild(document.createTextNode(k.span));h.appendChild(o)}}}g.appendChild(h);if(k.button&&q){var s;if(typeof k.button=="string"){s=document.getElementById(k.button)}else{s=k.button}if(typeof q=="function"){s.onclick=q}}}}}var d=a;if(document.getElementById("modalButton_"+p+"_close_me")){d=document.getElementById("modalButton_"+p+"_close_me")}else{if(document.getElementById("modalTop_"+p)){d=document.getElementById("modalTop_"+p)}}if(typeof k.close=="function"){var q=k.close;if(typeof q=="function"){d.onclick=function(){q({caller:k.caller})}}}else{var c=(k.node)?0:1;if(p=="text"){a.style.background="none";a.style.border="none";setTimeout(function(){hideModal(p,c)},1600)}else{d.onclick=function(){hideModal(p,c)}}}a.style.display="block";a.style.visibility="visible";if(navigator.userAgent.indexOf("; MSIE 6.0;")>-1){a.style.top=document.documentElement.scrollTop+a.offsetHeight}t.style.display="block";t.style.visibility="visible";if(navigator.userAgent.indexOf("; MSIE 6.0;")>-1){var b=document.getElementById("login_form_iframe_"+p);if(b){b.style.left=document.documentElement.scrollLeft;b.style.top=document.documentElement.scrollTop;b.style.width=document.documentElement.clientWidth;b.style.height=document.body.clientHeight;b.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";b.style.zIndex="1000";b.style.display="block"}}document.documentElement.style.overflow="hidden"}function hideModal(c,b){if(!b){b=0}var g=document.getElementById("modalBackground");if(g){g.style.display="none";g.style.visibility="hidden"}var a=document.getElementById("modalContainer_"+c);if(a){a.style.display="none";a.style.visibility="hidden"}if(navigator.userAgent.indexOf("; MSIE 6.0;")>-1){var d=document.getElementById("login_form_iframe_"+c);if(d){d.style.display="none"}}document.documentElement.style.overflow="auto";if(b==1){try{a.parentNode.removeChild(a)}catch(f){}}}function ShowReasonUnsubContainer(){var b=document.getElementById("modalBackground");if(!b){b=createModalBackground()}b.style.display="block";b.style.visibility="visible";var c=document.getElementById("modalreasoncontainer");c.style.display="block";c.style.visibility="visible";var a=document.getElementsByTagName("body")[0];a.appendChild(c);getEltById("dt_now").innerHTML=getDateNow();getEltById("dt_end").innerHTML=player_realenddate_unsub}function HideReasonUnsubContainer(){var b=document.getElementById("modalBackground");if(!b){b=createModalBackground()}b.style.display="none";b.style.visibility="hidden";var a=document.getElementById("modalreasoncontainer");a.style.display="none";a.style.visibility="hidden"}function ShowPrettyOpacity(){var a=document.getElementById("prettyOver");if(!a){a=createModalBackground("prettyOver")}a.style.display="block";a.style.visibility="visible";var b=getEltById("PageMyProfile");b.appendChild(a)}function HidePrettyOpacity(){var a=document.getElementById("prettyOver");a.style.display="none";a.style.visibility="hidden";var b=document.getElementsByTagName("body")[0];b.appendChild(a)}function HideReallyModal(a){var c=document.getElementById(a);var b=document.getElementById("modalBackground");if(b){b.style.display="none";b.style.visibility="hidden"}c.style.display="none";c.style.visibility="hidden"}Object.size=function(b){var a=0,c;for(c in b){if(b.hasOwnProperty(c)){a++}}return a};function URLEncode(e){var d="";var a=0;e=e.toString();var f=/(^[a-zA-Z0-9_.]*)/;while(a<e.length){var c=f.exec(e.substr(a));if(c!=null&&c.length>1&&c[1]!=""){d+=c[1];a+=c[1].length}else{if(e[a]==" "){d+="+"}else{var b=e.charCodeAt(a);var g=b.toString(16);d+="%"+(g.length<2?"0":"")+g.toUpperCase()}a++}}return d}function URLDecode(e){var c=e;var a,d;var b=/(%[^%]{2})/;while((match=b.exec(c))!=null&&match.length>1&&match[1]!=""){a=parseInt(match[1].substr(1),16);d=String.fromCharCode(a);c=c.replace(match[1],d)}return c}function set_display_mode(node,mode,target){if(node){if(typeof node=="string"){node=document.getElementById(node)}if(node){if(target){var str="node."+target;node=eval(str)}if(node&&mode){node.style.display=mode}}}return}function trim(a){return LTrim(RTrim(a))}function LTrim(a){return a.replace(/^\s+/,"")}function RTrim(a){return a.replace(/\s+$/,"")}function LZ(a){a=parseInt(a,10);return(a<0||a>9?"":"0")+a}function ctrl_taille(b,f,a,g){if(typeof b=="string"){b=document.getElementById(b)}if(typeof a=="string"){a=document.getElementById(a)}if(typeof g=="string"){g=document.getElementById(g)}if(b&&a){var c=b.value;var d=c.length;var h=f-d;if(d==0){a.innerHTML=f}else{if(h>=0){a.innerHTML=f-d}else{var e=true;if(g){if(g.value!=c){e=true}else{e=false}}if(e){b.value=c.substring(0,f);if(g){g.value=b.value}}a.innerHTML=f}}}return}var userId=-1;var userSocialTitle=-1;var userName="";var userPseudo="";var userRole=-1;var userFirstname="";var userCountry=-1;var userEmail="";var userPassword="";var userActivationHash="";var userInfos="";function userInfo(b,a,c){this.field=b;this.check=a;this.infos=c}function GetHashFromQS(){var c="";var f="";var e=window.document.location.href.split("?");var b=e[0];if(e.length==2){f=e[1]}if(f){var a=new RegExp(/[&]{0,1}activationhash=([\w]*)[&]{0,1}/);var d=a.exec(window.document.location.href);if(d&&d.length==2){c=d[1]}}return c}function GetHashFromCookie(){var a=readCookie("CommunityUserHash");return a}function GetHashCode(a){var b="";if(typeof userActivationHash=="string"&&userActivationHash!=""){b=userActivationHash}else{if(typeof a=="string"&&a!=""){b=a}else{b=GetHashFromQS()}}if(!b){b=GetHashFromCookie()}return b}function UpdateQueryHash(){var a="",b="";var d=window.document.location.href.split("?");var a=d[0];if(d.length==2){b=d[1]}if(b!=""){var c=GetHashFromQS();if(typeof c=="string"&&c!=""&&typeof userActivationHash=="string"&&userActivationHash!=c){a=window.document.location.href.replace(c,userActivationHash)}}else{if(typeof userActivationHash=="string"&&userActivationHash!=""){a+="?sitegroupeid="+my_ctes.sgrId+"&siteid="+my_ctes.sitId+"&activationhash="+userActivationHash+"&op=4"}}return a}function json2str(a){return JSON.stringify(a,null,"\t")}function KVPToJson(chaine,sep_1,sep_2){var ret={};if(chaine){try{if(!sep_1){sep_1="&"}else{if(sep_1=="|"){sep_1="\\"+sep_1}}if(!sep_2){sep_2="="}var s_regex="([^"+sep_2+"]+)("+sep_2+")([^"+sep_1+"?]+)"+sep_1+"?";var reg=new RegExp(s_regex,"g");ret=eval("({"+chaine.replace(reg,"'$1':'$3'").replace(/\'\'/g,"', '")+"})")}catch(e){}}return ret}function Disable_Field(b,a){if(b){if(typeof a=="undefined"){a=true}b.disabled=a}}function Enable_Field(b,a){Disable_Field(b,false)}function RAZ_node(a){if(a){while(a.firstChild){a.removeChild(a.firstChild)}}}function cree_node(b,a,d,e){var c;c=window.document.createElement(a);if(e){c.setAttribute("class",e);c.setAttribute("className",e)}if(d){c.innerHTML=d}b.appendChild(c);return c}function cree_input(b,a,d,e){var c;c=window.document.createElement("input");c.setAttribute("type",a);if(e){c.setAttribute("class",e);c.setAttribute("className",e)}if(d){c.innerHTML=d}b.appendChild(c);return c}function CommentListItem(j,d,a,h,c,e,b,f,g){this.id=j;this.username=d;this.userid=a;this.date=h;this.time=c;this.text=e;this.status=b;this.urlabuse=f;this.role=g}function loadCaptcha(){if(hideCaptcha()){var a=true;setDisplayNone("captcha")}else{reload_captcha()}return false}function verify_my_account_form_modal(){var a=getEltById("userlogin");var e=document.forms.userlogin.elements.email.value;var d=document.forms.userlogin.elements.password.value;var c=getEltById("email");var b=getEltById("password");if(e==""){setField(c,"nok");return false}else{if(valid_pattern(email_pattern,trim(e))==-1){setField(c,"std");setField(c,"nokfe");return false}else{setField(c,"std")}}if(trim(d)==""){setField(b,"nok");return false}else{setField(b,"std")}createCookie("urlRet",window.location.href,1);logonUserByEmail()}function goToUrlRet(){var b=readCookie("urlRet");var a="";if(b&&b!=null){document.location.href=b}else{document.location.href="myprofile.shtml"}}function rememberMyUser(a){if(a){createCookie("CommunityCheck_IsPermanent","True",30)}else{eraseCookie("CommunityCheck_IsPermanent")}}function resetFieldCaptcha(a){if(a!=""){getEltById(a).value=""}}function changeLinkAbuse(){var a=getEltsByTgN("a",getEltById("comments"));if(!watchCookie()||watchCookie()==""||watchCookie()==false){for(i=0;i<a.length;i++){if(a[i].id.indexOf("abuseBlueLink_")==0){a[i].onclick=function(){ModalLog()}}}}}function onFocusUCF(a){if(!watchCookie()){ModalLog()}else{if(a.value==loginComment){a.value="";ctrl_taille(getEltById("id_text"),maxCars,getEltById("reste_id_text"));setDisplayBlock("reste_id_text")}}}function onBlurUCF(a){if(watchCookie()){if(a.value==""){a.value=loginComment}}else{if(a.value==""){a.value=loginComment}}}function manageNoComment(a){var b=a.getElementsByTagName("usercommentlist")[0].attributes.getNamedItem("arecommentsdesactivated").value;if(b=="True"){javascript:history.go(0)}}function addUserComment(){if(watchCookie()){if(getEltById("id_text").value==loginComment){getEltById("id_text").focus()}else{verif_form_uco()}}else{ModalLog()}}function getPageProfile(){if(watchCookie()){var a=GetParamFromCookie("role");if(a!=undefined){if(a==1||a==2){setDisplayBlock("admin_profile");displayLinkDelete()}}}}function deleteCommentWS(a,b){getEltById("valDelCom").value=a+"_comment"+b;deleteComment()}function displayLinkDelete(){var a=getEltsByTgN("span",getEltById("comments"));for(i=0;i<a.length;i++){if(a[i].className=="right , btndelete"){a[i].style.display="block";getEltsByTgN("img",a[i])[0].className="displayimgdelete"}}}function deleteThisMessage(a){alert(confDelete);var b=getEltById(getEltSplit(a,1,"_"));getEltById("comments").removeChild(b)}function getEltSplit(b,c,a){var d=b.split(a);return d[c]}function communityLoading(a,c,b){if(!a){setDisplayNone(c);setDisplayBlock(b)}else{if(a){setDisplayNone(b);setDisplayBlock(c)}}}if(!this.JSON){JSON=function(){function f(n){return n<10?"0"+n:n}Date.prototype.toJSON=function(key){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()};var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapeable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapeable.lastIndex=0;return escapeable.test(string)?'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==="string"){return c}return"\\u"+("0000"+(+(a.charCodeAt(0))).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(typeof value.length==="number"&&!(value.propertyIsEnumerable("length"))){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value,rep);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value,rep);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}return{stringify:function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})},parse:function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+(+(a.charCodeAt(0))).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}()}var getIEversion=function(){var a=0;if(navigator.appVersion.indexOf("MSIE")!=-1){temp=navigator.appVersion.split("MSIE");a=parseFloat(temp[1])}return a}();var isIE6Browser=function(){var a=0;if(navigator.appVersion.indexOf("MSIE")!=-1){temp=navigator.appVersion.split("MSIE");a=parseFloat(temp[1])}if(a>=6&&a<7){return true}else{return false}}();
