Object.extend=function(g,i,f){for(var h in i){if(f==false&&g[h]!=null){continue}g[h]=i[h]}return g};Object.extend(Function.prototype,{apply:function(o,a){var r,x="__fapply";if(typeof o!="object"){o={}}o[x]=this;var s="r = o."+x+"(";for(var i=0;i<a.length;i++){if(i>0){s+=","}s+="a["+i+"]"}s+=");";eval(s);delete o[x];return r},bind:function(j){if(!Function.__objs){Function.__objs=[];Function.__funcs=[]}var h=j.__oid;if(!h){Function.__objs[h=j.__oid=Function.__objs.length]=j}var g=this;var k=g.__fid;if(!k){Function.__funcs[k=g.__fid=Function.__funcs.length]=g}if(!j.__closures){j.__closures=[]}var i=j.__closures[k];if(i){return i}j=null;g=null;return Function.__objs[h].__closures[k]=function(){return Function.__funcs[k].apply(Function.__objs[h],arguments)}}},false);Object.extend(Array.prototype,{push:function(b){this[this.length]=b},addRange:function(d){if(d.length>0){for(var c=0;c<d.length;c++){this.push(d[c])}}},clear:function(){this.length=0;return this},shift:function(){if(this.length==0){return null}var c=this[0];for(var d=0;d<this.length-1;d++){this[d]=this[d+1]}this.length--;return c}},false);Object.extend(String.prototype,{trimLeft:function(){return this.replace(/^\s*/,"")},trimRight:function(){return this.replace(/\s*$/,"")},trim:function(){return this.trimRight().trimLeft()},endsWith:function(b){if(this.length==0||this.length<b.length){return false}return(this.substr(this.length-b.length)==b)},startsWith:function(b){if(this.length==0||this.length<b.length){return false}return(this.substr(0,b.length)==b)},split:function(c){var a=[];if(this.length==0){return a}var h=0;for(var i=0;i<this.length;i++){if(this.charAt(i)==c){a.push(this.substring(h,i));h=++i}}a.push(s.substr(h));return a}},false);Object.extend(String,{format:function(c){for(var d=1;d<arguments.length;d++){c=c.replace("{"+(d-1)+"}",arguments[d])}return c},isNullOrEmpty:function(b){if(b==null||b.length==0){return true}return false}},false);if(typeof addEvent=="undefined"){addEvent=function(j,m,l,i){if(j==null){return false}if(j.addEventListener){j.addEventListener(m,l,i);return true}else{if(j.attachEvent){var f=j.attachEvent("on"+m,l);return f}else{try{j["on"+m]=l}catch(k){}}}}}if(typeof removeEvent=="undefined"){removeEvent=function(i,f,k,h){if(i==null){return false}if(i.removeEventListener){i.removeEventListener(f,k,h);return true}else{if(i.detachEvent){i.detachEvent("on"+f,k)}else{try{i["on"+f]=function(){}}catch(j){}}}}}Object.extend(Function.prototype,{getArguments:function(){var d=[];for(var c=0;c<this.arguments.length;c++){d.push(this.arguments[c])}return d}},false);var MS={Browser:{}};Object.extend(MS.Browser,{isIE:navigator.userAgent.indexOf("MSIE")!=-1,isFirefox:navigator.userAgent.indexOf("Firefox")!=-1,isOpera:window.opera!=null},false);var AjaxPro={};AjaxPro.IFrameXmlHttp=function(){};AjaxPro.IFrameXmlHttp.prototype={onreadystatechange:null,headers:[],method:"POST",url:null,async:true,iframe:null,status:0,readyState:0,responseText:null,abort:function(){},readystatechanged:function(){var b=this.iframe.contentDocument||this.iframe.document;if(b!=null&&b.readyState=="complete"&&b.body!=null&&b.body.res!=null){this.status=200;this.statusText="OK";this.readyState=4;this.responseText=b.body.res;this.onreadystatechange();return}setTimeout(this.readystatechanged.bind(this),10)},open:function(i,h,g){if(g==false){alert("Synchronous call using IFrameXMLHttp is not supported.");return}if(this.iframe==null){var k="hans";if(document.createElement&&document.documentElement&&(window.opera||navigator.userAgent.indexOf("MSIE 5.0")==-1)){var j=document.createElement("iframe");j.setAttribute("id",k);j.style.visibility="hidden";j.style.position="absolute";j.style.width=j.style.height=j.borderWidth="0px";this.iframe=document.getElementsByTagName("body")[0].appendChild(j)}else{if(document.body&&document.body.insertAdjacentHTML){document.body.insertAdjacentHTML("beforeEnd",'<iframe name="'+k+'" id="'+k+'" style="border:1px solid black;display:none"></iframe>')}}if(window.frames&&window.frames[k]){this.iframe=window.frames[k]}this.iframe.name=k;this.iframe.document.open();this.iframe.document.write("<html><body></body></html>");this.iframe.document.close()}this.method=i;this.url=h;this.async=g},setRequestHeader:function(f,g){for(var d=0;d<this.headers.length;d++){if(this.headers[d].name==f){this.headers[d].value=g;return}}this.headers.push({name:f,value:g})},getResponseHeader:function(d,c){return null},addInput:function(j,m,h,k){var l;var i="input";if(k.indexOf("\n")>=0){i="textarea"}if(j.all){l=j.createElement("<"+i+' name="'+h+'" />')}else{l=j.createElement(i);l.setAttribute("name",h)}l.setAttribute("value",k);m.appendChild(l);l=null},send:function(i){if(this.iframe==null){return}var h=this.iframe.contentDocument||this.iframe.document;var f=h.createElement("form");h.body.appendChild(f);f.setAttribute("action",this.url);f.setAttribute("method",this.method);f.setAttribute("enctype","application/x-www-form-urlencoded");for(var g=0;g<this.headers.length;g++){switch(this.headers[g].name.toLowerCase()){case"content-length":case"accept-encoding":case"content-type":break;default:this.addInput(h,f,this.headers[g].name,this.headers[g].value)}}this.addInput(h,f,"data",i);f.submit();setTimeout(this.readystatechanged.bind(this),0)}};var progids=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];var progid=null;if(typeof ActiveXObject!="undefined"){var ie7xmlhttp=false;if(typeof XMLHttpRequest=="object"){try{var o=new XMLHttpRequest();ie7xmlhttp=true}catch(e){}}if(typeof XMLHttpRequest=="undefined"||!ie7xmlhttp){XMLHttpRequest=function(){var f=null;if(!AjaxPro.noActiveX){if(progid!=null){return new ActiveXObject(progid)}for(var d=0;d<progids.length&&f==null;d++){try{f=new ActiveXObject(progids[d]);progid=progids[d]}catch(g){}}}if(f==null&&MS.Browser.isIE){return new AjaxPro.IFrameXmlHttp()}return f}}}Object.extend(AjaxPro,{noOperation:function(){},onLoading:function(){},onError:function(){},onTimeout:function(){return true},onStateChanged:function(){},cryptProvider:null,queue:null,token:"",version:"9.2.17.1",ID:"AjaxPro",noActiveX:false,timeoutPeriod:15*1000,queue:null,noUtcTime:false,regExDate:function(k,l,n,m,i){k=k.substring(1).replace('"',"");var j=k;if(k.substring(0,7)=="\\/Date("){k=k.match(/Date\((.*?)\)/)[1];j="new Date("+parseInt(k)+")"}else{var p=k.split(/[-,:,T,Z]/);p[1]=(parseInt(p[1],0)-1).toString();j="new Date(Date.UTC("+p.join(",")+"))"}return j},parse:function(text){var regEx=/(\"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}.*?\")|(\"\\\/Date\(.*?\)\\\/")/g;text=text.replace(regEx,this.regExDate);return eval("("+text+")")},m:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},toJSON:function(j){if(j==null){return"null"}var c=[];var k;var i=j.constructor;if(i==Number){return isFinite(j)?j.toString():AjaxPro.toJSON(null)}else{if(i==Boolean){return j.toString()}else{if(i==String){if(/["\\\x00-\x1f]/.test(j)){j=j.replace(/([\x00-\x1f\\"])/g,function(b,d){var a=AjaxPro.m[d];if(a){return a}a=d.charCodeAt();return"\\u00"+Math.floor(a/16).toString(16)+(a%16).toString(16)})}return'"'+j+'"'}else{if(i==Array){for(k=0;k<j.length;k++){c.push(AjaxPro.toJSON(j[k]))}return"["+c.join(",")+"]"}else{if(i==Date){return AjaxPro.toJSON("/Date("+new Date(Date.UTC(j.getUTCFullYear(),j.getUTCMonth(),j.getUTCDate(),j.getUTCHours(),j.getUTCMinutes(),j.getUTCSeconds(),j.getUTCMilliseconds())).getTime()+")/")}}}}}if(typeof j.toJSON=="function"){return j.toJSON()}if(typeof j=="object"){for(var h in j){if(typeof j[h]!="function"){c.push('"'+h+'":'+AjaxPro.toJSON(j[h]))}}if(c.length>0){return"{"+c.join(",")+"}"}return"{}"}return j.toString()},dispose:function(){if(AjaxPro.queue!=null){AjaxPro.queue.dispose()}}},false);addEvent(window,"unload",AjaxPro.dispose);AjaxPro.Request=function(b){this.url=b;this.xmlHttp=null};AjaxPro.Request.prototype={url:null,callback:null,onLoading:null,onError:null,onTimeout:null,onStateChanged:null,args:null,context:null,isRunning:false,abort:function(){if(this.timeoutTimer!=null){clearTimeout(this.timeoutTimer)}if(this.xmlHttp){this.xmlHttp.onreadystatechange=AjaxPro.noOperation;this.xmlHttp.abort()}if(this.isRunning){this.isRunning=false;this.onLoading(false)}},dispose:function(){this.abort()},getEmptyRes:function(){return{error:null,value:null,request:{method:this.method,args:this.args},context:this.context,duration:this.duration}},endRequest:function(b){this.abort();if(b.error!=null){this.onError(b.error,this)}if(typeof this.callback=="function"){this.callback(b,this)}},mozerror:function(){if(this.timeoutTimer!=null){clearTimeout(this.timeoutTimer)}var b=this.getEmptyRes();b.error={Message:"Unknown",Type:"ConnectFailure",Status:0};this.endRequest(b)},doStateChange:function(){this.onStateChanged(this.xmlHttp.readyState,this);if(this.xmlHttp.readyState!=4||!this.isRunning){return}this.duration=new Date().getTime()-this.__start;if(this.timeoutTimer!=null){clearTimeout(this.timeoutTimer)}var b=this.getEmptyRes();if(this.xmlHttp.status==200&&this.xmlHttp.statusText=="OK"){b=this.createResponse(b)}else{b=this.createResponse(b,true);b.error={Message:this.xmlHttp.statusText,Type:"ConnectFailure",Status:this.xmlHttp.status}}this.endRequest(b)},createResponse:function(f,h){if(!h){if(typeof(this.xmlHttp.responseText)=="unknown"){f.error={Message:"XmlHttpRequest error reading property responseText.",Type:"XmlHttpRequestException"};return f}var i=""+this.xmlHttp.responseText;if(AjaxPro.cryptProvider!=null&&typeof AjaxPro.cryptProvider.decrypt=="function"){i=AjaxPro.cryptProvider.decrypt(i)}if(this.xmlHttp.getResponseHeader("Content-Type")=="text/xml"){f.value=this.xmlHttp.responseXML}else{if(i!=null&&i.trim().length>0){f.json=i;var g=null;g=AjaxPro.parse(i);if(g!=null){if(typeof g.value!="undefined"){f.value=g.value}else{if(typeof g.error!="undefined"){f.error=g.error}}}}}}return f},timeout:function(){this.duration=new Date().getTime()-this.__start;var b=this.onTimeout(this.duration,this);if(typeof b=="undefined"||b!=false){this.abort()}else{this.timeoutTimer=setTimeout(this.timeout.bind(this),AjaxPro.timeoutPeriod)}},invoke:function(k,j,l,p){this.__start=new Date().getTime();this.xmlHttp=new XMLHttpRequest();this.isRunning=true;this.method=k;this.args=j;this.callback=l;this.context=p;var n=typeof(l)=="function"&&l!=AjaxPro.noOperation;if(n){if(MS.Browser.isIE){this.xmlHttp.onreadystatechange=this.doStateChange.bind(this)}else{this.xmlHttp.onload=this.doStateChange.bind(this);this.xmlHttp.onerror=this.mozerror.bind(this)}this.onLoading(true)}var i=AjaxPro.toJSON(j)+"";if(AjaxPro.cryptProvider!=null&&typeof AjaxPro.cryptProvider.encrypt=="function"){i=AjaxPro.cryptProvider.encrypt(i)}this.xmlHttp.open("POST",this.url,n);this.xmlHttp.setRequestHeader("Content-Type","text/plain; charset=utf-8");this.xmlHttp.setRequestHeader("X-"+AjaxPro.ID+"-Method",k);if(AjaxPro.token!=null&&AjaxPro.token.length>0){this.xmlHttp.setRequestHeader("X-"+AjaxPro.ID+"-Token",AjaxPro.token)}this.timeoutTimer=setTimeout(this.timeout.bind(this),AjaxPro.timeoutPeriod);try{this.xmlHttp.send(i)}catch(m){}if(!n){return this.createResponse({error:null,value:null})}return true}};AjaxPro.RequestQueue=function(c){this.queue=[];this.requests=[];this.timer=null;if(isNaN(c)){c=2}for(var d=0;d<c;d++){this.requests[d]=new AjaxPro.Request();this.requests[d].callback=function(b){var a=b.context;b.context=a[3][1];a[3][0](b,this)};this.requests[d].callbackHandle=this.requests[d].callback.bind(this.requests[d])}this.processHandle=this.process.bind(this)};AjaxPro.RequestQueue.prototype={process:function(){this.timer=null;if(this.queue.length==0){return}for(var d=0;d<this.requests.length&&this.queue.length>0;d++){if(this.requests[d].isRunning==false){var c=this.queue.shift();this.requests[d].url=c[0];this.requests[d].onLoading=c[3].length>2&&c[3][2]!=null&&typeof c[3][2]=="function"?c[3][2]:AjaxPro.onLoading;this.requests[d].onError=c[3].length>3&&c[3][3]!=null&&typeof c[3][3]=="function"?c[3][3]:AjaxPro.onError;this.requests[d].onTimeout=c[3].length>4&&c[3][4]!=null&&typeof c[3][4]=="function"?c[3][4]:AjaxPro.onTimeout;this.requests[d].onStateChanged=c[3].length>5&&c[3][5]!=null&&typeof c[3][5]=="function"?c[3][5]:AjaxPro.onStateChanged;this.requests[d].invoke(c[1],c[2],this.requests[d].callbackHandle,c);c=null}}if(this.queue.length>0&&this.timer==null){this.timer=setTimeout(this.processHandle,0)}},add:function(f,h,g,i){this.queue.push([f,h,g,i]);if(this.timer==null){this.timer=setTimeout(this.processHandle,0)}},abort:function(){this.queue.length=0;if(this.timer!=null){clearTimeout(this.timer)}this.timer=null;for(var b=0;b<this.requests.length;b++){if(this.requests[b].isRunning==true){this.requests[b].abort()}}},dispose:function(){for(var d=0;d<this.requests.length;d++){var c=this.requests[d];c.dispose()}this.requests.clear()}};AjaxPro.queue=new AjaxPro.RequestQueue(2);AjaxPro.AjaxClass=function(b){this.url=b};AjaxPro.AjaxClass.prototype={invoke:function(h,g,i){if(i!=null){if(i.length!=6){for(;i.length<6;){i.push(null)}}if(i[0]!=null&&typeof(i[0])=="function"){return AjaxPro.queue.add(this.url,h,g,i)}}var f=new AjaxPro.Request();f.url=this.url;return f.invoke(h,g)}};function CheckFormNewsletterValues(c){var a=document.getElementById("frmNewsletter").txtEmail.value;var b=/^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/;if(b.exec(a)==null){alert(c);document.getElementById("frmNewsletter").txtEmail.focus();return false}return true}function $(){var c=new Array();for(var b=0;b<arguments.length;b++){var a=arguments[b];if(typeof(a)=="string"){a=document.getElementById(a)}if(arguments.length==1){return a}c.push(a)}return c}String.prototype.trim=function(){return this.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};String.prototype.ToInt=function(){var a=0;try{a=parseInt(this)}catch(b){}if(isNaN(a)){a=0}return a};function tp(t){var ret=false;try{eval("var ___t=typeof("+t+");");ret=true}catch(e){}return ret}function Toggle(a){if($(a)!=null){$(a).style.display=($(a).style.display=="none"?"":"none")}}function SetValueOnLoad(b,a){if(document.getElementById(b)!=null){document.getElementById(b).value=a}else{setTimeout("SetValueOnLoad('"+b+"','"+a+"');",50)}}function SubmitForm(f,d,c,a,b){f.className=(typeof(a)!="undefined"?a:"PleaseWaitButton");f.value=(typeof(c)!="undefined"?c:"Veuillez patienter");if(typeof(b)!="undefined"){$(d).action=b}$(d).submit()}function gammaRay(c){if($("GRHref")==null){var a=document.getElementsByTagName("body");if(a!=null&&a.length==1){var d=document.createElement("div");d.style.display="none";d.innerHTML='<a id="GRHref" href=""><span id="GRLink" class="frontbox"></span></a>';a[0].appendChild(d)}}if($("GRHref")!=null){$("GRHref").href=c;FboxShowLink($("GRLink"))}}function DoPostback(c,a,b){if(c!=null){$(c).value=a}$(b).submit()}function DoKPPostback(c,f,a,b){var d=c.keyCode?c.keyCode:c.which?c.which:c.charCode;if(d==13){if(f!=null&&f.length>0){$(f).value=a}$(b).submit()}}function FboxShowLink(b){var a=$(b);if(a.tagName.toLowerCase()=="a"){a.onclick()}else{fbox_kind($(b));showFbox()}}function RefreshMCaptcha(a,b){Soda.Ajax.MCaptcha.GenerateCode(function(c){a.src="/Scripts/Captcha.aspx?t="+c.value+"&n=1";b.value=c.value})}function LoadCaptchaImage(a,d,c,b){Soda.Ajax.MCaptcha.GenerateCode(function(f){$(a).value=f.value;$(d).src="/scripts/captcha.aspx?t="+f.value+"&n=1";if(typeof(c)=="undefined"||c==null){$(d).onload=function(){alert(typeof(b)=="undefined"?"Please enter text as it appears on the image":b);$(d).onload=null}}})}function LoadCaptchaImageNW(a,b){Soda.Ajax.MCaptcha.GenerateCode(function(c){$(a).value=c.value;$(b).onload=null;$(b).src="/scripts/captcha.aspx?t="+c.value+"&n=1"})}function SetValueOnLoad(b,a){if($(b)!=null){$(b).value=a}else{setTimeout("SetValueOnLoad('"+b+"','"+a+"');",50)}}function OpenWindow(b,a,d){var c=window.open(b,"_blank","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width="+a+",height="+d)}function viewLang(){var a=document.getElementById("selectOn");a.href="javascript:hideLang();";a.id="selectOff";document.getElementById("switchLang").style.display="block"}function hideLang(){var a=document.getElementById("selectOff");a.href="javascript:viewLang();";a.id="selectOn";document.getElementById("switchLang").style.display="none"}function fbox_conf(){}fbox_conf.prototype={fbox_nbsp_count:4,fbox_close_txt:'<img src="/htdocs/images/closelabel.gif" border="0">',fbox_max_txt:"Maximize",fbox_min_txt:"Minimize",fbox_prev_txt:"&laquo; Previous",fbox_next_txt:"Next &raquo;"};function fbox_engine(){if(typeof(fbox_conf)!="function"){return}var _1;var _2,fbox_max_txt,fbox_min_txt;var _3,fbox_next_txt;var _4=0;var _5;var _6,fbox_world;var _7,fbox_progress,fbox_progress_img;var _8,fbox_content,fbox_spacer;var _9,fbox_title;var _a,fbox_close_a,fbox_resize_a;var _b,fbox_prev_a,fbox_next_a;var _c;var _d;var _e=0;var _f=0;var _10=0;var _11=0;var _12=false;var _13=false;var _14;var _15=null;var _16="";addEvent(window,"load",init_fbox);function init_fbox(){_15=this;window.fbox_kind=fbox_kind;window.showFbox=showFbox;window.hideFbox=hideFbox;if(getElem("fbox_world")){return}_5=null;try{if(window.XMLHttpRequest){_5=new XMLHttpRequest()}else{if(window.ActiveXObject){_5=new ActiveXObject("Microsoft.XMLHTTP")}}}catch(e){}var cst=new fbox_conf();_2=cst.fbox_close_txt;_3=cst.fbox_prev_txt;fbox_next_txt=cst.fbox_next_txt;fbox_max_txt=cst.fbox_max_txt;fbox_min_txt=cst.fbox_min_txt;_1="";for(var i=0;i<cst.fbox_nbsp_count;i++){_1+="&nbsp;"}var _19='<div id="fbox_bg" style="display:none;"></div><div id="fbox_progress" style="display:none;"><img id="fbox_progress_img" border="0"  /></div><div id="fbox_fg" display="none"><div id="fbox_fg_inner"><div id="fbox_content"></div><div id="fbox_spacer"></div><table id="fbox_bar" border="0" cellspacing="0" cellpadding="0"><tr><td><div id="fbox_sys"><nobr><a id="fbox_resize_a" href="javascript:void(null);" >'+fbox_max_txt+'</a><span id="fbox_resize_nbsp" >'+_1+'</span><a id="fbox_close_a" href="javascript:void(null);" >'+_2+'</a></nobr></div><div id="fbox_title">&nbsp;</div><div id="fbox_navig"><nobr><a id="fbox_prev_a" href="javascript:void(null);" >'+_3+"</a>"+_1+'<a id="fbox_next_a" href="javascript:void(null);" >'+fbox_next_txt+"</a></nobr></div></td></tr></table></div></div>";fbox_world=document.createElement("div");fbox_world.setAttribute("id","fbox_world");fbox_world.innerHTML=_19;_6=document.getElementsByTagName("body")[0];_6.appendChild(fbox_world);_16=typeof(_6.style.cssText)!="undefined"?_6.style.cssText:_6.getAttribute("style");_7=getElem("fbox_bg");fbox_progress=getElem("fbox_progress");fbox_progress_img=getElem("fbox_progress_img");_8=getElem("fbox_fg");fbox_content=getElem("fbox_content");fbox_spacer=getElem("fbox_spacer");_9=getElem("fbox_bar");fbox_title=getElem("fbox_title");_a=getElem("fbox_sys");fbox_close_a=getElem("fbox_close_a");fbox_resize_a=getElem("fbox_resize_a");_b=getElem("fbox_navig");fbox_prev_a=getElem("fbox_prev_a");fbox_next_a=getElem("fbox_next_a");_c=getElem("fbox_fg_inner");_d=getElem("fbox_resize_nbsp");fbox_close_a.onclick=hideFbox;blending_fg=new blendingTransition(_8);blending_bg=new blendingTransition(_7);fbox_content.style.visibility="hidden";_8.style.width=100+"px";fbox_content.style.width="auto";_8.style.left=-200+"px";_8.style.top=-200+"px";_8.style.display="";_14=fbox_content.offsetWidth<100;_8.style.display="none";fbox_content.style.visibility="visible";_8.style.left=0+"px";_8.style.top=0+"px";var _1a=new Array();function fbox_kind(_1b){var _1c=this;this.tagLink=_1b.parentNode;this.title=_1b.getAttribute("title");var src=trim(_1b.getAttribute("src"));if(!src){src=trim(this.tagLink.getAttribute("href"))}this.src=src;this.type=3;var _1e=trim(_1b.getAttribute("type")).toLowerCase();switch(_1e){case"image":this.type=0;break;case"inline":this.type=1;break;case"ajax":this.type=2;break;case"iframe":this.type=3;break;default:if(src.indexOf("#")>=0){this.type=1;break}var dot=src.lastIndexOf(".");if(dot<1){break}var ext=src.substr(dot+1,src.length).toLowerCase();if(ext=="jpg"||ext=="jpeg"||ext=="png"||ext=="gif"){this.type=0}}this.tagContent=null;if(this.type==1){var _21=src.substr(src.indexOf("#")+1,1000);this.tagContent=getElem(_21);if(this.tagContent){var _22=this.tagContent.getElementsByTagName("select");for(var i=0;i<_22.length;i++){_22[i].setAttribute("fbox-marker","fbox-marker")}}else{this.type=-1}}if(this.type==2&&!_5){this.type=-1;alert("!http")}this.objImg=null;this.imgType=-1;this.exactImgWidth=0;this.exactImgHeight=0;this.imgState=-1;this.width=_1b.getAttribute("width")-0;this.height=_1b.getAttribute("height")-0;if(this.type==0){this.imgType=0;if(this.width&&this.width>0){this.imgType+=1}else{this.width=200}if(this.height&&this.height>0){this.imgType+=2}else{this.height=150}this.imgState=this.imgType?1:0;if(!trim(this.title)){var _24=this.tagLink.getElementsByTagName("img");if(_24[0]){var _25=_24[0].getAttribute("title");if(trim(_25)){this.title=_25}}}}else{if(!this.width){this.width=400}if(!this.height){this.height=300}}this.next=null;this.prev=null;var _26=trim(_1b.getAttribute("name")).toLowerCase();if(_26&&this.type!=-1){if(_1a[_26]){var n=_1a[_26].length;this.prev=_1a[_26][n-1];this.prev.next=this;_1a[_26][n]=this}else{_1a[_26]=new Array();_1a[_26][0]=this}}function ready(){_15=_1c;showFbox();return false}this.tagLink.onclick=this.type==-1?nope:ready}var _28=document.getElementsByTagName("span");for(var i=0;i<_28.length;i++){var _2a=_28[i];if(_2a.className=="frontbox"&&_2a.parentNode.nodeName.toLowerCase()=="a"){new fbox_kind(_2a)}}}function nope(){return false}function trim(str){if(!str){return""}str=str.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1");return(str)}function blendingTransition(_2c){var _2d=null;var _2e=0;var _2f=0;var _30=null;this.halt=halt;this.animate=animate;this.redisplay=redisplay;function majorTask(){if((_2f>0&&_2e<_30)||(_2f<0&&_2e>_30)){setBlend(_2e);_2e+=_2f;return true}redisplay();return false}function setBlend(_31){if(_31>=100){_2c.style.opacity="";_2c.style.filter="";_2c.style.display=""}else{if(_31<=0){_2c.style.display="none";_2c.style.opacity=0;_2c.style.filter="alpha(opacity=0)"}else{_2c.style.opacity=_31/100;_2c.style.filter="alpha(opacity="+_31+")";_2c.style.display=""}}}function redisplay(){if(_2f==0){halt()}else{if((_2f>0&&_2e>=_30)||(_2f<0&&_2e<=_30)){halt();_2e=_30}}setBlend(_2e)}function halt(val){var _33=_2d?true:false;if(_33){clearInterval(_2d);_2d=null}_2f=0;val=val-0;if(!isNaN(val)){_2e=val;setBlend(val)}return _33}function animate(_34,_35,_36,_37){if(!halt()){_2e=_34}_30=_35;_2f=_36;if(majorTask()){_2d=window.setInterval(majorTask,_37)}}}function adjustBg(){var _38=new getPageSize();var _39=new getScrollPos();_7.style.width=_38.width+"px";_7.style.height=_38.height+"px";_7.style.left=_39.left+"px";_7.style.top=_39.top+"px";blending_bg.redisplay()}function showBg(){blending_bg.halt(0);adjustBg();setSelectVisibility("hidden");blending_bg.animate(0,77,10,70);_4=_4|2}function setSelectVisibility(v){var _3b=document.getElementsByTagName("select");for(var i=0;i<_3b.length;i++){var _3d=_3b[i];if(_3d.getAttribute("fbox-marker")!="fbox-marker"){_3d.style.visibility=v}}}function hideBg(){_4=_4&(~2);blending_bg.halt(0);setSelectVisibility("visible")}function showProgress(){fbox_progress.style.display="";centerProgress();fbox_progress.onclick=function(){_4=_4|1;hideFbox()};_4=_4|4}function hideProgress(){_4=_4&(~4);fbox_progress.style.display="none";fbox_progress.onclick=null}function adjustFg(_3e){var _3f=_15.width;var _40=_15.height;var _41=trim(_15.title)?true:false;var _42=_15.next||_15.prev?true:false;var _43=false;if(!_3e){_43=_41||_42}else{if(_3e==1){_43=true}}if(_43&&_3f<200){_3f=200}if(_43){fbox_spacer.style.visibility="visible";fbox_spacer.style.display="";_9.style.visibility="visible";_9.style.display="";if(_41){fbox_title.style.styleFloat=fbox_title.style.cssFloat="left";fbox_title.style.visibility="visible";fbox_title.style.height="auto";fbox_title.style.overflow="visible";_b.style.marginTop=3+"px"}else{fbox_title.style.styleFloat=fbox_title.style.cssFloat="right";fbox_title.style.visibility="hidden";fbox_title.style.height=1+"px";fbox_title.style.overflow="hidden";_b.style.marginTop=0+"px"}}else{fbox_spacer.style.visibility="hidden";fbox_spacer.style.display="none";_9.style.visibility="hidden";_9.style.display="none"}if(_42){if(_15.prev){fbox_prev_a.style.visibility="visible"}else{fbox_prev_a.style.visibility="hidden"}if(_15.next){fbox_next_a.style.visibility="visible"}else{fbox_next_a.style.visibility="hidden"}_b.style.visibility="visible";_b.style.display=""}else{_b.style.visibility="hidden";_b.style.display="none"}if(_14){_8.style.width=(_3f+18)+"px";fbox_content.style.width=(_3f+6)+"px";fbox_content.style.height=(_40+6)+"px"}else{_8.style.width=(_3f+6)+"px";fbox_content.style.width=_3f+"px";fbox_content.style.height=_40+"px"}if(_43){fbox_spacer.style.width=(_3f+6)+"px";_9.style.width=(_3f+6)+"px";fbox_title.style.width="auto";_8.style.height="auto";_9.style.height="auto";_8.style.display="";var w1=_a.offsetWidth;var w2=fbox_title.offsetWidth;_8.style.display="none";w1=_3f-w1-25;var w=w1<=190?_3f-10:w1>w2?w2:w1;fbox_title.style.width=w+"px";_8.style.display="";var h=_8.offsetHeight;_8.style.display="none";h=h-12;_8.style.height=h+"px";_9.style.height=h-_40-15+"px"}else{if(_14){_8.style.height=(_40+18)+"px"}else{_8.style.height=(_40+6)+"px"}}centerFg()}function adjustImage(){var _48=_15.objImg;var _49=0;switch(_15.imgType){case 0:var _4a=new getPageSize();with(Math){var x=max(_4a.width-125,200);var y=max(_4a.height-125,200);var _4d=max(1,max(_15.exactImgWidth/x,_15.exactImgHeight/y))}if(_4d>1){fbox_resize_a.style.visibility="visible";fbox_resize_a.style.display="";_d.style.visibility="visible";_d.style.display="";_49=1}else{fbox_resize_a.style.visibility="hidden";fbox_resize_a.style.display="none";_d.style.visibility="hidden";_d.style.display="none"}if(false&&_15.imgState==0){fbox_resize_a.innerHTML=fbox_max_txt;_15.width=_48.width=Math.round(_15.exactImgWidth/_4d);_15.height=_48.height=Math.round(_15.exactImgHeight/_4d)}else{fbox_resize_a.innerHTML=fbox_min_txt;_15.width=_48.width=_15.exactImgWidth;_15.height=_48.height=_15.exactImgHeight}break;case 1:_15.height=_48.height=Math.round(_15.exactImgHeight*_15.width/_15.exactImgWidth);_48.width=_15.width;break;case 2:_15.width=_48.width=Math.round(_15.exactImgWidth*_15.height/_15.exactImgHeight);_48.height=_15.height;break;case 3:_48.width=_15.width;_48.height=_15.height}adjustFg(_49)}function toggleImgState(){if(((_4&8)==8)&&(_15.imgType==0)){_15.imgState=_15.imgState?0:1;setContent(false);adjustImage();setContent(true)}return false}function showNext(){if(_15.next){_15=_15.next;showFbox()}return false}function showPrev(){if(_15.prev){_15=_15.prev;showFbox()}return false}function ShowfboxEx(obj){_15=obj;showFbox()}function showFbox(){var src=_15.src;_6.style.width="auto";_6.style.height="auto";_12=_13=false;_10=0;_11=0;fbox_resize_a.style.visibility="hidden";fbox_resize_a.style.display="none";_d.style.visibility="hidden";_d.style.display="none";setContent(false);fbox_title.innerHTML=trim(_15.title)?_15.title:"&nbsp;";blending_fg.halt(0);_4=_4&2;if((_4&2)==0){showBg()}adjustOnResizeTime();adjustOnScrollTime();addEvent(window,"scroll",adjustOnScrollPos);if(_15.type==0||_15.type==2){showProgress()}if(_15.type==0){fbox_content.onclick=hideFbox;fbox_resize_a.onclick=toggleImgState}else{fbox_content.onclick=null;fbox_resize_a.onclick=nope}fbox_prev_a.onclick=_15.prev?showPrev:nope;fbox_next_a.onclick=_15.next?showNext:nope;switch(_15.type){case 3:adjustFg(1);setContent(true);blending_fg.animate(0,100,10,30);_4=_4|8;break;case 0:var _50=new Image();_15.objImg=_50;_50.onload=function(){_15.objImg.onload=null;if((_4&1)!=1){hideProgress();_15.exactImgWidth=_15.objImg.width;_15.exactImgHeight=_15.objImg.height;adjustImage();setContent(true);blending_fg.animate(0,100,10,30);_4=_4|8}};_50.src=src;break;case 1:adjustFg(1);var _51=_15.tagContent.innerHTML;setContent(_51);blending_fg.animate(0,100,10,30);_4=_4|8;break}}function adjustOnScrollTime(){function majorTask(){if((_4&8)==8){centerFg()}if((_4&2)==2){adjustBg()}if((_4&4)==4){centerProgress()}if((_4&1)==1){hideFbox()}else{var now=new Date();var _53=now.getTime();_f=_53;addEvent(window,"scroll",adjustOnScrollTime);var _54=new getScrollPos();_10=_54.left;_11=_54.top}}removeEvent(window,"scroll",adjustOnScrollTime);var now=new Date();var _56=now.getTime()-_f;if(_56>=200){majorTask()}else{window.setTimeout(majorTask,200-_56)}}function adjustOnScrollPos(){var _57=new getScrollPos();if(Math.abs(_57.left-_10)>50||Math.abs(_57.top-_11>50)){if((_4&8)==8){centerFg()}if((_4&2)==2){adjustBg()}if((_4&4)==4){centerProgress()}_10=_57.left;_11=_57.top;var now=new Date();var _59=now.getTime();_f=_59}}function adjustOnResizeTime(){function majorTask(){_7.style.display="none";_8.style.display="none";if((_4&8)==8){if(_15.imgType==0){setContent(false);adjustImage();setContent(true)}else{centerFg()}}if((_4&2)==2){adjustBg()}if((_4&4)==4){centerProgress()}if((_4&1)==1){hideFbox()}else{var now=new Date();var _5b=now.getTime();_f=_e=_5b;addEvent(window,"resize",adjustOnResizeTime);var _5c=new getScrollPos();_10=_5c.left;_11=_5c.top}}removeEvent(window,"resize",adjustOnResizeTime);var now=new Date();var _5e=now.getTime()-_e;if(_5e>=200){majorTask()}else{window.setTimeout(majorTask,200-_5e)}}function hideFbox(){_4=_4|1;blending_fg.halt(0);if(_5){_5.onreadystatechange=nope}if(_15.objImg){_15.objImg.onload=null}if((_4&4)==4){hideProgress()}_4=_4&(~8);if((_4&2)==2){hideBg()}_8.style.display="none";setContent(false);removeEvent(window,"resize",adjustOnResizeTime);removeEvent(window,"scroll",adjustOnScrollTime);removeEvent(window,"scroll",adjustOnScrollPos);if(typeof(_6.style.cssText)!="undefined"){_6.style.cssText=_16}else{_6.setAttribute("style",_16)}}function centerProgress(){var _5f=new getScrollPos();var _60=new getPageSize();var _61=(_60.width-fbox_progress.offsetWidth)>>1;var top=(_60.height-fbox_progress.offsetHeight)>>1;fbox_progress.style.left=_5f.left+_61+"px";fbox_progress.style.top=_5f.top+top+"px"}function centerFg(){var _63=new getScrollPos();var _64=new getPageSize();_8.style.display="";var _65=(_64.width-_8.offsetWidth)>>1;var top=(_64.height-_8.offsetHeight)>>1;blending_fg.redisplay();if(_65<=0){if(!_12){_12=true;_65=_63.left+_65;if(_65<0){_65=0}_8.style.left=_65+"px"}}else{_12=false;_8.style.left=_63.left+_65+"px"}if(top<=0){if(!_13){_13=true;top=_63.top+top;if(top<0){top=0}_8.style.top=top+"px"}}else{_13=false;_8.style.top=_63.top+top+"px"}}function getScrollPos(){var _67=document.documentElement;this.left=window.pageXOffset||(_67&&_67.scrollLeft)||document.body.scrollLeft;this.top=window.pageYOffset||(_67&&_67.scrollTop)||document.body.scrollTop}function getPageSize(){var _68=document.documentElement;var _69=document.body;var _6a,val2h,val3h;var _6b,val2w,val3w;var w=0,h=0;_6a=_68?_68.clientHeight:0;val2h=_69.clientHeight?_69.clientHeight:0;val3h=window.innerHeight?window.innerHeight:0;_6b=_68?_68.clientWidth:0;val2w=_69.clientWidth?_69.clientWidth:0;val3w=window.innerWidth?window.innerWidth:0;if(_6a&&val2h&&val3h){if(_6a==val2h){w=val3w;h=val3h}else{if(val2h<_6a){var tmp=_6a;_6a=val2h;val2h=tmp}if(val2w<_6b){var tmp=_6b;_6b=val2w;val2w=tmp}h=val2h<=val3h?val2h:_6a;w=val2w<=val3w?val2w:_6b}}else{if(_6a){w=_6b;h=_6a}else{w=val2w;h=val2h}}this.width=w;this.height=h}function setContent(str){if(!str){fbox_content.innerHTML="";fbox_content.style.overflow="hidden";return}if(_15.type==0){str='<a href="javascript:void(null);" style="font-size:8px;" ><img id="fbox_content_img" src="'+_15.src+'" border="0" /></a>'}else{if(_15.type==3){str='<iframe src="'+_15.src+'" id="fbox_content_iframe" frameborder="0" ></iframe>'}else{if(typeof(str)!="string"){str=""}}}fbox_content.innerHTML=str;fbox_content.style.overflow="auto";var _70=null;if(_15.type==0){_70=getElem("fbox_content_img")}else{if(_15.type==3){_70=getElem("fbox_content_iframe")}else{return}}_70.style.width=_15.width+"px";_70.style.height=_15.height+"px"}function getElem(_71){return document.getElementById(_71)}function addEvent(obj,_73,fn){if(obj.addEventListener){obj.addEventListener(_73,fn,false);return true}if(obj.attachEvent){obj.detachEvent("on"+_73,fn);return obj.attachEvent("on"+_73,fn)}return false}function removeEvent(obj,_76,fn){if(obj.removeEventListener){obj.removeEventListener(_76,fn,false);return true}if(obj.detachEvent){return obj.detachEvent("on"+_76,fn)}return false}}fbox_engine();function FboxShowIndicator(b){var f=document.getElementById("fbox_content");var d=f.getElementsByTagName("img");for(var a=0;a<d.length;a++){if(d[a].id=="ProgressIndicator"){d[a].style.display=b?"":"none";break}}}function FboxShowTag(d,h,b){var g=document.getElementById("fbox_content");var f=g.getElementsByTagName(d);for(var a=0;a<f.length;a++){if(f[a].id==h){f[a].style.display=b?"":"none";break}}}function Fbox$(b,g){var f=document.getElementById("fbox_content");var d=f.getElementsByTagName(b);for(var a=0;a<d.length;a++){if(d[a].id==g){return d[a]}}return null}function Fbox$$(f,b){var a=[];var h=document.getElementById("fbox_content");var g=h.getElementsByTagName(f);for(var d=0;d<g.length;d++){if(g[d].name==b){a.push(g[d])}}return a}function FboxInvalidateField(d,b,a){FboxShowTag("div",d+"_icon0",!(b!=0));FboxShowTag("div",d+"_icon1",!(b!=1));FboxShowTag("div",d+"_icon2",!(b!=2));var g=Fbox$("div",d+"_msg");if(g!=null){g.setAttribute("class",(b==0?"ValidatorMessageError":"ValidatorMessageWarning"));g.setAttribute("className",(b==0?"ValidatorMessageError":"ValidatorMessageWarning"));g.style.display=(b==1?"none":"block");g.innerHTML=a}var c=Fbox$("div",d);if(c!=null){c.setAttribute("IsValid",b==1?"1":"0");c.IsValid=(b==1?1:0)}c=Fbox$("input",d);if(c!=null){c.setAttribute("IsValid",b==1?"1":"0");c.IsValid=(b==1?1:0)}return b}function FboxShowLink(a){fbox_kind($(a));showFbox()}function FboxStartHide(){setTimeout("hideFbox();",5000)}function ValidateSTF(b){var a=b.value.trim();if(a.length>0&&(/^email of friend\s[1-5]/i).test(a)==false){FboxInvalidateField(b.id,((/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i).test(a)&&a.length<96)?1:0,"The email address you entered is invalid")}else{FboxInvalidateField(b.id,1,"")}}function FboxSendToFriend(){var a=Fbox$$("input","STFField");var b=[];var f=Fbox$("input","STFFromName");var h=f?f.value.trim():"";FboxInvalidateField(f.id,1,"");if(f!=null&&((/^votre nom/i).test(h)||h.length==0)){FboxInvalidateField(f.id,0,"")}for(var d=0;d<a.length;d++){var c=a[d].value.trim();FboxInvalidateField(a[d].id,1,"");if((/^adresse e-mail/i).test(c)==false){if(c.indexOf("\n")>-1||(c.length>0&&(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i).test(c))){b.push(c)}else{FboxInvalidateField(a[d].id,0,"")}}}if(f.IsValid&&b.length>0){Fbox$("div","SendToFriendNoRecipients").style.display="none";var g=Fbox$("textarea","STFMessage")?Fbox$("textarea","STFMessage").value.trim():"";g=(g=="Votre message"?"":g);if(h.length==0&&Fbox$("input","STFFromName")!=null){alert("Veuillez remplir une addresse email valide");return}Soda.Ajax.Tools.SendToFriend(h,g,b,function(l){Fbox$("div","SendToFriendForm").style.display="none";Fbox$("div","SendToFriendResult").style.display="";var j=Fbox$$("input","STFField");for(var k=0;k<j.length;k++){j[k].value="Email of Friend "+j[k].id.replace("STFField","")}FboxStartHide()})}else{if(b.length==0){FboxInvalidateField("STFField1",0,"")}Fbox$("div","SendToFriendNoRecipients").style.display=""}};