'; }, onComplete: function (transport) { $('div_data_loader').innerHTML = ''; MagicZoom_findZooms(); } }); } setcolor = function (obj, percentage, prop) { obj.style[prop] = "rgb(80%," + (100 - percentage) + "%," + (100 - percentage) + "%)"; } textCounter = function (field, counter, maxlimit, linecounter) { var fieldWidth = parseInt(field.offsetWidth); var charcnt = field.value.length; if (charcnt > maxlimit) { field.value = field.value.substring(0, maxlimit); } else { var percentage = parseInt(100 - ((maxlimit - charcnt) * 100) / maxlimit); document.getElementById(counter).style.width = parseInt((fieldWidth * percentage) / 100) + "px"; document.getElementById(counter).innerHTML = "Limit: " + percentage + "%" setcolor(document.getElementById(counter), percentage, "background-color"); } } /* Plugins chargés uniquement sur la fiche article - TODO : Dans l'idéal délocaliser dans les modules directement */ /* Copyright 2008 MagicToolBox.com. To use this code on your own site, visit http://magictoolbox.com */ // FICHE_ARTICLE_IMAGELOUPE eval(function (p, a, c, k, e, d) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) { d[e(c)] = k[c] || e(c) } k = [function (e) { return d[e] }]; e = function () { return '\\w+' }; c = 1 } ; while (c--) { if (k[c]) { p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]) } } return p }('a m=\'L\';a W=4s.4r.1M();9(W.2M("1H")!=-1){m=\'1H\'}D 9(W.2M("L")!=-1){m=\'L\'}D 9(W.2M("1L")!=-1){m=\'1L\'}D 9(W.2M("4u")!=-1){m=\'2b\'}a 1C=1r 4v();n 1n$(J){t b.4q(J)};n E(2k,2K){9(2k.3s){a y=2k.3s[2K];y=g(y)?y:\'I\'}D 9(1d.3u){a 33=b.4l.3u(2k,1Q);a y=33?33[2K]:1Q}D{y=2k.8[2K];y=g(y)?y:\'I\'}t y};n 2B(e){9(e.3E){a r=e.3E();a 2o=0;a 2n=0;9(b.17&&(b.17.1u||b.17.1s)){2n=b.17.1s;2o=b.17.1u}D 9(b.1e&&(b.1e.1u||b.1e.1s)){2n=b.1e.1s;2o=b.1e.1u}t{\'v\':r.v+2o,\'H\':r.H+2n,\'2N\':r.2N+2o,\'25\':r.25+2n}}}n 3c(e){a x=0;a y=0;9(m==\'L\'){y=e.2I;x=e.2J;9(b.17&&(b.17.1u||b.17.1s)){y=e.2I+b.17.1s;x=e.2J+b.17.1u}D 9(b.1e&&(b.1e.1u||b.1e.1s)){y=e.2I+b.1e.1s;x=e.2J+b.1e.1u}}D{y=e.2I;x=e.2J;y+=1d.4x;x+=1d.4G}t{\'x\':x,\'y\':y}}n 2Z(){t N};a 3b=n(){a 1g=1N;9(!1g[1])1g=[7,1g[0]];1o(a 2X 4F 1g[1])1g[0][2X]=1g[1][2X];t 1g[0]};n 1k(1P,1c,1T){9(m==\'2b\'||m==\'1H\'||m==\'1L\'){38{1P.4I(1c,1T,N)}2R(e){}}D 9(m==\'L\'){1P.4J("2Y"+1c,1T)}};n 3j(1P,1c,1T){9(m==\'2b\'||m==\'1H\'||m==\'1L\'){1P.4E(1c,1T,N)}D 9(m==\'L\'){1P.4z("2Y"+1c,1T)}};n 3y(){a 1R=[];1o(a i=0;i<1N.1m;i++)1o(a j=0;j<1N[i].1m;j++)1R.37(1N[i][j]);t 1R};n 3z(2P,3w){1R=[];1o(a i=3w;i<2P.1m;i++)1R.37(2P[i]);t 1R};n 1l(3h,3A){a 1g=3z(1N,2);t n(){3h[3A].4K(3h,3y(1g,1N))}};n 1O(e){9(m==\'2b\'||m==\'1L\'||m==\'1H\'){e.3x=K;e.45();e.43()}D 9(m==\'L\'){1d.1c.3x=K}};n Q(3B,3C,3G,3v,k){7.49=\'2.2\';7.2C=N;7.F=1n$(3B);7.l=1n$(3C);7.c=1n$(3G);7.o=1n$(3v);7.z=0;7.k=k;9(!7.k["1B"]){7.k["1B"]=""}7.1i=0;7.1a=0;7.P=0;7.S=0;7.U=20;7.4b=20;7.1q=0;7.1A=0;7.1y=\'\';7.O=1Q;9(7.k["1Y"]!=\'\'){7.O=b.18(\'2l\');7.O.8.q=\'1D\';7.O.8.1p=\'1K\';7.O.24=\'3Q\';7.O.8.2F=\'2G\';7.O.8.3p=\'4i\';7.O.3i=7.k["1Z"]+\'<4a/><11 4f="0" 3g="\'+7.k["1Z"]+\'" 1f="\'+7.k["1Y"]+\'"/>\';7.F.1b(7.O)}7.4g=\'\';7.2w=N;1C.37(7);7.2U=1l(7,"2s");7.39=1l(7,"1W")};Q.13.3K=n(){3j(1d.b,"1W",7.2U);3j(7.F,"1W",7.39);9(7.k["q"]=="23"){1n$(7.F.J+"-3R").29(7.c)}D{7.F.29(7.c)}7.F.29(7.z)};Q.13.2s=n(e){a r=3c(e);a x=r[\'x\'];a y=r[\'y\'];a X=0;a Z=0;a T=7.l;28(T&&T.1V!="3n"&&T.1V!="3m"){X+=T.3l;Z+=T.3k;T=T.3I}9(m==\'L\'){a r=2B(7.l);Z=r[\'v\'];X=r[\'H\']}Z+=g(E(7.l,\'2p\'));X+=g(E(7.l,\'3a\'));9(m!=\'L\'||!(b.1j&&\'2i\'==b.1j.1M())){Z+=g(E(7.l,\'2h\'));X+=g(E(7.l,\'2y\'))}9(x>g(Z+7.P)){7.2g();t N}9(xg(X+7.S)){7.2g();t N}9(y=7.P){7.1q=7.P-7.U/2}9((7.1A+7.12/2)>=7.S){7.1A=7.S-7.12/2}9((7.1q-7.U/2)<=0){7.1q=7.U/2}9((7.1A-7.12/2)<=0){7.1A=7.12/2}35(1l(7,"2x"),10)};Q.13.2x=n(){a 2f=7.1q-7.U/2;a 27=7.1A-7.12/2;a 2c=2f*(7.1i/7.P);a 2z=27*(7.1a/7.S);9(b.1e.5i==\'5o\'){2c=(7.1q+7.U/2-7.P)*(7.1i/7.P)}2f+=g(E(7.l,\'2p\'));27+=g(E(7.l,\'3a\'));9(m!=\'L\'||!(b.1j&&\'2i\'==b.1j.1M())){2f+=g(E(7.l,\'2h\'));27+=g(E(7.l,\'2y\'))}7.z.8.v=2f+\'u\';7.z.8.H=27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i=0;i<1U.1m;i++){9(/3Q/.3P(1U[i].24)){9(1U[i].3g!=\'\')1Z=1U[i].3g;1Y=1U[i].1f;16}}a h=1d.b.2V("A");1o(a i=0;i // MIT License // // Please retain this copyright header in all versions of the software ////////////////////////////////////////////////////////////////////////////////// // FICHE_ARTICLE_IMAGES_V12 (function ($) { function format(str) { for (var i = 1; i < arguments.length; i++) { str = str.replace('%' + (i - 1), arguments[i]) } return str } function CloudZoom(jWin, opts) { var sImg = $('img', jWin); var img1; var img2; var zoomDiv = null; var $mouseTrap = null; var lens = null; var $tint = null; var softFocus = null; var $ie6Fix = null; var zoomImage; var controlTimer = 0; var cw, ch; var destU = 0; var destV = 0; var currV = 0; var currU = 0; var filesLoaded = 0; var mx, my; var ctx = this, zw; setTimeout(function () { if ($mouseTrap === null) { var w = jWin.width(); jWin.parent().append(format('