// -----------------------------------------------------------------------------------

//***********************************************

//***********************************************
function ws_stack(options, images, container) { var $ = jQuery; this.go = function (new_index, curIdx, dx, dy) { var dir = (new_index - curIdx + 1) % images.length; if (Math.abs(dx) >= 1) { dir = dx > 0 ? 0 : 1; } var loImg = $(images.get(dir ? curIdx : new_index)); var hiImg = $(images.get(dir ? new_index : curIdx)); images.each(function (Index) { if (dir && Index != curIdx) { this.style.zIndex = Math.max(0, this.style.zIndex - 1); } }); var newLeft = dir ? 0 : -options.width; hiImg.stop(1, 1).css({ 'z-index': 4, left: -options.width - newLeft + "px" }); if (!dir) { loImg.stop(1, 1).css({ left: 0 }); } loImg.css({ 'z-index': 3 }); hiImg.animate({ left: newLeft + "px" }, options.duration, "easeInOutExpo"); return new_index; }; } // -----------------------------------------------------------------------------------

jQuery("#wowslider-container1").wowSlider({ effect: "stack", prev: "prev", next: "next", duration: 8 * 100, delay: 50 * 100, outWidth: 946, outHeight: 359, width: 946, height: 359, autoPlay: true, stopOnHover: false, loop: false, bullets: true, caption: true, controls: true });
