text: !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:'<a href="#" class="prev_button">prev</a><a href="#" class="next_button">next</a><span class="info_slide"></span><div class="container_skitter"><div class="image"><a href=""><img class="image_main" /></a><div class="label_skitter"></div></div></div>',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('<span class="image_number'+initial_select_class+'" rel="'+(u-1)+'" id="image_n_'+u+"_"+self.number_skitter+'" style="background-image: url('+src+');"></span> ')}else self.skitter_box.find(".info_slide").append('<span class="image_number'+initial_select_class+'" rel="'+(u-1)+'" id="image_n_'+u+"_"+self.number_skitter+'">'+u+"</span> ");initial_select_class=""};if(this.settings.xml?$.ajax({type:"GET",url:this.settings.xml,async:!1,dataType:"xml",success:function(xml){$("<ul></ul>");$(xml).find("skitter slide").each(function(){++u;var link=$(this).find("link").text()?$(this).find("link").text():"#",src=$(this).find("image").text(),animation_type=$(this).find("image").attr("type"),label=$(this).find("label").text(),target=$(this).find("target").text()?$(this).find("target").text():"_self";addImageLink(link,src,animation_type,label,target)})}}):this.settings.json||this.skitter_box.find("ul li").each(function(){++u;var link=$(this).find("a").length?$(this).find("a").attr("href"):"#",src=$(this).find("img").attr("src"),animation_type=$(this).find("img").attr("class"),label=$(this).find(".label_text").html(),target=$(this).find("a").length&&$(this).find("a").attr("target")?$(this).find("a").attr("target"):"_self";addImageLink(link,src,animation_type,label,target)}),self.settings.thumbs&&!self.settings.fullscreen){self.skitter_box.find(".info_slide").addClass("info_slide_thumb");var width_info_slide=(u+1)*self.skitter_box.find(".info_slide_thumb .image_number").width();self.skitter_box.find(".info_slide_thumb").width(width_info_slide),self.skitter_box.css({height:self.skitter_box.height()+self.skitter_box.find(".info_slide").height()}),self.skitter_box.append('<div class="container_thumbs"></div>');var copy_info_slide=self.skitter_box.find(".info_slide").clone();self.skitter_box.find(".info_slide").remove(),self.skitter_box.find(".container_thumbs").width(self.settings.width_skitter).append(copy_info_slide);var width_image=0,width_skitter=this.settings.width_skitter,height_skitter=this.settings.height_skitter,w_info_slide_thumb=0,info_slide_thumb=self.skitter_box.find(".info_slide_thumb"),x_value=0,y_value=self.skitter_box.offset().top;if(info_slide_thumb.find(".image_number").each(function(){width_image+=$(this).outerWidth()}),info_slide_thumb.width(width_image+"px"),w_info_slide_thumb=info_slide_thumb.width(),width_value=this.settings.width_skitter,width_value=width_skitter-100,width_info_slide>self.settings.width_skitter&&self.skitter_box.mousemove(function(e){x_value=self.skitter_box.offset().left+90;var x=e.pageX,y=e.pageY,new_x=0;x-=x_value,y-=y_value,novo_width=w_info_slide_thumb-width_value,new_x=-(novo_width*x/width_value),new_x>0&&(new_x=0),new_x<-(w_info_slide_thumb-width_skitter)&&(new_x=-(w_info_slide_thumb-width_skitter)),y>height_skitter&&info_slide_thumb.css({left:new_x})}),self.skitter_box.find(".scroll_thumbs").css({left:10}),width_info_slide<self.settings.width_skitter){self.skitter_box.find(".info_slide").width("auto"),self.skitter_box.find(".box_scroll_thumbs").hide();var class_info=".info_slide";switch(self.settings.numbers_align){case"center":(self.settings.width_skitter-self.skitter_box.find(class_info).width())/2;self.skitter_box.find(class_info).css({left:"50%",transform:"translateX(-50%)"});break;case"right":self.skitter_box.find(class_info).css({left:"auto",right:"-5px"});break;case"left":self.skitter_box.find(class_info).css({left:"0px"})}}}else{var class_info=".info_slide";switch(self.settings.dots&&(self.skitter_box.find(".info_slide").addClass("info_slide_dots").removeClass("info_slide"),class_info=".info_slide_dots"),self.settings.numbers_align){case"center":(self.settings.width_skitter-self.skitter_box.find(class_info).width())/2;self.skitter_box.find(class_info).css({left:"50%",transform:"translateX(-50%)"});break;case"right":self.skitter_box.find(class_info).css({left:"auto",right:"15px"});break;case"left":self.skitter_box.find(class_info).css({left:"15px"})}self.settings.dots||self.skitter_box.find(".info_slide").height()>20&&self.skitter_box.find(".info_slide").hide()}if(this.skitter_box.find("ul").hide(),this.settings.show_randomly&&this.settings.images_links.sort(function(a,b){return Math.random()-.5}),this.settings.image_atual=this.settings.images_links[0][0],this.settings.link_atual=this.settings.images_links[0][1],this.settings.label_atual=this.settings.images_links[0][3],this.settings.target_atual=this.settings.images_links[0][4],this.settings.images_links.length>1&&(this.skitter_box.find(".prev_button").click(function(){return 0==self.settings.is_animating&&(self.settings.image_i-=2,self.settings.image_i==-2?self.settings.image_i=self.settings.images_links.length-2:self.settings.image_i==-1&&(self.settings.image_i=self.settings.images_links.length-1),self.jumpToImage(self.settings.image_i)),!1}),this.skitter_box.find(".next_button").click(function(){return self.jumpToImage(self.settings.image_i),!1}),self.skitter_box.find(".next_button, .prev_button").bind("mouseover",self.settings.mouseOverButton),self.skitter_box.find(".next_button, .prev_button").bind("mouseleave",self.settings.mouseOutButton),this.skitter_box.find(".image_number").click(function(){if("image_number image_number_select"!=$(this).attr("class")){var imageNumber=parseInt($(this).attr("rel"));self.jumpToImage(imageNumber)}return!1}),self.settings.preview&&self.settings.dots)){for(var preview=$('<div class="preview_slide"><ul></ul></div>'),i=0;i<this.settings.images_links.length;i++){var li=$("<li></li>"),img=$("<img />");img.attr("src",this.settings.images_links[i][0]),li.append(img),preview.find("ul").append(li)}var width_preview_ul=parseInt(100*this.settings.images_links.length);preview.find("ul").width(width_preview_ul),$(class_info).append(preview),self.skitter_box.find(class_info).find(".image_number").mouseenter(function(){if(self.isLargeDevice()){var _left_info=parseFloat(self.skitter_box.find(class_info).offset().left),_left_image=parseFloat($(this).offset().left),_left_preview=_left_image-_left_info-43,rel=parseInt($(this).attr("rel")),_left_ul=(self.skitter_box.find(".preview_slide_current img").attr("src"),-(100*rel));self.skitter_box.find(".preview_slide").find("ul").animate({left:_left_ul},{duration:200,queue:!1,easing:"easeOutSine"}),self.skitter_box.find(".preview_slide").fadeTo(1,1).animate({left:_left_preview},{duration:200,queue:!1})}}),self.skitter_box.find(class_info).mouseleave(function(){self.isLargeDevice()&&$(".preview_slide").animate({opacity:"hide"},{duration:200,queue:!1})})}self.settings.focus&&self.focusSkitter(),self.settings.controls&&self.setControls(),self.settings.progressbar&&self.settings.auto_play&&self.addProgressBar(),self.settings.hide_tools&&self.hideTools(),self.settings.enable_navigation_keys&&self.enableNavigationKeys(),this.loadImages(),this.setResponsive(),this.setTouchSupport()},loadImages:function(){var self=this,loading=$('<div class="skitter-spinner"><div class="icon-sending"></div></div>'),total=this.settings.images_links.length,u=0;this.skitter_box.append(loading);for(var i in this.settings.images_links){var self_il=this.settings.images_links[i],src=self.getImageName(self_il[0]),img=new Image;$(img).load(function(){++u,u==total&&(self.skitter_box.find(".skitter-spinner").remove(),self.start())}).error(function(){self.skitter_box.find(".skitter-spinner, .image_number, .next_button, .prev_button").remove(),self.skitter_box.html('<p style="color:white;background:black;">Error loading images. One or more images were not found.</p>')}).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=$('<a href="'+this.settings.link_atual+'"><img src="'+this.getCurrentImage()+'" /></a>');img_clone.attr({target:this.settings.target_atual})}else var img_clone=$('<img src="'+this.getCurrentImage()+'" />');img_clone=this.resizeImage(img_clone);var box_clone=$('<div class="box_clone"></div>');return box_clone.append(img_clone),box_clone},getBoxCloneImgOld:function(image_old){if("#"!=this.settings.link_atual){var img_clone=$('<a href="'+this.settings.link_atual+'"><img src="'+image_old+'" /></a>');img_clone.attr({target:this.settings.target_atual})}else var img_clone=$('<img src="'+image_old+'" />');img_clone=this.resizeImage(img_clone);var box_clone=$('<div class="box_clone"></div>');return box_clone.append(img_clone),box_clone},resizeImage:function(img_clone){return img_clone.find("img").width(this.settings.width_skitter),img_clone.find("img").height(this.settings.height_skitter),img_clone},addBoxClone:function(box_clone){this.skitter_box.find(".container_skitter").append(box_clone)},getEasing:function(easing){var easing_accepts=["easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","easeInSine","easeOutSine","easeInOutSine","easeInExpo","easeOutExpo","easeInOutExpo","easeInCirc","easeOutCirc","easeInOutCirc","easeInElastic","easeOutElastic","easeInOutElastic","easeInBack","easeOutBack","easeInOutBack","easeInBounce","easeOutBounce","easeInOutBounce"];return jQuery.inArray(easing,easing_accepts)>0?easing:""},getRandom:function(i){return Math.floor(Math.random()*i)},setValueBoxText:function(){this.skitter_box.find(".label_skitter").html(this.settings.label_atual)},showBoxText:function(){var self=this;if(void 0!=this.settings.label_atual&&""!=this.settings.label_atual&&self.settings.label)switch(self.settings.label_animation){case"slideUp":default:self.skitter_box.find(".label_skitter").slideDown(400);break;case"left":case"right":self.skitter_box.find(".label_skitter").animate({left:0},400,"easeInOutQuad");break;case"fixed":}},hideBoxText:function(){var self=this;switch(self.settings.label_animation){case"slideUp":default:this.skitter_box.find(".label_skitter").slideUp(200,function(){self.setValueBoxText()});break;case"left":case"right":var _left="left"==self.settings.label_animation?-self.skitter_box.find(".label_skitter").width():self.skitter_box.find(".label_skitter").width();self.skitter_box.find(".label_skitter").animate({left:_left},400,"easeInOutQuad",function(){self.setValueBoxText()});break;case"fixed":self.setValueBoxText()}},stopOnMouseOver:function(){var self=this;self.settings.stop_over?self.skitter_box.hover(function(){self.settings.stop_over&&(self.settings.is_hover_skitter_box=!0),self.settings.is_paused_time||self.pauseTime(),self.setHideTools("hover"),self.clearTimer(!0)},function(){self.settings.stop_over&&(self.settings.is_hover_skitter_box=!1),0!=self.settings.elapsedTime||self.settings.is_animating||self.settings.is_paused?self.settings.is_paused||self.resumeTime():self.startTime(),self.setHideTools("out"),self.clearTimer(!0),!self.settings.is_animating&&self.settings.images_links.length>1&&(self.timer=setTimeout(function(){self.completeMove()},self.settings.interval-self.settings.elapsedTime),self.skitter_box.find(".image_main").attr({src:self.getCurrentImage()}),self.skitter_box.find(".image > a").attr({href:self.settings.link_atual}))}):self.skitter_box.hover(function(){self.setHideTools("hover")},function(){self.setHideTools("out")})},setHideTools:function(type){var self=this,opacity_elements=self.settings.opacity_elements,interval_in_elements=self.settings.interval_in_elements,interval_out_elements=self.settings.interval_out_elements;"hover"==type?(self.settings.hide_tools&&(self.settings.numbers&&self.skitter_box.find(".info_slide").show().css({opacity:0}).animate({opacity:opacity_elements},interval_in_elements),self.settings.navigation&&self.skitter_box.find(".prev_button, .next_button").show().css({opacity:0}).animate({opacity:opacity_elements},interval_in_elements),self.settings.focus&&!self.settings.foucs_active&&self.skitter_box.find(".focus_button").stop().show().css({opacity:0}).animate({opacity:opacity_elements},interval_in_elements),self.settings.controls&&self.skitter_box.find(".play_pause_button").stop().show().css({opacity:0}).animate({opacity:opacity_elements},interval_in_elements)),!self.settings.focus||self.settings.foucs_active||self.settings.hide_tools||self.skitter_box.find(".focus_button").stop().animate({opacity:1},interval_in_elements),self.settings.controls&&!self.settings.hide_tools&&self.skitter_box.find(".play_pause_button").stop().animate({opacity:1},interval_in_elements)):(self.settings.hide_tools&&(self.settings.numbers&&self.skitter_box.find(".info_slide").queue("fx",[]).show().css({opacity:opacity_elements}).animate({opacity:0},interval_out_elements),self.settings.navigation&&self.skitter_box.find(".prev_button, .next_button").queue("fx",[]).show().css({opacity:opacity_elements}).animate({opacity:0},interval_out_elements),self.settings.focus&&!self.settings.foucs_active&&self.skitter_box.find(".focus_button").stop().css({opacity:opacity_elements}).animate({opacity:0},interval_out_elements),self.settings.controls&&self.skitter_box.find(".play_pause_button").stop().css({opacity:opacity_elements}).animate({opacity:0},interval_out_elements)),!self.settings.focus||self.settings.foucs_active||self.settings.hide_tools||self.skitter_box.find(".focus_button").stop().animate({opacity:.3},interval_out_elements),self.settings.controls&&!self.settings.hide_tools&&self.skitter_box.find(".play_pause_button").stop().animate({opacity:.3},interval_out_elements))},clearTimer:function(force){var self=this;clearInterval(self.timer)},setLinkAtual:function(){"#"!=this.settings.link_atual&&""!=this.settings.link_atual?this.skitter_box.find(".image > a").attr({href:this.settings.link_atual,target:this.settings.target_atual}):this.skitter_box.find(".image > a").removeAttr("href")},hideTools:function(){this.skitter_box.find(".info_slide").fadeTo(0,0),this.skitter_box.find(".prev_button").fadeTo(0,0),this.skitter_box.find(".next_button").fadeTo(0,0),this.skitter_box.find(".focus_button").fadeTo(0,0),this.skitter_box.find(".play_pause_button").fadeTo(0,0)},focusSkitter:function(){var self=this,focus_button=$('<a href="#" class="focus_button">focus</a>');self.skitter_box.append(focus_button),focus_button.animate({opacity:.3},self.settings.interval_in_elements),$(document).keypress(function(e){var code=e.keyCode?e.keyCode:e.which;27==code&&$("#overlay_skitter").trigger("click")});var _top=$(".skitter_box").offset().top,_left=$(".skitter_box").offset().left;self.skitter_box.find(".focus_button").click(function(){if(self.settings.foucs_active)return!1;self.settings.foucs_active=!0,$(this).stop().animate({opacity:0},self.settings.interval_out_elements);var div=$('<div id="overlay_skitter"></div>').height($(document).height()).hide().fadeTo(self.settings.interval_in_elements,.98),_topFinal=($(window).height()-$(".skitter_box").height())/2+$(document).scrollTop(),_leftFinal=($(window).width()-$(".skitter_box").width())/2;return self.skitter_box.before('<div id="mark_position"></div>'),$("body").prepend(div),$("body").prepend(self.skitter_box),self.skitter_box.css({top:_top,left:_left,position:"absolute","z-index":9999}).animate({top:_topFinal,left:_leftFinal},2e3,"easeOutExpo"),$("#mark_position").width($(".skitter_box").width()).height($(".skitter_box").height()).css({background:"none"}).fadeTo(300,.3),!1}),$(document).on("click","#overlay_skitter",function(){return!$(this).hasClass("finish_overlay_skitter")&&(self.settings.foucs_active=!1,$(this).addClass("finish_overlay_skitter"),self.settings.hide_tools||self.skitter_box.find(".focus_button").animate({opacity:.3},200),self.skitter_box.stop().animate({top:_top,left:_left},200,"easeOutExpo",function(){$("#mark_position").before(self.skitter_box),$(this).css({position:"relative",top:0,left:0}),$("#mark_position").remove()}),$("#overlay_skitter").fadeTo(self.settings.interval_out_elements,0,function(){$(this).remove()}),!1)})},setControls:function(){var self=this,play_pause_button=$('<a href="#" class="play_pause_button">pause</a>');self.skitter_box.append(play_pause_button),play_pause_button.animate({opacity:.3},self.settings.interval_in_elements),play_pause_button.click(function(){return self.settings.is_paused?(self.settings.is_animating||self.skitter_box.find(".progressbar").is(":visible")?self.resumeTime():self.settings.elapsedTime=0,self.settings.progressbar||self.resumeTime(),self.settings.is_paused=!1,$(this).html("pause"),$(this).fadeTo(100,.5).fadeTo(100,1),$(this).removeClass("play_button"),self.settings.stop_over||(self.clearTimer(!0),!self.settings.is_animating&&self.settings.images_links.length>1&&(self.timer=setTimeout(function(){self.completeMove()},self.settings.interval-self.settings.elapsedTime),self.skitter_box.find(".image_main").attr({src:self.getCurrentImage()}),self.skitter_box.find(".image > a").attr({href:self.settings.link_atual})))):($(this).html("play"),$(this).fadeTo(100,.5).fadeTo(100,1),$(this).addClass("play_button"),self.pauseTime(),self.settings.is_paused=!0,self.clearTimer(!0)),!1})},objectSize:function(obj){var key,size=0;for(key in obj)obj.hasOwnProperty(key)&&size++;return size},addProgressBar:function(){var self=this,progressbar=$('<div class="progressbar"></div>');self.skitter_box.append(progressbar),0==self.objectSize(self.settings.progressbar_css)&&(parseInt(progressbar.css("width"))>0?self.settings.progressbar_css.width=parseInt(progressbar.css("width")):self.settings.progressbar_css={width:self.settings.width_skitter,
  height:5}),self.objectSize(self.settings.progressbar_css)>0&&void 0==self.settings.progressbar_css.width&&(self.settings.progressbar_css.width=self.settings.width_skitter),progressbar.css(self.settings.progressbar_css).hide()},startProgressBar:function(){var self=this;return!(self.settings.is_hover_skitter_box||self.settings.is_paused||self.settings.is_blur||!self.settings.progressbar)&&void self.skitter_box.find(".progressbar").hide().dequeue().width(self.settings.progressbar_css.width).animate({width:"show"},self.settings.interval,"linear")},pauseProgressBar:function(){var self=this;self.settings.is_animating||self.skitter_box.find(".progressbar").stop()},resumeProgressBar:function(){var self=this;return!(self.settings.is_hover_skitter_box||self.settings.is_paused||!self.settings.progressbar)&&void self.skitter_box.find(".progressbar").dequeue().animate({width:self.settings.progressbar_css.width},self.settings.interval-self.settings.elapsedTime,"linear")},hideProgressBar:function(){var self=this;return!!self.settings.progressbar&&void self.skitter_box.find(".progressbar").stop().fadeOut(300,function(){$(this).width(self.settings.progressbar_css.width)})},startTime:function(){var self=this;self.settings.is_paused_time=!1;var date=new Date;self.settings.elapsedTime=0,self.settings.time_start=date.getTime(),self.startProgressBar()},pauseTime:function(){var self=this;if(self.settings.is_paused_time)return!1;self.settings.is_paused_time=!0;var date=new Date;self.settings.elapsedTime+=date.getTime()-self.settings.time_start,self.pauseProgressBar()},resumeTime:function(){var self=this;self.settings.is_paused_time=!1;var date=new Date;self.settings.time_start=date.getTime(),self.resumeProgressBar()},enableNavigationKeys:function(){var self=this;$(window).keydown(function(e){39==e.keyCode||40==e.keyCode?self.skitter_box.find(".next_button").trigger("click"):37!=e.keyCode&&38!=e.keyCode||self.skitter_box.find(".prev_button").trigger("click")})},getBoxCloneBackground:function(options){var box_clone=$('<div class="box_clone"></div>'),background_size=this.settings.width_skitter+"px "+this.settings.height_skitter+"px";return box_clone.css({left:options.left,top:options.top,width:options.width,height:options.height,"background-image":"url("+options.image+")","background-size":background_size,"background-position":options.position.left+"px "+options.position.top+"px"}),box_clone},shuffleArray:function(arrayOrigem){for(var indice,self=this,arrayDestino=[];arrayOrigem.length>0;)indice=self.randomUnique(0,arrayOrigem.length-1),arrayDestino[arrayDestino.length]=arrayOrigem[indice],arrayOrigem.splice(indice,1);return arrayDestino},randomUnique:function(valorIni,valorFim){var numRandom;do numRandom=Math.random();while(1==numRandom);return numRandom*(valorFim-valorIni+1)+valorIni|0},windowFocusOut:function(){var self=this;$(window).bind("blur",function(){self.settings.is_blur=!0,self.pauseTime(),self.clearTimer(!0)}),$(window).bind("focus",function(){self.settings.images_links.length>1&&(self.settings.is_blur=!1,0==self.settings.elapsedTime?self.startTime():self.resumeTime(),self.settings.elapsedTime<=self.settings.interval&&(self.clearTimer(!0),self.timer=setTimeout(function(){self.completeMove()},self.settings.interval-self.settings.elapsedTime),self.skitter_box.find(".image_main").attr({src:self.getCurrentImage()}),self.skitter_box.find(".image > a").attr({href:self.settings.link_atual})))})},setResponsive:function(){if(this.settings.responsive){var self=this,timeout=null;$(window).on("resize",function(){clearTimeout(timeout),timeout=setTimeout(function(){self.setDimensions()},200)}).trigger("resize")}},setDimensions:function(){var self=this,was_set=!1;this.skitter_box.css("width","100%"),this.skitter_box.find(".image_main").attr({src:this.getCurrentImage()}).css({width:"100%",height:"auto"}).on("load",function(){was_set||(was_set=!0,_setDimensions())}),setTimeout(function(){was_set||(was_set=!0,_setDimensions())},3e3);var _setDimensions=function(){var image=self.skitter_box.find(".image_main"),width_box=self.skitter_box.width(),width_image=(self.skitter_box.height(),image.width()),height_image=image.height(),width=width_box,height=height_image*width_box/width_image;self.settings.fullscreen&&(width=$(window).width(),height=$(window).height()),self.settings.width_skitter=width,self.settings.height_skitter=height,self.skitter_box.width(width).height(height).find(".container_skitter").width(width).height(height).find("> a img, > img").width(width).height(height)}},isLargeDevice:function(){return $(window).width()>=1024},getMaxW:function(max_w){if(this.settings.responsive){var window_width=$(window).width();window_width<=320?max_w=parseInt(max_w/4):window_width<=480?max_w=parseInt(max_w/3):window_width<=768&&(max_w=parseInt(max_w/1.5))}return max_w},getMaxH:function(max_h){return this.getMaxW(max_h)},getCurrentImage:function(){var image=this.settings.image_atual;return this.getImageName(image)},getOldImage:function(){var image=this.skitter_box.find(".image_main").attr("src");return image},getImageName:function(image){var window_width=$(window).width();if(this.settings.responsive)for(var name in this.settings.responsive){var item=this.settings.responsive[name];if(window_width<item.max_width&&item.suffix){var extension=image.split(".").reverse()[0];image=image.replace("."+extension,item.suffix+"."+extension);break}}return image},setTouchSupport:function(){var self=this,last_position_x=0,last_position_x_move=0,isTouch="ontouchstart"in window||navigator.msMaxTouchPoints>0;isTouch&&(this.skitter_box.on("touchstart",function(e){e.originalEvent.touches.length>0&&(last_position_x=e.originalEvent.touches[0].pageX)}),this.skitter_box.on("touchmove",function(e){e.originalEvent.touches.length>0&&(last_position_x_move=e.originalEvent.touches[0].pageX)}),this.skitter_box.on("touchend",function(e){last_position_x<last_position_x_move?self.skitter_box.find(".prev_button").trigger("click"):self.skitter_box.find(".next_button").trigger("click")}))},getAnimations:function(){return this.animations},setAnimation:function(animation){this.settings.animation=animation},next:function(){this.skitter_box.find(".next_button").trigger("click")},prev:function(){this.skitter_box.find(".prev_button").trigger("click")}}),$.fn.skitterCss3=function(props){var css={},prefixes=["moz","ms","o","webkit"];for(var prop in props){for(var i=0;i<prefixes.length;i++)css["-"+prefixes[i]+"-"+prop]=props[prop];css[prop]=props[prop]}return this.css(css),this}}(jQuery);