/** * WOWslider * * http://wowslider.com */ function ws_photo(a,g,j){var c=jQuery,e=c(this),l=c(".ws_list",j),n=(/iPhone|iPod|iPad|Android|BlackBerry/).test(navigator.userAgent),h=g.length,w=a.imagesCount||30,m=30,d=80,q=[];var f=c("
").addClass("ws_effect ws_photo").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",backgroundColor:"#DDDDDD"}).appendTo(j);if(!n){var o=c("
").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0,0,0,0.6)",zIndex:4}).appendTo(f)}var r=Math.max(w,g.length);for(var t=0,p=0;t=g.length){p-=g.length}c("
").addClass("ws_photoItem").css({width:"100%",height:"100%",overflow:"hidden"}).append(c("
").css({overflow:"hidden",position:"absolute"}).append(c(g[p]).clone())).appendTo(f);if(a.images&&tr){break}k+=g.length}}if(window.XMLHttpRequest){var x=a.duration*0.5;s.each(function(z){v(c(this),i==z,y==z,false,x)});if(!n){wowAnimate(o,{opacity:1},{opacity:0},x*0.7,"swing")}setTimeout(function(){s.each(function(z){v(c(this),i==z,y==z,true,x,(y==z?function(){e.trigger("effectEnd")}:0))});if(!n){wowAnimate(o,{opacity:0},{opacity:1},x*0.7,"swing")}},x)}else{l.stop(true).animate({left:(i?-i+"00%":(/Safari/.test(navigator.userAgent)?"0%":0))},a.duration,"easeInOutExpo",function(){e.trigger("effectEnd")})}}}; /* --------------------------------------------------------------------------- * WOWslider Settings * -------------------------------------------------------------------------- */ jQuery("#wowslider-container1").wowSlider( { effect:"photo", 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())) } } );