/*
* Mentions légales et de droits réservés
* En vous connectant à ce site édité et mis en ligne pour le compte de nos clients, vous accédez à un contenu protégé 
* par la loi, notamment par les dispositions du Code de la propriété intellectuelle.
* L'éditeur n'autorise qu'un usage strictement personnel des données, informations ou contenus auxquels vous accédez,
* limité à un enregistrement temporaire sur votre ordinateur aux fins d'affichage sur un seul écran.
* 
* Tous les matériaux publiés sur ce site web appartiennent à DBee, ses filiales, ses partenaires et/ou ses clients.
* Toutes les marques de commerce, marques de service et nom de marques appartiennent à DBee, ses filiales, ses 
* partenaires et/ou ses clients.
* A moins qu’autrement spécifié, les matériaux et services publiés sur ce site web sont destinés à votre utilisation
* personnelle et non commerciale. La modification, la copie, la distribution, la transmission, l’affichage, l’exécution,
* la reproduction, la publication, la mise sous licence, la création de travaux dérivés, le transfert ou la vente
* d’informations, de logiciels, de produits ou de services obtenus à partir de ce site web, sont interdites sans l’accord
* (obtenu au préalable par écrit) de DBee SA.
* Copyright 2005-2008 DBee SA, 35-37 rue de Paris 92100 Boulogne Billancourt, FRANCE. Tous droits réservés
*
* Version:
* 1.3.1 
*/var localDate=new Date();local_time=localDate.getTime();delta_time=(server_time-local_time);reviewed_time=(local_time+delta_time);refpage=document.referrer;function stripLeadingZeroes(input){if((input.length>1)&&(input.substr(0,1)=="0"))return input.substr(1);else return input;};function calculateClientUnixTime(){var localDate=new Date();UnixTimestamp=localDate.getTime();return UnixTimestamp;};String.prototype.sans_accents=function(){var ch=this.replace(/é|è|ê|ë/g,"e");ch=ch.replace(/à|â|ä/g,"a");ch=ch.replace(/ç/g,"c");ch=ch.replace(/î|ï/g,"i");ch=ch.replace(/ô|ö/g,"o");ch=ch.replace(/ù|û|ü/g,"u");ch=ch.replace(/À|Â|Ä|Å/g,"A");ch=ch.replace(/Ç/g,"C");ch=ch.replace(/É|È|Ê|Ë/g,"E");ch=ch.replace(/Ô|Ö/g,"O");ch=ch.replace(/Ù|Û|Ü/g,"U");return ch;};function compare_countries(p1,p2){if(p1[1][target_langue].sans_accents()<p2[1][target_langue].sans_accents())return-1;else if(p1[1][target_langue].sans_accents()>p2[1][target_langue].sans_accents())return 1;};function email_valide(cF){return(cF.search("^[_A-Za-z0-9-]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+([\.][A-Za-z0-9-]+)+$")!= -1);};function string_valide(cF){return(cF.search("^[\s0-9A-Za-zéèêëàâäçîïôöùûüÉÈÊËÀÂÄÎÏÔÖÙÛÜ_\ \'-]+$")!= -1);};function check_cookies_enabled(){var tmpcookie=new Date();cA=(tmpcookie.getTime()+'');document.cookie="cA="+cA+"; path=/";if(document.cookie.indexOf(cA,0)<0){return "0";}else{return "1";}};function getCookieVal(offset){var endstr=document.cookie.indexOf(";",offset);if(endstr== -1)endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));};function GetCookie(name){var aD=name+"=";var cz=aD.length;var cG=document.cookie.length;var i=0;while(i<cG){var j=i+cz;if(document.cookie.substring(i,j)==aD)return getCookieVal(j);i=document.cookie.indexOf(" ",i)+1;if(i==0)break;}return null;};function check_contexte_page(target_type,target_langue,target_op){for(var i=0;i<context[target_op].length;i++){if((context[target_op][i][1]==target_type)&&(context[target_op][i][2]==target_langue))id_context=context[target_op][i][0];}return id_context;};function check_contexte_stream(target_type,target_template_type,target_langue,target_op,target_format,target_debit){for(var i=0;i<context[target_op].length;i++){if((context[target_op][i][1]==target_type)&&(context[target_op][i][2]==target_langue)&&(context[target_op][i][3]==target_format)&&(context[target_op][i][4]==target_debit)&&(context[target_op][i][5]==target_template_type))id_context=context[target_op][i][0];}return id_context;};function jumpto(desturl){if(cookies_enabled==0){document.location=desturl+"?uidVisitor="+uidVisitor;}else{document.location=desturl;}};function URLEncode(plaintext){var SAFECHARS="0123456789"+"ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"abcdefghijklmnopqrstuvwxyz"+"-_.!~*'()";var HEX="0123456789ABCDEF";var encoded="";for(var i=0;i<plaintext.length;i++){var ch=plaintext.charAt(i);if(ch==" "){encoded+="+";}else if(SAFECHARS.indexOf(ch)!= -1){encoded+=ch;}else{var charCode=ch.charCodeAt(0);if(charCode>255){}else{encoded+="%";encoded+=HEX.charAt((charCode>>4)&0xF);encoded+=HEX.charAt(charCode&0xF);}}}return encoded;};function URLDecode(encoded){var HEXCHARS="0123456789ABCDEFabcdef";var plaintext="";var i=0;while(i<encoded.length){var ch=encoded.charAt(i);if(ch=="+"){plaintext+=" ";i++;}else if(ch=="%"){if(i<(encoded.length-2)&&HEXCHARS.indexOf(encoded.charAt(i+1))!= -1&&HEXCHARS.indexOf(encoded.charAt(i+2))!= -1){plaintext+=unescape(encoded.substr(i,3));i+=3;}else{plaintext+="%[ERROR]";i++;}}else{plaintext+=ch;i++;}}return plaintext;};function addEventToTempArray(eventsource,eventtype,eventid,received_trigger_type,received_trigger_param,received_trigger_timestamp,received_currents_to_send_list,received_session_id){timecode=(calculateClientUnixTime()+delta_time);if(timecode){EventArray[0]=timecode;}else{EventArray[0]=0;}if(eventsource){EventArray[1]=eventsource;}else{EventArray[1]=0;}if(eventtype){EventArray[2]=eventtype;}else{EventArray[2]=0;}if(eventid){EventArray[3]=eventid;}else{EventArray[3]=0;}if(sequence_id){EventArray[4]=sequence_id;}else{EventArray[4]=0;}if(received_trigger_type){EventArray[5]=received_trigger_type;}else{EventArray[5]=0;}if(received_trigger_param){EventArray[6]=received_trigger_param;}else{EventArray[6]=0;}if(received_trigger_timestamp){EventArray[7]=received_trigger_timestamp;}else{EventArray[7]=0;}if(received_currents_to_send_list){EventArray[8]=received_currents_to_send_list;}else{EventArray[8]=received_currents_to_send_list;}if(received_session_id){EventArray[9]=received_session_id;}else{EventArray[9]=0;}datatosendtoTampon=EventArray.join('|');updateTampon(datatosendtoTampon);};function updateTampon(datasentfromEvents){if(targetDIV=document.getElementById('debuggorDIV')){document.getElementById('tampon_array_content').innerHTML="";document.getElementById('tampon_array_content').innerHTML+="<tr><td class=\"loggercell\"><strong>ARRAYID</strong></td><td class=\"loggercell\"><strong>TIMECODE</strong></td><td class=\"loggercell\"><strong>EVENTSOURCE</strong></td><td class=\"loggercell\"><strong>EVENTTYPE</strong></td><td class=\"loggercell\"><strong>EVENTPARAM</strong></td><td class=\"loggercell\"><strong>SEQUENCE</strong></td><td class=\"loggercell\"><strong>TRIGGER TYPE</strong></td><td class=\"loggercell\"><strong>TRIGGER PARAM</strong></td><td class=\"loggercell\"><strong>TRIGGER TS</strong></td><td class=\"loggercell\"><strong>CURRENTS</strong></td><td class=\"loggercell\"><strong>SESSION ID</strong></td></tr>"}Tampon=Tampon+datasentfromEvents+'||';tmpdata=Tampon.split("||");if(targetDIV=document.getElementById('debuggorDIV')){for(var i=0;i<(tmpdata.length-1);i++){tmpdata2=tmpdata[i].split("|");timecode=tmpdata2[0];eventsource=tmpdata2[1];eventtype=tmpdata2[2];eventid=tmpdata2[3];sequenceid=tmpdata2[4];received_trigger_type=tmpdata2[5];received_trigger_param=tmpdata2[6];received_trigger_timestamp=tmpdata2[7];received_currents_to_send_list=tmpdata2[8];received_session_id=tmpdata2[9];document.getElementById('tampon_array_content').innerHTML+="<tr><td class=\"loggercell\">"+i+"</td><td class=\"loggercell\">"+timecode+"</td><td class=\"loggercell\">"+eventsource+"</td><td class=\"loggercell\">"+eventtype+"</td><td class=\"loggercell\">"+eventid+"</td><td class=\"loggercell\">"+sequenceid+"</td><td class=\"loggercell\">"+received_trigger_type+"</td><td class=\"loggercell\">"+received_trigger_param+"</td><td class=\"loggercell\">"+received_trigger_timestamp+"</td><td class=\"loggercell\">"+received_currents_to_send_list+"</td><td class=\"loggercell\">"+received_session_id+"</td></tr>";}}};function transferTamponToSendSpool(){SubSpool=new Array();tobesenttospool=Tampon;SubSpool.push(tobesenttospool);Tampon="";tmpdata2send=SubSpool[0].split("||");for(var m=0;m<(tmpdata2send.length-1);m++){eventdatatosendtosendarray=tmpdata2send[m];SendArray.push(eventdatatosendtosendarray);}if(targetDIV=document.getElementById('debuggorDIV')){document.getElementById('tampon_array_content').innerHTML="";document.getElementById('spool_array_content').innerHTML="";document.getElementById('spool_array_content').innerHTML='<table border="1" cellspacing="0" cellpadding="2" valign="top">';document.getElementById('spool_array_content').innerHTML+="<tr><td class=\"loggercell\"><strong>ARRAYID</strong></td><td class=\"loggercell\"><strong>TIMECODE</strong></td><td class=\"loggercell\"><strong>EVENTSOURCE</strong></td><td class=\"loggercell\"><strong>EVENTTYPE</strong></td><td class=\"loggercell\"><strong>EVENTPARAM</strong></td><td class=\"loggercell\"><strong>SEQUENCE</strong></td><td class=\"loggercell\"><strong>TRIGGER TYPE</strong></td><td class=\"loggercell\"><strong>TRIGGER PARAM</strong></td><td class=\"loggercell\"><strong>TRIGGER TS</strong></td><td class=\"loggercell\"><strong>CURRENTS</strong></td><td class=\"loggercell\"><strong>SESSION ID</strong></td></tr>";for(var i=0;i<SendArray.length;i++){tmpdata2send=SendArray[i].split("|");for(var m=0;m<(tmpdata2send.length-1);m++){timecode=tmpdata2send[0];eventsource=tmpdata2send[1];eventtype=tmpdata2send[2];eventid=tmpdata2send[3];sequenceid=tmpdata2send[4];received_trigger_type=tmpdata2send[5];received_trigger_param=tmpdata2send[6];received_trigger_timestamp=tmpdata2send[7];received_currents_to_send_list=tmpdata2send[8];received_session_id=tmpdata2send[9];}document.getElementById('spool_array_content').innerHTML+="<tr><td class=\"loggercell\">"+i+"</td><td class=\"loggercell\">"+timecode+"</td><td class=\"loggercell\">"+eventsource+"</td><td class=\"loggercell\">"+eventtype+"</td><td class=\"loggercell\">"+eventid+"</td><td class=\"loggercell\">"+sequenceid+"</td><td class=\"loggercell\">"+received_trigger_type+"</td><td class=\"loggercell\">"+received_trigger_param+"</td><td class=\"loggercell\">"+received_trigger_timestamp+"</td><td class=\"loggercell\">"+received_currents_to_send_list+"</td><td class=\"loggercell\">"+received_session_id+"</td></tr>";}document.getElementById('spool_array_content').innerHTML+='</table>';}};function checkplayerstate(){try{current_state=bPlayer.retrievePlayerState();if(current_state=="PLAYING"){addEventToTempArray("STREAM_STATE_CHECK","PLAYING",sequence_id,trigger_type,trigger_param,trigger_timestamp,currents_to_send_list,session_id);}if(Tampon.length>0){transferTamponToSendSpool();}}catch(I){if(Tampon.length>0){transferTamponToSendSpool();}}};function resetSendArray(){if(targetDIV=document.getElementById('debuggorDIV')){document.getElementById('spool_array_content').innerHTML="";document.getElementById('spool_array_content').innerHTML='<table border="1" cellspacing="0" cellpadding="2" valign="top">';document.getElementById('spool_array_content').innerHTML+="<tr><td class=\"loggercell\"><strong>ARRAYID</strong></td><td class=\"loggercell\"><strong>TIMECODE</strong></td><td class=\"loggercell\"><strong>EVENTSOURCE</strong></td><td class=\"loggercell\"><strong>EVENTTYPE</strong></td><td class=\"loggercell\"><strong>EVENTPARAM</strong></td><td class=\"loggercell\"><strong>SEQUENCE</strong></td><td class=\"loggercell\"><strong>TRIGGER TYPE</strong></td><td class=\"loggercell\"><strong>TRIGGER PARAM</strong></td><td class=\"loggercell\"><strong>TRIGGER TS</strong></td><td class=\"loggercell\"><strong>CURRENTS</strong></td><td class=\"loggercell\"><strong>SESSION ID</strong></td></tr>";for(var i=0;i<SendArray.length;i++){tmpdata2send=SendArray[i].split("|");for(var m=0;m<(tmpdata2send.length-1);m++){timecode=tmpdata2send[0];eventsource=tmpdata2send[1];eventtype=tmpdata2send[2];eventid=tmpdata2send[3];sequenceid=tmpdata2send[4];received_trigger_type=tmpdata2send[5];received_trigger_param=tmpdata2send[6];received_trigger_timestamp=tmpdata2send[7];received_currents_to_send_list=tmpdata2send[8];received_session_id=tmpdata2send[9];}document.getElementById('spool_array_content').innerHTML+="<tr><td class=\"loggercell\">"+i+"</td><td class=\"loggercell\">"+timecode+"</td><td class=\"loggercell\">"+eventsource+"</td><td class=\"loggercell\">"+eventtype+"</td><td class=\"loggercell\">"+eventid+"</td><td class=\"loggercell\">"+sequenceid+"</td><td class=\"loggercell\">"+received_trigger_type+"</td><td class=\"loggercell\">"+received_trigger_param+"</td><td class=\"loggercell\">"+received_trigger_timestamp+"</td><td class=\"loggercell\">"+received_currents_to_send_list+"</td><td class=\"loggercell\">"+received_session_id+"</td></tr>";}document.getElementById('spool_array_content').innerHTML+='</table>';}};function SetLoggerOn(){log_actions=true;};function SetLoggerOff(){log_actions=false;};function DownloadFile(path,filename){if(log_actions==true){try{addEventToTempArray("USER_EVENT","DOCUMENT_DOWNLOAD",filename,trigger_type,trigger_param,trigger_timestamp,currents_to_send_list,session_id);}catch(I){}}winId=window.open(path+filename,"_blank");};function SetTrigger(new_trigger_type,new_trigger_param){trigger_type=new_trigger_type;trigger_param=new_trigger_param;timecode=(calculateClientUnixTime()+delta_time);trigger_timestamp=timecode;};function UpdateCurrents(){try{currents_to_send_list="";for(var i=0;i<currents_to_send.length;i++){searched_current=currents_to_send[i];if(bPlayer.currentLive[searched_current]){current_value=bPlayer.currentLive[searched_current];}else{current_value=eval("current_"+searched_current);}currents_to_send_list+=searched_current+"="+current_value;if((i<currents_to_send.length-1)&&(currents_to_send.length>1)){currents_to_send_list+="*";}}}catch(I){}};function setCloseListener(){flusher=true;try{ThisStateManager.poll();}catch(I){}};var queryStringArray=Array();var queryString="";tempQS=location.href.split('?');if(tempQS[1]!=undefined){queryString=tempQS[1];queryString=queryString.replace("#","");tempQS=tempQS[1].split('&');for(i=0;i<tempQS.length;i++){tempQS_item=tempQS[i].split('=');queryStringArray[tempQS_item[0]]=tempQS_item[1];}}function changeThema(idThema){try{UpdateCurrents();addEventToTempArray("USER_EVENT","GOTO_THEMA",idThema,trigger_type,trigger_param,trigger_timestamp,currents_to_send_list,session_id);addEventToTempArray("EVENT_CONSULT_CHECK","THEMA",idThema,trigger_type,trigger_param,trigger_timestamp,currents_to_send_list,session_id);SetTrigger("user_goto_thema",idThema);}catch(I){}};function browseSlideList(idSlide){try{SetTrigger("user_goto_slide",idSlide);addEventToTempArray("USER_EVENT","GOTO_SLIDE",idSlide,trigger_type,trigger_param,trigger_timestamp,currents_to_send_list,session_id);}catch(I){}};function switchversion(dest_player,dest_debit){var navigateur=navigator.appName;var hote=document.location.host;var localisation=document.location.pathname;var racine=(hote!=''||navigateur=='Netscape')?localisation.split('/'):localisation.split(/&&/);var condition=racine.length;var fichier=racine[condition-1];document.location=fichier+"?player="+dest_player+"&debit="+dest_debit;};function handleError(){return true;};function ShowSurvey(){if(document.getElementById('surveyWindowContainer').style.visibility=="hidden")document.getElementById('surveyWindowContainer').style.visibility="visible";if(document.getElementById('surveyBannerContainer').style.visibility=="hidden")document.getElementById('surveyBannerContainer').style.visibility="visible";survey_opened=true;};function HideSurvey(){if(document.getElementById('surveyWindowContainer').style.visibility=="visible")document.getElementById('surveyWindowContainer').style.visibility="hidden";if(document.getElementById('surveyBannerContainer').style.visibility=="visible")document.getElementById('surveyBannerContainer').style.visibility="hidden";survey_opened=false;};function setListeners(){inputList=document.getElementsByTagName("INPUT");for(i=0;i<inputList.length;i++){inputList[i].attachEvent("onpropertychange",restoreStyles);inputList[i].style.backgroundColor="";}selectList=document.getElementsByTagName("SELECT");for(i=0;i<selectList.length;i++){selectList[i].attachEvent("onpropertychange",restoreStyles);selectList[i].style.backgroundColor="";}};function restoreStyles(){if(event.srcElement.style.backgroundColor!="")event.srcElement.style.backgroundColor=google_replace_color;};uidVisitorParam=queryStringArray['uidVisitor'];cookies_enabled=check_cookies_enabled();target_contexte=check_contexte_page(target_type,target_langue,id_operation);trigger_param="contexte_"+target_contexte;queryString=URLEncode(queryString);refpage=URLEncode(refpage);trigger_timestamp=reviewed_time;