! function($) { var number_skitter = 0, skitters = []; $.fn.skitter = function(options) { if ("string" == typeof options) { var current_skitter = skitters[$(this).data("skitter_number")]; return current_skitter[arguments[0]].call(current_skitter, arguments[1]) } return this.each(function() { void 0 == $(this).data("skitter_number") && ($(this).data("skitter_number", number_skitter), skitters.push(new $sk(this, options, number_skitter)), ++number_skitter) }) }; var defaults = { velocity: 1, interval: 2500, animation: "", numbers: !1, navigation: !1, label: !0, easing_default: "", skitter_box: null, time_interval: null, images_links: null, image_atual: null, link_atual: null, label_atual: null, target_atual: "_self", width_skitter: null, height_skitter: null, image_i: 1, is_animating: !1, is_hover_skitter_box: !1, random_ia: null, show_randomly: !1, thumbs: !1, hide_tools: !1, fullscreen: !1, xml: !1, dots: !0, opacity_elements: .75, interval_in_elements: 200, interval_out_elements: 300, onload: null, imageswitched: null, max_number_height: 20, numbers_align: "center", preview: !1, focus: !1, foucs_active: !1, controls: !1, progressbar: !1, progressbar_css: {}, is_paused: !1, is_blur: !1, is_paused_time: !1, time_start: 0, elapsedtime: 0, stop_over: !0, enable_navigation_keys: !1, with_animations: [], mouseoverbutton: null, mouseoutbutton: null, auto_play: !0, label_animation: "slideup", theme: null, structure: '
', responsive: { small: { animation: "fade", max_width: 768 }, medium: { max_width: 1024 } } }; $.skitter = function(obj, options, number) { this.skitter_box = $(obj), this.timer = null, this.settings = $.extend({}, defaults, options || {}), this.number_skitter = number, this.setup() }; var $sk = $.skitter; $sk.fn = $sk.prototype = {}, $sk.fn.extend = $.extend, $sk.fn.extend({ animations: ["cube", "cuberandom", "block", "cubestop", "cubestoprandom", "cubehide", "cubesize", "horizontal", "showbars", "showbarsrandom", "tube", "fade", "fadefour", "paralell", "blind", "blindheight", "blindwidth", "directiontop", "directionbottom", "directionright", "directionleft", "cubespread", "glasscube", "glassblock", "circles", "circlesinside", "circlesrotate", "cubeshow", "upbars", "downbars", "hidebars", "swapbars", "swapbarsback", "swapblocks", "cut"], setup: function() { var self = this; if (this.settings.fullscreen) { var width = $(window).width(), height = $(window).height(); this.skitter_box.width(width).height(height), this.skitter_box.css({ position: "absolute", top: 0, left: 0, "z-index": 1e3 }), this.settings.stop_over = !1, $("body").css({ overflown: "hidden" }) } if (this.settings.width_skitter = parsefloat(this.skitter_box.css("width")), this.settings.height_skitter = parsefloat(this.skitter_box.css("height")), this.settings.original_width_skitter = this.settings.width_skitter, this.settings.original_height_skitter = this.settings.height_skitter, !this.settings.width_skitter || !this.settings.height_skitter) return console.warn("width or height size is null! - skitter slideshow"), !1; this.settings.theme && this.skitter_box.addclass("skitter-" + this.settings.theme), this.skitter_box.append(this.settings.structure), this.settings.easing_default = this.geteasing(this.settings.easing), this.settings.velocity >= 2 && (this.settings.velocity = 1.3), this.settings.velocity <= 0 && (this.settings.velocity = 1), this.skitter_box.find(".info_slide").hide(), this.skitter_box.find(".label_skitter").hide(), this.skitter_box.find(".prev_button").hide(), this.skitter_box.find(".next_button").hide(), this.skitter_box.find(".container_skitter").width(this.settings.width_skitter), this.skitter_box.find(".container_skitter").height(this.settings.height_skitter); var initial_select_class = " image_number_select", u = 0; this.settings.images_links = []; var addimagelink = function(link, src, animation_type, label, target) { if (self.settings.images_links.push([src, link, animation_type, label, target]), self.settings.thumbs) { var dimension_thumb = ""; dimension_thumb = self.settings.width_skitter > self.settings.height_skitter ? 'height="100"': 'width="100"', self.skitter_box.find(".info_slide").append(' ') } else self.skitter_box.find(".info_slide").append('' + u + " "); initial_select_class = "" }; if (this.settings.xml ? $.ajax({ type: "get", url: this.settings.xml, async: !1, datatype: "xml", success: function(xml) { $("error loading images. one or more images were not found.
') }).attr("src", src) } }, start: function() { var self = this, init_pause = !1; (this.settings.numbers || this.settings.thumbs) && this.skitter_box.find(".info_slide").fadein(500), this.settings.dots && this.skitter_box.find(".info_slide_dots").fadein(500), this.settings.label && this.skitter_box.find(".label_skitter").show(), this.settings.navigation && (this.skitter_box.find(".prev_button").fadein(500), this.skitter_box.find(".next_button").fadein(500)), self.settings.auto_play && self.starttime(), self.windowfocusout(), self.setlinkatual(), self.skitter_box.find(".image > a img").attr({ src: self.getcurrentimage() }), img_link = self.skitter_box.find(".image > a"), img_link = self.resizeimage(img_link), img_link.find("img").fadein(1500), self.setvalueboxtext(), self.showboxtext(), self.settings.auto_play && self.stoponmouseover(); var mouseoverinit = function() { self.settings.stop_over && (init_pause = !0, self.settings.is_hover_skitter_box = !0, self.cleartimer(!0), self.pauseprogressbar()) }; self.skitter_box.mouseover(mouseoverinit), self.skitter_box.find(".next_button").mouseover(mouseoverinit), self.settings.images_links.length > 1 && !init_pause ? self.settings.auto_play && (self.timer = settimeout(function() { self.nextimage() }, self.settings.interval)) : self.skitter_box.find(".skitter-spinner, .image_number, .next_button, .prev_button").remove(), $.isfunction(self.settings.onload) && self.settings.onload(self), this.setdimensions() }, jumptoimage: function(imagenumber) { 0 == this.settings.is_animating && (this.settings.elapsedtime = 0, this.skitter_box.find(".box_clone").stop(), this.cleartimer(!0), this.settings.image_i = math.floor(imagenumber), this.skitter_box.find(".image > a").attr({ href: this.settings.link_atual }), this.skitter_box.find(".image_main").attr({ src: this.getcurrentimage() }), this.skitter_box.find(".box_clone").remove(), this.nextimage()) }, nextimage: function() { var self = this; animations_functions = this.animations, self.settings.progressbar && self.hideprogressbar(); var animation_type; if (animation_type = "" == this.settings.animation && this.settings.images_links[this.settings.image_i][2] ? this.settings.images_links[this.settings.image_i][2] : "" == this.settings.animation ? "default": this.settings.animation, self.settings.responsive) { var window_width = $(window).width(); for (var name in self.settings.responsive) { var item = self.settings.responsive[name]; if (window_width < item.max_width && item.animation) { animation_type = item.animation; break } } } if ("randomsmart" == animation_type) this.settings.random_ia || (animations_functions.sort(function() { return.5 - math.random() }), this.settings.random_ia = animations_functions), animation_type = this.settings.random_ia[this.settings.image_i]; else if ("random" == animation_type) { var random_id = parseint(math.random() * animations_functions.length); animation_type = animations_functions[random_id] } else if (self.settings.with_animations.length > 0) { var total_with_animations = self.settings.with_animations.length; void 0 == this.settings._i_animation && (this.settings._i_animation = 0), animation_type = self.settings.with_animations[this.settings._i_animation], ++this.settings._i_animation, this.settings._i_animation >= total_with_animations && (this.settings._i_animation = 0) } switch (animation_type) { case "cube": this.animationcube(); break; case "cuberandom": this.animationcube({ random: !0 }); break; case "block": this.animationblock(); break; case "cubestop": this.animationcubestop(); break; case "cubestoprandom": this.animationcubestop({ random: !0 }); break; case "cubehide": this.animationcubehide(); break; case "cubesize": this.animationcubesize(); break; case "horizontal": this.animationhorizontal(); break; case "showbars": this.animationshowbars(); break; case "showbarsrandom": this.animationshowbars({ random: !0 }); break; case "tube": this.animationtube(); break; case "fade": this.animationfade(); break; case "fadefour": this.animationfadefour(); break; case "paralell": this.animationparalell(); break; case "blind": this.animationblind(); break; case "blindheight": this.animationblinddimension({ height: !0 }); break; case "blindwidth": this.animationblinddimension({ height: !1, time_animate: 400, delay: 50 }); break; case "directiontop": this.animationdirection({ direction: "top" }); break; case "directionbottom": this.animationdirection({ direction: "bottom" }); break; case "directionright": this.animationdirection({ direction: "right", total: 5 }); break; case "directionleft": this.animationdirection({ direction: "left", total: 5 }); break; case "cubespread": this.animationcubespread(); break; case "cubejelly": this.animationcubejelly(); break; case "glasscube": this.animationglasscube(); break; case "glassblock": this.animationglassblock(); break; case "circles": this.animationcircles(); break; case "circlesinside": this.animationcirclesinside(); break; case "circlesrotate": this.animationcirclesrotate(); break; case "cubeshow": this.animationcubeshow(); break; case "upbars": this.animationdirectionbars({ direction: "top" }); break; case "downbars": this.animationdirectionbars({ direction: "bottom" }); break; case "hidebars": this.animationhidebars(); break; case "swapbars": this.animationswapbars(); break; case "swapbarsback": this.animationswapbars({ easing: "easeoutback" }); break; case "swapblocks": this.animationswapblocks(); break; case "cut": this.animationcut(); break; default: this.animationtube() } }, animationcube: function(options) { var self = this, options = $.extend({}, { random: !1 }, options || {}); this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutexpo": this.settings.easing_default, time_animate = 700 / this.settings.velocity; this.setactuallevel(); var max_w = self.getmaxw(8), division_w = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), division_h = math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3)), total = division_w * division_h, width_box = math.ceil(this.settings.width_skitter / division_w), height_box = math.ceil(this.settings.height_skitter / division_h), init_top = this.settings.height_skitter + 200, init_left = this.settings.height_skitter + 200, col_t = 0, col = 0; for (i = 0; i < total; i++) { init_top = i % 2 == 0 ? init_top: -init_top, init_left = i % 2 == 0 ? init_left: -init_left; var _vtop = init_top + height_box * col_t + 150 * col_t, _vleft = -self.settings.width_skitter, _vtop_image = -(height_box * col_t), _vleft_image = -(width_box * col), _btop = height_box * col_t, _bleft = width_box * col, box_clone = this.getboxclone(); box_clone.hide(); var delay_time = 50 * i; options.random ? (delay_time = 40 * col, box_clone.css({ left: _vleft + "px", top: _vtop + "px", width: width_box, height: height_box })) : (time_animate = 500, box_clone.css({ left: this.settings.width_skitter + width_box * i, top: this.settings.height_skitter + height_box * i, width: width_box, height: height_box })), this.addboxclone(box_clone); var callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.show().delay(delay_time).animate({ top: _btop + "px", left: _bleft + "px" }, time_animate, easing, callback), options.random ? (box_clone.find("img").css({ left: _vleft_image + 100, top: _vtop_image + 50 }), box_clone.find("img").delay(delay_time + time_animate / 2).animate({ left: _vleft_image, top: _vtop_image }, 1e3, "easeoutback")) : (box_clone.find("img").css({ left: _vleft_image, top: _vtop_image }), box_clone.find("img").delay(delay_time + time_animate / 2).fadeto(100, .5).fadeto(300, 1)), col_t++, col_t == division_h && (col_t = 0, col++) } }, animationblock: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutquad": this.settings.easing_default, time_animate = 500 / this.settings.velocity; this.setactuallevel(); var max_w = self.getmaxw(15), total = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), width_box = math.ceil(this.settings.width_skitter / total), height_box = this.settings.height_skitter; for (i = 0; i < total; i++) { var _bleft = width_box * i, _btop = 0, box_clone = this.getboxclone(); box_clone.css({ left: this.settings.width_skitter + 100, top: 0, width: width_box, height: height_box }), box_clone.find("img").css({ left: -(width_box * i) }), this.addboxclone(box_clone); var delay_time = 80 * i, callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.show().delay(delay_time).animate({ top: _btop, left: _bleft }, time_animate, easing), box_clone.find("img").hide().delay(delay_time + 100).animate({ opacity: "show" }, time_animate + 300, easing, callback) } }, animationcubestop: function(options) { var self = this, options = $.extend({}, { random: !1 }, options || {}); this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeinquad": this.settings.easing_default, time_animate = 300 / this.settings.velocity, image_old = this.getoldimage(); this.setactuallevel(), this.setlinkatual(), this.skitter_box.find(".image_main").attr({ src: this.getcurrentimage() }); var max_w = self.getmaxw(8), max_h = self.getmaxh(8), division_w = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), division_h = math.ceil(this.settings.height_skitter / (this.settings.width_skitter / max_h)), total = division_w * division_h, width_box = math.ceil(this.settings.width_skitter / division_w), height_box = math.ceil(this.settings.height_skitter / division_h), init_top = 0, init_left = 0, col_t = 0, col = 0, _ftop = this.settings.width_skitter / 16; for (i = 0; i < total; i++) { init_top = i % 2 == 0 ? init_top: -init_top, init_left = i % 2 == 0 ? init_left: -init_left; var _vtop = init_top + height_box * col_t, _vleft = init_left + width_box * col, _vtop_image = -(height_box * col_t), _vleft_image = -(width_box * col), _btop = _vtop - _ftop, _bleft = _vleft - _ftop, box_clone = this.getboxcloneimgold(image_old); box_clone.css({ left: _vleft + "px", top: _vtop + "px", width: width_box, height: height_box }), box_clone.find("img").css({ left: _vleft_image, top: _vtop_image }), this.addboxclone(box_clone), box_clone.show(); var delay_time = 50 * i; options.random && (time_animate = 400 * (self.getrandom(2) + 1) / this.settings.velocity, _btop = _vtop, _bleft = _vleft, delay_time = math.ceil(30 * self.getrandom(30))), options.random && i == total - 1 && (time_animate = 1200, delay_time = 900); var callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.delay(delay_time).animate({ opacity: "hide", top: _btop + "px", left: _bleft + "px" }, time_animate, easing, callback), col_t++, col_t == division_h && (col_t = 0, col++) } }, animationcubehide: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutquad": this.settings.easing_default, time_animate = 500 / this.settings.velocity, image_old = this.getoldimage(); this.setactuallevel(), this.setlinkatual(), this.skitter_box.find(".image_main").attr({ src: this.getcurrentimage() }); var max_w = self.getmaxw(8), division_w = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), division_h = math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3)), total = division_w * division_h, width_box = math.ceil(this.settings.width_skitter / division_w), height_box = math.ceil(this.settings.height_skitter / division_h), init_top = 0, init_left = 0, col_t = 0, col = 0; for (i = 0; i < total; i++) { init_top = i % 2 == 0 ? init_top: -init_top, init_left = i % 2 == 0 ? init_left: -init_left; var _vtop = init_top + height_box * col_t, _vleft = init_left + width_box * col, _vtop_image = -(height_box * col_t), _vleft_image = -(width_box * col), box_clone = this.getboxcloneimgold(image_old); box_clone.css({ left: _vleft + "px", top: _vtop + "px", width: width_box, height: height_box }), box_clone.find("img").css({ left: _vleft_image, top: _vtop_image }), this.addboxclone(box_clone), box_clone.show(); var delay_time = 50 * i; delay_time = i == total - 1 ? 50 * total: delay_time; var callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.delay(delay_time).animate({ opacity: "hide" }, time_animate, easing, callback), col_t++, col_t == division_h && (col_t = 0, col++) } }, animationcubejelly: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeinback": this.settings.easing_default, time_animate = 300 / this.settings.velocity, image_old = this.getoldimage(); this.setactuallevel(), this.setlinkatual(), this.skitter_box.find(".image_main").attr({ src: this.getcurrentimage() }); var max_w = self.getmaxw(8), division_w = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), division_h = math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3)), total = division_w * division_h, width_box = math.ceil(this.settings.width_skitter / division_w), height_box = math.ceil(this.settings.height_skitter / division_h), init_top = 0, init_left = 0, col_t = 0, col = 0, u = -1; for (i = 0; i < total; i++) { col % 2 != 0 ? (0 == col_t && (u = u + division_h + 1), u--) : (col > 0 && 0 == col_t && (u += 2), u++), init_top = i % 2 == 0 ? init_top: -init_top, init_left = i % 2 == 0 ? init_left: -init_left; var _vtop = init_top + height_box * col_t, _vleft = init_left + width_box * col, _vtop_image = -(height_box * col_t), _vleft_image = -(width_box * col), box_clone = this.getboxcloneimgold(image_old); box_clone.css({ left: _vleft + "px", top: _vtop + "px", width: width_box, height: height_box }), box_clone.find("img").css({ left: _vleft_image, top: _vtop_image }), this.addboxclone(box_clone), box_clone.show(); var delay_time = 50 * i, callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.delay(delay_time).animate({ width: "+=100px", height: "+=100px", top: "-=20px", left: "-=20px", opacity: "hide" }, time_animate, easing, callback), col_t++, col_t == division_h && (col_t = 0, col++) } }, animationcubesize: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeinoutquad": this.settings.easing_default, time_animate = 600 / this.settings.velocity, image_old = this.getoldimage(); this.setactuallevel(), this.setlinkatual(), this.skitter_box.find(".image_main").attr({ src: this.getcurrentimage() }); var max_w = self.getmaxw(8), division_w = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), division_h = math.ceil(this.settings.height_skitter / (this.settings.height_skitter / 3)), total = division_w * division_h, width_box = math.ceil(this.settings.width_skitter / division_w), height_box = math.ceil(this.settings.height_skitter / division_h), init_top = 0, init_left = 0, col_t = 0, col = 0; math.ceil(this.settings.width_skitter / 6); for (i = 0; i < total; i++) { init_top = i % 2 == 0 ? init_top: -init_top, init_left = i % 2 == 0 ? init_left: -init_left; var _vtop = init_top + height_box * col_t, _vleft = init_left + width_box * col, _vtop_image = -(height_box * col_t), _vleft_image = -(width_box * col), box_clone = this.getboxcloneimgold(image_old); box_clone.css({ left: _vleft, top: _vtop, width: width_box, height: height_box }), box_clone.find("img").css({ left: _vleft_image, top: _vtop_image }), this.addboxclone(box_clone), box_clone.show(); var delay_time = 50 * i, callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.delay(delay_time).animate({ opacity: "hide", width: "hide", height: "hide", top: _vtop + 1.5 * width_box, left: _vleft + 1.5 * height_box }, time_animate, easing, callback), col_t++, col_t == division_h && (col_t = 0, col++) } }, animationhorizontal: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutexpo": this.settings.easing_default, time_animate = 700 / this.settings.velocity; this.setactuallevel(); var total = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 7)), width_box = this.settings.width_skitter, height_box = math.ceil(this.settings.height_skitter / total); for (i = 0; i < total; i++) { var _bleft = (i % 2 == 0, "" + width_box), _btop = i * height_box, box_clone = this.getboxclone(); box_clone.css({ left: _bleft + "px", top: _btop + "px", width: width_box, height: height_box }), box_clone.find("img").css({ left: 0, top: -_btop }), this.addboxclone(box_clone); var delay_time = 90 * i, callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.delay(delay_time).animate({ opacity: "show", top: _btop, left: 0 }, time_animate, easing, callback) } }, animationshowbars: function(options) { var self = this, options = $.extend({}, { random: !1 }, options || {}); this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutquad": this.settings.easing_default, time_animate = 400 / this.settings.velocity; this.setactuallevel(); var max_w = self.getmaxw(10), total = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), width_box = math.ceil(this.settings.width_skitter / total), height_box = this.settings.height_skitter; for (i = 0; i < total; i++) { var _bleft = width_box * i, _btop = 0, box_clone = this.getboxclone(); if (box_clone.css({ left: _bleft, top: _btop - 50, width: width_box, height: height_box }), box_clone.find("img").css({ left: -(width_box * i), top: 0 }), this.addboxclone(box_clone), options.random) { var random = this.getrandom(total), delay_time = 50 * random; delay_time = i == total - 1 ? 50 * total: delay_time } else { var delay_time = 70 * i; time_animate -= 2 * i } var callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.delay(delay_time).animate({ opacity: "show", top: _btop + "px", left: _bleft + "px" }, time_animate, easing, callback) } }, animationtube: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutelastic": this.settings.easing_default, time_animate = 600 / this.settings.velocity; this.setactuallevel(); var max_w = self.getmaxw(10), total = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), width_box = math.ceil(this.settings.width_skitter / total), height_box = this.settings.height_skitter; for (i = 0; i < total; i++) { var _btop = 0, _vtop = height_box, vleft = width_box * i, box_clone = this.getboxclone(); box_clone.css({ left: vleft, top: _vtop, height: height_box, width: width_box }), box_clone.find("img").css({ left: -vleft }), this.addboxclone(box_clone); var random = this.getrandom(total), delay_time = 30 * random, callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.show().delay(delay_time).animate({ top: _btop }, time_animate, easing, callback) } }, animationfade: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutquad": this.settings.easing_default, time_animate = 800 / this.settings.velocity; this.setactuallevel(); var width_box = this.settings.width_skitter, height_box = this.settings.height_skitter, total = 2; for (i = 0; i < total; i++) { var _vtop = 0, _vleft = 0, box_clone = this.getboxclone(); box_clone.css({ left: _vleft, top: _vtop, width: width_box, height: height_box }), this.addboxclone(box_clone); var callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.animate({ opacity: "show", left: 0, top: 0 }, time_animate, easing, callback) } }, animationfadefour: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutquad": this.settings.easing_default, time_animate = 500 / this.settings.velocity; this.setactuallevel(); var width_box = this.settings.width_skitter, height_box = this.settings.height_skitter, total = 4; for (i = 0; i < total; i++) { if (0 == i) var _vtop = "-40px", _vleft = "-40px"; else if (1 == i) var _vtop = "-40px", _vleft = "40px"; else if (2 == i) var _vtop = "40px", _vleft = "-40px"; else if (3 == i) var _vtop = "40px", _vleft = "40px"; var box_clone = this.getboxclone(); box_clone.css({ left: _vleft, top: _vtop, width: width_box, height: height_box }), this.addboxclone(box_clone); var callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.animate({ opacity: "show", left: 0, top: 0 }, time_animate, easing, callback) } }, animationparalell: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutquad": this.settings.easing_default, time_animate = 400 / this.settings.velocity; this.setactuallevel(); var max_w = 16, total = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), width_box = math.ceil(this.settings.width_skitter / total), height_box = this.settings.height_skitter; for (i = 0; i < total; i++) { var _bleft = width_box * i, _btop = 0, box_clone = this.getboxclone(); box_clone.css({ left: _bleft, top: _btop - this.settings.height_skitter, width: width_box, height: height_box }), box_clone.find("img").css({ left: -(width_box * i), top: 0 }), this.addboxclone(box_clone); var delay_time; i <= total / 2 - 1 ? delay_time = 1400 - 200 * i: i > total / 2 - 1 && (delay_time = 200 * (i - total / 2)), delay_time /= 2.5; var callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.delay(delay_time).animate({ top: _btop + "px", left: _bleft + "px", opacity: "show" }, time_animate, easing, callback) } }, animationblind: function(options) { var self = this, options = $.extend({}, { height: !1 }, options || {}); this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutquad": this.settings.easing_default, time_animate = 400 / this.settings.velocity; this.setactuallevel(); var max_w = 16, total = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), width_box = math.ceil(this.settings.width_skitter / total), height_box = this.settings.height_skitter; for (i = 0; i < total; i++) { var _bleft = width_box * i, _btop = 0, box_clone = this.getboxclone(); box_clone.css({ left: _bleft, top: _btop, width: width_box, height: height_box }), box_clone.find("img").css({ left: -(width_box * i), top: 0 }), this.addboxclone(box_clone); var delay_time; if (options.height) { i <= total / 2 - 1 ? delay_time = 200 + 200 * i: i > total / 2 - 1 && (delay_time = 200 * (total / 2 - i) + 100 * total); var callback = i == total / 2 ? function() { self.finishanimation() }: "" } else { i <= total / 2 - 1 ? delay_time = 1400 - 200 * i: i > total / 2 - 1 && (delay_time = 200 * (i - total / 2)); var callback = i == total - 1 ? function() { self.finishanimation() }: "" } if (delay_time /= 2.5, options.height) { time_animate += 2 * i; var easing = "easeoutquad"; box_clone.delay(delay_time).animate({ opacity: "show", top: _btop + "px", left: _bleft + "px", height: "show" }, time_animate, easing, callback) } else box_clone.delay(delay_time).animate({ opacity: "show", top: _btop + "px", left: _bleft + "px", width: "show" }, time_animate, easing, callback) } }, animationblinddimension: function(options) { var self = this, options = $.extend({}, { height: !0, time_animate: 500, delay: 100 }, options || {}); this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutquad": this.settings.easing_default, time_animate = options.time_animate / this.settings.velocity; this.setactuallevel(); var max_w = self.getmaxw(16), total = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), width_box = math.ceil(this.settings.width_skitter / total), height_box = this.settings.height_skitter; for (i = 0; i < total; i++) { var _bleft = width_box * i, _btop = 0, box_clone = this.getboxclone(); box_clone.css({ left: _bleft, top: _btop, width: width_box, height: height_box }), box_clone.find("img").css({ left: -(width_box * i), top: 0 }), this.addboxclone(box_clone); var delay_time = options.delay * i, callback = i == total - 1 ? function() { self.finishanimation() }: ""; if (options.height) { var easing = "easeoutquad"; box_clone.delay(delay_time).animate({ opacity: "show", top: _btop + "px", left: _bleft + "px", height: "show" }, time_animate, easing, callback) } else box_clone.delay(delay_time).animate({ opacity: "show", top: _btop + "px", left: _bleft + "px", width: "show" }, time_animate, easing, callback) } }, animationdirection: function(options) { var self = this, max_w = self.getmaxw(7), options = $.extend({}, { direction: "top", delay_type: "sequence", total: max_w }, options || {}); this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeinoutexpo": this.settings.easing_default, time_animate = 1200 / this.settings.velocity, image_old = this.getoldimage(); this.setactuallevel(), this.setlinkatual(), this.skitter_box.find(".image_main").attr({ src: this.getcurrentimage() }), this.skitter_box.find(".image_main").hide(); var total = options.total; for (i = 0; i < total; i++) { switch (options.direction) { default: case "top": var width_box = math.ceil(this.settings.width_skitter / total), height_box = this.settings.height_skitter, _itopc = 0, _ileftc = width_box * i, _ftopc = -height_box, _fleftc = _ileftc, _itopn = height_box, _ileftn = _ileftc, _ftopn = 0, _fleftn = _ileftc, _vtop_image = 0, _vleft_image = -_ileftc; break; case "bottom": var width_box = math.ceil(this.settings.width_skitter / total), height_box = this.settings.height_skitter, _itopc = 0, _ileftc = width_box * i, _ftopc = height_box, _fleftc = _ileftc, _itopn = -height_box, _ileftn = _ileftc, _ftopn = 0, _fleftn = _ileftc, _vtop_image = 0, _vleft_image = -_ileftc; break; case "right": var width_box = this.settings.width_skitter, height_box = math.ceil(this.settings.height_skitter / total), _itopc = height_box * i, _ileftc = 0, _ftopc = _itopc, _fleftc = width_box, _itopn = _itopc, _ileftn = -_fleftc, _ftopn = _itopc, _fleftn = 0, _vtop_image = -_itopc, _vleft_image = 0; break; case "left": var width_box = this.settings.width_skitter, height_box = math.ceil(this.settings.height_skitter / total), _itopc = height_box * i, _ileftc = 0, _ftopc = _itopc, _fleftc = -width_box, _itopn = _itopc, _ileftn = -_fleftc, _ftopn = _itopc, _fleftn = 0, _vtop_image = -_itopc, _vleft_image = 0 } switch (options.delay_type) { case "zebra": default: var delay_time = i % 2 == 0 ? 0 : 150; break; case "random": var delay_time = 30 * (30 * math.random()); break; case "sequence": var delay_time = 100 * i } var box_clone = this.getboxcloneimgold(image_old); box_clone.find("img").css({ left: _vleft_image, top: _vtop_image }), box_clone.css({ top: _itopc, left: _ileftc, width: width_box, height: height_box }), this.addboxclone(box_clone), box_clone.show(), box_clone.delay(delay_time).animate({ top: _ftopc, left: _fleftc }, time_animate, easing); var box_clone_next = this.getboxclone(); box_clone_next.find("img").css({ left: _vleft_image, top: _vtop_image }), box_clone_next.css({ top: _itopn, left: _ileftn, width: width_box, height: height_box }), this.addboxclone(box_clone_next), box_clone_next.show(); var callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone_next.delay(delay_time).animate({ top: _ftopn, left: _fleftn }, time_animate, easing, callback) } }, animationcubespread: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutquad": this.settings.easing_default, time_animate = 700 / this.settings.velocity; this.setactuallevel(); var max_w = self.getmaxw(8), max_h = self.getmaxh(8), division_w = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), division_h = math.ceil(this.settings.height_skitter / (this.settings.width_skitter / max_h)), total = division_w * division_h, width_box = math.ceil(this.settings.width_skitter / division_w), height_box = math.ceil(this.settings.height_skitter / division_h), init_top = 0, init_left = 0, col_t = 0, col = 0, order = new array, spread = new array; for (i = 0; i < total; i++) { init_top = i % 2 == 0 ? init_top: -init_top, init_left = i % 2 == 0 ? init_left: -init_left; var _vtop = init_top + height_box * col_t, _vleft = init_left + width_box * col; order[i] = [_vtop, _vleft], col_t++, col_t == division_h && (col_t = 0, col++) } for (col_t = 0, col = 0, i = 0; i < total; i++) spread[i] = i; var spread = self.shufflearray(spread); for (i = 0; i < total; i++) { init_top = i % 2 == 0 ? init_top: -init_top, init_left = i % 2 == 0 ? init_left: -init_left; var _vtop = init_top + height_box * col_t, _vleft = init_left + width_box * col, _vtop_image = -(height_box * col_t), _vleft_image = -(width_box * col), _btop = _vtop, _bleft = _vleft; _vtop = order[spread[i]][0], _vleft = order[spread[i]][1]; var box_clone = this.getboxclone(); box_clone.css({ left: _vleft + "px", top: _vtop + "px", width: width_box, height: height_box }), box_clone.find("img").css({ left: _vleft_image, top: _vtop_image }), this.addboxclone(box_clone); var delay_time = 30 * (30 * math.random()); i == total - 1 && (delay_time = 900); var callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.delay(delay_time).animate({ opacity: "show", top: _btop + "px", left: _bleft + "px" }, time_animate, easing, callback), col_t++, col_t == division_h && (col_t = 0, col++) } }, animationglasscube: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutexpo": this.settings.easing_default, time_animate = 500 / this.settings.velocity; this.setactuallevel(); var max_w = self.getmaxw(10), total = 2 * math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), width_box = 2 * math.ceil(this.settings.width_skitter / total), height_box = this.settings.height_skitter / 2, col = 0; for (i = 0; i < total; i++) { mod = i % 2 == 0; var _ileft = width_box * col, _itop = mod ? -self.settings.height_skitter: self.settings.height_skitter, _fleft = width_box * col, _ftop = mod ? 0 : height_box, _bleft = -(width_box * col), _btop = mod ? 0 : -height_box, delay_time = 120 * col, box_clone = this.getboxclone(); box_clone.css({ left: _ileft, top: _itop, width: width_box, height: height_box }), box_clone.find("img").css({ left: _bleft + width_box / 1.5, top: _btop }).delay(delay_time).animate({ left: _bleft, top: _btop }, 1.9 * time_animate, "easeoutquad"), this.addboxclone(box_clone); var callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.show().delay(delay_time).animate({ top: _ftop, left: _fleft }, time_animate, easing, callback), i % 2 != 0 && col++ } }, animationglassblock: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutexpo": this.settings.easing_default, time_animate = 700 / this.settings.velocity; this.setactuallevel(); var max_w = self.getmaxw(10), total = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), width_box = math.ceil(this.settings.width_skitter / total), height_box = this.settings.height_skitter; for (i = 0; i < total; i++) { var _ileft = width_box * i, _itop = 0, _fleft = width_box * i, _ftop = 0, _bleft = -(width_box * i), _btop = 0, delay_time = 100 * i, box_clone = this.getboxclone(); box_clone.css({ left: _ileft, top: _itop, width: width_box, height: height_box }), box_clone.find("img").css({ left: _bleft + width_box / 1.5, top: _btop }).delay(delay_time).animate({ left: _bleft, top: _btop }, 1.1 * time_animate, "easeinoutquad"), this.addboxclone(box_clone); var callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.delay(delay_time).animate({ top: _ftop, left: _fleft, opacity: "show" }, time_animate, easing, callback) } }, animationcircles: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeinquad": this.settings.easing_default, time_animate = 500 / this.settings.velocity; this.setactuallevel(); var total = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10)), size_box = this.settings.height_skitter, radius = math.sqrt(math.pow(this.settings.width_skitter, 2) + math.pow(this.settings.height_skitter, 2)), radius = math.ceil(radius); for (i = 0; i < total; i++) { var _ileft = self.settings.width_skitter / 2 - size_box / 2, _itop = self.settings.height_skitter / 2 - size_box / 2, _fleft = _ileft, _ftop = _itop, box_clone = null; box_clone = this.getboxclonebackground({ image: self.getcurrentimage(), left: _ileft, top: _itop, width: size_box, height: size_box, position: { top: -_itop, left: -_ileft } }).skittercss3({ "border-radius": radius + "px" }), size_box += 200, this.addboxclone(box_clone); var delay_time = 70 * i, callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.delay(delay_time).animate({ top: _ftop, left: _fleft, opacity: "show" }, time_animate, easing, callback) } }, animationcirclesinside: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeinquad": this.settings.easing_default, time_animate = 500 / this.settings.velocity, image_old = this.getoldimage(); this.setactuallevel(), this.setlinkatual(), this.skitter_box.find(".image_main").attr({ src: this.getcurrentimage() }); var total = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10)), radius = math.sqrt(math.pow(this.settings.width_skitter, 2) + math.pow(this.settings.height_skitter, 2)), radius = math.ceil(radius), size_box = radius; for (i = 0; i < total; i++) { var _ileft = self.settings.width_skitter / 2 - size_box / 2, _itop = self.settings.height_skitter / 2 - size_box / 2, _fleft = _ileft, _ftop = _itop, box_clone = null; box_clone = this.getboxclonebackground({ image: image_old, left: _ileft, top: _itop, width: size_box, height: size_box, position: { top: -_itop, left: -_ileft } }).skittercss3({ "border-radius": radius + "px" }), size_box -= 200, this.addboxclone(box_clone), box_clone.show(); var delay_time = 70 * i, callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.delay(delay_time).animate({ top: _ftop, left: _fleft, opacity: "hide" }, time_animate, easing, callback) } }, animationcirclesrotate: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeinquad": this.settings.easing_default, time_animate = 500 / this.settings.velocity, image_old = this.getoldimage(); this.setactuallevel(), this.setlinkatual(), this.skitter_box.find(".image_main").attr({ src: this.getcurrentimage() }); var total = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / 10)), radius = math.sqrt(math.pow(this.settings.width_skitter, 2) + math.pow(this.settings.height_skitter, 2)), radius = math.ceil(radius), size_box = radius; for (i = 0; i < total; i++) { var _ileft = self.settings.width_skitter / 2 - size_box / 2, _itop = self.settings.height_skitter / 2 - size_box / 2, _fleft = _ileft, _ftop = _itop, box_clone = null; box_clone = this.getboxcloneimgold(image_old), box_clone.css({ left: _ileft, top: _itop, width: size_box, height: size_box }).skittercss3({ "border-radius": radius + "px" }), box_clone.find("img").css({ left: -_ileft, top: -_itop }), size_box -= 300, this.addboxclone(box_clone), box_clone.show(); var delay_time = 200 * i, callback = i == total - 1 ? function() { self.finishanimation() }: ""; i % 2 == 0, "+=2deg"; box_clone.delay(delay_time).animate({ top: _ftop, left: _fleft, opacity: "hide" }, time_animate, easing, callback) } }, animationcubeshow: function(options) { var self = this; this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutquad": this.settings.easing_default, time_animate = 400 / this.settings.velocity; this.setactuallevel(); var max_w = self.getmaxw(8), max_h = 4, division_w = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), division_h = math.ceil(this.settings.height_skitter / (this.settings.height_skitter / max_h)), total = division_w * division_h, width_box = math.ceil(this.settings.width_skitter / division_w), height_box = math.ceil(this.settings.height_skitter / division_h), _btop = 0, _bleft = 0, line = 0, col = 0; for (i = 0; i < total; i++) { _btop = height_box * line, _bleft = width_box * col; var delay_time = 30 * i, box_clone = this.getboxclone(); box_clone.css({ left: _bleft, top: _btop, width: width_box, height: height_box }).hide(), box_clone.find("img").css({ left: -_bleft, top: -_btop }), this.addboxclone(box_clone); var callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.delay(delay_time).animate({ width: "show", height: "show" }, time_animate, easing, callback), line++, line == division_h && (line = 0, col++) } }, animationdirectionbars: function(options) { var self = this, options = $.extend({}, { direction: "top" }, options || {}); this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeinoutquad": this.settings.easing_default, time_animate = 400 / this.settings.velocity, image_old = this.getoldimage(); this.setactuallevel(), this.setlinkatual(), this.skitter_box.find(".image_main").attr({ src: this.getcurrentimage() }); var max_w = self.getmaxw(12), total = max_w, width_box = math.ceil(this.settings.width_skitter / total), height_box = this.settings.height_skitter, _ftop = "top" == options.direction ? -height_box: height_box; for (i = 0; i < total; i++) { var _vtop = 0, _vleft = width_box * i, _vtop_image = 0, _vleft_image = -(width_box * i), box_clone = this.getboxcloneimgold(image_old); box_clone.css({ left: _vleft + "px", top: _vtop + "px", width: width_box, height: height_box }), box_clone.find("img").css({ left: _vleft_image, top: _vtop_image }), this.addboxclone(box_clone), box_clone.show(); var delay_time = 70 * i, callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.delay(delay_time).animate({ top: _ftop }, time_animate, easing, callback) } }, animationhidebars: function(options) { var self = this, options = $.extend({}, { random: !1 }, options || {}); this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? "easeoutcirc": this.settings.easing_default, time_animate = 700 / this.settings.velocity, image_old = this.getoldimage(); this.setactuallevel(), this.setlinkatual(), this.skitter_box.find(".image_main").attr({ src: this.getcurrentimage() }); var max_w = self.getmaxw(10), division_w = math.ceil(this.settings.width_skitter / (this.settings.width_skitter / max_w)), total = division_w, width_box = math.ceil(this.settings.width_skitter / division_w), height_box = this.settings.height_skitter; for (i = 0; i < total; i++) { var _vtop = 0, _vleft = width_box * i, _vtop_image = 0, _vleft_image = -(width_box * i), _fleft = "+=" + width_box, box_clone = this.getboxcloneimgold(image_old); box_clone.css({ left: 0, top: 0, width: width_box, height: height_box }), box_clone.find("img").css({ left: _vleft_image, top: _vtop_image }); var box_clone_main = this.getboxcloneimgold(image_old); box_clone_main.css({ left: _vleft + "px", top: _vtop + "px", width: width_box, height: height_box }), box_clone_main.html(box_clone), this.addboxclone(box_clone_main), box_clone.show(), box_clone_main.show(); var delay_time = 50 * i, callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.delay(delay_time).animate({ left: _fleft }, time_animate, easing, callback) } }, animationswapbars: function(options) { var self = this, max_w = self.getmaxw(7), options = $.extend({}, { direction: "top", delay_type: "sequence", total: max_w, easing: "easeoutcirc" }, options || {}); this.settings.is_animating = !0; var easing = "" == this.settings.easing_default ? options.easing: this.settings.easing_default, time_animate = 500 / this.settings.velocity, image_old = this.getoldimage(); this.setactuallevel(), this.setlinkatual(), this.skitter_box.find(".image_main").attr({ src: this.getcurrentimage() }), this.skitter_box.find(".image_main").hide(); var total = options.total; for (i = 0; i < total; i++) { var width_box = math.ceil(this.settings.width_skitter / total), height_box = this.settings.height_skitter, _ileftc = width_box * i, _vleft_image = -_ileftc; switch (options.delay_type) { case "zebra": default: var delay_time = i % 2 == 0 ? 0 : 150; break; case "random": var delay_time = 30 * (30 * math.random()); break; case "sequence": var delay_time = 100 * i } var box_clone = this.getboxcloneimgold(image_old); box_clone.find("img").css({ left: _vleft_image, top: 0 }), box_clone.css({ top: 0, left: 0, width: width_box, height: height_box }); var box_clone_next = this.getboxclone(); box_clone_next.find("img").css({ left: _vleft_image, top: 0 }), box_clone_next.css({ top: 0, left: -width_box, width: width_box, height: height_box }); var box_clone_container = this.getboxclone(); box_clone_container.html("").append(box_clone).append(box_clone_next), box_clone_container.css({ top: 0, left: _ileftc, width: width_box, height: height_box }), this.addboxclone(box_clone_container), box_clone_container.show(), box_clone.show(), box_clone_next.show(); var callback = i == total - 1 ? function() { self.finishanimation() }: ""; box_clone.delay(delay_time).animate({ left: width_box }, time_animate, easing), box_clone_next.delay(delay_time).animate({ left: 0 }, time_animate, easing, callback) } }, animationswapblocks: function(options) { var self = this, options = $.extend({}, { easing_old: "easeinoutquad", easing_new: "easeoutquad" }, options || {}); this.settings.is_animating = !0; var easing_old = "" == this.settings.easing_default ? options.easing_old: this.settings.easing_default, easing_new = "" == this.settings.easing_default ? options.easing_new: this.settings.easing_default, time_animate = 800 / this.settings.velocity, image_old = this.getoldimage(); this.setactuallevel(), this.setlinkatual(), this.skitter_box.find(".image_main").attr({ src: this.getcurrentimage() }), this.skitter_box.find(".image_main").hide(); var total = 2, width_box = this.settings.width_skitter, height_box = math.ceil(this.settings.height_skitter / total), box_clone1 = this.getboxcloneimgold(image_old), box_clone2 = this.getboxcloneimgold(image_old); box_clone1.find("img").css({ left: 0, top: 0 }), box_clone1.css({ top: 0, left: 0, width: width_box, height: height_box }), box_clone2.find("img").css({ left: 0, top: -height_box }), box_clone2.css({ top: height_box, left: 0, width: width_box, height: height_box }); var box_clone_next1 = this.getboxclone(), box_clone_next2 = this.getboxclone(); box_clone_next1.find("img").css({ left: 0, top: height_box }), box_clone_next1.css({ top: 0, left: 0, width: width_box, height: height_box }), box_clone_next2.find("img").css({ left: 0, top: -(height_box * total) }), box_clone_next2.css({ top: height_box, left: 0, width: width_box, height: height_box }), this.addboxclone(box_clone_next1), this.addboxclone(box_clone_next2), this.addboxclone(box_clone1), this.addboxclone(box_clone2), box_clone1.show(), box_clone2.show(), box_clone_next1.show(), box_clone_next2.show(); var callback = function() { self.finishanimation() }; box_clone1.find("img").animate({ top: height_box }, time_animate, easing_old, function() { box_clone1.remove() }), box_clone2.find("img").animate({ top: -(height_box * total) }, time_animate, easing_old, function() { box_clone2.remove() }), box_clone_next1.find("img").animate({ top: 0 }, time_animate, easing_new), box_clone_next2.find("img").animate({ top: -height_box }, time_animate, easing_new, callback) }, animationcut: function(options) { var self = this, options = $.extend({}, { easing_old: "easeinoutexpo", easing_new: "easeinoutexpo" }, options || {}); this.settings.is_animating = !0; var easing_old = "" == this.settings.easing_default ? options.easing_old: this.settings.easing_default, easing_new = "" == this.settings.easing_default ? options.easing_new: this.settings.easing_default, time_animate = 900 / this.settings.velocity, image_old = this.getoldimage(); this.setactuallevel(), this.setlinkatual(), this.skitter_box.find(".image_main").attr({ src: this.getcurrentimage() }), this.skitter_box.find(".image_main").hide(); var total = 2, width_box = this.settings.width_skitter, height_box = math.ceil(this.settings.height_skitter / total), box_clone1 = this.getboxcloneimgold(image_old), box_clone2 = this.getboxcloneimgold(image_old); box_clone1.find("img").css({ left: 0, top: 0 }), box_clone1.css({ top: 0, left: 0, width: width_box, height: height_box }), box_clone2.find("img").css({ left: 0, top: -height_box }), box_clone2.css({ top: height_box, left: 0, width: width_box, height: height_box }); var box_clone_next1 = this.getboxclone(), box_clone_next2 = this.getboxclone(); box_clone_next1.find("img").css({ left: 0, top: 0 }), box_clone_next1.css({ top: 0, left: width_box, width: width_box, height: height_box }), box_clone_next2.find("img").css({ left: 0, top: -height_box }), box_clone_next2.css({ top: height_box, left: -width_box, width: width_box, height: height_box }), this.addboxclone(box_clone_next1), this.addboxclone(box_clone_next2), this.addboxclone(box_clone1), this.addboxclone(box_clone2), box_clone1.show(), box_clone2.show(), box_clone_next1.show(), box_clone_next2.show(); var callback = function() { self.finishanimation() }; box_clone1.animate({ left: -width_box }, time_animate, easing_old, function() { box_clone1.remove() }), box_clone2.animate({ left: width_box }, time_animate, easing_old, function() { box_clone2.remove() }), box_clone_next1.animate({ left: 0 }, time_animate, easing_new), box_clone_next2.animate({ left: 0 }, time_animate, easing_new, callback) }, finishanimation: function(options) { var self = this; this.skitter_box.find(".image_main").show(), this.showboxtext(), this.settings.is_animating = !1, this.skitter_box.find(".image_main").attr({ src: this.getcurrentimage() }), this.skitter_box.find(".image > a").attr({ href: this.settings.link_atual }), this.settings.is_hover_skitter_box || this.settings.is_paused || this.settings.is_blur || (this.timer = settimeout(function() { self.completemove() }, this.settings.interval)), self.starttime() }, completemove: function() { this.cleartimer(!0), this.skitter_box.find(".box_clone").remove(), this.settings.is_paused || this.settings.is_blur || this.nextimage() }, setactuallevel: function() { $.isfunction(this.settings.imageswitched) && this.settings.imageswitched(this.settings.image_i, this), this.setimagelink(), this.addclassnumber(), this.hideboxtext(), this.increasingimage() }, setimagelink: function() { var name_image = this.settings.images_links[this.settings.image_i][0], link_image = this.settings.images_links[this.settings.image_i][1], label_image = this.settings.images_links[this.settings.image_i][3], target_link = this.settings.images_links[this.settings.image_i][4]; this.settings.image_atual = name_image, this.settings.link_atual = link_image, this.settings.label_atual = label_image, this.settings.target_atual = target_link }, addclassnumber: function() { var self = this; this.skitter_box.find(".image_number_select").removeclass("image_number_select"), $("#image_n_" + (this.settings.image_i + 1) + "_" + self.number_skitter).addclass("image_number_select") }, increasingimage: function() { this.settings.image_i++, this.settings.image_i == this.settings.images_links.length && (this.settings.image_i = 0) }, getboxclone: function() { if ("#" != this.settings.link_atual) { var img_clone = $('