1function dwDocument(){}dwDocument.prototype.redirectUrl="",dwDocument.prototype.redirectTimeout=500,dwDocument.prototype.getClientSize=function(){return[document.documentElement&&document.documentElement.clientWidth||innerWidth||document.body.clientWidth,document.documentElement&&document.documentElement.clientHeight||innerHeight||document.body.clientHeight]},dwDocument.prototype.getScrollPosition=function(){return[Math.max(document.documentElement&&document.documentElement.scrollLeft||0,document.body.scrollLeft||0,"number"==typeof pageXOffset&&pageXOffset||0),Math.max(document.documentElement&&document.documentElement.scrollTop||0,document.body.scrollTop||0,"number"==typeof pageYOffset&&pageYOffset||0)]},dwDocument.prototype.getDocumentSize=function(){return[Math.max(document.documentElement&&document.documentElement.scrollWidth||0,document.body.scrollWidth||0,document.body.offsetWidth||0),Math.max(document.documentElement&&document.documentElement.scrollHeight||0,document.body.scrollHeight||0,document.body.offsetHeight||0)]},dwDocument.prototype.getMousePosition=function(e){var e=e||event,t=this.getScrollPosition();return[e.clientX+t[0]-document.body.clientLeft,e.clientY+t[1]-document.body.clientTop]},dwDocument.prototype.addScript=function(e,t,i){t=t||!1;var o=document.createElement("script"),s=document.getElementsByTagName("script")[0];o.type="text/javascript",0===e.indexOf("//")&&(e="https:"+e),o.src=e,t&&(o.async=!0),i&&(o.onload=i),s.parentNode.insertBefore(o,s)},dwDocument.prototype.getCurrentScript=function(){var e=document.getElementsByTagName("script");return e[e.length-1]},dwDocument.prototype.updatePage=function(e){var t,i=document.location.hash.replace(/.*#/,""),o=dwElement.get("block"+e).getElementsByTagName("a");if(i&&0===i.indexOf("p"+e+"-"))for(t in o)if(o[t].href&&o[t].href.replace(/.*#/,"")===i){"function"==typeof o[t].onclick&&o[t].onclick();break}},dwDocument.prototype.openWindow=function(e){var t=new Date,i=e.match(/https?:..(.+)\//);return i&&i[1]&&"undefined"!=typeof _gaq&&_gaq.push(["_trackEvent","ExternalLinks","OpenUrl",i[1]]),open(e,"external"+t.getTime()),!1};var dwDocument=new dwDocument;function dwElement(){}dwElement.prototype.loaded=!1,dwElement.prototype.onLoad=[],dwElement.prototype.resized=!1,dwElement.prototype.displays=[],dwElement.prototype.get=function(e){return"object"!=typeof e?e?document.getElementById(e):null:e},dwElement.prototype.setAlpha=function(e,t){e=this.get(e);e&&(e.style.opacity=t/100,e.style.MozOpacity=t/100,e.style.KhtmlOpacity=t/100,e.style.filter="alpha(opacity="+t+")")},dwElement.prototype.setDisplayStyle=function(e,t){var i,o,s,n=t=void 0===t?!0:t;for(i in e="string"!=typeof e&&!e.tagName?e:[e])if(e[i]&&null!==(o=this.get(e[i])))if(s=this.getStyle(o,"display"),!0===(n=null===t?"none"===s:n)){if(o.style.display="","none"===this.getStyle(o,"display"))switch(o.tagName.toUpperCase()){case"TABLE":o.style.display="table";break;case"DIV":case"P":case"UL":o.style.display="block";break;case"TR":o.style.display="table-row";break;case"TD":o.style.display="table-cell";break;default:o.style.display="inline"}}else o.style.display="none"},dwElement.prototype.getValue=function(e){e=this.get(e);return e?"select"===e.tagName.toLowerCase()?this.getSelectValue(e):("radio"!==e.type&&"checkbox"!==e.type||!1!==e.checked)&&(void 0===e.value?e.innerHTML:e.value):null},dwElement.prototype.getSelectValue=function(e){var t,i=this.get(e),o=[];if(!1===i.multiple)return-1!==i.selectedIndex&&i.options[i.selectedIndex].value;for(t=0;t<i.options.length;t+=1)!0===i.options[t].selected&&(o[o.length]=i.options[t].value);return o},dwElement.prototype.getSelectText=function(e){var t,i=this.get(e),o=[];if(!1===i.multiple)return-1!==i.selectedIndex&&i.options[i.selectedIndex].text;for(t=0;t<i.options.length;t+=1)!0===i.options[t].selected&&(o[o.length]=i.options[t].text);return o},dwElement.prototype.setValue=function(e,t){e=this.get(e);return e?"select"===e.tagName.toLowerCase()?this.setSelectValue(e,t):("radio"===e.type||"checkbox"===e.type?e.checked=!0===t||t===e.value:void 0===e.value?""!==e.innerHTML&&e.innerHTML===t||(e.innerHTML=t,"undefined"!=typeof dwHideExternal&&dwHideExternal.parse(e)):e.value=t,!0):null},dwElement.prototype.setSelectValue=function(e,t){var i,o=this.get(e);if(t=""+t,!1===o.multiple)for(i=0;i<o.options.length;i+=1)if(o.options[i].value===t)return o.selectedIndex=i,!0;return!1},dwElement.prototype.getLabel=function(e){var t,i,o,s,n=this.get(e);if(n){switch(n.tagName.toLowerCase()){case"select":return{l:this.getSelectText(n),v:this.getValue(n)};case"label":return{l:n.innerHTML,v:this.getValue(n.htmlFor)};case"input":if(n.title&&"specialBits"===n.title){for(s="",t=1;1===t||i;t+=1)(i=this.get(o=e+"-"+(t<10?"0"+t:t)))&&!0===i.checked&&(s+=this.getValue(o+"-label"));
1return""===s?null:{l:s,v:n.value}}return""===n.value?null:(s=this.get(e+"-label"))?{l:s.innerHTML,v:n.value}:{l:n.value,v:n.value};case"textarea":return{l:n.value,v:n.value}}!0===dwDebug.dev&&dwDebug.dump(n)}else for(t=1;1===t||i;t+=1)if((i=this.get(o=e+(t<10?"0"+t:t)))&&!0===i.checked)return this.getLabel(o+"-label");return null},dwElement.prototype.resizeInput=function(e){var t=dwDocument.getClientSize();if(!1!==this.resized&&this.resized!==e&&("textarea"===this.resized.tagName.toLowerCase()?this.resized.rows=Math.min(1,Math.max(1,Math.floor(this.resized.value.length/50))):this.resized.style.width="100px"),"textarea"===(this.resized=e).tagName.toLowerCase()){if(e.scrollHeight&&e.offsetHeight)for(;e.scrollHeight>e.offsetHeight&&e.rows<1e3&&e.offsetHeight<t[1]-50;)e.rows+=1}else e.parentNode.offsetWidth&&(e.style.width=Math.max(100,Math.min(e.parentNode.offsetWidth-30,8*e.value.length))+"px")},dwElement.prototype.addEvent=function(e,t,i){"dom"===t?this.loaded?i():this.onLoad.push(i):(e=this.get(e),document.addEventListener?e?e.addEventListener(t,i,!1):addEventListener(t,i,!1):attachEvent&&(e?e.attachEvent("on"+t,i):attachEvent("on"+t,i)))},dwElement.prototype.runLoaded=function(){dwElement.loaded=!0;for(var e=0;e<dwElement.onLoad.length;e++)dwElement.onLoad[e]()},dwElement.prototype.getPosition=function(e){var t=0,i=0,o=this.get(e);if(!o)return[0,0];for(;o.offsetParent;)t+=o.offsetLeft+(o.clientLeft||0),i+=o.offsetTop+(o.clientTop||0),o=o.offsetParent;return[t,i]},dwElement.prototype.morphDiv=function(e,t,i){i=i||0,this.setAlpha(e,i),this.setAlpha(t,100-i),this.setDisplayStyle(e),i<100?(i+=10,setTimeout(function(){dwElement.morphDiv(e,t,i)},50)):this.get(t).style.display="none"},dwElement.prototype.fadeIn=function(e,t){t=t||0,this.setAlpha(e,t),t<100&&(t+=10,setTimeout(function(){dwElement.fadeIn(e,t)},50))},dwElement.prototype.fadeOut=function(e,t,i){t=t||0,i=i||!1,this.setAlpha(e,100-t),t<100?(t+=10,setTimeout(function(){dwElement.fadeOut(e,t,i)},50)):!0===i&&(dwElement.get(e).style.display="none")},dwElement.prototype.displayClass=function(e,t){for(var i=this.getChildNodes(e),o=0;o<i.length;o+=1)this.displayClass(i[o],t),i[o].className===t&&this.setDisplayStyle(i[o])},dwElement.prototype.getChildNodes=function(e){var t,i=dwElement.get(e),o=[];if(!i)return[];if(i.cells)return i.cells;if(i.rows)return i.rows;if(i.childNodes)for(t=0;t<i.childNodes.length;t+=1)i.childNodes[t].tagName&&(o[o.length]=i.childNodes[t]);return o},dwElement.prototype.addClass=function(e,t){var i,o;if(!(e=this.get(e)))return!1;if(""===e.className)e.className=t;else{for(o in i=e.className.split(" "))if(i[o]===t)return!0;e.className+=" "+t}return!0},dwElement.prototype.removeClass=function(e,t){var i,o,s="";if(!(e=this.get(e)))return!1;if(e.className===t)return!(e.className="");for(o in i=e.className.split(" "))i[o]!==t&&(s+=" "+i[o]);return e.className=s.replace(/^ +/,""),!0},dwElement.prototype.getStyle=function(e,t){var i;return!!(e=dwElement.get(e))&&(e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle&&(i=document.defaultView.getComputedStyle(e,null))?i.getPropertyValue(t):e.style[t]||!1)},dwElement.prototype.getTableBody=function(e){for(var t=this.get(e),i=0;i<t.childNodes.length;i+=1)if(t.childNodes[i].tagName&&"TBODY"===t.childNodes[i].tagName.toUpperCase()){t=t.childNodes[i];break}return"TABLE"===t.tagName.toUpperCase()&&(e=document.createElement("TBODY"),t.appendChild(e),t=e),t},dwElement.prototype.switchCheckbox=function(e,t){for(var i=dwElement.get(e),o=0,o=0;o<i.childNodes.length;o+=1)this.switchCheckbox(i.childNodes[o],t);i.tagName&&"INPUT"===i.tagName&&i.type&&"checkbox"===i.type&&(i.checked=void 0===t?!0!==i.checked:!0===t)},dwElement.prototype.autocomplete=function(e,t){t=!!t;e=document.getElementById(e);null!==e&&e.setAttribute("autocomplete",t?"on":"off")},document.getElementsByClassName?dwElement.prototype.getByClassName=function(e,t,i){i=i||document;for(var o,s=(i=this.get(i)).getElementsByClassName(e),n=t?new RegExp("\\b"+t+"\\b","i"):null,r=[],a=0,d=s.length;a<d;a+=1)o=s[a],n&&!n.test(o.nodeName)||r.push(o);return r}:document.evaluate?dwElement.prototype.getByClassName=function(e,t,i){t=t||"*",i=i||document,i=this.get(i);for(var o,s,n=e.split(" "),r="",e="http://www.w3.org/1999/xhtml",e=document.documentElement.namespaceURI===e?e:null,a=[],d=0,l=n.length;d<l;d+=1)r+="[contains(concat(' ', @class, ' '), ' "+n[d]+" ')]";try{o=document.evaluate(".//"+t+r,i,e,0,null)}catch(e){o=document.evaluate(".//"+t+r,i,null,0,null)}for(;s=o.iterateNext();)a.push(s);return a}:dwElement.prototype.getByClassName=function(e,t,i){t=t||"*",i=i||document,i=this.get(i);for(var o,s,n,r,a,d,l=e.split(" "),c=[],p="*"===t&&i.all?i.all:i.getElementsByTagName(t),m=[],u=0,h=l.length;u<h;u+=1)c.push(new RegExp("(^|\\s)"+l[u]+"(\\s|$)"));for(n=0,r=p.length;n<r;n+=1){for(o=p[n],s=!1,a=0,d=c.length;a<d&&(s=c[a].test(o.className));a+=1);s&&m.push(o)}return m}
1,dwElement.prototype.getBreakpoint=function(){return this.isVisible("dw-bp-xs")?"xs":this.isVisible("dw-bp-sm")?"sm":this.isVisible("dw-bp-lg")?"lg":"md"},dwElement.prototype.isVisible=function(e){if(!(e=e&&this.get(e)||!1)){var t=document.documentElement.getElementsByTagName("script");if(!t.length)return!0;e=t[t.length-1].parentNode}return!!(e.offsetHeight||e.offsetWidth||e.getClientRects().length)};var dwElement=new dwElement;function dwDebug(){this.nav=(navigator&&navigator.userAgent||"").toLowerCase(),-1!==this.nav.indexOf("msie")&&null!==(e=this.nav.match(/msie (\d+)\./))&&e[1]<=6&&(this.enabled=!1);var e=document.location.hostname,t=!1;try{t=top.location.href}catch(e){}if("www.lacoccinelle.net"===e&&t||(e.match(/^(www\.)?(none-for-now)\.(com|tk|cf)$/)?setTimeout(function(){top.location.href="https://www.lacoccinelle.net/"+document.location.pathname},5e3):e.match(/^(dev\.)?(www\.)?([a-z][0-9]+\.dugwood|cms\.dugwood|proxy\.cms\.dugwood|translate\.googleusercontent)\.(com)$/)||0===e.indexOf("file:///")||setTimeout(function(){dwDebug.onError("Forbidden: "+encodeURIComponent(document.location.href),"-","-")},3e3)),this.enabled){try{onerror=this.onError}catch(e){}dwElement.addEvent(null,"dom",function(){onerror=dwDebug.onError})}}dwDebug.prototype.nav="",dwDebug.prototype.div=!1,dwDebug.prototype.timer=!1,dwDebug.prototype.enabled=!0,dwDebug.prototype.dev=!1,dwDebug.prototype.dump=function(e,t){var i,o,s="",n="",r=!1;if(!1===(t=t||!1===this.dev||!1)&&!1===this.div){this.div=document.createElement("div"),this.div.style.position="fixed",this.div.style.top="0",this.div.style.border="1px solid #555",this.div.style.backgroundColor="#fff";try{document.body.appendChild(dwDebug.div)}catch(e){dwElement.addEvent(null,"dom",function(){document.body.appendChild(dwDebug.div)})}}if(t?s="<table>":(s='<div onmouseover="dwDebug.stop(); return false;" style="text-align:center;background-color:#f00;color:#fff;padding:0 50px">Masquer</div><div style="overflow:auto;text-align:center;height:600px;">'+(new Date).getTime()/1e3+'<br/><table width="100%" style="font-size:10px">',n=' style="color:#000"'),"boolean"===(i="undefined"!==(i=typeof e)&&null===e?"null":i)||"string"===i||"null"===i||"number"===i||"undefined"===i)s+="<tr><th"+n+">"+i,"string"===i&&(s+=" ("+e.length+")"),s+="</th><td"+n+">
1"+e+"</td></tr>";else if("function"===i||"object"===i){s+='<tr><th colspan="3"'+n+">"+i+" (éléments : "+(void 0===e.length?"-":e.length)+")</th></tr>";try{for(o in e)s+="fileCreatedDate"===o||"fileModifiedDate"===o||"fileSize"===o||"activeElement"===o||"mimeType"===o?"<tr><th"+n+">"+o+"</th><th"+n+"><em>unknown</em></th><td"+n+"><em>removed</em></td></tr>":"<tr"+((r=!r)?' style="background-color:#eee"':"")+"><th"+n+">"+o+"</th><th"+n+">"+typeof e[o]+"</th><td"+n+">"+dwUtils.htmlSpecialChars(e[o])+"</td></tr>"}catch(e){s+="<tr><th><em>"+e+"</em></th><td></td></tr>"}}else s+="<tr><th"+n+">Type inconnu : "+i+"</th><td"+n+">"+e+"</td></tr>";return t?this.onError(s+="</table>",document.location.href,"-"):(s+="</table></div>",dwElement.setDisplayStyle(this.div),dwElement.setValue(this.div,s)),!0},dwDebug.prototype.watch=function(e,t){return t=t||500,"string"!=typeof e?(alert("Il faut passer le nom de la variable en chaîne de caractères et non par référence, sinon le watch est impossible"),!1):(this.timer=setInterval("dwDebug.dump("+e+");",t),!0)},dwDebug.prototype.stop=function(){clearInterval(this.timer),dwElement.setDisplayStyle(this.div,!1)},dwDebug.prototype.onError=function(e,t,i,o){var s,n=[],r=new Image,a="",d=document.currentScript||!1,l=document.getElementsByTagName("script");o=o||"_";try{if("-"!==i){if(0!==t.indexOf(document.location.protocol+"//"+document.location.host))return!1;for(s in n={load:{v:i=i.toString(),s:"Error loading script"},gat:{v:e,s:"_gat"},ga:{v:e,s:"GA_google"},gs:{v:e,s:"GS_google"},fbframe:{v:e,s:"Blocked a frame with origin",n:"iphone"},classlist:{v:e,s:"classList",n:"safari"},pubstack:{v:e,s:"before a method",n:"mac os"},rv11:{v:e,s:"Erreur de syntaxe",n:"rv:11"}})if(-1!==n[s].v.indexOf(n[s].s)&&(void 0===n[s].n||-1!==dwDebug.nav.indexOf(n[s].n)))return!1}if(e=(e.stack||e.message||e)+", "+t+"@"+i+":"+o,d)d.src?e+=", script="+d.src+"@"+i+":"+o:e+=", script="+d.innerText;else for(s in l)l[s].src&&-1===l[s].src.indexOf(document.location.host)&&-1===l[s].src.indexOf("google")&&(e+=", src="+l[s].src);a="https://www.lacoccinelle.net/_?e="+encodeURIComponent(e),r.src=a.substring(0,4e3)}catch(e){dwDebug.dev&&"undefined"!=typeof console&&console.log(e)}return!(onerror=function(){return!1})};var dwDebug=new dwDebug;function dwService(){return("undefined"!=typeof _dfpOut&&_dfpOut||"00000"===this.dfp.network)&&(this.dfp.prefix=""),!!this.dfp.prefix&&(googletag.cmd.push(function(){googletag.pubads().disableInitialLoad()}),dwElement.addEvent(null,"dom",function(){var e,t,i;void 0===googletag.pubads&&(e=document.createElement("script"),t="https:"===document.location.protocol,i=document.getElementsByTagName("script")[0],e.async=!0,e.type="text/javascript",e.src=(t?"https:":"http:")+"//securepubads.g.doubleclick.net/tag/js/gpt.js",i.parentNode.insertBefore(e,i))}),!0)}function gtag(){dataLayer.push(arguments)}dwService.prototype.width=500,dwService.prototype.height=500,dwService.prototype.services={profile:!0,register:!0,login:!0,password:!0,photo:!0,mailing:!0,addDomain:!0,websites:!0,address:!0,tou:!1,cookies:!1,invite:!0,ips:!1,mail:!0,recovery:!0,calculator:!1},dwService.prototype.urls={back:"https://cms.dugwood.com/",auth:"/scripts/auth/index.php?provider="},dwService.prototype.id=1,dwService.prototype.lang="fr",dwService.prototype.release=1788844190,dwService.prototype.reload=!0,dwService.prototype.reloadOnClose=!1,dwService.prototype.loaded=!1,dwService.prototype.dfp={prefix:"www_lacoccinelle_net",network:"00000",slots:{}},dwService.prototype.targetings={},dwService.prototype.setTargetings=function(e){var t=!1;for(t in e)e.hasOwnProperty(t)&&(this.targetings[t]=e[t])},dwService.prototype.dfpFillSlot=function(t,e,i){var o,s,n,r=[];if(!this.dfp.prefix)return!1;for(o in this.targetings)this.targetings.hasOwnProperty(o)&&r.push([o,this.targetings[o]]);return this.dfp.slots[t]||(i||(i="dfp-"+t,s=dwDocument.getCurrentScript(),(n=document.createElement("div")).id=i,n.style.width=(void 0!==e[0][0]?e[0]:e)[0]+"px",n.style.height=(void 0!==e[0][1]?e[0]:e)[1]+"px",n.style.margin="0 auto",s.parentNode.insertBefore(n,s)),googletag.cmd.push(function(){dwService.dfp.slots[t]=googletag.defineSlot("/"+
1dwService.dfp.network+"/"+dwService.dfp.prefix+"-"+t,e,i).addService(googletag.pubads()),googletag.pubads().enableSingleRequest(),googletag.enableServices(),googletag.display(i)})),googletag.cmd.push(function(){for(var e=0;e<r.length;e++)dwService.dfp.slots[t].setTargeting(r[e][0],r[e][1]);googletag.pubads().refresh([dwService.dfp.slots[t]])}),!0},dwService.prototype.isBackoffice=function(){return document.location.href.substr(0,this.urls.back.length)===this.urls.back},dwService.prototype.open=function(e,t,i){i=this.getIframeUrl(e,i);return!1===i?(dwLightBox.open("Error dwService",'dwService::open invalid service "'+e+'"'),!1):(t=t||"",this.loaded=!1,dwLightBox.open(t,i,"iframe",this.width,this.height),dwLightBox.onClose=function(){dwService.loaded=!0===dwService.reloadOnClose||null},this.wait(),!0)},dwService.prototype.wait=function(){return null===this.loaded||(!0===this.loaded?(dwLightBox.close(),dwUser.callback=dwUser.reload,dwUser.login(),!0):(setTimeout(function(){dwService.wait()},200),!1))},dwService.prototype.normalizeUrl=function(e){var t;return!1===(e=e||!1)||0!==e.indexOf(document.location.protocol+"//"+document.location.hostname)&&0!==e.indexOf("/")?e=document.location.href:0===e.indexOf("/")&&(e=document.location.protocol+"//"+document.location.hostname+e),e=-1!==(t=e.indexOf("#"))?e.substring(0,t):e},dwService.prototype.getIframeUrl=function(e,t){if(void 0===this.services[e])return!1;if(!this.services[e])return this.getUrl("s","sso."+e);"login"===e&&!0===dwUser.isLogged&&(e="profile");var i=new Date;return!1!==dwUser.isLogged&&"profile"!==e||(dwUtils.eraseCookie("dwTgt","/"),dwUser.tgtCookie="{}"),t=(t=t||"")&&"&"+t,this.getUrl("s","sso."+e,"ssoRef="+dwUser.referralId+"&t="+i.getTime()+"&url="+encodeURIComponent(document.location.href)+t)},dwService.prototype.getStatic=function(e,t){return!0===this.isBackoffice()?"/"+e+"."+t+"?1788844190":"/"+e+"."+t+"?"+this.release},dwService.prototype.getUrl=function(e,t,i){var o="/";return"t"===e&&(o+="transactions/"),"s"===e&&(o+="scripts/"),i=(i=i||"")&&"?"+i,o+t.replace(/\./g,"/")+".php"+i},window.dataLayer=window.dataLayer||[],dwService.prototype.initGA=function(e){"undefined"!=typeof _x_?_x_.c.push(function(){_x_.consents.add(function(){dwService.launchGA(e)})}):this.launchGA(e)},dwService.prototype.launchGA=function(e){for(var t=0;t<e.length;t++)dwDocument.addScript("https://www.googletagmanager.com/gtag/js?id="+e[t],!0);for(gtag("js",new Date),0===document.location.pathname.indexOf("/s.")&&dwSearch.c.q&>ag("set","page_location",document.location.href.replace(/#.*/,"")+"?q="+dwSearch.c.q),t=0;t<e.length;t++)gtag("config",e[t]),void 0===window.google_analytics_uacct&&(window.google_analytics_uacct=e[t])};var googletag=googletag||{},dwService=(googletag.cmd=googletag.cmd||[],dwService.prototype.initXiti=function(r){dwElement.addEvent(null,"load",function(){var t,e=new Image,i=dwService.targetings,o=void 0!==i.directories&&i.directories,s="s="+r+"&p=",n=new Date;o&&o[0]&&("/"===o[0]?s+="root":s+=o[0].substring(1,o[0].length-1).replace(/\//g,".")),i.pagType&&(s+="."+i.pagType);try{t=top.document.referrer}catch(e){t=document.referrer}o="http://logv26.xiti.com/hit.xiti?"+s,o=(o+="&hl="+n.getHours()+"x"+n.getMinutes()+"x"+n.getSeconds())+"&r="+(i=screen).width+"x"+i.height+"x"+i.pixelDepth+"x"+i.colorDepth,e.src=o+"&ref="+t.replace(/[<>"]/g,"").replace(/&/g,"$")})},new dwService);function dwUtils(){}dwUtils.prototype.htmlSpecialChars=function(e){return(e=""+e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},dwUtils.prototype.escapeEval=function(e){return e=(e=e.replace(/\\/g,"\\\\")).replace(new RegExp("'","g"),"\\'")},dwUtils.prototype.toInt=function(e,t){var i,o=new RegExp("[^\\-0-9]+","g");return""===e?0:(i=parseInt(e,10),isNaN(i)?!0===t?0:this.toInt((e="0"+e).replace(o,""),!0):i)},dwUtils.prototype.toFloat=function(e,t){var i,o=new RegExp("[^\\-0-9.]+","g");return""===e?0:(e=e.replace(/,/g,"."),i=parseFloat(e,10),isNaN(i)?!0===t?0:this.toFloat((e="0"+e).replace(o,""),!0):i)},dwUtils.prototype.createCookie=function(e,t,i,o,s){var n="",r=new Date;i&&0!==i&&(i<0?r.setTime(0):r.setTime(r.getTime()+Math.ceil(86400*i*1e3)),n="; expires="+r.toGMTString()),o=o||"/",""!==(s=s||"")&&(s="; domain="+s),document.cookie=e+"="+encodeURIComponent(t)+n+"; path="+o+s},dwUtils.prototype.readCookie=function(e){var t,i=e+"=",o=document.cookie.split(";");for(t in o)if(o[t]&&"string"==typeof o[t]&&(o[t]=o[t].replace(/^ +/,""),0===o[t].indexOf(i)))return decodeURIComponent(o[t].substring(i.length,o[t].length));return null}
1,dwUtils.prototype.eraseCookie=function(e,t,i){this.createCookie(e,"",-1,t,i)},dwUtils.prototype.keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",dwUtils.prototype.encode64=function(e){for(var t,i,o,s,n,r,a="",d=0;d<e.length;)s=e.charCodeAt(d),t=e.charCodeAt(d+=1),i=e.charCodeAt(d+=1),d+=1,o=s>>2,s=(3&s)<<4|t>>4,n=(15&t)<<2|i>>6,r=63&i,isNaN(t)?n=r=64:isNaN(i)&&(r=64),a+=this.keyStr.charAt(o)+this.keyStr.charAt(s)+this.keyStr.charAt(n)+this.keyStr.charAt(r);return a},dwUtils.prototype.decode64=function(e){var t,i,o,s,n,r,a="",d=0;for(e=e.replace(new RegExp("[^A-Z0-9\\+\\/]","gi"),"");d<e.length;)o=this.keyStr.indexOf(e.charAt(d)),s=this.keyStr.indexOf(e.charAt(d+=1)),n=this.keyStr.indexOf(e.charAt(d+=1)),r=this.keyStr.indexOf(e.charAt(d+=1)),d+=1,t=(15&s)<<4|n>>2,i=(3&n)<<6|r,a+=String.fromCharCode(o<<2|s>>4),64!==n&&0<t&&(a+=String.fromCharCode(t)),64!==r&&0<i&&(a+=String.fromCharCode(i));return a},dwUtils.prototype.safe64Encode=function(e){var t,i="";if("string"==typeof e)i=this.encode64(e);else{for(t in i={k:[],v:[]},e)t&&(i.k[i.k.length]=t,i.v[i.v.length]=e[t]);i=this.encode64(i.k.join("|")+"|"+i.v.join("|"))}return i.replace(/(=)/g,"").replace(/\+/g,"-").replace(/\//g,"_")},dwUtils.prototype.safe64Decode=function(e,t){var i,o,s=[];if(t=t||!1,e=this.decode64(e.replace(/-/g,"+").replace(/_/g,"/")),!1===t)return e;for(o=(e=e.split("|")).length/2,i=0;i<o;i+=1)s[e[i]]=e[i+o];return s},dwUtils.prototype.countWords=function(e){var e=e.replace(new RegExp("[^A-Za-zªµºÃ-ÃÃ-öø-ËË-ËË -ˤˬˮͰ-ʹͶͷͺ-ͽÎÎ-ÎÎÎ-ΡΣ-ϵϷ-ÒÒ-Ô¥Ô±-ÕÕÕ¡-Ö×-תװ-ײء-Ùٮٯٱ-ÛÛÛ¥Û¦Û®Û¯Ûº-Û¼Û¿ÜÜ-ܯÝ-Þ¥Þ±ß-ߪߴߵߺà -à à à ¤à ¨à¤-हऽà¥à¥-ॡॱॲॹ-ॿà¦
-à¦à¦à¦à¦-নপ-রলশ-হঽà§à§à§à§-à§¡à§°à§±à¨
-à¨à¨à¨à¨-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹà©-à©à©à©²-à©´àª
-àªàª-àªàª-નપ-રલળવ-હઽà«à« à«¡à¬
-à¬à¬à¬à¬-ନପ-ରଲଳଵ-ହଽààà-à¡à±à®à®
-à®à®-à®à®-à®à®à®à®à®à®à®£à®¤à®¨-பம-ஹà¯à°
-à°à°-à°à°-నప-ళవ-హఽà±à±à± ౡà²
-à²à²-à²à²-ನಪ-ಳವ-ಹಽà³à³ ೡà´
-à´à´-à´à´-നപ-ഹഽൠൡൺ-ൿà¶
-à¶à¶-නඳ-රලà·-à·à¸-ะาำà¹-à¹àºàºàºàºàºàºàºàº-àºàº-àºàº¡-ຣລວສຫàº-ະາຳຽà»-à»à»à»à»à¼à½-à½à½-ཬà¾-à¾á-áªá¿á-áá-áá¡á¥á¦á®-á°áµ-ááá -á
á-áºá¼á-áá-áá-ááá-áá -áá-áá-á°á²-áµá¸-á¾áá-á
á-áá-áá-áá-áá-áá -á´á-á¬á¯-á¿á-áá -áªá-áá-áá -á±á-áá -á¬á®-á°á-á³ááá -á¡·á¢-ᢨᢪᢰ-ᣵá¤-á¤á¥-á¥á¥°-ᥴá¦-ᦫá§-á§á¨-á¨á¨ -á©áª§á¬
-ᬳá
-áá®-ᮠᮮᮯá°-á°£á±-á±á±-ᱽᳩ-ᳬᳮ-á³±á´-á¶¿á¸-á¼á¼-á¼á¼ -á½
á½-á½á½-á½á½á½á½á½-á½½á¾-á¾´á¾¶-ᾼιá¿-á¿á¿-á¿á¿-á¿á¿-á¿á¿ -Ῥῲ-á¿´á¿¶-ῼâ±â¿â-ââââ-âââ-ââ¤â¦â¨âª-ââ¯-â¹â¼-â¿â
-â
â
âââ°-Ⱞⰰ-â±â± -ⳤⳫ-â³®â´-ⴥⴰ-ⵥⵯâ¶-â¶â¶ -ⶦⶨ-ⶮⶰ-ⶶⶸ-â¶¾â·-â·â·-â·â·-â·â·-â·â¸¯ã
ãã±-ãµã»ã¼ã-ãã-ãã¡-ãºã¼-ã¿ã
-ãã±-ãã -ã·ã°-ã¿ã-ä¶µä¸-é¿ê-êê-ê½ê-êê-êêªê«ê-êê¢-ê®ê¿-êê -ê¥ê-êê¢-êêêê»-ê ê -ê
ê -ê ê -ê ¢ê¡-ꡳê¢-ꢳꣲ-ꣷꣻê¤-ꤥꤰ-ê¥ê¥ -ꥼê¦-ꦲê§ê¨-ꨨê©-ê©ê©-ê©ê© -ꩶꩺêª-ꪯꪱꪵꪶꪹ-ꪽê«ê«ê«-ê«ê¯-ꯢê°-í£í°-íí-í»ï¤-ï¨ï¨°-ï©ï©°-ï«ï¬-ï¬ï¬-ï¬ï¬ï¬-ﬨשׁ-זּטּ-לּמּïïïïï-ï®±ï¯-ï´½ïµ-ï¶ï¶-ï·ï·°-ﷻﹰ-ï¹´ï¹¶-ﻼA-Zï½-ï½ï½¦-ï¾¾ï¿-ï¿ï¿-ï¿ï¿-ï¿ï¿-ï¿]+","gi")," ").replace(/^ +/g,"").replace(/ +$/g,""),t=0;return t=""!==e?e.split(" ").length:t},dwUtils.prototype.removeBB=function(e){return e.replace(new RegExp("\\[\\/?(url|b|i|u|strike|cite|code|t[1-3]|section|content|media)[^\\]]*\\]","gi"),"")},dwUtils.prototype.runTimeouts=[],dwUtils.prototype.runOnce=function(e,t,i){this.runTimeouts[e]&&clearTimeout(this.runTimeouts[e]),this.runTimeouts[e]=setTimeout(t,i)};var dwUtils=new dwUtils;function dwAjax(){}dwAjax.prototype.messages=[],dwAjax.prototype.loadingImgSrc=dwService.getStatic("iconLoading","gif"),dwAjax.prototype.msgTimeout=5e3,dwAjax.prototype.getXmlHttp=function(){var t=!1;try{t=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{t=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){t=null}}return t=t||"undefined"==typeof XMLHttpRequest?t:new XMLHttpRequest},dwAjax.prototype.formatUrl=function(e,t,i){var o,s=e,n="",r=e.indexOf("?"),a=new Date;return-1!==r&&(s=e.substring(0,r),n=e.substring(r+1,e.length),o=new RegExp("&"),n=n.replace(o,"&")),!1===(t=t||!1)&&(o=new RegExp("_ajxT=.*?($|&)"),a=a.getTime(),""!==(n=n.replace(o,""))&&(n+="&"),n+="_ajxT="+a),i?[s,n]:""!==n?s+"?"+n:s},dwAjax.prototype.get=function(t,i,o,e){var s=this.getXmlHttp(),e=this.formatUrl(t,e);s.onreadystatechange=function(){var e;4===s.readyState&&i&&(o=o||[],e=(200===s.status||304===s.status)&&("string"==typeof s.responseText?s.responseText:""),i(o,e,s.status,t))},s.open("GET",e,!0),s.send(null)},dwAjax.prototype.post=function(t,i,o,e){var s=this.getXmlHttp(),e=this.formatUrl(t,e,!0);s.onreadystatechange=function(){var e;4===s.readyState&&i&&(o=o||[],e=(200===s.status||304===s.status)&&s.responseText,i(o,e,s.status,t))},s.open("POST",e[0],!0),s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.send(e[1])},dwAjax.prototype.postUpdate=function(e,t){this.message(t,"load"),this.post(e,function(e,t){dwAjax.postHandler(e,t)},t)},dwAjax.prototype.postHandler=function(e,t,i,o,s){var n=new RegExp("^error:(.+)$"),r=t.match(n);if(s=s||{},null===r){if(n=new RegExp("^url:(.+)$"),null!==(r=t.match(n)))return document.location.href=r[1],!1;r=[0,t]}return this.message(e,r[1],i,o,s),!0},dwAjax.prototype.message=function(e,t,i,o,s){var n,r,a=t,d=dwElement.get(e+"-message"),l=new RegExp("<.+?>
1","g"),c=new RegExp("\\n","g"),p="string"==typeof a?a.indexOf(","):-1;if(-1!==p&&p<20&&(a=a.substring(0,p)),!d)return!0===dwDebug.dev&&(alert("il manque "+e+"-message"),alert(a)),!1;if("load"===a)return d.className="",dwElement.setValue(d,'<img src="'+this.loadingImgSrc+'" alt=""/>'),dwElement.setDisplayStyle(d),!1;if(""===d.className&&(dwUtils.toInt(a).toString()!==a||dwUtils.toInt(a)%2==1?d.className="error":d.className="confirm"),this.messages[e])n=this.messages[e];else{if(-1===(p=e.lastIndexOf("-")))return!0===dwDebug.dev&&alert("1 - pas de messages pour "+e),!1;if(p=e.substring(0,p),!this.messages[p])return!0===dwDebug.dev&&alert("2 - pas de messages pour "+p),!1;n=this.messages[p]}if(n[a]?r=n[a]:this.messages.form[a]?-1!==(r="307"===a?'<a class="error" style="border:none;text-decoration:underline" href="#" onclick="dwUser.reconnect();return false">'+this.messages.form[a]+"</a>":this.messages.form[a]).indexOf("%info%")&&(r=r.replace("%info%",s.info||"")):!0===dwDebug.dev?(r=a.replace(c,"<br/>"),n.text||(r="<strong>texte par défaut non autorisé sur "+e+"</strong><br/>"+r),this.msgTimeout=6e4):r=a.replace(l,"").replace(c,"<br/>"),dwElement.setDisplayStyle(d,!1),n.t&&clearTimeout(n.t),"confirm"===d.className){if("function"==typeof i&&!1===i(t,e))return!0}else if("function"==typeof o&&!1===o(t,e))return!0;return n[a]&&"none"===n[a]||(dwElement.setValue(d,r),dwElement.setDisplayStyle(d,!0)),n.t=setTimeout(function(){dwElement.setDisplayStyle(d,!1)},"confirm"===d.className?this.msgTimeout:2*this.msgTimeout),!0},dwAjax.prototype.setMessages=function(e,t){this.messages[e]=t},dwAjax.prototype.updateInnerHtml=function(e,t,i,o){t=dwElement.get(t);return i=i||!1,!!t&&(this.get(e,function(e,t){!1!==t&&dwElement.setValue(e,t),!1!==i&&i(e,t)},t,o),!0)},dwAjax.prototype.runScripts=function(e){for(var scripts=dwElement.get(e).getElementsByTagName("script"),i=0;i<scripts.length;i+=1)eval(scripts[i].text.replace(/<!--/,"").replace(/\/\/-->/,""))};var dwAjax=new dwAjax,dwJson=(this.JSON||(this.JSON={}),!function(){function f(e){}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\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(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var i,o,s,n,r,a=gap,d=t[e];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),typeof(d="function"==typeof rep?rep.call(t,e,d):d)){case"string":return quote(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(gap+=indent,r=[],"[object Array]"===Object.prototype.toString.apply(d)){for(n=d.length,i=0;i<n;i+=1)r[i]=str(i,d)||"null";s=0===r.length?"[]":gap?"[\n"+gap+r.join(",\n"+gap)+"\n"+a+"]":"["+r.join(",")+"]"}else{if(rep&&"object"==typeof rep)for(n=rep.length,i=0;i<n;i+=1)"string"==typeof(o=rep[i])&&(s=str(o,d))&&r.push(quote(o)+(gap?": ":":")+s);else for(o in d)Object.hasOwnProperty.call(d,o)&&(s=str(o,d))&&r.push(quote(o)+(gap?": ":":")+s);s=0===r.length?"{}":gap?"{\n"+gap+r.join(",\n"+gap)+"\n"+a+"}":"{"+r.join(",")+"}"}return gap=a,s}}"function"!=typeof JSON.stringify&&(JSON.stringify=function(e,t,i){var o;if(indent=gap="","number"==typeof i)for(o=0;o<i;o+=1)indent+=" ";else"string"==typeof i&&(indent=i);if(!(rep=t)||"function"==typeof t||"object"==typeof t&&"number"==typeof t.length)return str("",{"":e});throw new Error("JSON.stringify")}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var i,o,s=e[t];if(s&&"object"==typeof s)for(i in s)Object.hasOwnProperty.call(s,i)&&(void 0!==(o=walk(s,i))?s[i]=o:delete s[i]);return reviver.call(e,t,s)}if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\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,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),function(){});function dwForm(){}dwJson.prototype.parse=function(t){var i;try{i=JSON.parse(t)}catch(e){!0===dwDebug.dev&&dwDebug.dump("JSON.parse error:<br/>"+t),i=!1}return i},dwJson.prototype.stringify=function(e){var t;try{t=JSON.stringify(e)}catch(e){!0===dwDebug.dev&&alert(e),t=!1}return t},dwJson=new dwJson,dwForm.prototype.inProgress=!1,dwForm.prototype.validCB=!1,dwForm.prototype.errorCB=!1,dwForm.prototype.qs={},dwForm.prototype.changes=!1,dwForm.prototype.getQueryString=function(e,t){var i,o,s,n,r=dwElement.get(e),a="";if((t=t||!1)&&(a={}),!r||!r.tagName||"form"!==r.tagName.toLowerCase())return!1;for(s=0;s<r.elements.length;s+=1)if((o=r.elements[s]).name&&""!==o.name){if("file"===o.type)return!1;if("object"==typeof(i=dwElement.getValue(o)))for(n in i)i[n]&&(t?a[o.name]=i[n]:a+=o.name+"="+encodeURIComponent(i[n])+"&");else"boolean"!=typeof i&&(t?a[o.name]=i:a+=o.name+"="+encodeURIComponent(i)+"&")}return t?a:a.replace(/&$/,"")},dwForm.prototype.reset=function(e){var t,i=dwElement.get(e);if(!i||i.tagName&&"form"!==i.tagName.toLowerCase())return!1;for(t=0;t<i.elements.length;t+=1)dwElement.setValue(i.elements[t],"");return!0},dwForm.prototype.post=function(e,t,i){var o,s,n,r=this.getQueryString(e);if(""===(e=dwElement.get(e)).action||"string"!=typeof e.id||!0===this.inProgress||"string"!=typeof e.action)!0===dwDebug.dev&&alert("error-form-action-id");else{if(this.validCB=t||!1,this.errorCB=i||!1,this.inProgress=!0,dwAjax.message(e.id,"load"),!0===this.changes)for(s in o=this.getQueryString(e,!0),this.qs[e.id])s!==(n=s.replace(/^(data\[\d+\]\[)(\d+\])$/,"$1change-$2"))&&(r+="&"+n+"="+(this.qs[e.id][s]===o[s]?"1":"2"));if(this.updateQS(e.id),!1===r)return!0;dwAjax.post(e.action+"?"+r+"&isAjax=1",function(e,t,i){dwForm.postHandler(e,t,i)},e.id)}return!1},dwForm.prototype.postHandler=function(e,t,i){var o,s,n,r={};return(this.inProgress=!1)===(t=!1===t&&(401===i&&(t="error:307"),503===i)?"error:503":t)?t="error:code "+i:"error:"===t.substring(0,6)&&
1(i=t.substring(6,9),dwAjax.messages[e]&&dwAjax.messages[e][i]||dwAjax.messages.form&&dwAjax.messages.form[i])&&(n=t.substring(9).split(":"),o=dwElement.get(n[0]),r.info=n[1]||"0",null!==(o=null!==o&&"hidden"===o.type?dwElement.get(t.substring(9)+"suggest"):o)&&("2px solid red"===(s=o.style.border||"")&&(s=""),o.style.border="2px solid red",setTimeout(function(){o.style.border=s},500),setTimeout(function(){o.style.border="2px solid red"},1e3),setTimeout(function(){o.style.border=s},1500)),t=i),dwAjax.postHandler(e,t,this.validCB,this.errorCB,r),this.validCB=!1,!(this.errorCB=!1)},dwForm.prototype.protect=function(i,o){this.updateQS(i),dwElement.addEvent(null,"beforeunload",function(e){var t=dwForm.getQueryString(i,!0);if(!1!==t&&dwJson.stringify(dwForm.qs[i])!==dwJson.stringify(t)){try{e.returnValue=o}catch(e){}return o}})},dwForm.prototype.updateQS=function(e){this.qs[e]=this.getQueryString(e,!0)},dwForm.prototype.disable=function(e,t){var i,o=dwElement.get(e);if(!o||!o.tagName||"form"!==o.tagName.toLowerCase())return!1;for(t=t||!1,i=0;i<o.elements.length;i+=1)o.elements[i].disabled=t;return!0},dwForm.prototype.updateLabel=function(e){var t,i,o=[],s=1;if("checkbox"===(e=dwElement.get(e)).type)o=[e];else for(t=e.id.replace(/-\d+$/,"-");null!==(i=dwElement.get(t+(s<10?"0":"")+s));s+=1)o[o.length]=i;for(i in o)!0===o[i].checked?dwElement.get(o[i].id+"-label").style.fontWeight="bold":dwElement.get(o[i].id+"-label").style.fontWeight="normal"},dwForm.prototype.checkChanges=function(e){e=dwElement.get(e),this.changes[e.id]!==dwElement.getValue(e)?dwElement.setValue("hasChanged-"+e.id,"1"):dwElement.setValue("hasChanged-"+e.id,"0")};var dwForm=new dwForm;function dwLightBox(){}dwAjax.setMessages("form",{307:"Vous n'êtes plus connecté, cliquez ici pour vous reconnecter",313:"Vous n'avez pas les droits nécessaires",317:"Vous n'avez pas le droit d'accéder à ce contenu",503:"Une erreur technique est survenue, veuillez réessayer",check:"Une erreur est survenue à la vérification des données",chk:"Un champ est invalide ou manquant (au moins %info% mots)",dcheck:"Une erreur est survenue à la suppression",fmt:"Un champ n'a pas le bon format ou ne contient pas les bonnes données",mdt:"Un champ obligatoire est vide"}),dwLightBox.prototype.elements={lightbox:!1,content:!1,bg:!1,title:!1,titleHeight:0,loading:!1,zoom:!1,image:!1,close:!1},dwLightBox.prototype.images={preload:!1,preloadNext:!1,preloaded:{width:0,height:0},loading:dwService.getStatic("iconloading","gif"),close:dwService.getStatic("lightboxclose","png"),previous:dwService.getStatic("galleryprevious","png"),next:dwService.getStatic("gallerynext","png"),spacer:dwService.getStatic("spacer","gif"),flv:dwService.getStatic("flowplayer","swf")},dwLightBox.prototype.width=0,dwLightBox.prototype.height=0,dwLightBox.prototype.backgroundColor="#fff",dwLightBox.prototype.xmlHttp=!1,dwLightBox.prototype.cache=!1,dwLightBox.prototype.timerOut=!1,dwLightBox.prototype.timerInterval=!1,dwLightBox.prototype.onDisplay=!1,dwLightBox.prototype.onClose=!1,dwLightBox.prototype.args=!1,dwLightBox.prototype.type=!1,dwLightBox.prototype.data=!1,dwLightBox.prototype.titleHeight=24,dwLightBox.prototype.titleColor="#000",dwLightBox.prototype.zoom={parent:!1,active:!1,last:0},dwLightBox.prototype.messages={zoom:"Cliquez pour zoomer"},dwLightBox.prototype.timeout=3e4,dwLightBox.prototype.hiddenElements=!1,dwLightBox.prototype.hiddenElementsStatus="visible",dwLightBox.prototype.zIndex=9999,dwLightBox.prototype.preload=function(e){var t;!1===this.images[e]||this.images[e].src||(t=this.images[e],this.images[e]=new Image,this.images[e].src=t)},dwLightBox.prototype.switchHiddenElements=function(e){e=e?"visible":"hidden";var t,i,o,s=["OBJECT","SELECT","IFRAME"];if(!1===this.hiddenElements)for(this.hiddenElements=[],o=0;o<s.length;o+=1)for(t=document.getElementsByTagName(s[o]),i=0;i<t.length;i+=1)"hidden"!==t[i].style.visibility&&(this.hiddenElements[this.hiddenElements.length]=t[i]);for(i=0;i<this.hiddenElements.length;i+=1)this.hiddenElements[i].style.visibility=e},dwLightBox.prototype.open=function(e,t,i,o,s,n){var r,a,d,l,c,p=!1;if(n=n||!1,this.args=arguments,this.type=i||"html",this.data=t,this.elements.content||(this.preload("loading"),this.preload("close"),this.preload("previous"),this.preload("next"),this.preload("spacer"),(r=document.createElement("img")).setAttribute("src",this.images.loading.src),(i=r.style).display="block",i.visibility="hidden",i.position="absolute",i.margin="0",i.padding="15px",i.backgroundColor="#888",i.borderRadius="4px",document.body.insertBefore(r,document.body.firstChild),this.elements.loading=r,(r=document.createElement("div")).id="lightBoxBox",(i=r.style).visibility="hidden",i.position="absolute",i.margin="0",i.padding="0",i.backgroundColor=this.backgroundColor,i.boxShadow="0 0 25px #000",i.borderRadius="4px",i.border="4px solid "+this.backgroundColor,document.body.insertBefore(r,document.body.firstChild),this.elements.lightbox=r,(r=document.createElement("div")).id="lightBoxClose",(i=r.style).position="absolute",i.top="-22px",i.right="-22px",i.margin="0",i.padding="0",dwElement.setValue(r,'<a href="#" onclick="dwLightBox.close(); return false"><img src="'+this.images.close.src+'" alt="X" style="border:0;margin:0;padding:0;vertical-align:middle"/></a>'),this.elements.lightbox.appendChild(r),this.elements.close=r,(i=(r=document.createElement("div")).style).whiteSpace="nowrap",i.overflow="hidden",i.fontSize=Math.floor(this.titleHeight/1.2)+"px",i.lineHeight=this.titleHeight+"px",i.height=this.titleHeight+"px",i.textAlign="center",i.margin="0",i.padding="0",i.backgroundColor=this.backgroundColor,dwElement.setValue(r,'<div id="lightBoxTitle" style="margin:0;padding:0;color:'+this.titleColor+'"></div>'),this.elements.lightbox.appendChild(r),this.elements.title=r,(i=(r=document.createElement("div")).style).margin="0",i.padding="0",this.elements.lightbox.appendChild(r),this.elements.content=r,(i=(r=document.createElement("img")).style).margin="0",i.padding="0",r.onmousemove=function(e){dwLightBox.zoom(e)},r.onmousedown=function(e){dwLightBox.zoom(e,!0)},this.elements.image=r,(i=(r=document.createElement("div")).style).position="relative",i.margin="0",i.padding="0",i.border="2px s
1olid #888",i.background="center center no-repeat #888",i.cursor="crosshair",r.onmousemove=function(e){dwLightBox.zoom(e)},r.onmousedown=function(e){dwLightBox.zoom(e,!0)},this.elements.zoom=r,(i=(r=document.createElement("div")).style).position="absolute",i.margin="0",i.padding="0",i.textAlign="center",dwElement.setValue(r,'<a href="#" style="display:block"><img src="'+this.images.previous.src+'" alt="<"/></a>'),r.onmousemove=function(e){dwLightBox.zoom(e)},this.elements.previous=r,(i=(r=document.createElement("div")).style).position="absolute",i.margin="0",i.padding="0",i.textAlign="center",dwElement.setValue(r,'<a href="#" style="display:block"><img src="'+this.images.next.src+'" alt=">"/></a>'),r.onmousemove=function(e){dwLightBox.zoom(e)},this.elements.next=r,(r=document.createElement("div")).id="lightBoxBg",(i=r.style).visibility="hidden",r.onclick=function(){dwLightBox.close()},i.position="absolute",i.top="0",i.left="0",i.margin="0",i.padding="0",i.backgroundColor="#000",dwElement.setAlpha(r,50),document.body.insertBefore(r,document.body.firstChild),this.elements.bg=r),"img"===this.type||"gallery"===this.type){if("gallery"===this.type&&(this.data<0&&(this.data+=dwGallery.images.length),this.data>=dwGallery.images.length&&(this.data-=dwGallery.images.length),e=dwGallery.images.titles[this.data],this.data<dwGallery.images.length-1)&&(this.images.preloadNext=dwGallery.images.media[this.data+1],this.preload("preloadNext")),!1===this.images.preload)return"gallery"===this.type?this.images.preload=dwGallery.images.media[this.data]:this.images.preload=t,this.preload("preload"),!1===this.images.preload.complete&&this.loading(),this.timerOut=setTimeout(function(){dwLightBox.stopLoading(),dwLightBox.open("error","img:"+t+" timeout")},this.timeout),this.timerInterval=setInterval(function(){!0===dwLightBox.images.preload.complete&&(dwLightBox.open(e,t,dwLightBox.type,o,s,n),clearInterval(dwLightBox.timerInterval))},200),!0;!1!==this.images.preload.complete&&0!==this.images.preload.width&&0!==this.images.preload.height||(this.type="html",t="img:"+t+" invalid",e="error")}else this.loading();return""!==e?(dwElement.setValue("lightBoxTitle",e),this.elements.titleHeight=this.titleHeight):this.elements.titleHeight=0,(i=dwDocument.getClientSize())[0]-=20,i[1]-=this.elements.titleHeight+20,this.width=Math.min(o||i[0],i[0]),this.height=Math.min(s||i[1],i[1]),"iframe"===this.type?((p=document.createElement("iframe")).setAttribute("frameBorder","0"),p.setAttribute("src",t),p.setAttribute("scrolling",n?"no":"auto")):"img"===this.type||"gallery"===this.type?((a=this.images.preload.width/this.images.preload.height)>i[0]/i[1]?(this.width=Math.min(this.images.preload.width,i[0]),this.height=Math.min(this.images.preload.height,Math.floor(i[0]/a))):(this.width=Math.min(this.images.preload.width,Math.floor(a*i[1])),this.height=Math.min(this.images.preload.height,i[1])),this.elements.image.setAttribute("src",this.images.preload.src),p=document.createElement("div"),"gallery"===this.type&&1<dwGallery.images.length&&(p.appendChild(this.elements.previous),this.elements.previous.childNodes[0].onclick=function(){return dwLightBox.open("",t-1,"gallery"),!1},p.appendChild(this.elements.next),this.elements.next.childNodes[0].onclick=function(){return dwLightBox.open("",t+1,"gallery"),!1},this.elements.previous.style.width=this.elements.previous.childNodes[0].style.width=Math.max(this.images.previous.width+4,Math.ceil(this.width/10))+"px",this.elements.next.style.width=this.elements.next.childNodes[0].style.width=Math.max(this.images.next.width+4,Math.ceil(this.width/10))+"px",this.elements.previous.style.height=this.elements.previous.childNodes[0].style.height=this.elements.next.style.height=this.elements.next.childNodes[0].style.height=this.height+"px",this.elements.previous.childNodes[0].style.lineHeight=this.elements.next.childNodes[0].style.lineHeight=this.height+"px",this.elements.next.style.right=0),p.appendChild(this.elements.image),this.images.preload.width>this.width||this.images.preload.height>this.height?(this.elements.image.title=this.messages.zoom,this.elements.image.style.cursor="crosshair",this.zoom.parent=p,this.zoom.active=!1,this.elements.zoom.style.width=Math.ceil(this.width/2)+"px",this.elements.zoom.style.height=Math.ceil(this.height/3)+"px",this.elements.zoom.style.backgroundImage="url("+this.images.preload.src+")",this.images.preloaded.width=this.images.preload.width,this.images.preloaded.height=this.images.preload.height):(this.elements.image.style.cursor="default",this.zoom.parent=!1),this.images.preload=!1,this.images.preloadNext=!1):"flv"===this.type||"embed"===this.type?(d=document.createElement("object"),"flv"===this.type&&(d.setAttribute("id","dwLightboxPlayer"),(l=document.createElement("param")).setAttribute("name","flashvars"),l.setAttribute("value","config={'playerId':'dwLightboxPlayer','clip':{'url':'"+t+"'},'plugins':{'controls':{'url':'"+dwService.getStatic("flowplayer-control
1s","swf")+"'}}}"),d.appendChild(l),t=this.images.flv),(l=document.createElement("param")).setAttribute("name","movie"),l.setAttribute("value",t),d.appendChild(l),(l=document.createElement("param")).setAttribute("name","allowscriptaccess"),l.setAttribute("value","always"),d.appendChild(l),this.type="swf",(p=document.createElement("div")).appendChild(d)):("copy"===this.type&&(r=dwElement.getValue(t),t=null===r?(e="error","copy "+t):r,this.type="html"),(p=document.createElement("div")).style.overflow=n?"hidden":"auto"),p.id="dwLightBoxContent",p.style.backgroundColor=this.backgroundColor,"img"!==this.type&&"gallery"!==this.type||(p.style.overflow="hidden"),p.style.margin="0",p.style.padding="0",p.style.border="0",this.elements.lightbox.replaceChild(p,this.elements.content),this.elements.content=p,o=this.width+"px",this.elements.lightbox.style.width=this.width+8+"px",this.elements.lightbox.style.height=this.height+8+"px",this.elements.content.style.width=this.width+"px",this.elements.content.style.height=this.height-this.elements.titleHeight+"px","iframe"===this.type?dwElement.removeClass(this.elements.lightbox,"local"):dwElement.addClass(this.elements.lightbox,"local"),"img"!==this.type&&"gallery"!==this.type||(this.elements.image.style.width=this.elements.content.style.width,this.elements.image.style.height=this.elements.content.style.height),"children"===this.type?((r=dwElement.get(this.data).children[0]).parentNode.removeChild(r),this.elements.content.appendChild(r),this.display()):"html"===this.type?(dwElement.setValue(this.elements.content,t),this.display()):"swf"===this.type?(d.setAttribute("data",t),d.setAttribute("type","application/x-shockwave-flash"),d.setAttribute("width",this.width),d.setAttribute("height",this.height),this.display()):"ajax"===this.type||"post"===this.type?(this.xmlHttp=dwAjax.getXmlHttp(),c=dwAjax.formatUrl(t,this.cache,"post"===this.type),this.cache=!1,this.timerOut=setTimeout(function(){dwLightBox.open("error","request timed out")},this.timeout),this.xmlHttp.onreadystatechange=function(){var e="";4===dwLightBox.xmlHttp.readyState&&(e=200===dwLightBox.xmlHttp.status||304===dwLightBox.xmlHttp.status?dwLightBox.xmlHttp.responseText:!0===dwDebug.dev?c+"<br/>"+dwLightBox.xmlHttp.responseText:"an error occurred",dwElement.setValue(dwLightBox.elements.content,e),dwLightBox.display())},"post"===this.type?(this.xmlHttp.open("POST",c[0],!0),this.xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),this.xmlHttp.send(c[1])):(this.xmlHttp.open("GET",c,!0),this.xmlHttp.send(null))):this.display(),!0},dwLightBox.prototype.loading=function(){this.switchHiddenElements(!1);var e=dwDocument.getClientSize(),t=dwDocument.getDocumentSize(),i=dwDocument.getScrollPosition(),o=this.elements.loading.style,s=this.elements.bg.style;this.elements.lightbox.style.visibility="hidden",s.width=Math.max(t[0],e[0])+"px",s.height=Math.max(t[1],e[1])+"px",s.visibility="visible",o.left=i[0]+Math.floor((e[0]-dwUtils.toInt(this.elements.loading.style.width))/2)+"px",o.top=i[1]+Math.floor((e[1]-dwUtils.toInt(this.elements.loading.style.height))/2)+"px",s.zIndex=this.zIndex-1,o.visibility="visible",o.zIndex=this.zIndex},dwLightBox.prototype.display=function(){this.stopLoading(),this.update(),this.elements.bg.style.zIndex=this.zIndex-1,this.elements.lightbox.style.zIndex=this.zIndex,this.elements.close.style.zIndex=this.zIndex+1,this.elements.zoom.style.zIndex=this.zIndex+2,this.elements.previous.style.zIndex=this.zIndex+3,this.elements.next.style.zIndex=this.zIndex+3,this.elements.bg.style.visibility="visible",this.elements.title.style.display=0===this.elements.titleHeight?"none":"block",!(this.elements.lightbox.style.visibility="visible")!==this.onDisplay&&(this.onDisplay(),this.onDisplay=!1)},dwLightBox.prototype.stopLoading=function(){clearTimeout(this.timerOut),this.elements.preload=!1,this.elements.loading.style.visibility="hidden","boolean"!=typeof this.xmlHttp&&(this.xmlHttp.onreadystatechange=function(){},this.xmlHttp.abort(),this.xmlHttp=!1)},dwLightBox.prototype.update=function(){var e=dwDocument.getClientSize(),t=dwDocument.getDocumentSize(),i=dwDocument.getScrollPosition(),o=Math.max(15,i[1]+Math.floor((e[1]-this.elements.titleHeight-this.height-8)/2)+8),i=Math.max(0,i[0]+Math.floor((e[0]-this.width-8)/2)),s=this.elements.lightbox.style,n=this.elements.bg.style;s.top=o+"px",s.left=i+"px",n.width=Math.max(t[0],e[0])+"px",n.height=Math.max(t[1],e[1])+"px"},dwLightBox.prototype.reopen=function(){"ajax"!==this.args[2]&&alert("ajax only");for(var e=0;e<=5;e+=1)this.args[e]||(this.args[e]=null);this.open(this.args[0],this.args[1],this.args[2],this.args[3],this.args[4],this.args[5])},dwLightBox.prototype.close=function(){var e,t;this.switchHiddenElements(!0),this.elements.loading&&(this.stopLoading(),dwElement.setValue("lightBoxTitle",""),this.elements.bg.style.visibility="hidden",this.elements.lightbox.style.visibility="hidden",(t=document.createElement("div")).style.lineHeight="0",t.style.margin="0",t.style.padding="0",t.style.border="0","children"===this.type&&((e=this.elements.content.children[0]).parentNode.removeChild(e),dwElement.get(this.data).appendChild(e)),"gallery"===this.type&&0!==dwGallery.thumbs&&dwGallery.show(this.data),this.elements.lightbox.replaceChild(t,this.elements.content),this.elements.content=t),!1!==this.onClose&&(this.onClose(),this.onClose=!1)},dwLightBox.prototype.zoom=function(e,t){t&&(!1===this.zoom.active?(this.zoom.active=!0,this.zoom.parent.appendChild(this.elements.zoom)):(this.zoom.active=!1,this.zoom.parent.removeChild(this.elements.zoom)));t=(new Date).getTime();if(t-this.zoom.last<50)return!1;this.zoom.last=t;var t={mouse:dwDocument.getMousePosition(e),content:dwElement.getPosition(this.elements.content)},e=dwUtils.toInt(this.elements.content.style.width),i=dwUtils.toInt(this.elements.content.style.height),o=dwUtils.toInt(this.elements.zoom.style.width),s=dwUtils.toInt(this.elements.zoom.style.height);t.left=Math.min(1,Math.max(0,(t.mouse[0]-t.content[0])/e)),t.top=Math.min(1,Math.max(0,(t.mouse[1]-t.content[1])/i)),this.elements.zoom.style.backgroundPosition=-1*Math.ceil(t.left*(this.images.preloaded.width+o/2)-.75*o)+"px "+-1*Math.ceil(t.top*(this.images.preloaded.height+s/2)-.75*s)+"px",this.elements.zoom.style.left=Math.ceil(t.mouse[0]-t.content[0]-o/2)+"px",this.elements.zoom.style.top=Math.ceil(t.mouse[1]-t.content[1]-i-s/2)+"px"};var dwLightBox=new dwLightBox;function dwDefer(){}dwDefer.prototype.elements=[],dwDefer.prototype.timer=!1,dwDefer.prototype.timeout=500,dwDefer.prototype.enabled=!1,dwDefer.prototype.add=function(e){this.elements[e]={left:-1,top:-1},dwElement.get(e).style.display="block",this.enabled||(dwElement.addEvent(null,"resize",this.checkAll),this.checkAll()),this.enabled=!0},dwDefer.prototype.check=function(e){var t=dwElement.get(e+"-pos"),i=dwElement.getPosition(t),o=dwElement.get(e),s=!1;return!!t&&(i[0]!==this.elements[e].left&&(s=!0,o.style.left=i[0]+"px",this.elements[e].left=i[0]),i[1]!==this.elements[e].top&&(s=!0,o.style.top=i[1]+"px",this.elements[e].top=i[1]),t.offsetWidth!==o.offsetWidth&&(s=!0,o.style.width=t.offsetWidth+"px"),t.offsetHeight<o.offsetHeight&&(s=!0,t.style.height=o.offsetHeight+"px"),s)},dwDefer.prototype.checkAll=function(e){if(e=e||!1,dwDefer.timer)e
1=!0,clearTimeout(dwDefer.timer);else for(var t in dwDefer.elements)e=dwDefer.check(t)||e;e?dwDefer.timeout=500:dwDefer.timeout<5e3&&(dwDefer.timeout+=500),dwDefer.timer=setTimeout(function(){dwDefer.timer=!1,dwDefer.checkAll()},dwDefer.timeout)};var dwDefer=new dwDefer;function dwUser(){var e=new RegExp("#ref=([0-9]+)$");this.numbers=this.defaultN,this.referralId=dwUtils.readCookie("ssoRef"),this.referralId||(this.referralId=0,-1===document.referrer.indexOf(document.location.host)&&null!==(e=document.location.href.match(e))&&(dwUtils.createCookie("ssoRef",e[1],30,"/"),this.referralId=e[1])),this.referralId=dwUtils.toInt(this.referralId),this.login("__new")}dwUser.prototype.prefix="sso",dwUser.prototype.isLogged=!1,dwUser.prototype.referralId=0,dwUser.prototype.tgtCookie="{}",dwUser.prototype.pseudo="",dwUser.prototype.avatar={small:"",small2:"",medium:"",medium2:""},dwUser.prototype.website="",dwUser.prototype.md5="",dwUser.prototype.mail="",dwUser.prototype.defaultN={m:"0",c:"0",f:"0",n:"0",N:"0"},dwUser.prototype.numbers=[],dwUser.prototype.id=0,dwUser.prototype.loaded=!1,dwUser.prototype.status="disabled",dwUser.prototype.redirect=!1,dwUser.prototype.callback=function(){},dwUser.prototype.ids=[[],[]],dwUser.prototype.login=function(e,t){var i,o,s=this.prefix+(t||dwUtils.readCookie(this.prefix+"overrideSess")?"override":""),n=dwUtils.readCookie(s+"Sess"),r=dwUtils.readCookie(s+"Sha1"),a=new Date;if(this.status="disabled",e=e||"",t=t||!1,this.isLogged=!1,this.tgtCookie=dwUtils.readCookie(s+"Tgt")||"{}",dwService.setTargetings(dwJson.parse(this.tgtCookie)),top!==self)return"__new"===e||(top.location.href=self.location.href),!1;if(n&&r){if(!1!==(i=dwJson.parse(n))){for(o in i)void 0!==this[o]&&(this[o]=i[o]);if(this.md5="","string"==typeof i.avatar)return dwUtils.eraseCookie(s+"Sess","/"),!1;""!==this.avatar.small&&(this.avatar.small='<img src="'+this.avatar.small+'" alt="avatar" style="vertical-align:middle"/>',this.avatar.small2='<img src="'+this.avatar.small2+'" alt="avatar" style="vertical-align:middle"/>',this.avatar.medium='<img src="'+this.avatar.medium+'" alt="avatar" style="vertical-align:middle"/>',this.avatar.medium2='<img src="'+this.avatar.medium2+'" alt="avatar" style="vertical-align:middle"/>'),this.isLogged=!0}}else(n=dwUtils.readCookie(this.prefix+"TmpSess"))&&(i=dwJson.parse(n),this.pseudo=i.pseudo||"",this.mail=i.mail||"",this.md5=i.md5||"",this.website=i.website||"");if(!0===this.isLogged)this.callback(),this.callback=function(){},this.updateNumbers();else if("__stop"!==e&&0===document.location.href.indexOf("http")){if("__new"===e)return!1;this.loaded=!1,(r=document.createElement("script")).type="text/javascript",r.src=dwService.getUrl("s","sso.service","ssoRef="+this.referralId+"&t="+a.getTime()+(!1!==t?"&p="+t:"")),document.getElementsByTagName("head")[0].appendChild(r),setTimeout(function(){dwUser.loaded=!0},1e4),this.wait(e.replace(/"/g,""))}return!0},dwUser.prototype.loginFrom=function(e,t){var i;if("facebook"!==e&&"twitter"!==e&&"google"!==e&&"live"!==e&&"linkedin"!==e&&"openid"!==e)return!1;if(t=t||"",t+=dwService.urls.auth+e,!0===dwService.isBackoffice()&&(t+="&backoffice=1"),"openid"===e){if(!(i=prompt(dwAjax.messages.user.promptoid)))return!1;t+="&openid="+i}return i=open(t,e,"width=650,height=350,menubar=0,toolbar=0,scrollbars=1"),top.dwUser.waitFrom(i),!0},dwUser.prototype.reconnect=function(){open(dwService.getUrl("s","sso.reconnect"),"reconnect","width=6
150,height=550,menubar=0,toolbar=0,scrollbars=1")},dwUser.prototype.reload=function(){!0===dwService.reload?!1!==this.redirect?document.location.href=dwService.normalizeUrl(this.redirect):document.location.reload():this.displayLogged()},dwUser.prototype.updateNumbers=function(){if(!0===this.isLogged&&!1===dwService.isBackoffice()){var e=dwUtils.readCookie("numbers");if(e&&"{}"!==e)return this.numbers=dwJson.parse(e),"string"!=typeof this.numbers.m&&(this.numbers=this.defaultN),!0;dwUtils.createCookie("numbers","{}",1),dwUtils.readCookie("numbers")&&dwAjax.get(dwService.getUrl("s","cookies.update"),function(e,t){dwUser.numbers=dwJson.parse(t),!1===dwUser.numbers?dwUser.numbers=dwUser.defaultN:dwUtils.createCookie("numbers",t,dwUser.numbers.x||35e-5),dwUser.displayLogged("_msg_"),dwUser.displayLogged("_crd_"),dwUser.displayLogged("_fr_"),dwUser.displayLogged("_notif_"),dwUser.displayLogged("_numbers_")})}},dwUser.prototype.wait=function(e){return!1===this.loaded?(setTimeout(function(){dwUser.wait(e)},200),!1):"__logout"===e?(this.isLogged=!1,dwUtils.createCookie("numbers","{}",1),this.reload(),!(this.redirect=!1)):(this.login("__stop"),!0===this.isLogged&&this.reload(),(this.redirect=!1)===this.isLogged&&"__new"!==e&&(dwService.open("login",e),this.loaded=!1),!0)},dwUser.prototype.waitFrom=function(e){return e&&!0!==e.closed?setTimeout(function(){dwUser.waitFrom(e)},200):dwService.open("login"),!1},dwUser.prototype.logout=function(e){var t=new Date;return this.redirect=e||!1,(e=document.createElement("script")).type="text/javascript",this.loaded=!1,e.src=dwService.getUrl("s","sso.service","logout=1&t="+t.getTime()),document.getElementsByTagName("head")[0].appendChild(e),setTimeout(function(){dwUser.loaded=!0},1e4),this.wait("__logout"),!0},dwUser.prototype.exec=function(e,t){this.callback=t,this.login(e)},dwUser.prototype.displayIfLogged=function(e,t){t=t||!1,!1!==(e=e||!1)&&(this.ids[0][e]=!0,this.displayLogged(e)),!1!==t&&(this.ids[1][t]=!0,this.displayLogged(t))},dwUser.prototype.displayLogged=function(e){var t,i,o,s;for(t in e=e||!1,this.ids[0])if(!1===e||-1!==t.indexOf(e)){if(!0===this.isLogged&&-1!==(i=t.lastIndexOf("_"))&&-1!==(i=(o=t.substr(0,i)).lastIndexOf("_"))){switch(s=!1,o.substr(i+1,o.length)){case"pseudo":dwElement.setValue(t,this.pseudo);break;case"mail":dwElement.setValue(t,this.mail);break;case"avatar":case"smallavatar":dwElement.setValue(t,this.avatar.small);break;case"small2avatar":dwElement.setValue(t,this.avatar.small2);break;case"mediumavatar":dwElement.setValue(t,this.avatar.medium);break;case"medium2avatar":dwElement.setValue(t,this.avatar.medium2);break;case"msg":s=this.numbers.m;break;case"crd":s=this.numbers.c;break;case"fr":s=this.numbers.f;break;case"notif":s=this.numbers.n;break;case"numbers":s=this.numbers.N}!1!==s&&("0"===s?dwElement.addClass(t,"zero"):dwElement.removeClass(t,"zero"),dwElement.setValue(t,s))}dwElement.setDisplayStyle(t,this.isLogged)}for(t in this.ids[1])!1!==e&&-1===t.indexOf(e)||dwElement.setDisplayStyle(t,!this.isLogged);return dwDefer.checkAll(),!0},dwUser.prototype.go=function(e,t){if(!0===dwService.isBackoffice())return!1;switch(e){case"account":e="aXx4.";break;case"affiliate":e="aXxhZg.";break;case"agents":e="aXxh.";break;case"application":if(t)return dwAjax.get(dwService.getUrl("s","adminApps"),function(e,t){try{var i=dwJson.parse(t);if(!1!==i&&i[e[0]]&&i[e[0]][e[1]])return document.location.href=i[e[0]][e[1]],!0}catch(e){dwUser.go()}return!1},[e,dwUtils.toInt(t)],!0),!1;e="";break;case"cart":e="aXxj.";break;case"content":e=t?dwUtils.safe64Encode("id|"+t)+".":"aWR8MA.";break;case"credit":e="aXxw.";break;case"orders":e="aXxv.";break;case"feed":e="aXxy.";break;case"follow":e=t+".",t=null;break;case"friends":e="aXxm.";break;case"generated":e="aXxn.";break;case"message":e="aXxt.";break;case"notifications":e="aXxu.";break;case"user":e="/u/"+this.id+".html";break;default:e=""}if(0!==e.indexOf("/")&&(e="/a/index."+e+"html"),!0===t)open(e,"popgo");else{if(!1===t)return e;document.location.href=e}return!0},dwUser.prototype.getReferralUrl=function(e){var t;return 0<(t=(e=e||document.location.href).indexOf("#"))&&(e=e.substring(0,t)),0===this.id?e:e+"#ref="+this.id},dwUser.prototype.switchProfile=function(e,t){dwUtils.eraseCookie("numbers"),this.isLogged=!1,this.id=e,this.redirect=this.go(t,!1),this.login("",e)},dwUser.prototype.lastCheck="",dwUser.prototype.checkPseudo=function(i){return!(!(i=dwElement.get(i)).value||i.value===this.lastCheck||(this.lastCheck=i.value,i.style.background="url("+dwService.getStatic("iconLoading","gif")+") top right no-repeat #ffd",dwAjax.get(dwService.getUrl("s","users.available","pseudo="+encodeURIComponent(i.value)),function(e,t){i.style.background="OK"===t?"#dfd":"#fdd"}),0))};var dwUser=new dwUser;function dwZoom(){}function dwUploader(){}function dwTooltip(){}dwAjax.setMessages("user",{promptoid:"Veuillez entrer votre OpenID ci-dessous"}),dwZoom.prototype.contener=!1,dwZoom.prototype.img=!1,dwZoom.prototype.size=[0,0],dwZoom.prototype.position=[0,0],dwZoom.prototype.imgPosition=[0,0],dwZoom.prototype.init=function(e){this.contener=dwElement.get(e),this.position=dwElement.getPosition(this.contener);e=this.contener.getAttribute("src");return!!e&&(this.size=[dwUtils.toInt(this.contener.style.width),dwUtils.toInt(this.contener.style.height)],this.imgObj=new Image,this.imgObj.src=e,(e=document.createElement("div")).style.width=this.size[0]+"px",e.style.height=this.size[1]+"px",e.style.overflow="hidden",e.style.backgroundImage="url('"+this.imgObj.src+"')",e.style.backgroundRepeat="no-repeat",this.imgPosition[0]=Math.round((this.imgObj.width-this.size[0])/2),this.imgPosition[1]=Math.round((this.imgObj.height-this.size[1])/2),this.updateImagePosition(e),dwElement.addEvent(e,"mousemove",function(e){dwZoom.move(e)}),dwElement.addEvent(e,"mouseover",function(){document.body.style.cursor="pointer"}),dwElement.addEvent(e,"mouseout",function(){document.body.style.cursor="auto"}),dwElement.addEvent(e,"click",function(){dwZoom.out()}),this.contener.parentNode.replaceChild(e,this.contener),this.contener=e,!0)},dwZoom.prototype.out=function(){if(!1===this.contener)return!1;var e=document.createElement("img");e.setAttribute("src",this.imgObj.src),e.style.width=this.size[0]+"px",e.style.height=this.size[1]+"px",dwElement.addEvent(e,"click",function(){dwZoom.init(this)}),dwElement.addEvent(e,"mouseover",function(){document.body.style.cursor="pointer"}),dwElement.addEvent(e,"mouseout",function(){document.body.style.cursor="auto"}),this.contener.parentNode.replaceChild(e,this.contener),this.contener=!1},dwZoom.prototype.updateImagePosition=function(e){(e||this.contener).style.backgroundPosition="-"+this.imgPosition[0]+"px -"+this.imgPosition[1]+"px"},dwZoom.prototype.move=function(e){e=dwDocument.getMousePosition(e);this.imgPosition[0]=Math.round((e[0]-this.position[0])*Math.max(0,this.imgObj.width-this.size[0])/this.size[0]),this.imgPosition[1]=Math.round((e[1]-this.position[1])*Math.max(0,this.imgObj.height-this.size[1])/this.size[1]),this.updateImagePosition()},dwZoom=new dwZoom,dwUploader.prototype.counts=[],dwUploader.prototype.loadingImgSrc=dwAjax.loadingImgSrc,dwUploader.prototype.messages=!1,dwUploader.prototype.timeouts=[],dwUploader.prototype.script=dwService.getUrl("s","uploader"),dwUploader.prototype.loading=function(s,n){return 0===n.indexOf("=")?dwAjax.get(this.script+"?status"+n,function(e,t,i){var o=[];return!(!1===dwUploader.timeouts[s]||!dwElement.get("dwUploaderMsg"+s))&&(200===i&&"KO"===t?(o.error=3,dwUploader.finish(s,o),!1):(dwUploader.timeouts[s]=setTimeout(function(){dwUploader.loading(s,n)},3e3),void dwElement.setValue("dwUploaderMsg"+s,'<img src="'+dwU
1ploader.loadingImgSrc+'" alt="*"/>')))}):(dwElement.setValue("dwUploaderMsg"+s,'<img src="'+this.loadingImgSrc+'" alt="*"/>'),dwUploader.timeouts[s]=setTimeout(function(){dwUploader.loading(s,"="+n)},3e3)),!0},dwUploader.prototype.finish=function(inputName,info){var msg,contener=dwElement.get("dwUploaderMsg"+inputName),iframe=dwElement.get("dwUploaderIframe"+inputName),callback=dwElement.getValue("dwUploader"+inputName+"Callback"),f,prop;if(clearTimeout(this.timeouts[inputName]),this.timeouts[inputName]=!1,!1===this.messages&&(msg=dwElement.getValue("dwUploaderMessages"),msg&&(this.messages=dwJson.parse(msg)),!1===this.messages)&&(this.messages=[]),!contener||!iframe)return!1;if(msg=this.messages[info.error]||"error",0!==info.error)return contener.style.color="red",dwElement.setValue(contener,msg),iframe.setAttribute("src",this.script+"?name="+inputName),!1;if(callback)try{eval(callback)}catch(err){alert("Error : dwUploader.finish callback ("+callback+")")}for(f in contener.style.display="none",contener=dwElement.get("dwUploaderIframeContener"+inputName),contener.style.color="green",contener.style.display="block",iframe.style.display="none",names=[],info.files)info.files[f].name&&names.push(info.files[f].name);for(f in msg=msg.replace("%name",names.join(", ")),msg=msg.replace("%ksize",info.ksize),msg=msg.replace(/\\n
1/g,"<br/>"),info.files)for(prop in info.files[f])void 0!==info.files[f][prop]&&(msg+='<input type="hidden" name="'+dwUtils.htmlSpecialChars(inputName)+"["+f+"]["+prop+']" value="'+dwUtils.htmlSpecialChars(info.files[f][prop])+'"/>');return msg+=' <a href="#" onclick="dwElement.get(\'dwUploaderIframe'+inputName+"').setAttribute('src',dwElement.get('dwUploaderIframe"+inputName+"').getAttribute('src')); dwElement.setDisplayStyle('dwUploaderIframeContener"+inputName+"', false); dwElement.setDisplayStyle(['dwUploaderIframe"+inputName+"','dwUploaderMsg"+inputName+"']); dwElement.setValue('dwUploaderMsg"+inputName+"', ''); return false;\"><img src=\""+dwService.getStatic("iconNo","png")+'" alt=""/></a>',dwElement.setValue(contener,msg),!0},dwUploader=new dwUploader,dwTooltip.prototype.loaded=!1,dwTooltip.prototype.show=function(e,t){t=t||!1;var i,o=dwElement.getPosition(e),s=dwDocument.getClientSize();!1===this.loaded&&(this.loaded=!0,(i=document.createElement("div")).id="dwTooltip",i.style.position="absolute",i.style.zIndex=1e4,document.body.insertBefore(i,document.body.firstChild)),(i=dwElement.get("dwTooltip")).style.width="auto",dwElement.setDisplayStyle("dwTooltip",!t||null),dwElement.setValue(i,e.getAttribute("data-tooltip")),350<i.offsetWidth&&(i.style.width="350px"),t=i.offsetHeight||40,o[1]-t<20?o[1]+=Math.max(30,e.offsetHeight):o[1]-=t+2,i.style.top=Math.max(0,o[1])+"px",o[0]+=Math.floor((e.offsetWidth-i.offsetWidth)/2),300<s[0]&&(o[0]=Math.min(o[0],s[0]-i.offsetWidth)),i.style.left=Math.max(0,o[0])+"px"},dwTooltip.prototype.hide=function(){dwElement.setDisplayStyle("dwTooltip",!1)};var dwTooltip=new dwTooltip;function dwSeoKeywords(){}dwSeoKeywords.prototype.domains={"google.":"q","yahoo.":"p",".live.com":"q",".msn.com":"q",".altavista.com":"q",".aol.":"q",".ask.com":"q"},dwSeoKeywords.prototype.minLength=2,dwSeoKeywords.prototype.maxLength=150,dwSeoKeywords.prototype.keywords=!1,dwSeoKeywords.prototype.getKeywords=function(){var e,t,i,o=document.referrer,s=!1;if(!1===this.keywords&&(this.keywords="",o)&&0===(t=o.indexOf("http://"))&&-1!==(t=(e=o.substring(7,o.length)).indexOf("/"))){for(i in 0===(t=(e=e.substring(0,t)).indexOf("www."))&&(e=e.substring(4,o.length)),this.domains)!1===s&&-1!==e.indexOf(i)&&(s=this.domains[i]);!1!==s&&-1!==(t=-1===(t=o.indexOf("&"+s+"="))?o.indexOf("?"+s+"="):t)&&(o=-1!==(t=(o=o.substring(t+s.length+2,o.length)).indexOf("&"))?o.substring(0,t):o).length>this.minLength&&o.length<this.maxLength&&(this.keywords=decodeURIComponent(o.replace(/\+/g," ")))}return this.keywords},dwSeoKeywords.prototype.showKeywords=function(e){var t,i=this.getKeywords();if(""===i)return!0;
1dwElement.get("referrerKeywordsForm")||document.write('<form action="/s.html" method="post" id="referrerKeywordsForm" style="display:none;"><p><input type="text" name="q" value="" id="referrerKeywordsInput"/></p></form>'),t=i.replace(/('|\\)/g," "),document.write("<a href=\"#\" onclick=\"dwElement.setValue('referrerKeywordsInput', '"+t+"'); dwSearch.cookie('referrerKeywordsInput'); var f = dwElement.get('referrerKeywordsForm'); if(f != null) f.submit(); return false;\">"+e+" <strong>"+i+"</strong></a>")};var dwSeoKeywords=new dwSeoKeywords;function dwContent(){dwElement.addEvent(null,"dom",function(){if("content"===dwService.targetings.pagType){var e=dwService.targetings.conId,t=dwService.targetings.appId,i=dwJson.parse(dwUtils.readCookie("similar-content"))||{};if(i[t]){if(e===i[t])return!0;(new Image).src="https://cnt.dugwood.com/counter.contents?"+i[t]+"|"+e}i[t]=e,dwUtils.createCookie("similar-content",dwJson.stringify(i))}})}dwContent.prototype.commentMaxLength=1e3,dwContent.prototype.cmtOwnerId=0,dwContent.prototype.digbury=function(e,t,i,o){o=o||!1;var s=t+(!0===(i=i||!1)?"Bury":"Dig"),n=0,r="",i=dwService.getUrl("t","digbury","id="+e+(!0===i?"&bury=1":""));if(dwElement.setValue(s,dwUtils.toInt(dwElement.getValue(s))+1),!1!==o?(n=e+"x"+o,r="digburycmt",i+="&cmtId="+o):(n=e,r="digbury"),!1===this.checkAction(r,n))return dwAjax.postHandler(t,"error:0"),!1;dwAjax.postUpdate(i,t)},dwContent.prototype.thanks=function(e,t){dwAjax.postUpdate(dwService.getUrl("t","thanks","id="+e),t)},dwContent.prototype.chooseComment=function(e,t,i,o){if(!dwUser||dwUser.id!==o)return dwElement.setDisplayStyle(i+"-1"),!1;dwAjax.postUpdate(dwService.getUrl("t","chooseComment","id="+e+"&cmtId="+t),i)},dwContent.prototype.loadComment=function(){0<this.cmtOwnerId&&dwUser&&!0===dwUser.isLogged&&dwUser.id===this.cmtOwnerId&&dwElement.displayClass("contentComments","ownerChoice")},dwContent.prototype.postComment=function(){var e=document.location.href;return!1!==dwUser.isLogged||dwElement.getValue("dwCmtUserName")&&dwElement.getValue("dwCmtUserEmailConfirm")?(-1!==e.indexOf("#")&&(e=e.substring(0,e.indexOf("#"))),e+="#dwCmtForm",document.location.href=e,(e=dwElement.getValue("dwCmtTxt"))?e.length>this.commentMaxLength?(dwAjax.message("dwCmtForm",5),!1):(dwElement.setValue("cmtMd5","183f2f170fdeb05c175413e05ab2de06"),dwForm.post("dwCmtForm",dwContent.resetComment),!0):(dwAjax.message("dwCmtForm",3),!1)):(dwAjax.message("dwCmtForm",9),!1)},dwContent.prototype.resetComment=function(){dwElement.setValue("dwCmtTxt",""),dwContent.updateCommentLength()},dwContent.prototype.updateCommentLength=function(){dwElement.setValue("dwCmtLength",Math.max(this.commentMaxLength-dwElement.getValue("dwCmtTxt").length,0))},dwContent.prototype.checkAction=function(e,t){var i,e="act"+e,o=dwUtils.readCookie(e),s=[],n=!1;if(9<(s=o&&""!==o?o.split(","):s).length)return!1;for(i=0;i<s.length;i+=1)if(s[i]===t){n=!0;break}return!0!==n&&(s[s.length]=t,dwUtils.createCookie(e,s.join(","),.08),!0)},dwContent.prototype.updateComments=function(i,e){this.cmtOwnerId&&dwUser&&!0===dwUser.isLogged&&dwUser.id===this.cmtOwnerId?dwAjax.get(e,function(e,t){dwElement.setValue(e,t),dwElement.displayClass(i,"ownerChoice")},i,!0):dwAjax.get(e,function(e,t){dwElement.setValue(e,t)},i,!0)},dwContent.prototype.alert=function(e,t,i,o){var s,n,r=dwService.getUrl("s","alert","id="+t+"&eltId="+i);if(o?(s=t+"x"+o,n="alertcmt",r+="&cmtId="+o):(s=t,n="alert"),!1===this.checkAction(n,s))return dwAjax.postHandler(i,"error:0"),!1;dwLightBox.open(e,r,"ajax")};var dwContent=new dwContent;function dwContentLibrary(){}dwAjax.setMessages("contentDigBury",{0:"Votre vote a bien été pris en compte et apparaîtra dans les prochaines 24 heures",1:"Une erreur est survenue",signin:"Connectez-vous pour donner votre avis"}),dwAjax.setMessages("contentAlert",{0:"Merci pour votre signalement",signin:"Connectez-vous pour signaler un contenu abusif"}),dwContentLibrary.prototype.script=dwService.getUrl("s","contentLibrary"),dwContentLibrary.prototype.width=530,dwContentLibrary.prototype.height=530,dwContentLibrary.prototype.loadingImgSrc=dwAjax.loadingImgSrc,dwContentLibrary.prototype.content=!1,dwContentLibrary.prototype.id=!1,dwContentLibrary.prototype.domId=!1,dwContentLibrary.prototype.onClick=!1,dwContentLibrary.prototype.open=function(e,t,i){var o=this.script+"?f=window";t?(this.domId=t,o=o+"&domId="+this.domId):this.domId=!1,this.onClick=i||function(e,t,i){this.content.id=e,this.content.text=t,this.content.profile=dwElement.get("mcLibraryUseMedia").checked?"1":"0",dwFormFunctions.insertTextContent(i),dwLightBox.close()},dwLightBox.onDisplay=function(){dwContentLibrary.update("init")},dwLightBox.open(e,o,"ajax",this.width,this.height)},dwContentLibrary.prototype.update=function(e,t){var i,o="",s=dwElement.get("mcLibrarySelect");if("init"===e&&(this.id=s.options[0].value,e="list"),"list"!==e)return!1;for(i=0;i<s.options.length;i++)s.options[i].selected=this.id===s.options[i].value;t=t||0,dwElement.get("mcLibraryLoading").style.display="inline",o=this.script+"?f="+e+"&p="+t+"&q="+encodeURIComponent(dwElement.getValue("mcLibrarySearchQuery"))+"&t="+encodeURIComponent(this.id
1),!1!==this.domId&&(o+="&domId="+this.domId),dwAjax.updateInnerHtml(o,"mcLibrary",function(){dwElement.get("mcLibraryLoading").style.display="none"})},dwContentLibrary.prototype.click=function(e,t,i){this.onClick(e,t,i)};var dwContentLibrary=new dwContentLibrary;function dwMediaLibrary(){}dwMediaLibrary.prototype.script=dwService.getUrl("s","mediaLibrary"),dwMediaLibrary.prototype.width=530,dwMediaLibrary.prototype.height=530,dwMediaLibrary.prototype.shared=!1,dwMediaLibrary.prototype.loadingImgSrc=dwAjax.loadingImgSrc,dwMediaLibrary.prototype.messages={add:"Ajouter une image/vidéo",del:"Supprimer l'image/vidéo ?",edit:"Ãditer l'image/vidéo",left:"Déplacer l'image sélectionnée vers la gauche",notes:"Ãditer les notes",right:"Déplacer l'image sélectionnée vers la droite",spin:"Modifier les titres des images en une fois"},dwMediaLibrary.prototype.media=[],dwMediaLibrary.prototype.autofill=[],dwMediaLibrary.prototype.medium=!1,dwMediaLibrary.prototype.common=!1,dwMediaLibrary.prototype.open=function(e,t){dwLightBox.onDisplay=t||function(){dwMediaLibrary.update()},this.common=dwUtils.readCookie("mediaData"),this.common&&(this.common=dwJson.parse(this.common)),this.common||(this.common={floating:"fl",profile:1,action:"list"}),dwLightBox.open(e,this.script+"?f=window","ajax",this.width,this.height)},dwMediaLibrary.prototype.updateCookie=function(){dwUtils.createCookie("mediaData",dwJson.stringify(this.common),30)},dwMediaLibrary.prototype.update=function(e,t){if(t=t||0,"edit"===(e=e||this.common.action)||"add"===e||"spin"===e)dwElement.get("mcLibraryMenuForm").className="selected",dwElement.get("mcLibraryMenuPersonal").className="",dwElement.get("mcLibraryMenuShared").className="";else{if("list"!==e)return!1;!0===this.shared?(dwElement.get("mcLibraryMenuPersonal").className="",dwElement.get("mcLibraryMenuShared").className="selected"):(dwElement.get("mcLibraryMenuPersonal").className="selected",dwElement.get("mcLibraryMenuShared").className=""),dwElement.get("mcLibraryMenuForm").className=""}return"list"!==e&&"add"!==e||this.common.action===e||(this.common.action=e,this.updateCookie()),dwElement.setDisplayStyle("mcLibraryLoading",!0),dwAjax.updateInnerHtml(this.script+"?f="+e+"&t="+dwMediaLibrary.medium.types+"&p="+t+"&s="+(!0===this.shared?"1":"0")+"&q="+encodeURIComponent(dwElement.getValue("mcLibrarySearchQuery")),"mcLibrary",function(){dwElement.get("mcLibraryLoading").style.display="none","text"===dwMediaLibrary.medium.type?(dwElement.setDisplayStyle("mcLibraryPosition"),dwMediaLibrary.updateProfile(dwMediaLibrary.common.profile),dwMediaLibrary.updateFloat(dwMediaLibrary.common.floating)):dwElement.setDisplayStyle("mcLibraryPosition",!1),dwAjax.runScripts("mcLibrary")}),!0},dwMediaLibrary.prototype.checkMedia=function(e){if(2===(e=e.split(",")).length){e=e[1].split("-");for(var t=0;t<e.length;t+=1)dwMediaLibrary.click(e[t],t!==e.length-1)}return!0},dwMediaLibrary.prototype.click=function(e,t){var i;t=t||!1,this.medium.mdaId=e,dwLightBox.close(),"inline"===this.medium.type?(i=this.media[this.medium.id].autoFill,this.addMedia(t)):(i=this.medium.autoFill,dwFormFunctions.insertTextMedia()),this.medium.id&&this.autofill[i]===this.medium.id||""!==dwElement.getValue(this.autofill[i])||(dwElement.setValue(this.autofill[i],this.medium.mdaId),this.updateMedia(this.autofill[i]))},dwMediaLibrary.prototype.updateProfile=function(e){var t;for(e&&e<5&&0<e&&(this.common.profile=e,this.updateCookie()),t=1;t<5;t+=1)dwElement.get("mediaProfile"+t).className=this.common.profile===t?"selected":""},dwMediaLibrary.prototype.updateFloat=function(e){var t,i={fl:!0,l:!0,c:!0,r:!0,fr:!0};for(t in e&&i[e]&&(this.common.floating=e,this.updateCookie()),i)t&&(dwElement.get("mediaFloat"+t).className=this.common.floating===t?"selected":"")},dwMediaLibrary.prototype.initMedia=function(e,t,i,o){o=o.split(":"),this.media[e]={unique:t,types:i,autoFill:o[0]},o[1]&&(t="mdaList"+o[0]+"_"+o[1],null!==dwElement.get(t))&&(this.autofill[o[0]]=t),this.updateMedia(e)},dwMediaLibrary.prototype.updateMedia=function(e){for(var t,i=dwElement.getValue(e).split(","),o="",s="",n=0;n<i.length;
1n+=1)""!==i[n]&&(t=dwUtils.toInt(i[n]),s+=i[n]+",",(new Image).src="/"+t+"-1.jpg",o=o+'<div style="width:90px;height:110px;float:left;text-align:center;margin:0 5px 5px 0;"><div style="width:90px;height:90px;border:solid 1px #bbb;margin-bottom:3px" data-tooltip="<img src="/'+t+'-1.jpg" alt="" width="100%"/>" onmouseover="dwTooltip.show(this);" onmouseout="dwTooltip.hide();"><img src="/'+t+'-0.jpg" style="max-width:100%" alt=""/></a></div>',!1===this.media[e].unique&&0!==n&&(o+='<a href="#" onclick="dwMediaLibrary.changeOrder(\''+e+"',"+t+',-1); return false;" title="'+this.messages.left+'"><img src="'+dwService.getStatic("iconLeft","png")+'" alt="'+this.messages.left+'"/></a>'),o=(o+="<a href=\"#\" onclick=\"dwMediaLibrary.actionMedium('edit', '"+e+"',"+t+'); return false;" title="'+this.messages.edit+'"><img src="'+dwService.getStatic("iconEdit","png")+'" alt="'+this.messages.edit+'"/></a>')+'<a href="#" onclick="dwMediaLibrary.deleteMedia(\''+e+"',"+t+'); return false;" title="'+this.messages.del+'"><img src="'+dwService.getStatic("iconTrash","png")+'" alt="'+this.messages.del+'"/></a>',!1===this.media[e].unique&&n!==i.length-1&&(o+='<a href="#" onclick="dwMediaLibrary.changeOrder(\''+e+"',"+t+',1); return false;" title="'+this.messages.right+'"><img src="'+dwService.getStatic("iconRight","png")+'" alt="'+this.messages.right+'"/></a>'),o+="</div>");o+='<div style="width:40px;',""!==s&&(o+="height:70px;line-height:70px;"),o=(o+='float:left;margin:0;">')+"<a href=\"#\" onclick=\"dwMediaLibrary.actionMedium('', '"+e+'\'); return false;" title="'+this.messages.add+'"><img src="'+dwService.getStatic("iconAdd","png")+'" alt="'+this.messages.add+'"/></a>',""!==s&&(o+=" <a href=\"#\" onclick=\"dwMediaLibrary.actionMedium('spin', '"+e+"', dwElement.getValue('"+e+'\')); return false;" title="'+this.messages.spin+'"><img src="'+dwService.getStatic("iconLightning","png")+'" alt="'+this.messages.spin+'"/></a>'),dwElement.setValue(e+"Content",o=o+"</div>"+'<div style="clear:left;" class="clear"> </div>'),dwElement.setValue(e,s.substring(0,s.length-1))},dwMediaLibrary.prototype.addMedia=function(e){var t,i=dwElement.getValue(this.medium.id).split(",");if(!0===this.media[this.medium.id].unique)dwElement.setValue(this.medium.id,this.medium.mdaId),this.updateMedia(this.medium.id);else{for(t=0;t<i.length;t+=1)if(i[t]===this.medium.mdaId)return!0;dwElement.getValue(this.medium.id)?dwElement.setValue(this.medium.id,dwElement.getValue(this.medium.id)+","+this.medium.mdaId):dwElement.setValue(this.medium.id,this.medium.mdaId),!1===(e=e||!1)&&this.updateMedia(this.medium.id)}return!0},dwMediaLibrary.prototype.changeOrder=function(e,t,i){for(var o,s=dwElement.getValue(e).split(","),n=0;n<s.length;n+=1)if(dwUtils.toInt(s[n])===t&&s[n+i]){o=s[n],s[n]=s[n+i],s[n+i]=o;break}dwElement.setValue(e,s.join(",")),this.updateMedia(e)},dwMediaLibrary.prototype.deleteMedia=function(e,t){var i,o=dwElement.getValue(e).split(",");if(!1===confirm(this.messages.del))return!1;for(dwElement.get(e).value="",i=0;i<o.length;i+=1)dwUtils.toInt(o[i])!==t&&""!==o[i]&&dwElement.setValue(e,dwElement.getValue(e)+","+o[i]);return this.updateMedia(e),!0},dwMediaLibrary.prototype.actionMedium=function(e,t,i){i=i||0,t=t||this.medium.id,this.medium={id:t,type:"inline",types:this.media[t].types},this.open(e?this.messages[e]:this.messages.add,function(){dwMediaLibrary.update(e,i)})};var dwMediaLibrary=new dwMediaLibrary;function dwFormFunctions(){}dwFormFunctions.prototype.multipleId=100,dwFormFunctions.prototype.multipleWait=0,dwFormFunctions.prototype.insertTextInput=!1,dwFormFunctions.prototype.hide=[],dwFormFunctions.prototype.order=[],dwFormFunctions.prototype.suggests=[],dwFormFunctions.prototype.suggestValues=[],dwFormFunctions.prototype.lastQuery="@",dwFormFunctions.prototype.suggestDiv="",dwFormFunctions.prototype.suggestIndex=0,dwFormFunctions.prototype.suggestBlur=!0,dwFormFunctions.prototype.uri={},dwFormFunctions.prototype.addMultiple=function(formId,element,table,id,mode){var header,row,e=dwElement.getTableBody(element),url=dwService.getUrl("s","form.multiple","t="+encodeURIComponent(table)+"&i="+encodeURIComponent(id)+"&m="+encodeURIComponent(mode)+"&f="+encodeURIComponent(this.multipleId));this.multipleWait++,this.multipleId++,dwElement.setDisplayStyle(element+"-load"),1===e.parentNode.rows.length&&(header=e.insertRow(1)),row=e.insertRow(e.parentNode.rows.length),setTimeout(function(){dwAjax.get(url,function(rows,xml){var cell,i,m,res=dwJson.parse(xml);if(!1===res)return!1;if(res.header&&rows.header)for(i in res.header)null!==res.header[i]&&(cell=document.createElement("th"),
1cell.className="fieldLabel",dwElement.setValue(cell,res.header[i]),rows.header.appendChild(cell));for(i in res.form)null!==res.form[i]&&(cell=rows.row.insertCell(i),m=res.form[i].match(/data-href="(.*)"/),m&&m[1]&&(res.form[i]=res.form[i].replace(/<\/span>/,'</span> <a href="'+m[1]+'" target="_blank"><img src="'+dwService.getStatic("external","png")+'" alt=""/></a>')),dwElement.setValue(cell,res.form[i].replace(/__FORM_AND_COL__/g,formId)));""!==res.js&&eval(res.js),--dwFormFunctions.multipleWait,1===mode&&0===dwFormFunctions.multipleWait&&dwForm.updateQS("dwForm_0_"),dwElement.setDisplayStyle(element+"-load",!1)},{header:header,row:row})},250*this.multipleWait)},dwFormFunctions.prototype.delMultiple=function(e){e=dwElement.get(e).parentNode.parentNode;e.rowIndex&&e.parentNode.deleteRow(e.rowIndex)},dwFormFunctions.prototype.switchMultiple=function(e,t){var e=dwElement.get(e).parentNode.parentNode,i=e.parentNode;e.rowIndex&&i.rows&&1<(t+=e.rowIndex)&&t<=i.rows.length&&(t=i.insertRow(t),dwElement.setValue(t,dwElement.getValue(e)),i.deleteRow(e.rowIndex))},dwFormFunctions.prototype.selectInputText=function(e){return e.id&&(this.insertTextInput=e.id),!1},dwFormFunctions.prototype.selectTextMedia=function(e,t){return!1===this.insertTextInput?e&&alert(e):(dwMediaLibrary.medium={type:"text",types:14,floating:"fl",profile:2,autoFill:t},dwMediaLibrary.open(dwMediaLibrary.messages.add||"")),!1},dwFormFunctions.prototype.insertTextMedia=function(){this.insertText("[media profile="+dwMediaLibrary.common.profile+" style="+dwMediaLibrary.common.floating+"]"+dwMediaLibrary.medium.mdaId+"[/media]")},dwFormFunctions.prototype.selectTextContent=function(e,t){return!1===this.insertTextInput?e&&alert(e):(dwContentLibrary.content={profile:"0",text:"",id:0},dwContentLibrary.open(t||"")),!1},dwFormFunctions.prototype.insertTextContent=function(e){var t=this.getSelection();""===t&&(t=dwContentLibrary.content.text),this.insertText("["+(e?"member":"content")+" id="+dwContentLibrary.content.id+" profile="+dwContentLibrary.content.profile+"]"+t+"[/"+(e?"member":"content")+"]")},dwFormFunctions.prototype.openTextLink=function(e,t){return!1===this.insertTextInput?(alert(t[4]),!1):(dwLightBox.open(e,"<table><tr><th>"+t[0]+'</th><td><input type="text" name="dummy" id="articleLinkFormLink" value="http://"/></td></tr><tr><th>'+t[1]+'</th><td><input type="text" name="dummy" id="articleLinkFormTextLink"/></td></tr><tr><td colspan="2" class="submit"><input type="submit" onclick="dwFormFunctions.insertTextLink(\''+t[3]+'\');return false;" value="'+t[3]+'" class="submit"/></td></tr></table>
1',"html",300,100),dwElement.setValue("articleLinkFormTextLink",this.getSelection()),!0)},dwFormFunctions.prototype.insertTextLink=function(e){var t=dwElement.getValue("articleLinkFormLink"),i=(i=dwElement.getValue("articleLinkFormTextLink"))||e;return!!t&&(this.insertText("[url link="+t+"]"+i+"[/url]"),dwLightBox.close(),!0)},dwFormFunctions.prototype.getSelection=function(){var e="",t=dwElement.get(this.insertTextInput);return t&&(document.selection&&document.selection.createRange?e=(e=document.selection.createRange()).text:void 0!==t.selectionStart&&(e=dwElement.getValue(t).substring(t.selectionStart,t.selectionEnd))),e},dwFormFunctions.prototype.setSelection=function(e){var t,i=dwElement.get(this.insertTextInput),o="";return i&&(void 0!==i.selectionStart?(o=dwElement.getValue(i),t=i.selectionStart,dwElement.setValue(i,o.substring(0,i.selectionStart)+e+o.substring(i.selectionEnd,o.length)),i.setSelectionRange(t,t+e.length)):document.selection&&document.selection.createRange?(i.focus(),document.selection.createRange().text=e):dwElement.setValue(i,dwElement.getValue(i)+e),i.focus()),e},dwFormFunctions.prototype.insertText=function(e,t,i){var o;return t?(o=this.getSelection(),this.setSelection(e+(o=""===o?i||"":o)+t)):this.setSelection(e),!1},dwFormFunctions.prototype.formatLanguage=function(e){var t=this.getSelection();return t?dwAjax.post(dwService.getUrl("s","form/languageFormat","text="+encodeURIComponent(t)),function(e,t){if(0===t.indexOf("error:"))return dwAjax.messages.form[503]&&alert(dwAjax.messages.form[503]+" (code: "+t.substring(6)+")"),!1;dwFormFunctions.insertText(t)}):alert(e),!1},dwFormFunctions.prototype.suggestKey=function(e,t){if(this.suggestDiv!==t){var i;if(!1===t)return i=this.suggestDiv+"suggestions",setTimeout(function(){!0===dwFormFunctions.suggestBlur&&dwElement.setDisplayStyle(i,!1)},400),!1;this.suggestDiv=t,this.suggests=[],this.suggestIndex=0,this.lastQuery="@"}if(e.keyCode)switch(e.keyCode){case 13:return 0===this.suggests.length&&!0===this.suggestValues[this.suggestDiv].add&&(this.suggestIndex=-1,this.suggestAdd()),0!==this.suggests.length&&this.suggests[this.suggestIndex]&&this.suggestAdd(),!1;case 188:return!0===this.suggestValues[this.suggestDiv].add&&(this.suggestIndex=-1,this.suggestAdd()),!0;case 38:return 0<this.suggestIndex&&(--this.suggestIndex,this.suggestUpdate()),!0;case 40:return this.suggestIndex<this.suggests.length-1&&(this.suggestIndex+=1,this.suggestUpdate()),!0;case 27:return dwElement.get(this.suggestDiv+"suggest").blur(),!0}else""===e&&dwElement.autocomplete(this.suggestDiv+"suggest",!1),dwFormFunctions.suggest(e||"");return!0},dwFormFunctions.prototype.suggest=function(e){if(e)if(e===this.lastQuery)dwElement.setDisplayStyle(this.suggestDiv+"suggestions",!0);else{this.lastQuery=e;var t=dwService.getUrl("s","form.suggest",this.suggestValues[this.suggestDiv].params+"&q="+encodeURIComponent(e)),r=dwElement.get(this.suggestDiv+"suggest"),a=r.style.background;if(","===e)return dwElement.setValue(r,""),dwElement.setDisplayStyle(this.suggestDiv+"suggestions",!1),!1;r.style.background="url("+dwService.getStatic("iconloading","gif")+") center right no-repeat",dwAjax.get(t,function(e,t){var i,o,s="",n=0;if(r.style.background=a,dwFormFunctions.suggests=[],"none"!==t&&!1!==(i=dwJson.parse(t))){for(o in i)i[o]&&(dwFormFunctions.suggests[n]=[o,i[o]],s+='<a href="#" id="'+dwFormFunctions.suggestDiv+"suggesta"+n+'" onclick="dwFormFunctions.suggestBlur = false; dwFormFunctions.suggestIndex = '+n+'; dwFormFunctions.suggestAdd(); return false">'+i[o]+"</a>",n+=1);dwElement.setValue(dwFormFunctions.suggestDiv+"suggestions",s)}dwFormFunctions.suggestIndex=0,dwFormFunctions.suggestUpdate(),dwElement.setDisplayStyle(dwFormFunctions.suggestDiv+"suggestions",""!==s)})}return!0},dwFormFunctions.prototype.suggestUpdate=function(){for(var e=0;e<this.suggests.length;e+=1)e===this.suggestIndex?dwElement.addClass(this.suggestDiv+"suggesta"+e,"selected"):dwElement.removeClass(this.suggestDiv+"suggesta"+e,"selected")},dwFormFunctions.prototype.suggestAdd=function(){var e="",t="";this.suggests[this.suggestIndex]?(e=this.suggests[this.suggestIndex][0],t=this.suggests[this.suggestIndex][1]):!0===this.suggestValues[this.suggestDiv].add&&(t=e=dwElement.getValue(this.suggestDiv+"suggest").replace(/,/g,"")),""!==e&&(!1===this.suggestValues[this.suggestDiv].multiple&&(this.suggestValues[this.suggestDiv].values=[]),this.suggestValues[this.suggestDiv].values[e]=t),this.lastQuery="@",this.suggestIndex=-1,this.suggestDraw(this.suggestDiv),this.suggestBlur=!0},dwFormFunctions.prototype.suggestDelete=function(e,t){delete this.suggestValues[e].values[t],this.suggestDraw(e)},dwFormFunctions.prototype.suggestInit=function(e,t,i,o,s,n){this.suggestValues[e]={index:e,params:t,values:i,multiple:o,add:s,defaultValue:n||""},this.suggestDraw(e)},dwFormFunctions.prototype.suggestDraw=function(e){var t,i,o=this.suggestValues[e].values,s=[],n="";for(t in o)o[t]&&(s[s.length]=t,!1===this.suggestValues[e].multiple?n+='<span id="'+e+'-label">'+o[t]+"</span>":n+=o[t],(i=o[t].match(/data-href="(.*)"/))&&i[1]&&(n+=' <a href="'+i[1]+'" target="_blank"><img src="'+dwService.getStatic("external","png")+'" alt=""/></a>'),n+=' <a href="#" onclick="dwFormFunctions.suggestDelete(\''+e+"', '"+t+'\'); return false"><img src="'+dwService.getStatic("icontrash","png")+'" alt=""/></a> ');0===s.length?dwElement.setValue(e,this.suggestValues[e].defaultValue):dwElement.setValue(e,s.join(",")),dwElement.setDisplayStyle(e+"suggestions",!1),dwElement.setValue(e+"-values",n),dwElement.setValue(e+"suggest","")},dwFormFunctions.prototype.updateBits=function(e){for(var t,i=1,o=0;null!==(t=dwElement.getValue(e+"-"+(i<10?"0"+i:i)));i+=1)!1!==t&&(o+=dwUtils.toInt(t));dwElement.setValue(e,o)},dwFormFunctions.prototype.initUri=function(e,t,i,o){var s=e+"-"+t,o=dwElement.get("dwForm_"+i+"_"+o);this.uri[s]||(this.uri[s]={uri:"dwForm_"+e+"_"+t,elements:[]}),"reset"===i?this.uri[s].elements=[]:o&&(this.uri[s].elements.push([o.id,""]),1===this.uri[s].elements.length)&&(dwElement.addEvent(this.uri[s].uri,"change",function(){dwFormFunctions.uri[s].elements=[]}),setTimeout(function(){dwFormFunctions.updateUri(s)},500))},dwFormFunctions.prototype.updateUri=function(e){for(var t,i,o,s,n=[],r=0,a=!1;r<this.uri[e].elements.length;
1r++)t=this.uri[e].elements[r],(s=dwElement.getValue(t[0]))!==t[1]&&(t[1]=s,a=!0);if(a){for(r=0;r<this.uri[e].elements.length;r++)t=this.uri[e].elements[r][0],i=dwElement.getValue(t+"-label"),dwElement.get(t+"-values")&&i?(o=i.match(/<strong>(.+)<\/strong>/))&&o[1]?n.push(o[1]):n.push(i):"NULL"!==(s=dwElement.getValue(t))&&n.push(s);s=n.join(" ").replace(/(<[^>]+>)/g,"").replace(/&[a-z]+;/g," ").replace(/ +/g,"-").toLowerCase(),dwElement.setValue(this.uri[e].uri,s),dwElement.setValue(this.uri[e].uri+"-preview",s)}setTimeout(function(){dwFormFunctions.updateUri(e)},1e3)};var dwFormFunctions=new dwFormFunctions;function dwCart(){}dwCart.prototype.data=!1,dwCart.prototype.update=function(){var e=dwUtils.readCookie("cart");null!==e&&(this.data=dwJson.parse(e)),!1===this.data&&(dwCart.data={count:0,total:0},dwAjax.get(dwService.getUrl("s","cart.init"))),0!==dwCart.data.count&&(dwElement.setValue("cartCount",this.data.count),dwElement.setValue("cartTotal",this.data.total))},dwCart.prototype.show=function(e){this.update(),dwLightBox.open(e,dwService.getUrl("s","cart.show"),"ajax")},dwCart.prototype.add=function(i,o,e,t){dwAjax.post(dwService.getUrl("t","admin.cart","conId="+t+"&prdId="+i+"&prdType="+o+"&quantity="+encodeURIComponent(e)),function(e,t){"0"!==t?dwElement.setDisplayStyle("spanProduct-"+i):0===o?dwUser.go("cart"):dwCart.show(dwAjax.messages.cart.yours)})};var dwCart=new dwCart;function dwSearch(){var e=dwUtils.readCookie("lastSearch");e&&void 0!==(e=dwJson.parse(e)).q&&void 0!==e.a&&(this.c=e)}dwAjax.setMessages("cart",{yours:"Votre panier"}),dwSearch.prototype.c={q:"",a:"0"},dwSearch.prototype.d={},dwSearch.prototype.restore=function(e){var t=document.location.pathname,t=t.substring(0,t.lastIndexOf("/")+1),i=dwElement.get(e+"-a");void 0===this.d[e]&&(this.d[e]=dwElement.get(e+"-default").getAttribute("data-default")),""!==this.c.q&&dwElement.setValue(e+"-q",this.c.q),i&&0<this.c.a&&"hidden"!==i.getAttribute("type")&&dwElement.setValue(e+"-a",this.c.a),dwElement.setValue(e+"-d",t)},dwSearch.prototype.send=function(e){var t=dwElement.getValue(e+"-q");return t&&t!==this.d[e]?(null!==dwElement.getValue(e+"-d")&&this.action(e,dwElement.getValue(e+"-d")),this.cookie(e),!0):(dwAjax.message(e,"1"),!1)},dwSearch.prototype.action=function(e,t){var e=dwElement.get(e),i=e.action;""===t&&(t=i.substring(0,i.lastIndexOf("/")+1)),i=i.substring(i.lastIndexOf("/")+1),3===t.length&&(t=""),e.action=t+"s.html"},dwSearch.prototype.cookie=function(e){var t=dwElement.getValue(e+"-q");t&&dwUtils.createCookie("lastSearch",dwJson.stringify({q:t,a:dwElement.getValue(e+"-a")}))},dwSearch.prototype.suggestId=0,dwSearch.prototype.suggests=[],dwSearch.prototype.suggestInit=function(e,t,i){dwElement.autocomplete("searchForm-"+e+"-q",!1),this.suggests["."+e]={searches:[],search:"@",index:-1}},dwSearch.prototype.suggestHide=function(e){if(!this.suggests[e])return!1;setTimeout(function(){dwElement.setDisplayStyle(dwElement.get("searchForm-"+e+"-suggestions"),!1)},400)},dwSearch.prototype.suggestKey=function(e,t){if(this.suggests["."+e]&&t){var i=this.suggests["."+e];if(this.suggestId!==e&&(this.suggestHide(this.suggestId),this.suggestId=e,i.index=-1,i.search="@"),t.keyCode&&i.searches[i.search])switch(t.keyCode){case 13:return i.searches[i.search][i.index]?(this.cookie("searchForm-"+e),document.location.href=i.searches[i.search][i.index][0],!1):!0;case 38:return-1<i.index&&(--i.index,this.suggestUpdate(e)),!0;case 40:return i.index<i.searches[i.search].length-1&&(i.index+=1,this.suggestUpdate(e)),!0;case 27:return this.suggestHide(e),!0}}return!0},dwSearch.prototype.suggest=function(r){var e,t;return!!this.suggests["."+r]&&(e=this.suggests["."+r],(t=dwElement.getValue("searchForm-"+r+"-q").replace(/\s+$/,""))&&(t===e.search?dwElement.setDisplayStyle("searchForm-"+r+"-suggestions",!0):(e.search=t,e.searches[e.search]?dwSearch.suggestUpdate(r,!0):dwAjax.get(dwService.getUrl("s","search.suggest","id="+r+"&q="+encodeURIComponent(t)),function(e,t){var i=dwSearch.suggests["."+r];if(i.searches[i.search]=[],t){if("none"!==t){var o=dwJson.parse(t),s=0;if(!1!==o)for(var n in o)i.searches[i.search][s]=[n,o[n]],s+=1}dwSearch.suggestUpdate(r,!0)}},[],!0))),!0)},dwSearch.prototype.suggestUpdate=function(e,t){var i,o=this.suggests["."+e];if(t){var s="";for(i in o.index=-1,o.searches[o.search])s+='<a href="#" id="searchForm-'+e+"-suggesta"+i+'" onclick="dwSearch.cookie(\'searchForm-'+e+"'); document.location.href = '"+o.searches[o.search][i][0]+"'; return false\">"+o.searches[o.search][i][1]+"</a><br/>";dwElement.setValue("searchForm-"+e+"-suggestions",s),dwElement.setDisplayStyle("searchForm-"+e+"-suggestions",""!==s)}if(o.searches[o.search])for(i=0;i<o.searches[o.search].length;i+=1)i===o.index?dwElement.addClass("searchForm-"+e+"-suggesta"+i,"selected"):dwElement.removeClass("searchForm-"+e+"-suggesta"+i,"selected")};var dwSearch=new dwSearch;function dwTemplate(){}dwTemplate.prototype.templates=[],dwTemplate.prototype.vars=[],dwTemplate.prototype.name="",dwTemplate.prototype.init=function(e,t){var i,o=0;for(this.templates[e]=[],this.vars[e]=[];""!==t;){if(-1===(i=t.indexOf("{"))){this.templates[e][o]=t,o+=1;break}if(0!==i&&(this.templates[e][o]=t.substring(0,i),t=t.substring(i,t.length),o+=1),-1===(i=t.indexOf("}")))break;this.vars[e][t.substring(1,i)]=o,this.templates[e][o]="",t=t.substring(i+1,t.length),o+=1}},dwTemplate.prototype.setTemplate=function(e){for(var t in this.name=e,this.vars[this.name])this.vars[this.name][t]&&(this.templates[this.name][this.vars[this.name][t]]="")},dwTemplate.prototype.set=function(e,t){this.templates[this.name][this.vars[this.name][e]]=t},dwTemplate.prototype.parse=function(){return this.templates[this.name].join("")};var dwTemplate=new dwTemplate;function dwPlayer(){}dwPlayer.prototype.size=[],dwPlayer.prototype.id=0,dwPlayer.prototype.load=function(e,t,i,o,s){(t=dwElement.get(t)).id||
1((d=document.createElement("div")).id="videoplayer"+this.id++,t.parentNode.replaceChild(d,t),t=d);var n,r="",a=t.id,d=t.offsetWidth||t.clientWidth||0;if(!0===e?(o=this.size[0],s=this.size[1]):this.size=[o,s],50<d&&(s=Math.ceil(d/o*s),o=d),!0===e)return d=dwElement.get(a+"A"),n=dwElement.get(a+"B"),d&&(d.width=o,d.height=s),n&&(n.width=o,n.height=s),!0;switch(i){case"iframe":r='<iframe id="'+a+'A" src="'+e.embed+'" width="'+o+'" height="'+s+'" frameborder="0" allowfullscreen></iframe>';break;case"mp4":r='<video id="'+a+'A" width="'+o+'" height="'+s+'" controls autoplay><source src="'+e.mp4+'" type="video/mp4"/><source src="'+e.ogv+'" type="video/ogg"/><source src="'+e.webm+'" type="video/webm"/><object id="'+a+'B" width="'+o+'" height="'+s+'" type="application/x-shockwave-flash" data="'+dwService.getStatic("flowplayer","swf")+'"><param name="movie" value="'+dwService.getStatic("flowplayer","swf")+"\"/><param name=\"flashvars\" value=\"config={'clip':{'url':'"+e.mp4+"','autoPlay':true,'autoBuffering':true,'scaling':'fit'},'plugins':{'controls':{'url':'"+dwService.getStatic("flowplayer-controls","swf")+'\'}}}"/><param name="wmode" value="transparent"/><param name="allowscriptaccess" value="always"/><param name="quality" value="high"/><param name="allowfullscreen" value="true"/><img src="'+e.image+'" width="'+o+'" height="'+s+'" alt="" title="..."/></object></video>';break;case"mp3":r='<audio id="'+a+'A" width="'+o+'" height="'+s+'" controls autoplay><source src="'+e.mp3+'" type="audio/mpeg"/><source src="'+e.ogg+'" type="audio/ogg"/><object id="'+a+'B" width="'+o+'" height="'+s+'" type="application/x-shockwave-flash" data="'+dwService.getStatic("flowplayer","swf")+'"><param name="movie" value="'+dwService.getStatic("flowplayer","swf")+"\"/><param name=\"flashvars\" value=\"config={'clip':{'url':'"+e.mp4+"','autoPlay':true,'autoBuffering':true,'scaling':'fit'},'plugins':{'audio':{'url': '"+dwService.getStatic("flowplayer-audio","swf")+"'},'controls':{'fullscreen': false,'height': 30,'autoHide': false,'url':'"+dwService.getStatic("flowplayer-controls","swf")+'\'}}}"/><param name="wmode" value="transparent"/><param name="allowscriptaccess" value="always"/><param name="quality" value="high"/><param name="allowfullscreen" value="true"/><img src="'+e.image+'" width="'+o+'" height="'+s+'" alt="" title="..."/></object></audio>';break;default:r='<object id="'+a+'A" width="'+o+'" height="'+s+'" type="application/x-shockwave-flash" data="'+e.embed+'"><param name="flashvars" value="autoplay=1"/><param name="movie" value="'+e.embed+'"/><param name="wmode" value="transparent"/><param name="allowscriptaccess" value="always"/><param name="quality" value="high"/><param name="allowfullscreen" value="true"/></object>'}dwElement.setValue(t,r),dwElement.addEvent(null,"resize",function(){dwPlayer.load(!0,t)})},dwPlayer.prototype.autoLaunch=function(e,t){return dwElement.setDisplayStyle("autovideo-block",!0),dwElement.setValue("autovideo-title",t.title),dwElement.setValue("autovideoId",t.id),dwPlayer.load({embed:t.embed},"autovideo-player","iframe",t.width,t.height),!1},dwPlayer.prototype.autoVote=function(i){dwAjax.message(i,"load"),dwAjax.post(dwService.getUrl("t","contents.autovideo")+"?"+dwForm.getQueryString(i),function(e,t){dwElement.setValue("autovideoSelect",""),dwAjax.postHandler(i,t)})};var dwPlayer=new dwPlayer;function dwBrowser(){!0!==this.getData()&&this.getType()}dwBrowser.prototype.files={first:{file:"/file-50.bw",size:5e4},next:{file:"/file-60.bw",size:6e4}},dwBrowser.prototype.speed="normal",dwBrowser.prototype.bandwidth="normal",dwBrowser.prototype.type="desktop",dwBrowser.prototype.getData=function(){var e=dwUtils.readCookie("dwBrowser"),t=0;return!!e&&!!(e=dwJson.parse(e))&&(e.type&&(this.type=e.type),e.speed&&(this.speed=e.speed,t+=1),e.bandwidth&&(this.bandwidth=e.bandwidth,t+=1),2===t)},dwBrowser.prototype.setData=function(e){var t=dwUtils.readCookie("dwBrowser");return(t=t&&dwJson.parse(t)||{})[e]=this[e],dwUtils.createCookie("dwBrowser",dwJson.stringify(t),7),!0},dwBrowser.prototype.getType=function(){var e=navigator.userAgent||navigator.vendor||opera;(/android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|meego.+mobile|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
1sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(this.type="mobile"),this.setData("type")},dwBrowser.prototype.getSpeed=function(e){for(var t=new Date,i=1e5*(e=e||1);0<i;--i)Math.exp(i);return t=(new Date).getTime()-t.getTime(),1===e&&t<20?this.getSpeed(10):((e=Math.ceil(1e4*e/t))<800?this.speed="slow":2e3<e&&(this.speed="fast"),this.setData("speed"),!0)},dwBrowser.prototype.getBandWidth=function(e){return dwAjax.get(this.files[e].file,this.computeBandWidth,{index:e,start:(new Date).getTime()},!0),!0},dwBrowser.prototype.computeBandWidth=function(e){if(dwBrowser.files[e.index].time=(new Date).getTime()-e.start,"first"===e.index)dwBrowser.getBandWidth("next");else{if(dwBrowser.files.first.time<dwBrowser.files.first.size/1e4||dwBrowser.files.next.time<dwBrowser.files.next.size/1e4)return!1;e={first:Math.ceil(dwBrowser.files.first.size/dwBrowser.files.first.time/1.024),next:Math.ceil(dwBrowser.files.next.size/dwBrowser.files.next.time/1.024),mean:Math.ceil((dwBrowser.files.next.size-dwBrowser.files.first.size)/(dwBrowser.files.next.time-dwBrowser.files.first.time)/1.024)},Math.abs(e.next-e.mean)/e.next<.3?e.computed=e.mean:e.computed=e.next,e.computed<100?dwBrowser.bandwidth="slow":300<e.computed&&(dwBrowser.bandwidth="fast"),dwBrowser.setData("bandwidth")}return!0};var dwBrowser=new dwBrowser;function dwFilter(){}dwFilter.prototype.one="",dwFilter.prototype.too="",dwFilter.prototype.dir="",dwFilter.prototype.init=function(e,t,i){this.dir=e,this.one=t,this.too=i},dwFilter.prototype.compare=function(){var e,t,i=[];if(!this.too)return!1;for(e=0;null!==(t=dwElement.get("dwFilters"+e));e+=1)if(!0===t.checked&&(i[i.length]=t.value,5===i.length))return alert(this.too),!1;return 0===i.length?(alert(this.one),!1):(i.sort(),document.location.href=this.dir+"index."+dwUtils.safe64Encode({c:i.join(";")})+".html",!0)},dwFilter.prototype.getUrl=function(e,t){var i,o,s=0,n=!1,r={},a={},d=!1;for(t=t||"",e=dwElement.get(e),s=0;s<e.elements.length;s+=1)n=e.elements[s],o=dwElement.getValue(n),n.name&&""!==n.name&&o&&(0===n.name.indexOf("f-")?(r[i=n.name.substr(2)]?r[i]+=","+o:r[i]=o,d=!0):a[n.name]=o);if(!0===d&&(a.f=JSON.stringify(r)),a=dwUtils.safe64Encode(a),""===t)return"./ajx."+a+".html";document.location=t.substring(0,t.lastIndexOf("/")+1)+"index."+a+".html"},dwFilter.prototype.setFilters=function(e){var t,i=document.location.pathname.match(/index\.([a-z0-9\-_]+)\.html/i),o="",s=[];for(o in e=dwElement.get(e),s=(s=null!==i?dwUtils.safe64Decode(i[1],!0):s).f?dwJson.parse(s.f):[])(t=e.elements["f-"+o]).name&&""!==t.name?dwElement.setValue(t,s[o]):dwElement.setValue("f-"+o+"-"+s[o],!0)};var dwFilter=new dwFilter,dwGeoip={running:!1,callbacks:[],handle:function(e){var t=dwUtils.readCookie("mygeoip");return(t=t&&dwJson.parse(t))&&t.country?e(t):(this.callbacks.push(e),this.running||(this.running=!0,dwAjax.get(dwService.getUrl("s","geoip.get"),function(e,t){dwGeoip.running=!1;var i=dwJson.parse(t);if(i&&i.country)for(dwUtils.createCookie("mygeoip",t,1,"/");0<dwGeoip.callbacks.length;)dwGeoip.callbacks.pop()(i)}))),!0}};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.