/** * WOWslider * * http://wowslider.com */ function ws_stack(d,a,b){var e=jQuery;var g=e(this);var c=e("li",b);var f=e("
").addClass("ws_effect ws_stack").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}).appendTo(b);this.go=function(q,j,i){var k=(d.revers?1:-1)*b.width();c.each(function(s){if(i&&s!=j){this.style.zIndex=(Math.max(0,this.style.zIndex-1))}});var p=e(".ws_list",b);var h=e("
").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",zIndex:4}).append(e(a.get(i?q:j)).clone()),r=e("
").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",zIndex:4}).append(e(a.get(i?j:q)).clone());if(d.responsive<3){h.find("img").css("width","100%");r.find("img").css("width","100%")}if(i){r.appendTo(f);h.appendTo(f)}else{h.insertAfter(p);r.insertAfter(p)}if(!i){p.stop(true,true).hide().css({left:-q+"00%"});if(d.fadeOut){p.fadeIn(d.duration)}else{p.show()}}else{if(d.fadeOut){p.fadeOut(d.duration)}}var o={left:i?k:0};var m={left:i?0:-k*0.5};var n={left:i?0:k};var l={left:(i?1:0)*b.width()*0.5};if(d.support.transform){o={translate:[o.left,0,0]};m={translate:[m.left,0,0]};n={translate:[n.left,0,0]};l={translate:[l.left,0,0]}}wowAnimate(h,o,n,d.duration,d.duration*(i?0:0.1),"easeInOutExpo",function(){g.trigger("effectEnd");h.remove();r.remove()});wowAnimate(r,m,l,d.duration,d.duration*(i?0.1:0),"easeInOutExpo")}}; /* --------------------------------------------------------------------------- * WOWslider Settings * -------------------------------------------------------------------------- */ jQuery("#wowslider-container1").wowSlider( { effect:"stack", duration:20*100, // change effect transition time delay:20*100, // change delay on each slide width:1600, height:800, autoPlay:true, // autoplay slides on load playPause:false, // show a play & pause button stopOnHover:false, loop:false, bullets:0, caption:false, // use a caption on slides controls:true, // use left, right arrows fullScreen:true, // show a fullscreen button responsive:3, gestures:2, // remove next 3 lines to remove "random" slide order onBeforeStep:function(i, c) { return (i+1 + Math.floor((c-1)*Math.random())) } } );