/** * jQuery Skitter Slideshow * @name jquery.skitter.js * @description Slideshow * @author Thiago Silva Ferreira - http://thiagosf.net * @version 4.2.3 * @date August 04, 2010 * @update July 12, 2014 * @copyright (c) 2010 Thiago Silva Ferreira - http://thiagosf.net * @license Dual licensed under the MIT or GPL Version 2 licenses * @example http://thiagosf.net/projects/jquery/skitter/ */ !function(t){var s=0,e=[];t.fn.skitter=function(i){return this.each(function(){void 0==t(this).data("skitter_number")&&(t(this).data("skitter_number",s),e.push(new a(this,i,s)),++s)})};var n={velocity:1,interval:2500,animation:"",numbers:!0,navigation:!0,label:!0,easing_default:"",box_skitter: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_box_skitter:!1,random_ia:null,show_randomly:!1,thumbs:!1,animateNumberOut:!1,animateNumberOver:!1,animateNumberActive:!1,hideTools:!1,fullscreen:!1,xml:!1,dots:!1,width_label:null,opacity_elements:.75,interval_in_elements:200,interval_out_elements:300,onLoad:null,imageSwitched:null,max_number_height:20,numbers_align:"left",preview:!1,focus:!1,foucs_active:!1,focus_position:"center",controls:!1,controls_position:"center",progressbar:!1,progressbar_css:{},is_paused:!1,is_blur:!1,is_paused_time:!1,timeStart:0,elapsedTime:0,stop_over:!0,enable_navigation_keys:!1,with_animations:[],mouseOverButton:null,mouseOutButton:null,auto_play:!0,labelAnimation:"slideUp",theme:null,structure:'prevnext
'};t.skitter=function(i,s,e){this.box_skitter=t(i),this.timer=null,this.settings=t.extend({},n,s||{}),this.number_skitter=e,this.setup()};var a=t.skitter;a.fn=a.prototype={},a.fn.extend=t.extend,a.fn.extend({setup:function(){var i=this;if(this.settings.fullscreen){var s=t(window).width(),e=t(window).height();this.box_skitter.width(s).height(e),this.box_skitter.css({position:"absolute",top:0,left:0,"z-index":1e3}),this.settings.stop_over=!1,t("body").css({overflown:"hidden"})}if(this.settings.width_skitter=parseFloat(this.box_skitter.css("width")),this.settings.height_skitter=parseFloat(this.box_skitter.css("height")),!this.settings.width_skitter||!this.settings.height_skitter)return console.warn("Width or height size is null! - Skitter Slideshow"),!1;this.settings.theme&&this.box_skitter.addClass("skitter-"+this.settings.theme),this.box_skitter.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.box_skitter.find(".info_slide").hide(),this.box_skitter.find(".label_skitter").hide(),this.box_skitter.find(".prev_button").hide(),this.box_skitter.find(".next_button").hide(),this.box_skitter.find(".container_skitter").width(this.settings.width_skitter),this.box_skitter.find(".container_skitter").height(this.settings.height_skitter);var n=this.settings.width_label?this.settings.width_label:this.settings.width_skitter;this.box_skitter.find(".label_skitter").width(n);var a=" image_number_select",o=0;this.settings.images_links=new Array;var h=function(t,s,e,n,h){if(i.settings.images_links.push([s,t,e,n,h]),i.settings.thumbs){var r="";r=i.settings.width_skitter>i.settings.height_skitter?'height="100"':'width="100"',i.box_skitter.find(".info_slide").append(''+'Error loading images. One or more images were not found.
')}).attr("src",s[0])})},start:function(){var i=this,s=!1;(this.settings.numbers||this.settings.thumbs)&&this.box_skitter.find(".info_slide").fadeIn(500),this.settings.dots&&this.box_skitter.find(".info_slide_dots").fadeIn(500),this.settings.label&&this.box_skitter.find(".label_skitter").show(),this.settings.navigation&&(this.box_skitter.find(".prev_button").fadeIn(500),this.box_skitter.find(".next_button").fadeIn(500)),i.settings.auto_play&&i.startTime(),i.windowFocusOut(),i.setLinkAtual(),i.box_skitter.find(".image a img").attr({src:i.settings.image_atual}),img_link=i.box_skitter.find(".image a"),img_link=i.resizeImage(img_link),img_link.find("img").fadeIn(1500),i.setValueBoxText(),i.showBoxText(),i.settings.auto_play&&i.stopOnMouseOver();var e=function(){i.settings.stop_over&&(s=!0,i.settings.is_hover_box_skitter=!0,i.clearTimer(!0),i.pauseProgressBar())};i.box_skitter.mouseover(e),i.box_skitter.find(".next_button").mouseover(e),i.settings.images_links.length>1&&!s?i.settings.auto_play&&(i.timer=setTimeout(function(){i.nextImage()},i.settings.interval)):i.box_skitter.find(".loading, .image_loading, .image_number, .next_button, .prev_button").remove(),t.isFunction(i.settings.onLoad)&&i.settings.onLoad(i)},jumpToImage:function(t){0==this.settings.is_animating&&(this.settings.elapsedTime=0,this.box_skitter.find(".box_clone").stop(),this.clearTimer(!0),this.settings.image_i=Math.floor(t),this.box_skitter.find(".image a").attr({href:this.settings.link_atual}),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual}),this.box_skitter.find(".box_clone").remove(),this.nextImage())},nextImage:function(){var t=this;if(animations_functions=["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"],t.settings.progressbar&&t.hideProgressBar(),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,"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 i=parseInt(Math.random()*animations_functions.length);animation_type=animations_functions[i]}else if(t.settings.with_animations.length>0){var s=t.settings.with_animations.length;void 0==this.settings._i_animation&&(this.settings._i_animation=0),animation_type=t.settings.with_animations[this.settings._i_animation],++this.settings._i_animation,this.settings._i_animation>=s&&(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(s){var e=this,s=t.extend({},{random:!1},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeOutExpo":this.settings.easing_default,a=700/this.settings.velocity;this.setActualLevel();var o=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/8)),h=Math.ceil(this.settings.height_skitter/(this.settings.height_skitter/3)),r=o*h,g=Math.ceil(this.settings.width_skitter/o),l=Math.ceil(this.settings.height_skitter/h),d=this.settings.height_skitter+200,_=this.settings.height_skitter+200,c=0,u=0;for(i=0;r>i;i++){d=0==i%2?d:-d,_=0==i%2?_:-_;var f=d+l*c+150*c,m=-e.settings.width_skitter,p=-(l*c),k=-(g*u),b=l*c,v=g*u,x=this.getBoxClone();x.hide();var w=50*i;s.random?(w=40*u,x.css({left:m+"px",top:f+"px",width:g,height:l})):(a=500,x.css({left:this.settings.width_skitter+g*i,top:this.settings.height_skitter+l*i,width:g,height:l})),this.addBoxClone(x);var y=i==r-1?function(){e.finishAnimation()}:"";x.show().delay(w).animate({top:b+"px",left:v+"px"},a,n,y),s.random?(x.find("img").css({left:k+100,top:p+50}),x.find("img").delay(w+a/2).animate({left:k,top:p},1e3,"easeOutBack")):(x.find("img").css({left:k,top:p}),x.find("img").delay(w+a/2).fadeTo(100,.5).fadeTo(300,1)),c++,c==h&&(c=0,u++)}},animationBlock:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=500/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/15)),a=Math.ceil(this.settings.width_skitter/n),o=this.settings.height_skitter;for(i=0;n>i;i++){var h=a*i,r=0,g=this.getBoxClone();g.css({left:this.settings.width_skitter+100,top:0,width:a,height:o}),g.find("img").css({left:-(a*i)}),this.addBoxClone(g);var l=80*i,d=i==n-1?function(){t.finishAnimation()}:"";g.show().delay(l).animate({top:r,left:h},e,s),g.find("img").hide().delay(l+100).animate({opacity:"show"},e+300,s,d)}},animationCubeStop:function(s){var e=this,s=t.extend({},{random:!1},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeInQuad":this.settings.easing_default,a=300/this.settings.velocity,o=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var h=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/8)),r=Math.ceil(this.settings.height_skitter/(this.settings.width_skitter/8)),g=h*r,l=Math.ceil(this.settings.width_skitter/h),d=Math.ceil(this.settings.height_skitter/r),_=0,c=0,u=0,f=0,m=this.settings.width_skitter/16;for(i=0;g>i;i++){_=0==i%2?_:-_,c=0==i%2?c:-c;var p=_+d*u,k=c+l*f,b=-(d*u),v=-(l*f),x=p-m,w=k-m,y=this.getBoxCloneImgOld(o);y.css({left:k+"px",top:p+"px",width:l,height:d}),y.find("img").css({left:v,top:b}),this.addBoxClone(y),y.show();var B=50*i;s.random&&(a=400*(e.getRandom(2)+1)/this.settings.velocity,x=p,w=k,B=Math.ceil(30*e.getRandom(30))),s.random&&i==g-1&&(a=1200,B=900);var C=i==g-1?function(){e.finishAnimation()}:"";y.delay(B).animate({opacity:"hide",top:x+"px",left:w+"px"},a,n,C),u++,u==r&&(u=0,f++)}},animationCubeHide:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=500/this.settings.velocity,n=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var a=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/8)),o=Math.ceil(this.settings.height_skitter/(this.settings.height_skitter/3)),h=a*o,r=Math.ceil(this.settings.width_skitter/a),g=Math.ceil(this.settings.height_skitter/o),l=0,d=0,_=0,c=0;for(i=0;h>i;i++){l=0==i%2?l:-l,d=0==i%2?d:-d;var u=l+g*_,f=d+r*c,m=-(g*_),p=-(r*c),k=this.getBoxCloneImgOld(n);k.css({left:f+"px",top:u+"px",width:r,height:g}),k.find("img").css({left:p,top:m}),this.addBoxClone(k),k.show();var b=50*i;b=i==h-1?50*h:b;var v=i==h-1?function(){t.finishAnimation()}:"";k.delay(b).animate({opacity:"hide"},e,s,v),_++,_==o&&(_=0,c++)}},animationCubeJelly:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeInBack":this.settings.easing_default,e=300/this.settings.velocity,n=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var a=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/8)),o=Math.ceil(this.settings.height_skitter/(this.settings.height_skitter/3)),h=a*o,r=Math.ceil(this.settings.width_skitter/a),g=Math.ceil(this.settings.height_skitter/o),l=0,d=0,_=0,c=0,u=-1;for(i=0;h>i;i++){0!=c%2?(0==_&&(u=u+o+1),u--):(c>0&&0==_&&(u+=2),u++),l=0==i%2?l:-l,d=0==i%2?d:-d;var f=l+g*_,m=d+r*c,p=-(g*_),k=-(r*c),b=this.getBoxCloneImgOld(n);b.css({left:m+"px",top:f+"px",width:r,height:g}),b.find("img").css({left:k,top:p}),this.addBoxClone(b),b.show();var v=50*i,x=i==h-1?function(){t.finishAnimation()}:"";b.delay(v).animate({width:"+=100px",height:"+=100px",top:"-=20px",left:"-=20px",opacity:"hide"},e,s,x),_++,_==o&&(_=0,c++)}},animationCubeSize:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeInOutQuad":this.settings.easing_default,e=600/this.settings.velocity,n=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var a=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/8)),o=Math.ceil(this.settings.height_skitter/(this.settings.height_skitter/3)),h=a*o,r=Math.ceil(this.settings.width_skitter/a),g=Math.ceil(this.settings.height_skitter/o),l=0,d=0,_=0,c=0;for(Math.ceil(this.settings.width_skitter/6),i=0;h>i;i++){l=0==i%2?l:-l,d=0==i%2?d:-d;var u=l+g*_,f=d+r*c,m=-(g*_),p=-(r*c),k=this.getBoxCloneImgOld(n);k.css({left:f,top:u,width:r,height:g}),k.find("img").css({left:p,top:m}),this.addBoxClone(k),k.show();var b=50*i,v=i==h-1?function(){t.finishAnimation()}:"";k.delay(b).animate({opacity:"hide",width:"hide",height:"hide",top:u+1.5*r,left:f+1.5*g},e,s,v),_++,_==o&&(_=0,c++)}},animationHorizontal:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutExpo":this.settings.easing_default,e=700/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/7)),a=this.settings.width_skitter,o=Math.ceil(this.settings.height_skitter/n);for(i=0;n>i;i++){var h=(0==i%2?"":"")+a,r=i*o,g=this.getBoxClone();g.css({left:h+"px",top:r+"px",width:a,height:o}),g.find("img").css({left:0,top:-r}),this.addBoxClone(g);var l=90*i,d=i==n-1?function(){t.finishAnimation()}:"";g.delay(l).animate({opacity:"show",top:r,left:0},e,s,d)}},animationShowBars:function(s){var e=this,s=t.extend({},{random:!1},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,a=400/this.settings.velocity;this.setActualLevel();var o=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),h=Math.ceil(this.settings.width_skitter/o),r=this.settings.height_skitter;for(i=0;o>i;i++){var g=h*i,l=0,d=this.getBoxClone();if(d.css({left:g,top:l-50,width:h,height:r}),d.find("img").css({left:-(h*i),top:0}),this.addBoxClone(d),s.random){var _=this.getRandom(o),c=50*_;c=i==o-1?50*o:c}else{var c=70*i;a-=2*i}var u=i==o-1?function(){e.finishAnimation()}:"";d.delay(c).animate({opacity:"show",top:l+"px",left:g+"px"},a,n,u)}},animationTube:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutElastic":this.settings.easing_default,e=600/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),a=Math.ceil(this.settings.width_skitter/n),o=this.settings.height_skitter;for(i=0;n>i;i++){var h=0,r=o,g=a*i,l=this.getBoxClone();l.css({left:g,top:r,height:o,width:a}),l.find("img").css({left:-g}),this.addBoxClone(l);var d=this.getRandom(n),_=30*d,c=i==n-1?function(){t.finishAnimation()}:"";l.show().delay(_).animate({top:h},e,s,c)}},animationFade:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=800/this.settings.velocity;this.setActualLevel();var n=this.settings.width_skitter,a=this.settings.height_skitter,o=2;for(i=0;o>i;i++){var h=0,r=0,g=this.getBoxClone();g.css({left:r,top:h,width:n,height:a}),this.addBoxClone(g);var l=i==o-1?function(){t.finishAnimation()}:"";g.animate({opacity:"show",left:0,top:0},e,s,l)}},animationFadeFour:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=500/this.settings.velocity;this.setActualLevel();var n=this.settings.width_skitter,a=this.settings.height_skitter,o=4;for(i=0;o>i;i++){if(0==i)var h="-100px",r="-100px";else if(1==i)var h="-100px",r="100px";else if(2==i)var h="100px",r="-100px";else if(3==i)var h="100px",r="100px";var g=this.getBoxClone();g.css({left:r,top:h,width:n,height:a}),this.addBoxClone(g);var l=i==o-1?function(){t.finishAnimation()}:"";g.animate({opacity:"show",left:0,top:0},e,s,l)}},animationParalell:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=400/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/16)),a=Math.ceil(this.settings.width_skitter/n),o=this.settings.height_skitter;for(i=0;n>i;i++){var h=a*i,r=0,g=this.getBoxClone();g.css({left:h,top:r-this.settings.height_skitter,width:a,height:o}),g.find("img").css({left:-(a*i),top:0}),this.addBoxClone(g);var l;n/2-1>=i?l=1400-200*i:i>n/2-1&&(l=200*(i-n/2)),l/=2.5;var d=i==n-1?function(){t.finishAnimation()}:"";g.delay(l).animate({top:r+"px",left:h+"px",opacity:"show"},e,s,d)}},animationBlind:function(s){var e=this,s=t.extend({},{height:!1},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,a=400/this.settings.velocity;this.setActualLevel();var o=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/16)),h=Math.ceil(this.settings.width_skitter/o),r=this.settings.height_skitter;for(i=0;o>i;i++){var g=h*i,l=0,d=this.getBoxClone();d.css({left:g,top:l,width:h,height:r}),d.find("img").css({left:-(h*i),top:0}),this.addBoxClone(d);var _;if(s.height){o/2-1>=i?_=200+200*i:i>o/2-1&&(_=200*(o/2-i)+100*o);var c=i==o/2?function(){e.finishAnimation()}:""}else{o/2-1>=i?_=1400-200*i:i>o/2-1&&(_=200*(i-o/2));var c=i==o-1?function(){e.finishAnimation()}:""}if(_/=2.5,s.height){a+=2*i;var n="easeOutQuad";d.delay(_).animate({opacity:"show",top:l+"px",left:g+"px",height:"show"},a,n,c)}else d.delay(_).animate({opacity:"show",top:l+"px",left:g+"px",width:"show"},a,n,c)}},animationBlindDimension:function(s){var e=this,s=t.extend({},{height:!0,time_animate:500,delay:100},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,a=s.time_animate/this.settings.velocity;this.setActualLevel();var o=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/16)),h=Math.ceil(this.settings.width_skitter/o),r=this.settings.height_skitter;for(i=0;o>i;i++){var g=h*i,l=0,d=this.getBoxClone();d.css({left:g,top:l,width:h,height:r}),d.find("img").css({left:-(h*i),top:0}),this.addBoxClone(d);var _=s.delay*i,c=i==o-1?function(){e.finishAnimation()}:"";if(s.height){var n="easeOutQuad";d.delay(_).animate({opacity:"show",top:l+"px",left:g+"px",height:"show"},a,n,c)}else d.delay(_).animate({opacity:"show",top:l+"px",left:g+"px",width:"show"},a,n,c)}},animationDirection:function(s){var e=this,s=t.extend({},{direction:"top",delay_type:"sequence",total:7},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeInOutExpo":this.settings.easing_default,a=1200/this.settings.velocity,o=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual}),this.box_skitter.find(".image_main").hide();var h=s.total;for(i=0;h>i;i++){switch(s.direction){default:case"top":var r=Math.ceil(this.settings.width_skitter/h),g=this.settings.height_skitter,l=0,d=r*i,_=-g,c=d,u=g,f=d,m=0,p=d,k=0,b=-d;break;case"bottom":var r=Math.ceil(this.settings.width_skitter/h),g=this.settings.height_skitter,l=0,d=r*i,_=g,c=d,u=-g,f=d,m=0,p=d,k=0,b=-d;break;case"right":var r=this.settings.width_skitter,g=Math.ceil(this.settings.height_skitter/h),l=g*i,d=0,_=l,c=r,u=l,f=-c,m=l,p=0,k=-l,b=0;break;case"left":var r=this.settings.width_skitter,g=Math.ceil(this.settings.height_skitter/h),l=g*i,d=0,_=l,c=-r,u=l,f=-c,m=l,p=0,k=-l,b=0}switch(s.delay_type){case"zebra":default:var v=0==i%2?0:150;break;case"random":var v=30*30*Math.random();break;case"sequence":var v=100*i}var x=this.getBoxCloneImgOld(o);x.find("img").css({left:b,top:k}),x.css({top:l,left:d,width:r,height:g}),this.addBoxClone(x),x.show(),x.delay(v).animate({top:_,left:c},a,n);var w=this.getBoxClone();w.find("img").css({left:b,top:k}),w.css({top:u,left:f,width:r,height:g}),this.addBoxClone(w),w.show();var y=i==h-1?function(){e.finishAnimation()}:"";w.delay(v).animate({top:m,left:p},a,n,y)}},animationCubeSpread:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=700/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/8)),a=Math.ceil(this.settings.height_skitter/(this.settings.width_skitter/8)),o=n*a,h=Math.ceil(this.settings.width_skitter/n),r=Math.ceil(this.settings.height_skitter/a),g=0,l=0,d=0,_=0,c=new Array,u=new Array;for(i=0;o>i;i++){g=0==i%2?g:-g,l=0==i%2?l:-l;var f=g+r*d,m=l+h*_;c[i]=[f,m],d++,d==a&&(d=0,_++)}for(d=0,_=0,i=0;o>i;i++)u[i]=i;var u=t.shuffleArray(u);for(i=0;o>i;i++){g=0==i%2?g:-g,l=0==i%2?l:-l;var f=g+r*d,m=l+h*_,p=-(r*d),k=-(h*_),b=f,v=m;f=c[u[i]][0],m=c[u[i]][1];var x=this.getBoxClone();x.css({left:m+"px",top:f+"px",width:h,height:r}),x.find("img").css({left:k,top:p}),this.addBoxClone(x);var w=30*30*Math.random();i==o-1&&(w=900);var y=i==o-1?function(){t.finishAnimation()}:"";x.delay(w).animate({opacity:"show",top:b+"px",left:v+"px"},e,s,y),d++,d==a&&(d=0,_++)}},animationGlassCube:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutExpo":this.settings.easing_default,e=500/this.settings.velocity;this.setActualLevel();var n=2*Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),a=2*Math.ceil(this.settings.width_skitter/n),o=this.settings.height_skitter/2,h=0;for(i=0;n>i;i++){mod=0==i%2?!0:!1;var r=a*h,g=mod?-t.settings.height_skitter:t.settings.height_skitter,l=a*h,d=mod?0:o,_=-(a*h),c=mod?0:-o,u=120*h,f=this.getBoxClone();f.css({left:r,top:g,width:a,height:o}),f.find("img").css({left:_+a/1.5,top:c}).delay(u).animate({left:_,top:c},1.9*e,"easeOutQuad"),this.addBoxClone(f);var m=i==n-1?function(){t.finishAnimation()}:"";f.show().delay(u).animate({top:d,left:l},e,s,m),0!=i%2&&h++}},animationGlassBlock:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutExpo":this.settings.easing_default,e=700/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),a=Math.ceil(this.settings.width_skitter/n),o=this.settings.height_skitter;for(i=0;n>i;i++){var h=a*i,r=0,g=a*i,l=0,d=-(a*i),_=0,c=100*i,u=this.getBoxClone();u.css({left:h,top:r,width:a,height:o}),u.find("img").css({left:d+a/1.5,top:_}).delay(c).animate({left:d,top:_},1.1*e,"easeInOutQuad"),this.addBoxClone(u);var f=i==n-1?function(){t.finishAnimation()}:"";u.delay(c).animate({top:l,left:g,opacity:"show"},e,s,f)}},animationCircles:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeInQuad":this.settings.easing_default,e=500/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),a=100,o=Math.sqrt(Math.pow(this.settings.width_skitter,2)+Math.pow(this.settings.height_skitter,2)),o=Math.ceil(o);for(i=0;n>i;i++){var h=t.settings.width_skitter/2-a/2,r=t.settings.height_skitter/2-a/2,g=h,l=r,d=null;d=this.getBoxCloneBackground({image:t.settings.image_atual,left:h,top:r,width:a,height:a,position:{top:-r,left:-h}}).css3({"border-radius":o+"px"}),a+=100,this.addBoxClone(d);var _=70*i,c=i==n-1?function(){t.finishAnimation()}:"";d.delay(_).animate({top:l,left:g,opacity:"show"},e,s,c) }},animationCirclesInside:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeInQuad":this.settings.easing_default,e=500/this.settings.velocity,n=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var a=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),o=Math.sqrt(Math.pow(this.settings.width_skitter,2)+Math.pow(this.settings.height_skitter,2)),o=Math.ceil(o),h=o;for(i=0;a>i;i++){var r=t.settings.width_skitter/2-h/2,g=t.settings.height_skitter/2-h/2,l=r,d=g,_=null;_=this.getBoxCloneBackground({image:n,left:r,top:g,width:h,height:h,position:{top:-g,left:-r}}).css3({"border-radius":o+"px"}),h-=100,this.addBoxClone(_),_.show();var c=70*i,u=i==a-1?function(){t.finishAnimation()}:"";_.delay(c).animate({top:d,left:l,opacity:"hide"},e,s,u)}},animationCirclesRotate:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=500/this.settings.velocity,n=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var a=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),o=Math.sqrt(Math.pow(this.settings.width_skitter,2)+Math.pow(this.settings.height_skitter,2)),o=Math.ceil(o),h=o;for(i=0;a>i;i++){var r=t.settings.width_skitter/2-h/2,g=t.settings.height_skitter/2-h/2,l=r,d=g,_=null;_=this.getBoxCloneBackground({image:n,left:r,top:g,width:h,height:h,position:{top:-g,left:-r}}).css3({"border-radius":o+"px"}),h-=200,this.addBoxClone(_),_.show();var c=100*i,u=i==a-1?function(){t.finishAnimation()}:"",f=0==i%2?45:-45;_.delay(c).animate({top:d,left:l,opacity:"hide"},e,s,u),_.delay(c).animateRotate(f,e+600,"easeInQuad")}},animationCubeShow:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=400/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/8)),a=Math.ceil(this.settings.height_skitter/(this.settings.height_skitter/4)),o=n*a,h=Math.ceil(this.settings.width_skitter/n),r=Math.ceil(this.settings.height_skitter/a),g=0,l=0,d=0,_=0;for(i=0;o>i;i++){g=r*d,l=h*_;var c=30*i,u=this.getBoxClone();u.css({left:l,top:g,width:h,height:r}).hide(),u.find("img").css({left:-l,top:-g}),this.addBoxClone(u);var f=i==o-1?function(){t.finishAnimation()}:"";u.delay(c).animate({width:"show",height:"show"},e,s,f),d++,d==a&&(d=0,_++)}},animationDirectionBars:function(s){var e=this,s=t.extend({},{direction:"top"},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeInOutQuad":this.settings.easing_default,a=400/this.settings.velocity,o=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var h=12,r=Math.ceil(this.settings.width_skitter/h),g=this.settings.height_skitter,l="top"==s.direction?-g:g;for(i=0;h>i;i++){var d=0,_=r*i,c=0,u=-(r*i),f=this.getBoxCloneImgOld(o);f.css({left:_+"px",top:d+"px",width:r,height:g}),f.find("img").css({left:u,top:c}),this.addBoxClone(f),f.show();var m=70*i,p=i==h-1?function(){e.finishAnimation()}:"";f.delay(m).animate({top:l},a,n,p)}},animationHideBars:function(s){var e=this,s=t.extend({},{random:!1},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeOutCirc":this.settings.easing_default,a=700/this.settings.velocity,o=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var h=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),r=h,g=Math.ceil(this.settings.width_skitter/h),l=this.settings.height_skitter;for(i=0;r>i;i++){var d=0,_=g*i,c=0,u=-(g*i),f="+="+g,m=this.getBoxCloneImgOld(o);m.css({left:0,top:0,width:g,height:l}),m.find("img").css({left:u,top:c});var p=this.getBoxCloneImgOld(o);p.css({left:_+"px",top:d+"px",width:g,height:l}),p.html(m),this.addBoxClone(p),m.show(),p.show();var k=50*i,b=i==r-1?function(){e.finishAnimation()}:"";m.delay(k).animate({left:f},a,n,b)}},animationSwapBars:function(s){var e=this,s=t.extend({},{direction:"top",delay_type:"sequence",total:7,easing:"easeOutCirc"},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?s.easing:this.settings.easing_default,a=500/this.settings.velocity,o=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual}),this.box_skitter.find(".image_main").hide();var h=s.total;for(i=0;h>i;i++){var r=Math.ceil(this.settings.width_skitter/h),g=this.settings.height_skitter,l=r*i,d=-l;switch(s.delay_type){case"zebra":default:var _=0==i%2?0:150;break;case"random":var _=30*30*Math.random();break;case"sequence":var _=100*i}var c=this.getBoxCloneImgOld(o);c.find("img").css({left:d,top:0}),c.css({top:0,left:0,width:r,height:g});var u=this.getBoxClone();u.find("img").css({left:d,top:0}),u.css({top:0,left:-r,width:r,height:g});var f=this.getBoxClone();f.html("").append(c).append(u),f.css({top:0,left:l,width:r,height:g}),this.addBoxClone(f),f.show(),c.show(),u.show();var m=i==h-1?function(){e.finishAnimation()}:"";c.delay(_).animate({left:r},a,n),u.delay(_).animate({left:0},a,n,m)}},animationSwapBlocks:function(i){var s=this,i=t.extend({},{easing_old:"easeInOutQuad",easing_new:"easeOutQuad"},i||{});this.settings.is_animating=!0;var e=""==this.settings.easing_default?i.easing_old:this.settings.easing_default,n=""==this.settings.easing_default?i.easing_new:this.settings.easing_default,a=800/this.settings.velocity,o=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual}),this.box_skitter.find(".image_main").hide();var h=2,r=this.settings.width_skitter,g=Math.ceil(this.settings.height_skitter/h),l=this.getBoxCloneImgOld(o),d=this.getBoxCloneImgOld(o);l.find("img").css({left:0,top:0}),l.css({top:0,left:0,width:r,height:g}),d.find("img").css({left:0,top:-g}),d.css({top:g,left:0,width:r,height:g});var _=this.getBoxClone(),c=this.getBoxClone();_.find("img").css({left:0,top:g}),_.css({top:0,left:0,width:r,height:g}),c.find("img").css({left:0,top:-(g*h)}),c.css({top:g,left:0,width:r,height:g}),this.addBoxClone(_),this.addBoxClone(c),this.addBoxClone(l),this.addBoxClone(d),l.show(),d.show(),_.show(),c.show();var u=function(){s.finishAnimation()};l.find("img").animate({top:g},a,e,function(){l.remove()}),d.find("img").animate({top:-(g*h)},a,e,function(){d.remove()}),_.find("img").animate({top:0},a,n),c.find("img").animate({top:-g},a,n,u)},animationCut:function(i){var s=this,i=t.extend({},{easing_old:"easeInOutExpo",easing_new:"easeInOutExpo"},i||{});this.settings.is_animating=!0;var e=""==this.settings.easing_default?i.easing_old:this.settings.easing_default,n=""==this.settings.easing_default?i.easing_new:this.settings.easing_default,a=900/this.settings.velocity,o=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual}),this.box_skitter.find(".image_main").hide();var h=2,r=this.settings.width_skitter,g=Math.ceil(this.settings.height_skitter/h),l=this.getBoxCloneImgOld(o),d=this.getBoxCloneImgOld(o);l.find("img").css({left:0,top:0}),l.css({top:0,left:0,width:r,height:g}),d.find("img").css({left:0,top:-g}),d.css({top:g,left:0,width:r,height:g});var _=this.getBoxClone(),c=this.getBoxClone();_.find("img").css({left:0,top:0}),_.css({top:0,left:r,width:r,height:g}),c.find("img").css({left:0,top:-g}),c.css({top:g,left:-r,width:r,height:g}),this.addBoxClone(_),this.addBoxClone(c),this.addBoxClone(l),this.addBoxClone(d),l.show(),d.show(),_.show(),c.show();var u=function(){s.finishAnimation()};l.animate({left:-r},a,e,function(){l.remove()}),d.animate({left:r},a,e,function(){d.remove()}),_.animate({left:0},a,n),c.animate({left:0},a,n,u)},finishAnimation:function(){var t=this;this.box_skitter.find(".image_main").show(),this.showBoxText(),this.settings.is_animating=!1,this.box_skitter.find(".image_main").attr({src:this.settings.image_atual}),this.box_skitter.find(".image a").attr({href:this.settings.link_atual}),this.settings.is_hover_box_skitter||this.settings.is_paused||this.settings.is_blur||(this.timer=setTimeout(function(){t.completeMove()},this.settings.interval)),t.startTime()},completeMove:function(){this.clearTimer(!0),this.box_skitter.find(".box_clone").remove(),this.settings.is_paused||this.settings.is_blur||this.nextImage()},setActualLevel:function(){t.isFunction(this.settings.imageSwitched)&&this.settings.imageSwitched(this.settings.image_i,this),this.setImageLink(),this.addClassNumber(),this.hideBoxText(),this.increasingImage()},setImageLink:function(){var t=this.settings.images_links[this.settings.image_i][0],i=this.settings.images_links[this.settings.image_i][1],s=this.settings.images_links[this.settings.image_i][3],e=this.settings.images_links[this.settings.image_i][4];this.settings.image_atual=t,this.settings.link_atual=i,this.settings.label_atual=s,this.settings.target_atual=e},addClassNumber:function(){var i=this;this.box_skitter.find(".image_number_select").removeClass("image_number_select"),t("#image_n_"+(this.settings.image_i+1)+"_"+i.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 i=t('