(function(){MY_IMGSLIDE={};MY_IMGSLIDE.load=function(){C(window,'load',A);};function A(){var B=[['/laboutique/pubdjx/accessoires-piscine-boutique-desjoyaux.jpg',null,0,0,150,200],['/laboutique/pubdjx/PHOTO2.jpg',null,0,0,150,200],['/laboutique/pubdjx/PHOTO3.jpg',null,0,0,150,200],['/laboutique/pubdjx/PHOTO4.jpg',null,0,0,150,200],['/laboutique/pubdjx/PHOTO5.jpg',null,0,0,150,200]];H('animPres',B);}function C(D,E,F,G){if(D.addEventListener)D.addEventListener(E,F,G?G:false);else if(D.attachEvent)D.attachEvent('on'+E,F);else return false;}var J=60;var K=1;var L=30;var M=1;var N=0;var O=3000;var P=3000;var Q=0;var R=true;var S=0.6;var T=0;var U=null;var V=null;var W=null;var X=null;var Y;var Z=0,a=0;var b=0;var c=0;var d=0;var e=0;var f=0;var g=0;var h=false;var i=0;var j=0;var k=0;var l=0;var m=0;var n=0;var o=0;function H(I,B){if(k===0){k=false;if(document.all)k=true;}Y=B;var p=0;var D=document.getElementById(I);var q=D.childNodes;for(i=0,n=q.length;i<n;i++){if(typeof q[i].innerHTML!=='undefined'){if(p===0){U=q[i];p=1;}else{V=q[i];break;}}}W=document.createElement('img');W.style.zIndex=101;D.appendChild(W);if(V!==null){x(V,S);X=document.createElement('div');X.style.zIndex=102;x(X,0);D.appendChild(X);}d=4;U.style.top=Y[c][2]+'px';U.style.left=Y[c][3]+'px';U.style.width=Y[c][4]+'px';U.style.height=Y[c][5]+'px';if(N!==0)setTimeout(r,N);else r();}function r(){T=0;d+=2;if(d===Y[c].length){c++;if(h===false&&Y[c+1]){var s=new Image();s.src=Y[c+1][0];}if(c===Y.length){if(R===false)return false;c=0;h=true;}d=4;Z=Y[c][2];a=Y[c][3];W.style.top=U.style.top;W.style.left=U.style.left;W.style.width=U.style.width;W.style.height=U.style.height;W.src=U.src;x(W,1);U.style.top=Z+'px';U.style.left=a+'px';U.style.width=Y[c][4]+'px';U.style.height=Y[c][5]+'px';U.src=Y[c][0];if(V!==null){if((Y[c-1]&&Y[c-1][1]!==null)||(Y[Y.length-1]&&Y[Y.length-1][1]!==null)){x(X,S);X.innerHTML=V.innerHTML;X.style.display='block';}else X.style.display='none';if(Y[c][1]!==null){V.innerHTML=Y[c][1];V.style.display='block';}else{V.style.display='none';V.innerHTML='';}}g=100;b=M;S_TYPE_ACTION_IS='fade';i=L;if(O!==0)setTimeout(z,O);else{f=setInterval(AA,i);e=new Date().getTime();}}else{if(Y[c][d]==='top'){Z=parseInt(U.style.top);g=Y[c][d+1];S_TYPE_ACTION_IS='top';}else if(Y[c][d]==='left'){a=parseInt(U.style.left);g=Y[c][d+1];S_TYPE_ACTION_IS='left';}else{n=parseInt(U.clientWidth);o=parseInt(U.clientHeight);var t=n*Y[c][d+1]/100;var u=o*Y[c][d+1]/100;var v=Math.max(t,u);var w=Math.min(t,u);if(t<0){g=w;if(w===t){l=1;m=v/w;}else{l=v/w;m=1;}}else{g=v;if(v===t){l=1;m=w/v;}else{l=w/v;m=1;}}S_TYPE_ACTION_IS='redim';}if(g<0)b=K*-1;else b=K;i=J;if(d===6){if(P!==0)setTimeout(z,P);else{f=setInterval(AA,i);e=new Date().getTime();}}else{if(Q!==0)setTimeout(z,Q);else{f=setInterval(AA,i);e=new Date().getTime();}}}}function x(D,y){if(k===false)D.style.opacity=y;else D.style.filter='alpha(opacity='+(y*100)+')';}function z(){e=new Date().getTime();f=setInterval(AA,i);}function AA(){var AB=(new Date().getTime()-e)/i;if(AB===0||AB<1)AB=1;T=Math.round(T+(b*AB));if(Math.abs(T)>=Math.abs(g)){T=g;clearInterval(f);}if(S_TYPE_ACTION_IS==='top')U.style.top=Z+T+'px';else if(S_TYPE_ACTION_IS==='left')U.style.left=a+T+'px';else if(S_TYPE_ACTION_IS==='redim'){U.style.width=(n+l*T)+'px';U.style.height=(o+m*T)+'px';}else{x(W,1-(T/100));x(X,S-(T/100));}if(T===g)r();else e=new Date().getTime();}function AC(){if(Y[c][1]!==null){if(V===null){V=document.createElement('div');V.setAttribute('id','titreAcc');document.getElementById('animAcc').appendChild(V);}V.innerHTML=Y[c][1];V.style.visibility='visible';}}})();MY_IMGSLIDE.load();
