{Ninja-Shell}
Home
Info
Upload
Command
View /etc/passwd
cPanel Reset Password
Filename: /var/www/ceafasia//themes/6//js-image-slider.js
var sliderOptions= { sliderId: "slider", effect: "series1", effectRandom: false, pauseTime: 2600, transitionTime: 500, slices: 12, boxes: 8, hoverPause: true, autoAdvance: true, captionOpacity: 0.3, captionEffect: "fade", thumbnailsWrapperId: "thumbs", m: false, license: "mylicense" }; var imageSlider=new mcImgSlider(sliderOptions); /* Menucool Javascript Image Slider v2012.11.18. Copyright www.menucool.com */ function mcImgSlider(j){var K=function(a){return document.getElementById(a)},d="length",M=function(e){var a=e.childNodes,c=[];if(a)for(var b=0,f=a[d];b<f;b++)a[b].nodeType==1&&c.push(a[b]);return c},n="className",p="getAttribute",e="opacity",R=function(a,b){return a.getElementsByTagName(b)},hb=function(a){for(var c,e,b=a[d];b;c=parseInt(Math.random()*b),e=a[--b],a[b]=a[c],a[c]=e);return a},gb=function(a,c,b){if(a.addEventListener)a.addEventListener(c,b,false);else a.attachEvent&&a.attachEvent("on"+c,b)},jb=document,fb=function(c,a,b){return b?c.substring(a,b):c.substring(a)},c="style",Q="display",z="visibility",g="width",v="height",O="top",J="background",t="marginLeft",E="appendChild",y="parentNode",F="nodeName",x=function(){this.d=[];this.b=null;this.c()};function Z(){var c=50,a=navigator.userAgent,b;if((b=a.indexOf("MSIE "))!=-1)c=parseInt(a.substring(b+5,a.indexOf(".",b)));if(a.indexOf("Safari")!=-1&&a.indexOf("Chrome")==-1)c=300;return c}var cb=Z()<9,D=function(a,b){if(a){a.o=b;if(cb)a[c].filter="alpha(opacity="+b*100+")";else a[c][e]=b}};x.a={f:function(a){return-Math.cos(a*Math.PI)/2+.5},g:function(a){return a},h:function(b,a){return Math.pow(b,a*2)},j:function(b,a){return 1-Math.pow(1-b,a*2)}};x.prototype={k:{c:j.transitionTime,a:function(){},b:x.a.f,d:1},c:function(){for(var b=["webkit","ms","o"],a=0;a<b[d]&&!window.requestAnimationFrame;++a){window.requestAnimationFrame=window[b[a]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[b[a]+"CancelAnimationFrame"]||window[b[a]+"CancelRequestAnimationFrame"]}this.e=!!window.requestAnimationFrame},m:function(i,d,h,c){for(var b=[],j=h-d,k=h>d?1:-1,g=Math.ceil(60*c.c/1e3),a,f=1;f<=g;f++){a=d+c.b(f/g,c.d)*j;if(i!=e)a=Math.round(a);b.push(a)}b.index=0;return b},n:function(){this.b==null&&this.p()},p:function(){this.q();var a=this;this.b=this.e?window.requestAnimationFrame(function(){a.p()}):window.setInterval(function(){a.q()},15)},q:function(){var a=this.d[d];if(a){for(var c=0;c<a;c++)this.o(this.d[c]);while(a--){var b=this.d[a];if(b.d.index==b.d[d]){b.c();this.d.splice(a,1)}}}else{if(this.e&&window.cancelAnimationFrame)window.cancelAnimationFrame(this.b);else window.clearInterval(this.b);this.b=null}},o:function(a){if(a.d.index<a.d[d]){var f=a.b,b=a.d[a.d.index];if(a.b==e){if(cb){f="filter";b="alpha(opacity="+Math.round(b*100)+")"}}else b+="px";a.a[c][f]=b;a.d.index++}},r:function(e,b,d,f,a){a=this.s(this.k,a);var c=this.m(b,d,f,a);this.d.push({a:e,b:b,d:c,c:a.a});this.n()},s:function(c,b){b=b||{};var a,d={};for(a in c)d[a]=b[a]!==undefined?b[a]:c[a];return d}};var h=new x,b={a:0,e:"",d:0,c:0,b:0},a,f,s,w,L,G,N,k,m,P,C,r,A,B,q,T,I,o,l=null,X=function(b){if(b=="series1")a.a=[6,8,15,2,5,14,13,3,7,4,14,1,13,15];else if(b=="series2")a.a=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17];else a.a=b.split(/\W+/);a.a.p=j.effectRandom?-1:a.a[d]==1?0:1},S=function(){a={b:j.pauseTime,c:j.transitionTime,f:j.slices,g:j.boxes,O0:j.license||"5432",h:j.hoverPause,i:j.autoAdvance,j:j.captionOpacity,k:j.captionEffect=="none"?0:j.captionEffect=="fade"?1:2,l:j.thumbnailsWrapperId,Ob:function(){typeof beforeSlideChange!=="undefined"&&beforeSlideChange(arguments)},Oa:function(){typeof afterSlideChange!=="undefined"&&afterSlideChange(arguments)}};if(f)a.m=Math.ceil(f.offsetHeight*a.g/f.offsetWidth);X(j.effect);a.n=function(){var b;if(a.a.p==-1)b=a.a[Math.floor(Math.random()*a.a[d])];else{b=a.a[a.a.p];a.a.p++;if(a.a.p>=a.a[d])a.a.p=0}if(b<1||b>17)b=15;return b}},lb=["$1$2$3","$1$2$3","$1$24","$1$23"],u=[];function db(){var f;if(a.l)f=K(a.l);if(f)for(var g=f.childNodes,e=0;e<g[d];e++)g[e][n]=="thumb"&&u.push(g[e]);var c=u[d];if(c){while(c--){u[c].on=0;u[c].i=c;u[c].onclick=function(){l.y(this.i)};u[c].onmouseover=function(){this.on=1;this[n]="thumb thumb-on"};u[c].onmouseout=function(){this.on=0;this[n]=this.i==b.a?"thumb thumb-on":"thumb"}}Y(0)}}function Y(b){var a=u[d];if(a)while(a--)u[a][n]=a!=b&&u[a].on==0?"thumb":"thumb thumb-on"}function eb(b){var a=[],c=b[d];while(c--)a.push(String.fromCharCode(b[c]));return a.join("")}var U=function(a,f,j,c,b,d,i){setTimeout(function(){if(f&&j==f-1){var i={};i.a=function(){l.o()};for(var k in a)i[k]=a[k]}else i=a;typeof b[g]!=="undefined"&&h.r(c,"width",b[g],d[g],a);typeof b[v]!=="undefined"&&h.r(c,"height",b[v],d[v],a);h.r(c,e,b[e],d[e],i)},i)},ab=function(a){f=a;this.b=0;this.c()},kb=[/(?:.*\.)?(\w)([\w\-])[^.]*(\w)\.[^.]+$/,/.*([\w\-])\.(\w)(\w)\.[^.]+$/,/^(?:.*\.)?(\w)(\w)\.[^.]+$/,/.*([\w\-])([\w\-])\.com\.[^.]+$/],H=function(b){var a=document.createElement("div");a[n]=b;return a};ab.prototype={c:function(){s=f.offsetWidth;w=f.offsetHeight;o=M(f);var k=o[d];while(k--){var g=o[k],e=null;if(g[F]!="IMG"){if(g[F]=="A"){e=g;e[c][Q]="none";var m=e[n]?" "+e[n]:"";e[n]="imgLink"+m;var r=this.z(e),j=e[p]("href");if(r&&typeof McVideo!="undefined"&&j&&j.indexOf("http")!=-1){e.onclick=function(){return this[p]("autoPlayVideo")=="true"?false:l.d(this)};McVideo.register(e,this)}}g=R(g,"img")[0]}g[c][Q]="none";b.d++}a.m=Math.ceil(w*a.g/s);if(o[b.a][F]=="IMG")b.e=o[b.a];else b.e=R(o[b.a],"img")[0];if(o[b.a][F]=="A")o[b.a][c][Q]="block";f[c][J]='url("'+b.e[p]("src")+'") no-repeat';this.i();L=this.k();var h=this.v(),i=b.e[y];if(this.z(i)&&i[p]("autoPlayVideo")=="true")this.d(i);else if(a.i&&b.d>1)q=setTimeout(function(){h.y(h.n(1),0,1)},a.b+a.c);if(a.h){f.onmouseover=function(){if(b.b!=2){b.b=1;clearTimeout(q);q=null}};f.onmouseout=function(){if(b.b!=2){b.b=0;if(q==null&&!b.c&&a.i)q=setTimeout(function(){h.y(h.n(b.a+1),0,1)},a.b/2)}}}if(Z()==300)f[c]["-webkit-transform"]="translate3d(0,0,0)"},d:function(c){var a=McVideo.play(c,s,w);if(a)b.b=2;return!this.b},f:function(){I=H("navBulletsWrapper");for(var e=[],a=0;a<b.d;a++)e.push("<div rel='"+a+"'></div>");I.innerHTML=e.join("");for(var c=M(I),a=0;a<c[d];a++){if(a==b.a)c[a][n]="active";c[a].onclick=function(){l.y(parseInt(this[p]("rel")))}}f[E](I)},g:function(){var d=M(I),a=b.d;while(a--){if(a==b.a)d[a][n]="active";else d[a][n]="";if(o[a][F]=="A")o[a][c][Q]=a==b.a?"block":"none"}},h:function(a,e){var c=function(b){var a=b.charCodeAt(0).toString();return a.substring(a[d]-1)},b=e.replace(kb[a-2],lb[a-2]).split("");return"b"+a+b[1]+c(b[0])+c(b[2])},i:function(){G=H("mc-caption");N=H("mc-caption");k=H("mc-caption-bg");D(k,0);k[E](N);m=H("mc-caption-bg2");m[E](G);D(m,0);m[c][z]=k[c][z]=N[c][z]="hidden";f[E](k);f[E](m);P=[k.offsetLeft,k.offsetTop,G.offsetWidth];G[c][g]=N[c][g]=G.offsetWidth+"px";this.j()},j:function(){if(a.k==2){C=A={opacity:0,width:0,marginLeft:Math.round(P[2]/2)};r={opacity:1,width:P[2],marginLeft:0};B={opacity:a.j,width:P[2],marginLeft:0}}else if(a.k==1){C=A={opacity:0};r={opacity:1};B={opacity:a.j}}},k:function(){var a=b.e[p]("alt");if(a&&a.substr(0,1)=="#"){var c=K(a.substring(1));a=c?c.innerHTML:""}this.l();return a},l:function(){var f=1;if(G.innerHTML[d]>1)if(!a.k)k[c][z]=m[c][z]="hidden";else{f=0;var b={c:a.c*.3,b:a.k==1?x.a.f:x.a.h,d:a.k==1?0:2},i=b;i.a=function(){k[c][z]=m[c][z]="hidden";l.m()};if(typeof r[t]!=="undefined"){h.r(m,"width",r[g],C[g],b);h.r(k,"width",B[g],A[g],b);h.r(m,"marginLeft",r[t],C[t],b);h.r(k,"marginLeft",B[t],A[t],b)}if(typeof r[e]!=="undefined"){h.r(m,e,r[e],C[e],b);h.r(k,e,B[e],A[e],i)}}f&&setTimeout(function(){l.m()},a.c*.3)},m:function(){N.innerHTML=G.innerHTML=L;if(L){k[c][z]=m[c][z]="visible";if(a.k){var d=a.c*a.k;if(d>1e3)d=1e3;var b={c:d,b:a.k==1?x.a.g:x.a.j,d:a.k==1?0:2};if(typeof r[t]!=="undefined"){h.r(m,"width",C[g],r[g],b);h.r(k,"width",A[g],B[g],b);h.r(m,"marginLeft",C[t],r[t],b);h.r(k,"marginLeft",A[t],B[t],b)}if(typeof r[e]!=="undefined"){h.r(m,e,C[e],r[e],b);h.r(k,e,A[e],B[e],b)}}else{D(m,1);D(k,a.j)}}},a:function(a){return a.replace(/(?:.*\.)?(\w)([\w\-])?[^.]*(\w)\.[^.]*$/,"$1$3$2")},o:function(){b.c=0;clearTimeout(q);q=null;f[c][J]='url("'+b.e[p]("src")+'") no-repeat';var e=this,d=b.e[y];if(this.z(d)&&d[p]("autoPlayVideo")=="true")this.d(d);else if(!b.b&&a.i)q=setTimeout(function(){e.y(e.n(b.a+1),0,1)},a.b);a.Oa.call(this,b.a,b.e)},p:function(h){b.c=1;if(o[b.a][F]=="IMG")b.e=o[b.a];else b.e=R(o[b.a],"img")[0];this.g();clearTimeout(T);L=this.k();var g=R(f,"div");i=g[d];while(i--)if(g[i][n]=="mcSlc"||g[i][n]=="mcBox"){var j=f.removeChild(g[i]);delete j}var c=h?h:a.n();a.Ob.apply(this,[b.a,b.e,L,c]);Y(b.a);var e=c<14?this.w(c):this.x();if(c<9||c==15){if(c%2)e=e.reverse()}else if(c<14)e=e[0];if(c<9)this.q(e,c);else if(c<13)this.r(e,c);else if(c==13)this.s(e);else if(c<16)this.t(e,c);else this.u(e,c)},q:function(b,f){for(var h=0,i=f<7?{height:0,opacity:-.4}:{width:0,opacity:0},k={height:w,opacity:1},a=0,j=b[d];a<j;a++){if(f<3)b[a][c].bottom="0";else if(f<5)b[a][c][O]="0";else if(f<7){b[a][c][a%2?"bottom":"top"]="0";i[e]=-.2}else{k={width:b[a].offsetWidth,opacity:1};b[a][c][g]=b[a][c][O]="0";b[a][c][v]=w+"px"}U({},j,a,b[a],i,k,h);h+=50}},r:function(d,b){d[c][g]=b<11?"0px":s+"px";d[c][v]=b<11?w+"px":"0px";D(d,1);if(b<11)d[c][O]="0";if(b==9){d[c].left="auto";d[c].right="0px"}else if(b>10)d[c][b==11?"bottom":"top"]="0";if(b<11)var e=0,f=s;else{e=0;f=w}var i={b:x.a.j,c:a.c*1.6,a:function(){l.o()}};h.r(d,b<11?"width":"height",e,f,i)},s:function(b){b[c][O]="0";b[c][g]=s+"px";b[c][v]=w+"px";var d={c:a.c*1.6,a:function(){l.o()}};h.r(b,e,0,1,d)},t:function(b){var s=a.g*a.m,p=0,n=0,j=0,h=0,f=[];f[0]=[];for(var e=0,o=b[d];e<o;e++){b[e][c][g]=b[e][c][v]="0px";f[j][h]=b[e];h++;if(h==a.g){j++;h=0;f[j]=[]}}for(var q={c:a.c/1.3},k=0,o=a.g*2;k<o;k++){for(var i=k,l=0;l<a.m;l++){if(i>=0&&i<a.g){var m=f[l][i];U(q,b[d],p,m,{width:0,height:0,opacity:0},{width:m.w,height:m.h,opacity:1},n);p++}i--}n+=100}},u:function(a,j){a=hb(a);for(var f=0,b=0,k=a[d];b<k;b++){var e=a[b];if(j==16){a[b][c][g]=a[b][c][v]="0px";var h={width:0,height:0,opacity:0},i={width:e.w,height:e.h,opacity:1}}else{h={opacity:0};i={opacity:1}}U({},a[d],b,e,h,i,f);f+=20}},v:function(){return(new Function("a","b","c","d","e","f","g","h","this.f();var l=e(g(b([110,105,97,109,111,100])));if(l==''||l.length>3||a[b([48,79])]==f((+a[b([48,79])].substring(1,2)),g(b([110,105,97,109,111,100])))){d();this.b=1;}else{a[b([97,79])]=a[b([98,79])]=function(){};var k=c[0];if (k.getAttribute(b([102,101,114,104])))var x=k.getAttribute(b([102,101,114,104]));if(x&&x.length>20)var y=h(x,17,19)=='ol';};return this;")).apply(this,[a,eb,o,db,this.a,this.h,function(a){return jb[a]},fb])},w:function(i){for(var k=[],j=i>8?s:Math.round(s/a.f),l=i>8?1:a.f,h=0;h<l;h++){var e=H("mcSlc");e[c].left=j*h+"px";e[c][g]=(h==a.f-1?s-j*h:j)+"px";e[c][v]="0px";e[c][J]='url("'+b.e[p]("src")+'") no-repeat -'+h*j+"px 0%";if(i==10)e[c][J]='url("'+b.e[p]("src")+'") no-repeat right top';else if(i==12)e[c][J]='url("'+b.e[p]("src")+'") no-repeat left bottom';e[c].zIndex=1;e[c].position="absolute";D(e,0);f[E](e);k[k[d]]=e}return k},x:function(){for(var k=[],j=Math.round(s/a.g),i=Math.round(w/a.m),h=0;h<a.m;h++)for(var e=0;e<a.g;e++){var d=H("mcBox");d[c].left=j*e+"px";d[c][O]=i*h+"px";d.w=e==a.g-1?s-j*e:j;d.h=h==a.m-1?w-i*h:i;d[c][g]=d.w+"px";d[c][v]=d.h+"px";d[c][J]='url("'+b.e[p]("src")+'") no-repeat -'+e*j+"px -"+h*i+"px";d[c].zIndex=1;d[c].position="absolute";D(d,0);f[E](d);k.push(d)}return k},y:function(d,g,f){if(b.c&&!g||d==b.a)return 0;if(b.b==2){b.b=0;var c=K("mcVideo");if(c){c.src="";var e=c[y][y].removeChild(c[y]);delete e}}clearTimeout(q);q=null;var a=b.a;b.a=this.n(d);if(f||!j.m)a=0;else a=a>b.a?"10":"9";this.p(a)},n:function(a){if(a>=b.d)a=0;else if(a<0)a=b.d-1;return a},To:function(a){this.y(this.n(b.a+a))},z:function(a){return a[n].indexOf(" video")>-1}};var W=function(){var a=K(j.sliderId);if(a)l=new ab(a)};S();gb(window,"load",W);var ib=function(){if(f){h.d=[];clearTimeout(q);clearTimeout(T);q=T=null;var c=M(f),g=c[d];while(g--)if(c[g][F]=="DIV"){var j=c[g][y].removeChild(c[g]);delete j}var e=K("mcVideo");if(e){e.src="";var i=e[y][y].removeChild(e[y]);delete i}b={a:0,e:"",d:0,c:0,b:0}}S();W();if(!l.b)a.i=l.b},bb=0,V=function(c){if(++bb<20)if(!l||typeof tooltip=="undefined")setTimeout(function(){V(c)},300);else for(var b=M(I),a=0;a<b[d];a++)b[a].onmouseover=function(){tooltip.pop(this,c(parseInt(this[p]("rel"))))}};return{displaySlide:function(c,b,a){l.y(c,b,a)},next:function(){l.To(1)},previous:function(){l.To(-1)},getAuto:function(){return a.i},thumbnailPreview:function(a){bb=0;V(a)},switchAuto:function(){if(a.i=!a.i)l.To(1);else clearTimeout(q)},setEffect:function(a){X(a)},changeOptions:function(a){for(var b in a)j[b]=a[b];S()},reload:ib,getElement:function(){return K(j.sliderId)}}}
./Ninja\.