/* 05/12/2016 10:48 */
if("object"!=typeof loader)var loader=function(){function e(){b.length?s(b.shift()):0===T&&A.autoRelease&&(n("Queue is empty. Auto-releasing."),B.release())}function t(e){var t,n=C[e.domId];if(n&&n.length)v(n.shift(),e);else{for(;x.length>0;){t=x.pop();var r=t.id,o=d(r);if(o){var c=o.parentNode;o.id=r+"__tmp",c.insertBefore(t,o),c.removeChild(o)}}i(e)}}function n(e,t){if(A.debug&&window.console){var n="";if(t){n="#"+t.domId+" ";for(var r=t.depth;r--;)n+=" "}}}function r(e,t){var n;if(!t)return e;for(n in t)e[n]=t[n];return e}function i(t){t.success&&"function"==typeof t.success&&t.success.call(document.getElementById(t.domId)),e()}function o(e){var n,r,i=e.domId;n=h(loader.inputBuffer.join("")),loader.inputBuffer=[],r=p(n),C[i]?Array.prototype.unshift.apply(C[i],r):C[i]=r,t(e)}function c(e){return j[e]||(j[e]=document.getElementById(e))}function d(e){return B.orgGetElementById.call?B.orgGetElementById.call(document,e):B.orgGetElementById(e)}function u(e){function t(e,n){var r,i,o,c=n.children;if(c&&c.length)for(r=0,i=c.length;i>r;r++){if(o=c[r],o.id&&o.id===e)return o;if(o.children&&o.children.length){var d=t(e,o);if(d)return d}}return null}function n(e){var t,n,r;for(t=0,n=x.length;n>t;t++)if(r=x[t],r.id===e)return r}var r,i,o,c,u=d(e);return u?u:x.length&&(c=n(e))?c:loader.inputBuffer.length?(r=loader.inputBuffer.join(""),i=document.createDocumentFragment(),o=document.createElement("div"),o.innerHTML=r,i.appendChild(o),c=t(e,o),c&&x.push(c),c):null}function l(e){return 0===e.toLowerCase().indexOf("<script")}function a(e){e.func(),e.depth++,o(e)}function s(e){T++;var t=document.createElement("script");e.type&&(t.type=e.type),e.charset&&(t.charset=e.charset),e.language&&(t.language=e.language),f(e);var r=!1;t.onload=t.onreadystatechange=function(){T--,t.loaded=!0,r||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(r=!0,t.onload=t.onreadystatechange=null,n("onload "+e.src,e),o(e))},t.loaded=!1,t.src=e.src,e.depth++,O.insertBefore(t,O.firstChild),setTimeout(function(){},e.timeout)}function f(e,t,r){n(t?"Inline "+r+": "+t.replace("\n"," ").substr(0,30)+"...":"Inject "+e.src,e)}function p(e){return m(e,S)}function m(e,t){var n,r,i,o,c=0,d=[];if(W.splitWithCapturingParentheses)r=e.split(t);else{for(r=[];n=t.exec(e);)n.index>c&&d.push(e.slice(c,n.index)),n.length>1&&n.index<e.length&&Array.prototype.push.apply(r,n.slice(1)),c=t.lastIndex;c<e.length&&r.push(e.slice(c))}for(i=0,o=r.length;o>i;i+=1)""!==r[i]&&d.push(r[i]);return d}function h(e){return e.replace(/<noscript>[\s\S]*?<\/noscript>/gi,"")}function g(e){return e?e.replace(/^\s*|\s*$/gi,""):e}function v(e,n){if(l(e)){var r=document.createElement("div");r.innerHTML="dummy<div>"+e+"</div>";var i=r.children[0].children[0],d=i.getAttribute("language")||"javascript";if(i.src)n.src=i.src,n.charset=i.charset,n.language=d,n.type=i.type,s(n);else{var u=g(i.text);u&&(f(n,u,d),_(u,d)),o(n)}}else{var a=c(n.domId);if(!a)return;if(e=g(e)){var p=document.createElement("div");for(p.innerHTML=e;p.children.length>0;)a.appendChild(p.children[0])}t(n)}}function y(e){loader.inputBuffer.push(e),n("write: "+e)}function I(){return document}function w(){}var B,E=!1,b=[],C={},T=0,j={},x=[],S=/(<script[\s\S]*?<\/script>)/gim,A={autoRelease:!0,parallel:!0,debug:!1},L={charset:void 0,success:void 0,func:void 0,src:void 0,timeout:3e3},O=document.getElementsByTagName("head")[0]||document.documentElement,W={scriptOnloadTriggeredAccurately:!1,splitWithCapturingParentheses:"b"==="abc".split(/(b)/)[1]},_=function(){return window.execScript?function(e,t){window.execScript(e,t||"JavaScript")}:function(e,t){(!t||/^javascript/i.test(t))&&window.eval.call(window,e)}}();return B={hijack:function(e){E||(E=!0,r(A,e),A.parallel&&!W.scriptOnloadTriggeredAccurately&&(A.parallel=!1,n("Browsers onload is not reliable. Disabling parallel loading.")),document.write=document.writeln=y,document.open=I,document.close=w,document.getElementById=u)},release:function(){E&&(E=!1,document.write=this.orgWrite,document.writeln=this.orgWriteLn,document.open=this.orgOpen,document.close=this.orgClose,document.getElementById=this.orgGetElementById,j={})},handle:function(t){E||(n("Not in hijacked mode. Auto-hijacking."),this.hijack());var i=r({},L),o=r(i,t);if(o.depth=0,!o.domId){o.domId="loader_"+(new Date).getTime();var c=document.createElement("span");c.id=o.domId,document.body.appendChild(c)}return t.func?void a(o):void(A.parallel?setTimeout(function(){s(o)},1):(b.push(o),setTimeout(function(){0===T&&e()},1)))},loadScript:function(e,t,n){"string"!=typeof t&&(n=t,t=void 0),this.handle(r({src:e,domId:t},n))},runFunc:function(e,t,n){"string"!=typeof t&&(n=t,t=void 0),this.handle(r({domId:t,func:e},n))},orgGetElementById:document.getElementById,orgWrite:document.write,orgWriteLn:document.writeln,orgOpen:document.open,orgClose:document.close,_olt:1,_oltCallback:function(){W.scriptOnloadTriggeredAccurately=2===B._olt},inputBuffer:[]}}();
if("object"!=typeof bxurl)var bxurl={urlencode:function(e){return e=(e+"").toString(),encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/\+/g,"%2B")},http_build_query:function(e,t,r){var n,c,o=[],a=this,u=function(e,t){return t===!0?t="1":t===!1&&(t="0"),null!==t&&"undefined"!=typeof t&&"function"!=typeof t&&"object"!=typeof t?a.urlencode(e)+"="+a.urlencode(t):""};r||(r="&");for(c in e){n=e[c],t&&!isNaN(c)&&(c=String(t)+c);var i=u(c,n,r);""!==i&&o.push(i)}return o.join(r)},loadJS:function(e){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=e;var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r)}};
window._hunkal_c=window._hunkal_c||{getWindowDocuments:function(){var n=[].slice.call(document.querySelectorAll("iframe")),t=[];return n.forEach(function(n){try{t.push(n.contentWindow.document)}catch(e){t.push(null)}}),t=t.filter(function(n){return null!==n}),[window.document].concat(t)},addEventToDOMLoaded:function(){var n=arguments[0],t=arguments,e=_hunkal_c.getWindowDocuments();e.forEach(function(e){t[0]=e,"complete"===e.readyState?n.apply(null,t):e.addEventListener?e.addEventListener("DOMContentLoaded",function(){n.apply(null,t)},!1):e.attachEvent&&e.attachEvent("onDOMContentLoaded",function(){n.apply(null,t)})})},addEventToDOMModified:function(){var n=arguments[0],t=arguments,e=_hunkal_c.getWindowDocuments();e.forEach(function(e){e.addEventListener("DOMNodeInserted",function(){var o=e;t[0]=o,n.apply(null,t)},!1),e.addEventListener("DOMNodeRemoved",function(){var o=e;t[0]=o,n.apply(null,t)},!1)})},invokeTag:function(n,t,e){var o=document.location.protocol+"//"+n.host+"/"+n.action,a=bxurl.http_build_query(t);e?loader.loadScript(o+"?"+a):bxurl.loadJS(o+"?"+a)}};

window._hunkal=window._hunkal||{firstEvents:{},init:function(t,e,n){return document.querySelector?("blur"===t&&(this.firstEvents[t]=!0),_hunkal_c.addEventToDOMLoaded(this.setupEventsForDocument,t,e,n),void _hunkal_c.addEventToDOMModified(this.setupEventsForDocument,t,e,n)):!1},setupEventsForDocument:function(t,e,n,u){var a=[],o=a.slice.call(t.querySelectorAll(n));o.forEach(function(n){"undefined"!=typeof n.value&&"blur"===e&&_hunkal.firstEvents[e]&&(_hunkal.firstEvents[e]=!1,u({target:{value:n.value}})),t.addEventListener?n.addEventListener(e,u,!1):t.attachEvent&&n.attachEvent("on"+e,u)})}};
window._hunkal_EDP=window._hunkal_EDP||{init:function(a,b){if(!document.querySelector){return false}_hunkal_c.addEventToDOMLoaded(this.extract,a,b)},extract:function(a,d,e){for(var c in d){var b=a.querySelector(d[c].selector);if(b!==null){d[c].htmlObj=b}}e(d)},extractFromDOMObjects:function(c){var a={};for(var b in c){var d=c[b].extractor;var g=c[b].htmlObj;try{d.split(".").forEach(function(e){if(g&&g[e]){g=g[e]}else{throw"Non trouvé"}});a[b]=g.trim()}catch(f){}}a.referer=document.URL;return a}};
if("object"!=typeof coo)var coo={readCookie:function(){for(var t="__bx=",e=document.cookie.split(";"),o=0;o<e.length;o++){for(var r=e[o];" "==r.charAt(0);)r=r.substring(1,r.length);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return null},writeCookie:function(t){var e=new Date;e.setTime(e.getTime()+31536e6),expires="; expires="+e.toGMTString(),document.cookie="__bx="+t+expires+"; path=/"},readLocalStorage:function(){return this.testStorage()!==!1?localStorage.getItem("__bx"):void 0},writeLocalStorage:function(t){this.testStorage()!==!1&&localStorage.setItem("__bx",t)},testStorage:function(){try{return!!localStorage.getItem}catch(t){return!1}},getUserId:function(t){var e=this.readCookie(),o=this.readLocalStorage();return null==e&&null==o?(this.setUserId(t),t):(id=null,null==e&&null!=o?(this.writeCookie(o),id=o):null!=e&&null==o?(this.writeLocalStorage(e),id=e):null!=e&&null!=o&&(id=e),id)},setUserId:function(t){this.writeCookie(t),this.writeLocalStorage(t)}};
if(__bx instanceof Array)var bxTMP=__bx,__bx={isInit:!1,init:function(){if(0==this.isInit&&(this.isInit=!0,bxTMP.length>0))for(var n=bxTMP.length,i=0;n>i;i++)this.push(bxTMP[i])},push:function(n){var i=n[0];"function"==typeof __bx[i]&&(n.shift(),__bx[i].apply(__bx,n))},_run:function(n){var i={host:"me.hunkal.com",action:"t"},t={cxid:n,cu:encodeURI(document.location.href)};_hunkal_c.invokeTag(i,t)}};__bx.init();
