if(typeof(console)=="undefined"){var console={log:function(){}}}if(typeof(nb_key_maxi)=="undefined"){var nb_key_maxi=10}if(typeof(link_style)=="undefined"){var link_style=""}if(typeof(link_color)=="undefined"){var link_color="blue"}if(typeof(hover_color)=="undefined"){var hover_color="red"}var host=document.location.host.toString();if(host.indexOf("127.0.0.1")>=0){host="http://127.0.0.1:9011/"}else{host="http://empruntez.adfever.com/"}Array.prototype.has=function(b){var a=this.length;for(i=0;i<a;i++){if(this[i]==b){return i}}return false};function in_array(g,f,b){var e=false,c,a=!!b;for(c in f){if((a&&f[c]===g)||(!a&&f[c]==g)){e=true;break}}return e}function array_unique(g){var e="",c={},b={};var f="";c=g;var a=function(n,m,j){var l="";var h=!!j;for(l in m){if((h&&m[l]===n)||(!h&&m[l]==n)){return l}}return false};for(e in c){f=c[e];if(false===a(f,b)){b[e]=f}delete c[e]}return b}function getLength(c){var b=0;for(var a in c){if(a!=""){b+=1}}return b}function compare(g,e){var f=g.length;var c=e.length;if(f>c){return -1}else{if(f<c){return 1}else{return 0}}}function sort_words(f){var c=new Array();var e={};for(var a in f){c.push(a)}c.sort(compare);for(var b=0;b<c.length;b++){e[c[b]]=f[c[b]]}return e}var cur_str_chr;function json_parse(o){var e=0;var a=" ";function n(p){throw {name:"JSONError",message:p,at:e-1,text:o}}function h(){a=o.charAt(e);e+=1;return a}function l(){while(a!==""&&a<=" "){h()}}function m(){var r,v="",q,p;if(a=="'"||a=='"'){cur_str_chr=a;outer:while(h()){if(a==cur_str_chr){h();return v}else{if(a=="\\"){switch(h()){case"b":v+="\b";break;case"f":v+="\f";break;case"n":v+="\n";break;case"r":v+="\r";break;case"t":v+="\t";break;case"u":p=0;for(r=0;r<4;r+=1){q=parseInt(h(),16);if(!isFinite(q)){break outer}p=p*16+q}v+=String.fromCharCode(p);break;default:v+=a}}else{v+=a}}}}n("Bad string")}function j(){var p=[];if(a=="["){h();l();if(a=="]"){h();return p}while(a){p.push(c());l();if(a=="]"){h();return p}else{if(a!=","){break}}h();l()}}n("Bad array")}function f(){var p,q={};if(a=="{"){h();l();if(a=="}"){h();return q}while(a){p=m();l();if(a!=":"){break}h();q[p]=c();l();if(a=="}"){h();return q}else{if(a!=","){break}}h();l()}}n("Bad object")}function g(){var q="",p;if(a=="-"){q="-";h()}while(a>="0"&&a<="9"){q+=a;h()}if(a=="."){q+=".";while(h()&&a>="0"&&a<="9"){q+=a}}if(a=="e"||a=="E"){q+="e";h();if(a=="-"||a=="+"){q+=a;h()}while(a>="0"&&a<="9"){q+=a;h()}}if(a=="L"){h()}p=+q;if(!isFinite(p)){n("Bad number")}else{return p}}function b(){switch(a){case"t":if(h()=="r"&&h()=="u"&&h()=="e"){h();return true}break;case"f":if(h()=="a"&&h()=="l"&&h()=="s"&&h()=="e"){h();return false}break;case"n":if(h()=="u"&&h()=="l"&&h()=="l"){h();return null}break}n("Syntax error")}function c(){l();switch(a){case"{":return f();case"[":return j();case"'":case'"':return m();case"-":return g();default:return a>="0"&&a<="9"?g():b()}}return c()}function loadUrl(a,b){xmlhttp=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");xmlhttp.onreadystatechange=b;xmlhttp.open("GET",a);xmlhttp.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");xmlhttp.send(null)}var substitute={a:"[a|à|ä|â]",e:"[e|é|è|ê|ë]",i:"[i|ï|î]",o:"[o|ö|ô]",u:"[u|ü|û|ù]",c:"[c|ç]","à":"[a|à]","ä":"[a|ä]","â":"[a|â]","é":"[e|é]","è":"[e|è]","ë":"[e|ë]","ê":"[e|ê]","ï":"[i|ï]","î":"[i|î]","ö":"[o|ö]","ô":"[o|ô]","ü":"[u|ü]","û":"[û|u]","ù":"[ù|u]","ç":"[c|ç]"};var k_substitute=[];for(var k in substitute){k_substitute.push(k)}function makeRegexp(b){var f=b.split("");var e=[];for(var h in f){var a=f[h];if(in_array(a,k_substitute)){e.push(substitute[a])}else{e.push(a)}}for(var g in substitute){var a=f[h];b=b.replace(g,substitute[g])}return e.join("")}var getElementsByClassName=function(b,a,c){if(document.getElementsByClassName){getElementsByClassName=function(l,o,j){j=j||document;var e=j.getElementsByClassName(l),n=(o)?new RegExp("\\b"+o+"\\b","i"):null,f=[],h;for(var g=0,m=e.length;g<m;g+=1){h=e[g];if(!n||n.test(h.nodeName)){f.push(h)}}return f}}else{if(document.evaluate){getElementsByClassName=function(r,u,q){u=u||"*";q=q||document;var h=r.split(" "),s="",o="http://www.w3.org/1999/xhtml",t=(document.documentElement.namespaceURI===o)?o:null,l=[],f,g;for(var m=0,n=h.length;m<n;m+=1){s+="[contains(concat(' ', @class, ' '), ' "+h[m]+" ')]"}try{f=document.evaluate(".//"+u+s,q,t,0,null)}catch(p){f=document.evaluate(".//"+u+s,q,null,0,null)}while((g=f.iterateNext())){l.push(g)}return l}}else{getElementsByClassName=function(t,x,s){x=x||"*";s=s||document;var j=t.split(" "),v=[],e=(x==="*"&&s.all)?s.all:s.getElementsByTagName(x),r,o=[],q;for(var n=0,f=j.length;n<f;n+=1){v.push(new RegExp("(^|\\s)"+j[n]+"(\\s|$)"))}for(var h=0,u=e.length;h<u;h+=1){r=e[h];q=false;for(var g=0,p=v.length;g<p;g+=1){q=v[g].test(r.className);if(!q){break}}if(q){o.push(r)}}return o}}}return getElementsByClassName(b,a,c)};var QEvent=(function(){var r=[],u=document.attachEvent&&!document.addEventListener,j=!u&&navigator.taintEnabled&&!!document.getBoxObjectFor,s=u?"parentWindow":"defaultView",f="$QEVENTS";var c=function(x){return !!(x.addEventListener||x.attachEvent)};var e=function(x){return x[s]||(x.ownerDocument&&x.ownerDocument[s])||x};var b=function(x){return function(D,C,y){if(typeof C=="object"){for(var z in C){arguments.callee(D,z,C[z])}}else{var B=c(D),A=D[f]=D[f]||{},E=A[C]=A[C]||{listeners:[],domFixed:B&&[]};x(D,C,y,E,B)}}};var l=b(function(A,E,G,D,z){var F=D.listeners;for(var B=F.length;B--;){if(F[B]==G){return}}F.push(G);if(!z){return}var x=QEvent.DomEvents[E];if(x){if(x.onAdd){x.onAdd.call(A,G)}if(x.condition){var y=G;G=function(H){if(x.condition.call(A,H)){y.call(A,H)}}}E=x.base||E}if(!E){return}var C=e(A);D.domFixed.push(function(H){H=H||C.event;if(H){H=new n(H,C)}G.call(A,H)});if(D.handler){return}h(A,E,D.handler=function(J){for(var I=0,H=D.domFixed.length;I<H;I++){D.domFixed[I](J)}})});var v=b(function(A,D,F,C,y){var E=C.listeners;for(var B=E.length;B--;){if(E[B]===F){E.splice(B,1);if(y){var x=QEvent.DomEvents[D];if(x&&x.onRemove){x.onRemove.call(A,F)}var z=C.domFixed;z.splice(B,1);if(!z.length){p(A,D,C.handler)}}break}}});var t=b(function(C,B,y,D,A){if(!y||typeof y.constructor!=Array){y=[y]}for(var z=0,x=D.listeners.length;z<x;z++){D.listeners[z].apply(C,y)}});var q=b(function(A,z,y,B,x){l(A,z,function(){v(A,z,arguments.callee);y.apply(A,arguments)})});var o=b(function(B,A,z,C,y,x){(x?l:v)(B,A,z)});var h=function(A,z,y){if(z=="unload"){var x=y;y=function(){p(A,"unload",y);x()}}else{r.push([A,z,y])}if(A.addEventListener){A.addEventListener(z,y,QEvent.useCapture[z])}else{A.attachEvent("on"+z,y)}};var p=function(A,z,y,x){if(z!="unload"){m(A,z,y)}if(A.removeEventListener){A.removeEventListener(z,y,QEvent.useCapture[z])}else{A.detachEvent("on"+z,y)}};function n(x,D){var K=D.document,I=x.type,F=x.target||x.srcElement;while(F&&F.nodeType==3){F=F.parentNode}if(/key/.test(I)){var y=x.which||x.keyCode,N=QEvent.DomKeys[y];if(I=="keydown"){var A=y-111;if(A>0&&A<13){N="f"+A}}N=N||String.fromCharCode(y).toLowerCase()}else{if(/(click|mouse|menu)/i.test(I)){var J=!K.compatMode||K.compatMode=="CSS1Compat";K=J?K.documentElement:K.body;var H={x:x.pageX||x.clientX+K.scrollLeft,y:x.pageY||x.clientY+K.scrollTop};var z={x:(x.pageX)?x.pageX-D.pageXOffset:x.clientX,y:(x.pageY)?x.pageY-D.pageYOffset:x.clientY};if(u&&J){var M=K.clientLeft,B=K.clientTop;H.x-=M,H.y-=B;z.x-=M,z.y-=B}if(/DOMMouseScroll|mousewheel/.test(I)){var G=(x.wheelDelta)?x.wheelDelta/120:-(x.detail||0)/3}var C=x.which==3||x.button==2,L=null;if(I.match(/over|out/)){switch(I){case"mouseover":L=x.relatedTarget||x.fromElement;break;case"mouseout":L=x.relatedTarget||x.toElement}if(j){try{while(L&&L.nodeType==3){L=L.parentNode}}catch(E){L=false}}}}}this.event=x,this.type=I;this.page=H,this.client=z,this.rightClick=C;this.wheel=G;this.relatedTarget=L,this.target=F;this.code=y,this.key=N;this.shift=x.shiftKey,this.control=x.ctrlKey,this.alt=x.altKey,this.meta=x.metaKey}function a(y){for(var x in y){n.prototype[x]=y[x]}}function g(){for(var x=r.length;x--;){var z=r[x],y=z[0];p.apply(null,z);y[f]=null;if(y.clearAttributes){y.clearAttributes()}}r=null}function m(A,z,y){for(var x=r.length,B;x--;){B=r[x];if(B[0]==A&&B[1]==z&&B[2]==y){r.splice(x,1);break}}}if(u){h(window,"unload",g)}return{version:"0.95",add:l,remove:v,fire:t,addOnce:q,toggle:o,addDom:h,removeDom:p,isIe:u,isGecko:j,extendDomEvent:a,useCapture:{blur:true,focus:true}}})();(function(){function b(c,e){(b=c.contains?function(f,g){return f!=g&&f.contains(g)}:function(f,g){return !!(f.compareDocumentPosition(g)&16)})(c,e)}function a(f){var c=f.relatedTarget;if(c==undefined){return true}if(c===false){return false}return(this.nodeType!=9&&c!=this&&c.prefix!="xul"&&!b(this,c))}QEvent.DomEvents={keyenter:{base:"keyup",condition:function(c){return c.key=="enter"}},mouseOverOut:{onAdd:function(c){QEvent.add(this,{mouseover:c,mouseout:c})},onRemove:function(c){QEvent.remove(this,{mouseover:c,mouseout:c})}},mouseenter:{base:"mouseover",condition:a},mouseleave:{base:"mouseout",condition:a},mousehover:{onAdd:function(c){QEvent.add(this,{mouseenter:c,mouseleave:c})},onRemove:function(c){QEvent.remove(this,{mouseenter:c,mouseleave:c})}},mousewheel:{base:QEvent.isGecko?"DOMMouseScroll":"mousewheel"},domready:{onAdd:function(e){var g=QEvent.DomEvents.domready;if(g.fired){e.call(this)}else{if(!g.registered){g.registered=true;var c=function(){if(g.fired){return}g.fired=true;QEvent.fire(window,"domready");QEvent.fire(document,"domready")};var f=this.nodeType==9?this:this.document;if(QEvent.isIe){setTimeout(function(){try{f.documentElement.doScroll("left")}catch(h){setTimeout(arguments.callee,20);return}c()},20)}else{QEvent.addDom(f,"DOMContentLoaded",c)}}}}},beforeunload:{onAdd:function(c){window.onbeforeunload=function(){return c()};QEvent.add(window,"unload",function(){window.onbeforeunload=null})}}}})();(function(){var b=top.document;var a=function(g,f){var c=g.target;while(c&&c.nodeType){if(f==c){return false}c=c.parentNode}return true};QEvent.DomEvents.clickout={onAdd:function(e){var c=this;QEvent.add(b,"click",e.$QEventClickout=function(f){if(a(f,c)){e()}})},onRemove:function(c){QEvent.remove(b,"click",c.$QEventClickout)}}})();(function(b,c){var a=QEvent;a.DomEvents[b]={onAdd:function(e){a.add(this,c,e)},onRemove:function(e){a.remove(this,c,e)}};return arguments.callee})("focus",QEvent.isIe?"focusin":"focus")("blur",QEvent.isIe?"focusout":"blur");QEvent.DomKeys={13:"enter",38:"up",40:"down",37:"left",39:"right",27:"esc",32:"space",8:"backspace",9:"tab",46:"delete"};QEvent.extendDomEvent({stop:function(){return this.stopPropagation().preventDefault()},stopPropagation:function(){if(this.event.stopPropagation){this.event.stopPropagation()}else{this.event.cancelBubble=true}return this},preventDefault:function(){if(this.event.preventDefault){this.event.preventDefault()}else{this.event.returnValue=false}return this},isOver:function(){return this.type=="mouseover"}});var blank_regexp=/\s+/g;var nointext=/\bnointext\b/;var timeDiff={setStartTime:function(){d=new Date();time=d.getTime()},getDiff:function(){d=new Date();return(d.getTime()-time)}};var excludeNodes=["ul","li","a","b","h1","h2","h3","form","input","select","textarea","iframe","script","img","object","embed","style"];if(typeof(exclude)!="undefined"){for(var i=0;i<exclude.length;i++){excludeNodes.push(exclude[i])}}QEvent.add(window,"domready",function(){var a=document.createElement("script");a.src=host+"intext?id=1&sid="+sid+"&url="+encodeURI(document.location);a.src+="&callback=processAfter";a.type="text/javascript";document.body.appendChild(a)});function highlightWord(e,h){if(nb_key_maxi===0){return}nb_key_maxi=10;if(e.tagName&&excludeNodes.has(e.tagName.toLowerCase())){return}if(e.hasChildNodes){var o;for(o=0;o<e.childNodes.length;o++){highlightWord(e.childNodes[o],h)}}if(e.nodeType==3){for(var f=0;f<h.length;f++){var a=h[f];tempNodeVal=e.nodeValue.toLowerCase().replace(blank_regexp," ");tempWordVal=a.lower;var n=a.regexp;if(tempNodeVal.search(n)!=-1){nb_key_maxi-=1;pn=e.parentNode;if(!pn){return}checkn=pn;while(checkn.nodeType!=9&&checkn.nodeName.toLowerCase()!="body"){if(checkn.className.match(nointext)){return}checkn=checkn.parentNode}if(pn.className!="adf_intext"){g=e.nodeValue.replace(blank_regexp," ");var g=e.nodeValue.replace(blank_regexp," ");matches=n.exec(tempNodeVal);if(matches&&typeof(matches)=="object"){var c=matches.index;var j=document.createTextNode(g.substr(0,c));var m=g.substr(c,matches[0].length);after=document.createTextNode(g.substr(c+matches[0].length));hiwordtext=document.createTextNode(m);hiword=document.createElement("a");hiword.setAttribute("class","adf");if(a.url.indexOf("?")>0){hiword.href=a.url+"&alea="+Number(new Date())}else{hiword.href=a.url+"?alea="+Number(new Date())}if(link_style&&link_style=="bold"){hiword.style.textDecoration="none";hiword.style.borderBottom="2px solid"}if(link_style&&link_style=="dotted"){hiword.style.textDecoration="none";hiword.style.borderBottom="1px dotted"}if(link_style&&link_style=="dashed"){hiword.style.textDecoration="none";hiword.style.borderBottom="2px dashed"}if(link_style&&link_style=="double"){hiword.style.textDecoration="underline";hiword.style.borderBottom="1px solid";hiword.style.paddingBottom="2px"}if(link_color){hiword.style.color=link_color}if(hover_color){hiword.style.hover=hover_color}hiword.onmouseover=function(){this.style.color=hover_color};hiword.onmouseout=function(){this.style.color=link_color};hiword.style.zIndex=9999;hiword.style.fontWeight="bold";var b=new RegExp("\\s","g");hiword.setAttribute("rel","#adf_"+a.title.replace(b,"_"));hiword.appendChild(hiwordtext);var l=document.createElement("span");l.appendChild(j);l.appendChild(hiword);l.appendChild(after);pn.replaceChild(l,e)}}}}}}function highlightWord2(e,j){if(nb_key_maxi===0){return}for(var f=0;f<j.length;f++){var a=j[f];if(e.nodeType==3){tempNodeVal=e.nodeValue.toLowerCase().replace(blank_regexp," ");tempWordVal=a.lower;var o=a.regexp;if(tempNodeVal.search(o)!=-1){nb_key_maxi-=1;pn=e.parentNode;checkn=pn;while(checkn.nodeType!=9&&checkn.nodeName.toLowerCase()!="body"){if(checkn.className.match(nointext)){return}checkn=checkn.parentNode}if(pn.className!="adf_intext"){var g;var h=e.nodeValue.replace(blank_regexp," ");g=o.exec(tempNodeVal);var c=g.index;var l=document.createTextNode(h.substr(0,c));var n=h.substr(c,o.lastIndex-c);after=document.createTextNode(h.substr(o.lastIndex));hiwordtext=document.createTextNode(n);hiword=document.createElement("a");if(a.url.indexOf("?")>0){hiword.href=a.url+"&alea="+Number(new Date())}else{hiword.href=a.url+"?alea="+Number(new Date())}if(link_style&&link_style=="bold"){hiword.style.textDecoration="none";hiword.style.borderBottom="2px solid"}if(link_style&&link_style=="dotted"){hiword.style.textDecoration="none";hiword.style.borderBottom="1px dotted"}if(link_style&&link_style=="dashed"){hiword.style.textDecoration="none";hiword.style.borderBottom="2px dashed"}if(link_style&&link_style=="double"){hiword.style.textDecoration="underline";hiword.style.borderBottom="1px solid";hiword.style.paddingBottom="2px"}if(link_color){hiword.style.color=link_color}if(hover_color){hiword.style.hover=hover_color}hiword.onmouseover=function(){this.style.color=hover_color};hiword.onmouseout=function(){this.style.color=link_color};var b=new RegExp("\\s","g");hiword.setAttribute("rel","#adf_"+a.title.replace(b,"_"));hiword.style.cssFloat=hiword.style.styleFloat="none";hiword.appendChild(hiwordtext);var m=document.createElement("span");m.appendChild(l);m.appendChild(hiword);m.appendChild(after);pn.replaceChild(m,e)}}}}}function preSelectWords(l){var g=[];for(w in l){g.push("\\b"+l[w].title+"\\b")}var b=new RegExp("("+g.join("|")+")","gmi");var a=getElementsByClassName("zoneApple");if(a.length<1){a=document.getElementsByTagName("body")}var m={};for(var f=0;f<a.length;f++){try{var n=a[f].innerHTML.match(b);if(n){for(var c=0;f<n.length;c++){m[n[c].toLowerCase()]=l[n[c].toLowerCase()]}}}catch(h){}}return m}function adfHighlight(e){var f=[];for(word in e){if(e[word]&&e[word]!=""){var b=e[word]}b.lower=b.title.toLowerCase();b.regexp=new RegExp("\\s"+makeRegexp(b.lower)+"\\s","ig");f.push(b)}var c=getElementsByClassName("contentpaneopen");if(c.length<1){c=document.getElementsByTagName("body")}for(var a=0;a<c.length;a++){highlightWord(c[a],f)}}function processAfter(b){if(b.items){var c=b.items;var a=getLength(c);if(a>5){c=preSelectWords(c)}c=sort_words(c);a=getLength(c);if(a>0){adfHighlight(c)}}};