/*    HTTP Host:  static.ak.fbcdn.net                                          */
/*    Generated:  February 10th 2010 4:41:15 AM PST                            */
/*      Machine:  10.16.139.109                                                */
/*       Source:  Backing Store                                                */
/*     Location:  js/vnvcgyxnr6okcsos.pkg.js h:dkz9warx                        */
/*       Locale:  nu_ll                                                        */
/*         Path:  js/vnvcgyxnr6okcsos.pkg.js                                   */

if (window.CavalryLogger) { CavalryLogger.start_js(["js\/vnvcgyxnr6okcsos.pkg.js"]); }

function editor_two_level_change(_L0,_L1,_L2){_L0=ge(_L0);if(_L0.getAttribute("typefor"))subselector=ge(_L0.getAttribute("typefor"));if(_L0&&subselector){subselector.options.length=1;type_value=_L0.options[_L0.selectedIndex].value;if(type_value=="")type_value=-1;index=1;suboptions=_L1[type_value];if(typeof(suboptions)!="undefined")for(var key=0;key<suboptions.length;key++)if(typeof(suboptions[key])!="undefined")subselector.options[index++]=new Option(suboptions[key],key);if(_L2)if(_L2[type_value]){subselector.options[0]=new Option(_L2[type_value],"");subselector.options[0].selected=true;}else{subselector.options[0]=new Option("---","");subselector.options[0].selected=true;}subselector.disabled=subselector.options.length<=1;}}function editor_two_level_set_subselector(_L0,_L1){_L0=ge(_L0);if(_L0){opts=_L0.options;for(var _L2=0;_L2<opts.length;_L2++)if((opts[_L2].value==_L1)||(_L1===null&&opts[_L2].value==''))_L0.selectedIndex=_L2;}}function editor_network_change(_L0,_L1,_L2){_L0=ge(_L0);if(_L0&&_L0.value>0){show('display_network_message');}else hide('display_network_message');}function editor_rel_change(_L0,_L1,_L2){_L0=ge(_L0);for(var _L3=2;_L3<=6;_L3++)if(_L3==_L0.value){show(_L1+'_new_partner_'+_L3);}else hide(_L1+'_new_partner_'+_L3);if(_L0&&ge(_L1+'_new_partner'))if((_L0.value>=2)&&(_L0.value<=6)){show(_L1+'_new_partner');}else hide(_L1+'_new_partner');if(_L0&&ge(_L1+'_rel_uncancel'))if(_L0.value>=2&&_L0.value<=6){editor_rel_uncancel(_L0,_L1,_L0.value);}else editor_rel_cancel(_L0,_L1);_editor_rel_toggle_awaiting(_L0,_L1,_L2);}function rel_typeahead_onsubmit(){return false;}function rel_typeahead_onselect(_L0){if(!_L0)return;$('new_partner').value=_L0.i;show($('relationship_warning'));set_inner_html($('relationshipee'),htmlize(_L0.t));}function _editor_rel_toggle_awaiting(_L0,_L1,_L2){_L0=ge(_L0);if(_L0&&ge(_L1+'_rel_required'))if(_L0.value==_L2){hide(_L1+'_rel_required');show(_L1+'_rel_awaiting');}else{show(_L1+'_rel_required');hide(_L1+'_rel_awaiting');}}function editor_rel_cancel(_L0,_L1){if(ge(_L1+'_rel_uncancel'))show(_L1+'_rel_uncancel');if(ge(_L1+'_rel_cancel'))hide(_L1+'_rel_cancel');_L0=ge(_L0);if(ge(_L0)&&$(_L0).selectedIndex>1)_editor_rel_set_value(_L0,1);}function editor_rel_cancel_new(_L0,_L1,_L2){hide($('relationship_warning'));$('new_partner').value='';$('relationship_typeahead').typeahead.clear();_editor_rel_set_value($(_L0),_L2);editor_rel_change($(_L0),_L1,_L2);}function editor_rel_uncancel(_L0,_L1,_L2){if(ge(_L1+'_rel_uncancel'))hide(_L1+'_rel_uncancel');if(ge(_L1+'_rel_cancel'))show(_L1+'_rel_cancel');if(_L2==4||_L2==5){hide(_L1+'_rel_with');show(_L1+'_rel_to');}else if(_L2>=2&&_L2<=6){show(_L1+'_rel_with');hide(_L1+'_rel_to');}if(ge(_L0)&&$(_L0).selectedIndex<=1)_editor_rel_set_value(_L0,_L2);_editor_rel_toggle_awaiting(_L0,_L1,_L2);}function editor_autocomplete_onselect(_L0){var _L1=/(.*)_/.exec(this.obj.name);if(_L1){var _L2=ge(_L1[1]+'_id');if(_L0){_L2.value=_L0.i==null?_L0.t:_L0.i;}else _L2.value=-1;}}function _editor_rel_set_value(_L0,_L1){_L0=ge(_L0);if(_L0){opts=_L0.options;opts_length=opts.length;for(var _L2=0;_L2<opts_length;_L2++)if((opts[_L2].value==_L1)||(_L1===null&&opts[_L2].value==''))_L0.selectedIndex=_L2;}}function enableDisable(_L0,_L1){_L1=ge(_L1);if(_L1){if(_L1.value)_L1.value="";if(_L1.selectedIndex)_L1.selectedIndex=0;}}function show_editor_error(_L0,_L1){$('editor_error_text').innerHTML=_L0;$('editor_error_explanation').innerHTML=_L1;show('error');}function make_explanation_list(_L0,num){var exp='';if(num==1){exp=_tx("{thing-1} est n\u00e9cessaire.",{'thing-1':_L0[0]});}else if(num==2){exp=_tx("{thing-1} et {thing-2} sont demand\u00e9s.",{'thing-1':_L0[0],'thing-2':_L0[1]});}else if(num==3){exp=_tx("{thing-1}, {thing-2} et {thing-3} sont requis.",{'thing-1':_L0[0],'thing-2':_L0[1],'thing-3':_L0[2]});}else if(num==4){exp=_tx("{thing-1}, {thing-2}, {thing-3} et {thing-4} sont requis.",{'thing-1':_L0[0],'thing-2':_L0[1],'thing-3':_L0[2],'thing-4':_L0[3]});}else if(num>4)exp=_tx("{thing-1}, {thing-2}, {thing-3} et {num} autres champs sont indispensables.",{'thing-1':_L0[0],'thing-2':_L0[1],'thing-3':_L0[2],'num':num-3});return exp;}function TimeSpan(_L0,_L1,_L2,_L3){this.get_start_ts=function(){return _L17(_L4,_L5,_L7,_L6,_L8,_L9);};this.get_end_ts=function(){var _L1c=_L17(_L4,_L5,_L7,_L6,_L8,_L9);var _L1d=_L17(_La,_Lb,_Lc,_Ld,_Le,_Lf);if(_L1c>_L1d&&!(_L7&&_Lc)){var _L1e=new Date();_L1e.setTime(_L1d);_L1e.setFullYear(_L1e.getFullYear()+1);return _L1e.getTime();}else return _L1d;};var _L4=$(_L0+'_month');var _L5=$(_L0+'_day');var _L6=$(_L0+'_hour');var _L7=ge(_L0+'_year');var _L8=$(_L0+'_min');var _L9=$(_L0+'_ampm');var _La=$(_L1+'_month');var _Lb=$(_L1+'_day');var _Lc=ge(_L1+'_year');var _Ld=$(_L1+'_hour');var _Le=$(_L1+'_min');var _Lf=$(_L1+'_ampm');var _L10=_L2*60000;var _L11=function(){var _L1c=_Lc.options;var _L1d=[];for(var i=0;i<_L1c.length;i++){var _L1f=_L1c[i];if(_L1f.text!="Year:"&&_L1f.value!="-1")_L1d.push(parseInt(_L1f.value));}_L1d=_L1d.sort();return _L1d[_L1d.length-1];};var _L12=_L11();var _L13=function(){var _L1c=_L17(_L4,_L5,_L7,_L6,_L8,_L9);var _L1d=_L17(_La,_Lb,_Lc,_Ld,_Le,_Lf);_L10=_L1d-_L1c;};var _L14=function(){if(_L3===true)_L16(_L4,_L5,_L7,_L6,_L8,_L9);};var _L15=function(){_L13();};var _L16=function(){var _L1c=_L17(_L4,_L5,_L7,_L6,_L8,_L9);var _L1d=_L1c+_L10;_L18(_L1d,_La,_Lb,_Lc,_Ld,_Le,_Lf);var _L1e=_Lc.options;var _L1f=new Date(_L1d);if(_L1f.getFullYear()>_L12){_L1e.value=_L12;_L15();}};var _L17=function(m,d,y,h,min,ampm){var _L22=new Date();var _L23=_L22.getDate();var _L24=_L22.getMonth();var _L25=_L22.getFullYear();var _L26=m.value-1;var date=d.value;var hour;var _L29=min.value;var year;hour=parseInt(h.value);if(ampm.value!=''){if(hour==12)hour=0;if(ampm.value=='pm')hour=hour+12;}if(!y){if(_L26<_L24){year=_L25+1;}else if(_L26==_L24&&date<_L23){year=_L25+1;}else year=_L25;}else year=y.value;var _L2b=new Date(year,_L26,date,hour,_L29,0,0);var ts=_L2b.getTime();return ts;};var _L18=function(ts,m,d,y,h,min,ampm){var _L23=new Date();_L23.setTime(ts);var _L24=m.value;var _L25=_L23.getMonth()+1;var _L26=_L23.getDate();var _L27=_L23.getHours();var _L28=_L23.getMinutes();var _L29=_L23.getFullYear();var _L2a;if(ampm.value!=''){if(_L27>11){_L2a='pm';if(_L27>12)_L27=_L27-12;}else{if(_L27==0)_L27=12;_L2a='am';}}else _L2a='';if(_L28<10)_L28="0"+_L28;m.value=_L25;d.value=_L26;if(y)y.value=_L29;h.value=_L27;min.value=_L28;ampm.value=_L2a;if(_L24!=_L25)editor_date_month_change(m,d,y?y:false);};var _L19=function(){editor_date_month_change(_L4,_L5,_L7?_L7:false);_L14();_L13();};var _L1a=function(){editor_date_month_change(_La,_Lb,_Lc?_Lc:false);_L15();};var _L1b=function(){_L15();var _L1c=_L17(_L4,_L5,_L7,_L6,_L8,_L9);var _L1d=_L17(_La,_Lb,_Lc,_Ld,_Le,_Lf);if(_L1d<_L1c){var _L1e=12*60*60000;_L1d+=parseInt((_L1c-_L1d+_L1e-1)/_L1e)*_L1e;_L18(_L1d,_La,_Lb,_Lc,_Ld,_Le,_Lf);}};_L4.onchange=_L19;_L5.onchange=_L14;if(_L7)_L7.onchange=_L14;_L6.onchange=_L14;_L8.onchange=_L14;_L9.onchange=_L14;_La.onchange=_L1a;_Lb.onchange=_L15;if(_Lc)_Lc.onchange=_L15;_Ld.onchange=_L1b;_Le.onchange=_L15;_Lf.onchange=_L15;}function editor_date_month_change(_L0,_L1,_L2){var _L0=ge(_L0);var _L1=ge(_L1);var _L2=_L2?ge(_L2):false;var _L3=parseInt(_L1.value);var _L4=false;if(_L2&&_L2.value&&_L2.value!=-1)_L4=_L2.value;var _L5=_month_get_num_days(_L0.value,_L4);var b=_L1.options[0].value==-1?1:0;for(var i=_L1.options.length;i>_L5+b;i--)DOM.remove(_L1.options[i-1]);for(var i=_L1.options.length;i<_L5+b;i++)_L1.options[i]=new Option(i+(b?0:1),i+(b?0:1));if(_L5<_L3){_L1.value=_L1.options.length;if(typeof _L1.onchange==='function')_L1.onchange();}}function _month_get_num_days(_L0,_L1){var _L2;if(_L0==-1)return 31;_L2=new Date(_L1?_L1:1912,_L0,0);return _L2.getDate();}function toggleEndWorkSpan(_L0){if(shown(_L0+'_endspan')){hide(_L0+'_endspan');show(_L0+'_present');}else{show(_L0+'_endspan');hide(_L0+'_present');}}function regionCountryChange(_L0,_L1,_L2,_L3){switch(_L1){case '326':show(_L2);$(_L0).innerHTML=_L3+_tx("Province");break;case '398':show(_L2);$(_L0).innerHTML=_L3+_tx("Etat");break;default:$(_L0).innerHTML=_L3+_tx("Pays");hide(_L2);break;}}function regionCountryChange_twoLabels(_L0,_L1,_L2,_L3,_L4){show(_L0);$(_L0).innerHTML=_L4+_tx("Pays");switch(_L2){case '326':show(_L3);show(_L1);$(_L1).innerHTML=_L4+_tx("Province");break;case '':case '398':show(_L3);show(_L1);$(_L1).innerHTML=_L4+_tx("Etat");break;default:$(_L1).innerHTML=_L4+_tx("Etat");$(_L3).disabled=true;break;}}function regionCountyChange_setUSifStateChosen(_L0,_L1){region_select=ge(_L1);country_select=ge(_L0);if(region_select.value!=''&&country_select.value=='')country_select.value=398;}function regionCountryChange_restrictions(_L0,_L1){country_select=ge(_L0);if(country_select.value==398){country_select.value='';}else if(country_select.value==326){region_select=ge(_L1);if(region_select.value)country_select.value='';}}function mobile_phone_nag(_L0,obj,_L2){var _L3=false;var _L4=function(){if(_L3)return;for(var i=0;i<_L0.length;i++)if((new RegExp('\\b'+_L0[i]+'\\b','i')).test(obj.value)){_L3=true;(new AsyncRequest()).setURI('/ajax/mobile_phone_nag.php').setHandler(function(_L6){var _L7=_L6.getPayload();if(_L7){var div=document.createElement('div');div.innerHTML=_L7;CSS.setClass(div,'mobile_nag');div.style.display='none';_L2.parentNode.insertBefore(div,_L2);animation(div).blind().show().from('height',0).to('height','auto').go();}}).setReadOnly(true).setOption('suppressErrorHandlerWarning',true).send();break;}};addEventBase(obj,'keyup',_L4);addEventBase(obj,'change',_L4);}function mobile_phone_nag_hide(obj){while(obj.parentNode&&obj.className!='mobile_nag')obj=obj.parentNode;obj.parentNode.removeChild(obj);}
function SelectableTextInputControl(_L0){_L0.listen('click',this.inputClick.bind(this));return this.parent.construct(this,_L0);}SelectableTextInputControl.extend('TextInputControl');SelectableTextInputControl.prototype.focusSelectText=false;SelectableTextInputControl.prototype.focusAndSelect=function(){this.focusSelectText=true;this.getRoot().focus();};SelectableTextInputControl.prototype.setFocused=function(_L0,e){if($E(e)&&$E(e).type=='blur'){this.focusSelectText=false;return this.parent.setFocused(_L0);}else if(this.focusSelectText==true){var _L2=this.parent.setFocused(false);this.getRoot().select();return _L2;}return this.parent.setFocused(_L0);};SelectableTextInputControl.prototype.isEmpty=function(){if(this.focusSelectEmpty){return false;}else return this.parent.isEmpty();};SelectableTextInputControl.prototype.onupdate=function(e){if($E(e)&&$E(e).type=='keydown')if(this.focusSelectText==true){this.focusSelectText=false;this.focusSelectEmpty=true;this.setFocused(true);this.focusSelectEmpty=false;return;}return this.parent.onupdate(e);};SelectableTextInputControl.prototype.inputClick=function(e){if(this.focusSelectText==true){this.focusSelectText=false;this.setFocused(true);}};
function crc16(str){crc=65535;for(var i=0;i<str.length;i++){x=((crc>>8)^str.charCodeAt(i))&255;x^=x>>4;crc=((crc<<8)^(x<<12)^(x<<5)^x)&65535;}return crc;}
function focus_login(_L0,_L1){var e=ge('email');var p=ge('pass');var _L4;if(e){_L4=new SelectableTextInputControl(e);_L4.setPlaceholderText(_tx("Adresse \u00e9lectronique"));}if(e&&p){if(_L0)p.onkeyup=(function(e){return function(){precog(e.value);};})(e);if(!_L4.getValue()){p.addClass('hidden_elem');$('pass_placeholder').removeClass('hidden_elem');new PasswordInputControl($('pass_placeholder'),p).setPlaceholderText(_tx("Mot de passe"));}if(_L1)if(_L4.getValue()&&!p.value){p.focus();}else _L4.focusAndSelect();}}function precog(_L0){if(!_L0||precog.done)return;precog.done=true;var e=encodeURIComponent(_L0);(new Image()).src='/ajax/precog.php?email='+e+"&"+Math.random();}function PasswordInputControl(_L0,_L1){this.passwordInput=_L1;return this.parent.construct(this,_L0);}PasswordInputControl.extend('TextInputControl');PasswordInputControl.prototype.passwordInput=null;PasswordInputControl.prototype.setFocused=function(_L0){if(_L0){DOM.remove(this.getRoot());CSS.removeClass(this.passwordInput,'hidden_elem');this.passwordInput.focus();return;}else return this.parent.setFocused();};
function create_captcha(){var _L0={};if(Recaptcha.focus_on_load)_L0['callback']=Recaptcha.focus_response_field;setTimeout(function(){Recaptcha.create("6LezHAAAAAAAADqVjseQ3ctG3ocfQs2Elo1FTa_a","captcha",_L0);},0);}function log_captcha_timeout(){new AsyncRequest().setURI('/ajax/captcha_timeout.php').setData({ua:navigator.userAgent,location:window.location.href}).setReadOnly(true).send();}var RecaptchaOptions;var RecaptchaDefaultOptions={tabindex:0,callback:null,lang:'en'};var Recaptcha={widget:null,timer_id:-1,fail_timer_id:-1,type:'image',ajax_verify_cb:null,focus_on_load:true,$:function(id){if(typeof(id)=="string"){return document.getElementById(id);}else return id;},create:function(_L0,_L1,_L2){Recaptcha.destroy();if(_L1)Recaptcha.widget=Recaptcha.$(_L1);Recaptcha._init_options(_L2);Recaptcha._call_challenge(_L0);},destroy:function(){var _L0=Recaptcha.$('recaptcha_challenge_field');if(_L0)_L0.parentNode.removeChild(_L0);if(Recaptcha.timer_id!=-1)clearInterval(Recaptcha.timer_id);Recaptcha.timer_id=-1;var _L1=Recaptcha.$('recaptcha_image');if(_L1)_L1.innerHTML="";if(Recaptcha.widget){Recaptcha.widget.style.display="none";Recaptcha.widget=null;}},focus_response_field:function(){var $=Recaptcha.$;var _L1=$('captcha_response');try{_L1.focus();}catch(ignored){}},get_challenge:function(){if(typeof(RecaptchaState)=="undefined")return null;return RecaptchaState.challenge;},get_response:function(){var $=Recaptcha.$;var _L1=$('captcha_response');if(!_L1)return null;return _L1.value;},ajax_verify:function(_L0){Recaptcha.ajax_verify_cb=_L0;var _L1=Recaptcha._get_api_server()+"/ajaxverify"+"?c="+encodeURIComponent(Recaptcha.get_challenge())+"&response="+encodeURIComponent(Recaptcha.get_response());Recaptcha._add_script(_L1);},_ajax_verify_callback:function(_L0){Recaptcha.ajax_verify_cb(_L0);},_get_api_server:function(){var _L0=window.location.protocol;var _L1;if(typeof(_RecaptchaOverrideApiServer)!="undefined"){_L1=_RecaptchaOverrideApiServer;}else if(_L0=='https:'){_L1="api-secure.recaptcha.net";}else _L1="api.recaptcha.net";return _L0+"//"+_L1;},_call_challenge:function(_L0){Recaptcha.fail_timer_id=setTimeout(Recaptcha.fail_timer_id==-1?"log_captcha_timeout(); create_captcha();":"create_captcha();",15000);var _L1=Recaptcha._get_api_server()+"/challenge?k="+_L0+"&ajax=1&xcachestop="+Math.random();if($('extra_challenge_params')!=null)_L1+="&"+$('extra_challenge_params').value;Recaptcha._add_script(_L1);},_add_script:function(_L0){Bootloader.requestResource('js',_L0);},_init_options:function(_L0){var _L1=RecaptchaDefaultOptions;var _L2=_L0||{};for(var p in _L2)_L1[p]=_L2[p];RecaptchaOptions=_L1;},challenge_callback:function(){clearTimeout(Recaptcha.fail_timer_id);var _L0=Recaptcha.widget;Recaptcha._reset_timer();if(window.addEventListener)window.addEventListener('unload',function(e){Recaptcha.destroy();},false);if(Recaptcha._is_ie()&&window.attachEvent)window.attachEvent('onbeforeunload',function(){});if(navigator.userAgent.indexOf("KHTML")>0){var _L1=document.createElement('iframe');_L1.src="about:blank";_L1.style.height="0px";_L1.style.width="0px";_L1.style.visibility="hidden";_L1.style.border="none";var _L2=document.createTextNode("This frame prevents back/forward cache problems in Safari.");_L1.appendChild(_L2);DOMScroll.getScrollRoot().appendChild(_L1);}Recaptcha._finish_widget();},_finish_widget:function(){var $=Recaptcha.$;var $ST=RecaptchaState;var _L2=RecaptchaOptions;var _L3=document.createElement("input");_L3.type="password";_L3.setAttribute("autocomplete","off");_L3.style.display="none";_L3.name="recaptcha_challenge_field";DOM.setID(_L3,"recaptcha_challenge_field");$('captcha_response').parentNode.insertBefore(_L3,$('captcha_response'));$('captcha_response').setAttribute("autocomplete","off");$('recaptcha_image').style.width='300px';$('recaptcha_image').style.height='57px';Recaptcha.should_focus=false;Recaptcha._set_challenge($ST.challenge,'image');if(_L2.tabindex)$('captcha_response').tabIndex=_L2.tabindex;if(Recaptcha.widget)Recaptcha.widget.style.display='';if(_L2.callback)_L2.callback();$('recaptcha_loading').style.display="none";},switch_type:function(_L0){var $C=Recaptcha;$C.type=_L0;$C.reload($C.type=='audio'?'a':'v');},reload:function(_L0){var $C=Recaptcha;var $=$C.$;var $ST=RecaptchaState;if(typeof(_L0)=="undefined")_L0='r';var _L4=$ST.server+"reload?c="+$ST.challenge+"&k="+$ST.site+"&reason="+_L0+"&type="+$C.type+"&lang="+RecaptchaOptions.lang;if($('extra_challenge_params')!=null)_L4+="&"+$('extra_challenge_params').value;$C.should_focus=_L0!='t';$C._add_script(_L4);},finish_reload:function(_L0,_L1){RecaptchaState.is_incorrect=false;Recaptcha._set_challenge(_L0,_L1);},_set_challenge:function(_L0,_L1){var $C=Recaptcha;var $ST=RecaptchaState;var $=$C.$;$ST.challenge=_L0;$C.type=_L1;$('recaptcha_challenge_field').value=$ST.challenge;$('recaptcha_challenge_field').defaultValue=$ST.challenge;$('recaptcha_image').innerHtml="";if(_L1=='audio'){$("recaptcha_image").innerHTML=Recaptcha.getAudioCaptchaHtml();}else if(_L1=='image'){var _L5=$ST.server+'image?c='+$ST.challenge;$('recaptcha_image').innerHTML="<img style='display:block;' height='57' width='300' src='"+_L5+"'/>";}Recaptcha._css_toggle("recaptcha_had_incorrect_sol","recaptcha_nothad_incorrect_sol",$ST.is_incorrect);Recaptcha._css_toggle("recaptcha_is_showing_audio","recaptcha_isnot_showing_audio",_L1=='audio');$C._clear_input();if($C.should_focus)$C.focus_response_field();$C._reset_timer();},_reset_timer:function(){var $ST=RecaptchaState;clearInterval(Recaptcha.timer_id);Recaptcha.timer_id=setInterval("Recaptcha.reload('t');",($ST.timeout-60*5)*1000);},_clear_input:function(){var _L0=Recaptcha.$('captcha_response');_L0.value="";},_displayerror:function(msg){var $=Recaptcha.$;$('recaptcha_image').empty();$('recaptcha_image').appendChild(document.createTextNode(msg));},reloaderror:function(msg){Recaptcha._displayerror(msg);},_is_ie:function(){return (navigator.userAgent.indexOf("MSIE")>0)&&!window.opera;},_css_toggle:function(_L0,_L1,_L2){var _L3=Recaptcha.widget;if(!_L3)_L3=document.body;var _L4=_L3.className;_L4=_L4.replace(new RegExp("(^|\\s+)"+_L0+"(\\s+|$)"),' ');_L4=_L4.replace(new RegExp("(^|\\s+)"+_L1+"(\\s+|$)"),' ');_L4+=" "+(_L2?_L0:_L1);CSS.setClass(_L3,_L4);},playAgain:function(){var $=Recaptcha.$;$("recaptcha_image").innerHTML=Recaptcha.getAudioCaptchaHtml();},getAudioCaptchaHtml:function(){var $C=Recaptcha;var $ST=RecaptchaState;var $=Recaptcha.$;var _L3=$ST.server+"image?c="+$ST.challenge;if(_L3.indexOf("https://")==0)_L3="http://"+_L3.substring(8);var _L4=$ST.server+"/img/audiocaptcha.swf?v2";var _L5;if($C._is_ie()){_L5='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="audiocaptcha" width="0" height="0" codebase="https://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"><param name="movie" value="'+_L4+'" /><param name="quality" value="high" /><param name="bgcolor" value="#869ca7" /><param name="allowScriptAccess" value="always" /></object><br/>';}else _L5='<embed src="'+_L4+'" quality="high" bgcolor="#869ca7" width="0" height="0" name="audiocaptcha" align="middle" play="true" loop="false" quality="high" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://get.adobe.com/flashplayer" url="'+_L4+'"></embed> ';var _L6=(Recaptcha.checkFlashVer()?'<br/><a class="recaptcha_audio_cant_hear_link" href="#" onclick="Recaptcha.playAgain(); return false;">'+_tx("Lire de nouveau")+'</a>':'')+'<br/><a class="recaptcha_audio_cant_hear_link" target="_blank" href="'+_L3+'">'+_tx("Vous n\u2019entendez rien\u00a0?")+'</a>';return _L5+_L6;},gethttpwavurl:function(){var $ST=RecaptchaState;if(Recaptcha.type=='audio'){var _L1=$ST.server+"image?c="+$ST.challenge;if(_L1.indexOf("https://")==0)_L1="http://"+_L1.substring(8);return _L1;}return "";},checkFlashVer:function(){var _L0=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var _L1=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var _L2=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;var _L3=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var _L4=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var _L5=navigator.plugins["Shockwave Flash"+_L4].description;var _L6=_L5.split(" ");var _L7=_L6[2].split(".");_L3=_L7[0];}}else if(_L0&&_L1&&!_L2)try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");var _L9=axo.GetVariable("$version");_L3=_L9.split(" ")[1].split(",")[0];}catch(e){}return _L3>=9;},getlang:function(){return RecaptchaOptions.lang;}};function captcha_whatsthis(obj){var _L1='<a onclick="window.open(\'http://recaptcha.net/popuphelp/\',\'recaptcha_popup\',\'width=460,height=570,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes\')">'+'ReCaptcha</a>';new ContextualDialog().setContext(obj).setTitle(_tx("V\u00e9rification de s\u00e9curit\u00e9")).setBody('<div class="captcha_popup" style="padding: 5px;">'+_tx("Il s\u2019agit d\u2019une proc\u00e9dure de s\u00e9curit\u00e9 standard que nous utilisons pour emp\u00eacher la cr\u00e9ation de faux comptes pour envoyer des messages ind\u00e9sirables aux utilisateurs.")+'<br/><br/>'+_tx("Nos captchas sont fournis par {provider_link}.",{'provider_link':_L1})+'</div>').setButtons(Dialog.OK).show();}
function RegUtil(){}RegUtil.genderFemale=1;RegUtil.genderMale=2;RegUtil.errorFields=[];RegUtil.DAY_FIELD='birthday_day';RegUtil.MONTH_FIELD='birthday_month';RegUtil.YEAR_FIELD='birthday_year';RegUtil.PASSWORD_FIELD='reg_passwd__';RegUtil.NAME_FIELD='name';RegUtil.FIRSTNAME_FIELD='firstname';RegUtil.LASTNAME_FIELD='lastname';RegUtil.EMAIL_FIELD='reg_email__';RegUtil.GENDER_FIELD='sex';RegUtil.errorFields[6]=RegUtil.PASSWORD_FIELD;RegUtil.errorFields[7]=RegUtil.PASSWORD_FIELD;RegUtil.errorFields[8]=RegUtil.PASSWORD_FIELD;RegUtil.errorFields[9]=RegUtil.PASSWORD_FIELD;RegUtil.errorFields[40]=RegUtil.PASSWORD_FIELD;RegUtil.errorFields[10]=RegUtil.NAME_FIELD;RegUtil.errorFields[48]=RegUtil.NAME_FIELD;RegUtil.errorFields[15]=RegUtil.YEAR_FIELD;RegUtil.errorFields[16]=RegUtil.EMAIL_FIELD;RegUtil.errorFields[18]=RegUtil.EMAIL_FIELD;RegUtil.errorFields[25]=RegUtil.EMAIL_FIELD;RegUtil.errorFields[26]=RegUtil.EMAIL_FIELD;RegUtil.errorFields[27]=RegUtil.EMAIL_FIELD;RegUtil.errorFields[37]=RegUtil.EMAIL_FIELD;RegUtil.errorFields[43]=RegUtil.GENDER_FIELD;RegUtil.getInstance=function(){if(!RegUtil._instance)RegUtil._instance=new RegUtil();return RegUtil._instance;};RegUtil.prototype.get_captcha=function(){if($('captcha_response').value)return this.finish_captcha();if(this.validate_data()){this.hide_error();this.show_captcha();}};RegUtil.prototype.register_no_captcha=function(){if(this.validate_data())this.register();};RegUtil.prototype.ajax_validate_data=function(_L0,_L1,_L2){var reg=this;onDone=function(_L6){hide('async_status');hide('captcha_async_status');var _L7=_L6.getPayload();if(_L7['redirect']){goURI(_L7['redirect']);}else if(_L7['field_validation_succeeded']){reg.hide_error();reg.show_captcha();}else if(_L7['bad_captcha']){DOM.setContent($('outer_captcha_box'),HTML(_L7['html']));reg.show_error('captcha_response',_L7['error']);}else if(_L7['tooyoung']){DOM.setContent($(_L1),HTML(_L7['html']));}else if(_L7['registration_succeeded']){if(_L2){var _L8=$('confirmation_email_form');var _L9=$('confirmation_email');_L9.value=_L7['email'];_L8.submit();}else DOM.setContent($(_L1),HTML(_L7['html']));CSS.setStyle($('fb_menubar_aux'),'visibility','hidden');}else{if(ge(RegUtil.FIRSTNAME_FIELD))RegUtil.errorFields[10]=[RegUtil.FIRSTNAME_FIELD,RegUtil.LASTNAME_FIELD];var _L9=RegUtil.errorFields[_L7['error_code']];reg.show_error(_L9,_L7['error']);}};var _L4=$('reg');var _L5=serialize_form(_L4);if(_L0&&_L0['ignore'])_L5['ignore']=_L0['ignore'].join('|');show('async_status');show('captcha_async_status');if(!this._async_request)this._async_request=new AsyncRequest();this._async_request.setURI('/ajax/register.php').setData(_L5).setReadOnly(true).setHandler(onDone).send();};RegUtil.prototype.validate_data=function(){this.hide_error();var _L0={'fullname':this.get_full_name(),'firstname':ge('firstname')?$('firstname').value:'','lastname':ge('lastname')?$('lastname').value:'','month':$(RegUtil.MONTH_FIELD).value,'day':$(RegUtil.DAY_FIELD).value,'year':$(RegUtil.YEAR_FIELD).value,'email':this.normalize_email($('reg_email__').value),'gender':$('sex').value};if(ge('reg_instance'))_L0['reg_instance']=$('reg_instance').value;var pwd=this.normalize_password($('reg_passwd__').value),_L2=ge('reg_passwd2__')?this.normalize_password($('reg_passwd2__').value):undefined;var _L3=null;_L3=this.validate_name(_L0['fullname'])||this.validate_birthday(_L0['month'],_L0['day'],_L0['year'])||this.validate_email(_L0['email'])||this.validate_password(pwd,_L2)||this.validate_gender(_L0['gender']);_L0['error_code']=_L3||-1;var req=new AsyncRequest().setURI('/ajax/register/logging.php').setData(_L0).setReadOnly(true).send();return !_L3;};RegUtil.prototype.finish_captcha=function(){if($('captcha_response').value){this.register();}else{this.show_error('captcha_response',_tx("Vous n'avez pas tap\u00e9 correctement le texte dans la bo\u00eete de dialogue."));return;}};RegUtil.prototype.register=function(){this.show_progress();$('reg').submit();};RegUtil.prototype.show_captcha=function(){this.hide_reg_form();create_captcha();show('reg_captcha');if(ge('tos_container'))CSS.removeClass($('tos_container'),'hidden_elem');if(ge('reg_pages_msg'))hide($('reg_pages_msg'));if(ge('reg_captcha_buttons'))show('reg_captcha_buttons');if(ge('captcha_buttons'))show('captcha_buttons');try{$('captcha_response').focus();}catch(ignore){}};RegUtil.prototype.hide_captcha=function(){hide('reg_captcha');if(ge('tos_container'))CSS.addClass($('tos_container'),'hidden_elem');if(ge('reg_captcha_buttons'))hide('reg_captcha_buttons');if(ge('captcha_buttons'))hide('captcha_buttons');this.hide_error();};RegUtil.prototype.show_progress=function(msg){this.hide_error();this.hide_reg_form();this.hide_captcha();if(msg)DOM.setContent($('progress_msg'),HTML(msg));show('reg_progress');};RegUtil.prototype.hide_progress=function(){hide('reg_progress');};RegUtil.prototype.attach_error_to_field=function(_L0,msg){var _L2=[];var _L3='UIErrorFlag';if(_L0 instanceof Array){_L3+=' UIErrorFlag_MultiField';for(var k=0;k<_L0.length;k++)_L2[k]=$(_L0[k]);}else _L2[0]=$(_L0);var _L5=$N('div',{className:'UIErrorFlag_Inner'});_L5.innerHTML=msg;var _L6=$N('div',{className:_L3},_L5);var _L7=(_L2[0].parentNode.offsetWidth)+8;var _L8=_L7+'px';var _L9=(_L7+7)+'px';var _La='left';if(intl_locale_is_rtl()){_La='right';_L6.style.right=_L9;}else _L6.style.left=_L9;DOM.insertAfter(_L2[0],_L6);for(var k=0;k<_L2.length;k++)CSS.addClass(_L2[k].parentNode,'error_field');animation(_L6).from(_La,_L9).to(_La,_L8).duration(300).ease(function(p){return -1*Math.sin(11*p);}).go();};RegUtil.prototype.show_error=function(_L0,msg){if(_L0==undefined)_L0='';if(ge('reg_pages_msg'))CSS.addClass($('reg_pages_msg'),'hidden_elem');var _L2=CSS.hasClass(document.body,'registration');if(_L0&&_L2){this.hide_error();this.attach_error_to_field(_L0,msg);}if(_L0){if(_L0=='captcha_response'){this.show_captcha();}else this.show_reg_form();try{$(_L0).focus();}catch(ignore){}}if(!_L2||!_L0){var _L3=$('reg_error');var _L4=$('reg_error_inner');try{if(ge('name')){$('name').focus();}else $('firstname').focus();}catch(ignore){}if(_L0!='captcha_response')this.show_reg_form();if(typeof animation=='function'){DOM.setContent(_L4,HTML(msg));CSS.setOpacity(_L3,0);animation(_L3).show().to('height','auto').duration(100).checkpoint().from('opacity',0).to('opacity',1).duration(400).go();}else show(_L3);}};RegUtil.prototype.hide_error=function(){if(shown($('reg_error'))&&CSS.getOpacity($('reg_error'))>0)hide($('reg_error'));var _L0=DOM.scry(document,'div.error_field');_L0.each(function(c){CSS.removeClass(c,'error_field');});var _L1=DOM.scry(document,'div.UIErrorFlag');_L1.each(function(e){DOM.remove(e);});};RegUtil.prototype.show_reg_form=function(){show('reg_form_box');if(ge('reg_pages_msg'))show($('reg_pages_msg'));};RegUtil.prototype.hide_reg_form=function(){hide('reg_form_box');};RegUtil.prototype.normalize_name=function(_L0){_L0=_L0.replace(/^\s+|\s+$/g,'');_L0=_L0.replace(/\s+/g,' ');return _L0;};RegUtil.prototype.normalize_email=function(_L0){return _L0;};RegUtil.prototype.normalize_password=function(pwd){return pwd;};RegUtil.prototype.validate_name=function(_L0,_L1){var _L2=2;var _L3=4;var _L4=_L0?_L0.split(' '):[];var _L5=null;var _L6=null;if(!_L0){if(_L1)return true;_L5=_tx("Veuillez entrer votre pr\u00e9nom et nom.");}else if(ge('firstname')&&(!$('firstname').value||!$('lastname').value)){_L5=_tx("Vous devez indiquer votre nom et pr\u00e9nom.");}else if(_L4.length==2&&_L4[0]==_L4[1]){_L5=_tx("Vous devez indiquer votre nom et pr\u00e9nom.");}else if(_L4.length>_L3)_L5=_tx("Le nom contient trop de mots.");if(!_L5)for(word in _L4){len=word.length;if(len==1)continue;c=word[len-1];if('A'<=c&&c<='Z')_L5=_tx("Le nom contient trop de lettres majuscules.");}if(_L5){this.show_error('name',_L5);_L6=10;}return _L6;};RegUtil.prototype.validate_email=function(_L0){var _L1=null;var _L2=null;if(!_L0){_L1=_tx("Veuillez entrer votre adresse \u00e9lectronique");_L2=12;}else if(_L0.indexOf('@')==-1){_L1=_tx("Veuillez indiquer une adresse e-mail correcte");_L2=16;}else{var _L3=_L0.split('@');var _L4=_L3[1];if(_L4=='facebook.com'){_L1=_tx("Veuillez entrer votre adresse \u00e9lectronique personnelle.");_L2=50;}}if(_L1)this.show_error('reg_email__',_L1);return _L2;};RegUtil.prototype.validate_gender=function(_L0){var _L1=null;var _L2=null;if(_L0!=RegUtil.genderMale&&_L0!=RegUtil.genderFemale){_L1=_tx("Veuillez indiquer 'homme' ou 'femme'.");_L2=43;}if(_L1)this.show_error('sex',_L1);return _L2;};RegUtil.prototype.validate_password=function(pwd,_L1){var _L2=6;var _L3=['password','facebook'];var _L4=null;var _L5=null;var _L6=null;if(!pwd){_L4=_tx("Veuillez cr\u00e9er un mot de passe \u00e0 utiliser sur Facebook");_L6=6;}else if(pwd.length<_L2){_L4=_tx("Votre mot de passe doit contenir au moins 6 caract\u00e8res.");_L6=8;}else if(_L1!=undefined&&pwd!=_L1){_L4=_tx("Vos mots de passe ne correspondent pas. R\u00e9essayez.");_L6=40;}else{var _L5=this.get_full_name();var _L7=_L5.toLowerCase().split(' ');var _L8=_L7.concat(_L3);for(var i=0;i<_L8.length;++i)if(pwd.toLowerCase()==_L8[i]){_L4=_tx("Votre mot de passe n'est pas assez compliqu\u00e9.");_L6=9;break;}}if(_L4)this.show_error('reg_passwd__',_L4);return _L6;};RegUtil.prototype.get_full_name=function(){if(ge('name'))return this.normalize_name($('name').value);return this.normalize_name($('firstname').value+' '+$('lastname').value);};RegUtil.prototype.validate_birthday=function(_L0,day,_L2){var _L3=null;var _L4=null;if(_L0==-1||day==-1||_L2==-1){_L3=_tx("Veuillez indiquer votre date de naissance compl\u00e8te.");}else if(_L2<=1910)_L3=_tx("Veuillez saisir votre vraie date de naissance.");if(_L3){this.show_error(RegUtil.monthField,_L3);_L4=15;}return _L4;};RegUtil.prototype.show_birthday_help=function(){var _L0='<a href="/pages/create.php" title="Create a Page">'+_tx("cr\u00e9er une Page Facebook")+'</a>';var _L1='<a href="/policy.php" title="Facebook Privacy Policy">'+_tx("Politique de confidentialit\u00e9 de Facebook")+'</a>';new Dialog().setClassName('birthday_warning_popup').setTitle(_tx("Pourquoi dois-je fournir ma date de naissance ?")).setBody(_tx("Facebook demande \u00e0 tous ses utilisateurs de fournir leur date de naissance exacte afin de garantir l\u2019authenticit\u00e9 de ces informations et de fournir un contenu appropri\u00e9 selon l\u2019\u00e2ge de l\u2019utilisateur. Vous serez en mesure de masquer cette information sur votre profil si vous le souhaitez et son utilisation est r\u00e9gie par la {=Facebook Privacy Policy}.",{'=Facebook Privacy Policy':_L1})+'<br /><br />'+_tx("Vous \u00eates sur le point de cr\u00e9er un compte personnel. Si vous \u00eates ici dans le but de repr\u00e9senter votre groupe, votre entreprise ou votre produit, vous devriez d\u2019abord {=create a Facebook Page}.",{'=create a Facebook Page':_L0})).setButtons([Dialog.OK]).show();};RegUtil.prototype.set_topper_content=function(_L0){DOM.replace($('UIContentTopper'),HTML(_L0));};RegUtil.prototype.show_reg_area=function(){CSS.removeClass($('simple_registration_container'),'hidden_elem');};RegUtil.prototype.hide_reg_area=function(){CSS.addClass($('simple_registration_container'),'hidden_elem');};RegUtil.prototype.show_openid_area=function(){if(ge('openid_welcome_area'))CSS.removeClass($('openid_welcome_area'),'hidden_elem');};RegUtil.prototype.hide_openid_area=function(){if(ge('openid_welcome_area'))CSS.addClass($('openid_welcome_area'),'hidden_elem');};RegUtil.prototype.set_form_field=function(_L0,_L1){if(ge(_L0))$(_L0).value=_L1;};RegUtil.prototype.set_openid_field=function(_L0){$('openid_token').value=_L0;};function RegKeyPressListen(_L0){var _L1=ge('reg_form_box');if(_L1)_L1.listen('keypress',function(_L2){if(_L2.keyCode==KEYS.RETURN&&shown(_L1)){if(_L0){RegUtil.getInstance().ajax_validate_data({ignore:['captcha']});}else RegUtil.getInstance().get_captcha();return false;}});}function CaptchaBoxKeyPressListen(_L0,_L1,_L2){var _L3=ge('reg_captcha');if(_L3)_L3.listen('keypress',function(_L4){if(_L4.keyCode==KEYS.RETURN&&shown(_L3)){if(_L0){RegUtil.getInstance().ajax_validate_data(null,_L1,_L2);}else RegUtil.getInstance().finish_captcha();return false;}});}function regform_listen_focus(_L0,_L1){var _L2=ge(_L0);if(_L2){var _L3='';if(ge('reg_instance'))_L3=$('reg_instance').value;log_fnc=fireonce(function(){new AsyncRequest().setURI('/ajax/register/logging.php').setData({action:_L1,reg_instance:_L3}).setOption('asynchronous',false).setReadOnly(true).send();});Event.listen(_L2,'click',log_fnc);Event.listen(_L2,'keypress',log_fnc);}}
var ffid;var ffver;window.onloadRegister(function(){var _L0={ffid:(typeof(ffid)=="undefined"?0:ffid)};if(!URI.getRequestURI().isFacebookURI())_L0.qp=document.location;var lf=ge('login_form');if(lf&&lf.action){var ua=URI(lf.action).setFragment().setQueryData().toString();if(ffver&&(ffver!=crc16(ua)))_L0.qm=lf.action;}if(_L0.qp||_L0.qm)new AsyncSignal('/ajax/ua_callback.php',_L0).send();});

if (window.Bootloader) { Bootloader.done(["js\/vnvcgyxnr6okcsos.pkg.js"]); }