text: /*
   * jQuery Chop Slider v.1.1.0
   * http://www.idangero.us/cs
   *
   * Copyright 2011, Vladimir Kharlampidi
   * The iDangero.us
   * http://www.idangero.us
   
   * Licensed under the MIT license.
   * Date: July 09, 2011
   */
  (function(f){f.fn.chopSlider=function(d){function v(){var e=navigator.userAgent;return e.indexOf("ndroid")>=0||e.indexOf("iPhone")>=0||e.indexOf("iPod")>=0||e.indexOf("BlackBerry")>=0||e.indexOf("Symbian")>=0||e.indexOf("Mobile")>=0?!0:!1}function k(){return f.chopSlider.hasCSS3()&&!d.disableCSS3}function t(){f.chopSlider.autoplay=setInterval(function(){s("next",d)},d.autoplayDelay)}function s(e,a){function d(){l.html("");j.html("");e=="next"?f(".activeSlide").next(p).length>0?f(".activeSlide").removeClass("activeSlide").next(p).addClass("activeSlide").show():(f(".activeSlide").removeClass("activeSlide"),f(p+":eq(0)").addClass("activeSlide").show()):f(".activeSlide").prev(p).length>0?f(".activeSlide").removeClass("activeSlide").prev(p).addClass("activeSlide").show():(f(".activeSlide").removeClass("activeSlide"),f(p+":last").addClass("activeSlide").show());a.hideControls&&(i.nextTrigger.fadeIn(600),i.prevTrigger.fadeIn(600));i.loader.hide();f.chopSlider.animation=0;a.useCaptions&&f.chopSlider.showDescr();if(a.onEnd)a.onEnd();(a.prevTransition||a.random)&&f.extend(a,w)}if(a.prevTransition&&e=="prev"||a.random){var w={};f.extend(w,a)}if(a.noCSS3&&!f.chopSlider.hasCSS3()){if(a.noCSS3.scaleY||a.noCSS3.scaleY===0)a.scaleY=a.noCSS3.scaleY;if(a.noCSS3.scaleX||a.noCSS3.scaleX===0)a.scaleX=a.noCSS3.scaleX;if(a.noCSS3.translateY||a.noCSS3.translateY===0)a.translateY=a.noCSS3.translateY;if(a.noCSS3.translateX||a.noCSS3.translateX===0)a.translateX=a.noCSS3.translateX;if(a.noCSS3.rotate||a.noCSS3.rotate===0)a.rotate=a.noCSS3.rotate;if(a.noCSS3.xOffset||a.noCSS3.xOffset===0)a.xOffset=a.noCSS3.xOffset;if(a.noCSS3.yOffset||a.noCSS3.yOffset===0)a.yOffset=a.noCSS3.yOffset;if(a.noCSS3.hPieces)a.hPieces=a.noCSS3.hPieces;if(a.noCSS3.vPieces)a.vPieces=a.noCSS3.vPieces;if(a.noCSS3.type)a.type=a.noCSS3.type;if(a.noCSS3.rotateSymmetric===!0||a.noCSS3.rotateSymmetric===!1)a.rotateSymmetric=a.noCSS3.rotateSymmetric;if(a.noCSS3.pieceDelay||a.noCSS3.pieceDelay===0)a.pieceDelay=a.noCSS3.pieceDelay;if(a.noCSS3.xFadeDelay||a.noCSS3.xFadeDelay===0)a.xFadeDelay=a.noCSS3.xFadeDelay;if(a.noCSS3.dur1>=0)a.dur1=a.noCSS3.dur1;if(a.noCSS3.dur2>=0)a.dur2=a.noCSS3.dur2;if(a.noCSS3.dur3>=0)a.dur3=a.noCSS3.dur3;if(a.noCSS3.onStart)a.onStart=a.noCSS3.onStart;if(a.noCSS3.onEnd)a.onEnd=a.noCSS3.onEnd}if(a.mobile&&v()){if(a.mobile.scaleY||a.mobile.scaleY===0)a.scaleY=a.mobile.scaleY;if(a.mobile.scaleX||a.mobile.scaleX===0)a.scaleX=a.mobile.scaleX;if(a.mobile.translateY||a.mobile.translateY===0)a.translateY=a.mobile.translateY;if(a.mobile.translateX||a.mobile.translateX===0)a.translateX=a.mobile.translateX;if(a.mobile.rotate||a.mobile.rotate===0)a.rotate=a.mobile.rotate;if(a.mobile.xOffset||a.mobile.xOffset===0)a.xOffset=a.mobile.xOffset;if(a.mobile.yOffset||a.mobile.yOffset===0)a.yOffset=a.mobile.yOffset;if(a.mobile.hPieces)a.hPieces=a.mobile.hPieces;if(a.mobile.vPieces)a.vPieces=a.mobile.vPieces;if(a.mobile.type)a.type=a.mobile.type;if(a.mobile.disableCSS3)a.disableCSS3=a.mobile.disableCSS3;if(a.mobile.rotateSymmetric===!0||a.mobile.rotateSymmetric===!1)a.rotateSymmetric=a.mobile.rotateSymmetric;if(a.mobile.pieceDelay||a.mobile.pieceDelay===0)a.pieceDelay=a.mobile.pieceDelay;if(a.mobile.xFadeDelay||a.mobile.xFadeDelay===0)a.xFadeDelay=a.mobile.xFadeDelay;if(a.mobile.dur1>=0)a.dur1=a.mobile.dur1;if(a.mobile.dur2>=0)a.dur2=a.mobile.dur2;if(a.mobile.dur3>=0)a.dur3=a.mobile.dur3;if(a.mobile.onStart)a.onStart=a.mobile.onStart;if(a.mobile.onEnd)a.onEnd=a.mobile.onEnd}if(a.xOffset=="random")a.xOffset=Math.round(Math.random()*400)-200;if(a.yOffset=="random")a.yOffset=Math.round(Math.random()*200)-100;if(a.rotate=="random")a.rotate=a.rotateSymmetric==!1?Math.round(Math.random()*100)-50:Math.round(Math.random()*360)-180;if(a.scaleX=="random")a.scaleX=Math.round(Math.random()*100-100)/100;if(a.scaleY=="random")a.scaleY=Math.round(Math.random()*100-100)/100;if(f.chopSlider.animation!=1){f.chopSlider.animation=1;a.hideControls&&(i.nextTrigger.hide(),i.prevTrigger.hide());if(a.onStart)a.onStart();a.useCaptions&&f.chopSlider.hideDescr();var q=f(p+".activeSlide");if(e=="next"){var m=q.next(p);m.length==0&&(m=f(p+":eq(0)"))}else m=q.prev(p),m.length==0&&(m=f(p+":last"));q.hide();i.loader.show();a.prevTransition&&e=="prev"&&f.extend(a,a.prevTransition);switch(a.type){case "vertical":for(var l=i.loader.find(".dummy-first"),j=i.loader.find(".dummy-last"),o=1;o<=a.vPieces;o++)l.append("<div ></div>"),j.append("<div ></div>");setTimeout(function(){j.show()},a.dur1);l.children("div").each(function(){var b=f(this).index();f(this).css({width:a.width/a.vPieces,position:"absolute",top:0,left:a.width/a.vPieces*b,height:a.height,"background-image":"url("+q.find("img").attr("src")+")",backgroundPosition:-a.width/a.vPieces*b+"px top"});var e=k()?{left:(a.width+a.xOffset*2)/a.vPieces*b-a.xOffset,top:a.yOffset}:{left:(a.width+a.xOffset*2)/a.vPieces*b-a.xOffset,top:a.yOffset,width:a.scaleX*f(this).width(),height:a.scaleY*f(this).height()};f(this).csTransform({transform:"rotate(0deg) scaleY(1) scaleX(1) translate(0px,0px)",delay:0,time:0,ease:a.ease1,origin:a.origin}).delay(a.pieceDelay*b).animate(e,a.dur1,function(){var e=!a.rotateSymmetric?"rotate("+(-a.rotate+a.rotate*2*(f(this).index()+1)/a.vPieces)+"deg) scaleY("+a.scaleY+") scaleX("+a.scaleX+") translate("+a.translateX+"px,"+a.translateY+"px)":"rotate("+a.rotate+"deg) scaleY("+a.scaleY+") scaleX("+a.scaleX+") translate("+a.translateX+"px,"+a.translateY+"px)",u=k()?{left:a.width/a.vPieces*b,top:0}:{left:a.width/a.vPieces*b,top:0,width:k()?"auto":a.width/a.vPieces,height:k()?"auto":a.height};j.find("div:eq("+b+")").csTransform({transform:e,delay:0,time:0,ease:a.ease2,origin:a.origin}).css({width:k()?a.width/a.vPieces:a.scaleX*a.width/a.vPieces,position:"absolute",top:a.yOffset,left:(a.width+a.xOffset*2)/a.vPieces*b-a.xOffset,height:k()?a.height:a.scaleY*a.height,display:"none","background-image":"url("+m.find("img").attr("src")+")",backgroundPosition:-a.width/a.vPieces*b+"px top"}).delay(a.xFadeDelay).fadeIn(a.dur2,function(){l.children("div:eq("+b+")").hide();f(this).csTransform({transform:"rotate(0deg) scaleY(1) scaleX(1) translate(0px,0px)",time:a.dur3,delay:0,ease:a.ease2,origin:a.origin})}).animate(u,a.dur3,function(){f(this).index()+1==a.vPieces&&d()})});(function(b){setTimeout(function(){var e=!a.rotateSymmetric?"rotate("+(-a.rotate+a.rotate*2*(b+1)/a.vPieces)+"deg) scaleY("+a.scaleY+") scaleX("+a.scaleX+") translate("+a.translateX+"px,"+a.translateY+"px)":"rotate("+a.rotate+"deg) scaleY("+a.scaleY+") scaleX("+a.scaleX+") translate("+a.translateX+"px,"+a.translateY+"px)";l.children("div:eq("+b+")").csTransform({transform:e,delay:a.pieceDelay*b,time:a.dur1,ease:a.ease1,origin:a.origin})},0)})(b)});break;case "horizontal":l=i.loader.find(".dummy-first");j=i.loader.find(".dummy-last").show();for(o=1;o<=a.hPieces;o++)l.append("<div ></div>"),j.append("<div ></div>");setTimeout(function(){j.show()},a.dur1);l.children("div").each(function(){var b=f(this).index();f(this).css({width:a.width,position:"absolute",top:a.height/a.hPieces*b,left:0,height:a.height/a.hPieces,"background-image":"url("+q.find("img").attr("src")+")",backgroundPosition:"left "+-a.height/a.hPieces*b+"px"});var e=k()?{left:a.xOffset-a.xOffset*2/a.hPieces*b,top:(a.height+a.yOffset*2)/a.hPieces*b-a.yOffset}:{left:a.xOffset-a.xOffset*2/a.hPieces*b,top:(a.height+a.yOffset*2)/a.hPieces*b-a.yOffset,width:a.scaleX*f(this).width(),height:a.scaleY*f(this).height()};f(this).csTransform({transform:"rotate(0deg) scaleY(1) scaleX(1) translate(0px,0px)",delay:0,time:0,ease:a.ease1,origin:a.origin}).delay(a.pieceDelay*b).animate(e,a.dur1,function(){j.children("div:eq("+b+")").css({width:k()?a.width:a.scaleX*a.width,position:"absolute",top:(a.height+a.yOffset*2)/a.hPieces*b-a.yOffset,left:a.xOffset-a.xOffset*2/a.hPieces*b,height:k()?a.height/a.hPieces:a.scaleY*a.height/a.hPieces,display:"none","background-image":"url("+m.find("img").attr("src")+")",backgroundPosition:"left "+-a.height/a.hPieces*b+"px"});var e=!a.rotateSymmetric?"rotate("+(-a.rotate+a.rotate*2*(f(this).index()+1)/a.hPieces)+"deg) scaleY("+a.scaleY+") scaleX("+a.scaleX+") translate("+a.translateX+"px,"+a.translateY+"px)":"rotate("+a.rotate+"deg) scaleY("+a.scaleY+") scaleX("+a.scaleX+") translate("+a.translateX+"px,"+a.translateY+"px)",u=k()?{left:0,top:a.height/a.hPieces*b}:{left:0,top:a.height/a.hPieces*b,width:a.width,height:a.height/a.hPieces};j.find("div:eq("+b+")").csTransform({transform:e,delay:0,time:0,ease:a.ease2,origin:a.origin}).delay(a.xFadeDelay).fadeIn(a.dur2,function(){l.children("div:eq("+b+")").hide();f(this).csTransform({transform:"rotate(0deg) scaleY(1) scaleX(1) translate(0px,0px)",time:a.dur3,delay:0,ease:a.ease2,origin:a.origin})}).animate(u,a.dur3,function(){f(this).index()+1==a.hPieces&&d()})});(function(b){setTimeout(function(){var e=!a.rotateSymmetric?"rotate("+(-a.rotate+a.rotate*2*(b+1)/a.hPieces)+"deg) scaleY("+a.scaleY+") scaleX("+a.scaleX+") translate("+a.translateX+"px,"+a.translateY+"px)":"rotate("+a.rotate+"deg) scaleY("+a.scaleY+") scaleX("+a.scaleX+") translate("+a.translateX+"px,"+a.translateY+"px)";l.children("div:eq("+b+")").csTransform({transform:e,delay:a.pieceDelay*b,time:a.dur1,ease:a.ease1,origin:a.origin})},0)})(b)});break;case "multi":l=i.loader.find(".dummy-first");j=i.loader.find(".dummy-last").show();for(o=1;o<=a.hPieces;o++)l.append("<div ></div>"),j.append("<div ></div>");setTimeout(function(){j.show()},a.dur1);l.children("div").each(function(){var b=f(this).index();j.children("div:eq("+b+")").css({width:a.width,position:"absolute",top:a.height/a.hPieces*b,left:0,height:a.height/a.hPieces});for(var e=1;e<=a.vPieces;e++)f(this).append("<div ></div>"),j.children("div:eq("+b+")").append('<div style="display:none;" ></div>');f(this).find("div").each(function(){var b=f(this).parent().index(),e=f(this).index();j.children("div:eq("+b+")").find("div:eq("+e+")").css({width:k()?a.width/a.vPieces:a.scaleX*a.width/a.vPieces,position:"absolute",top:a.yOffset*2*b/a.hPieces-a.yOffset,left:(a.width+a.xOffset*2)/a.vPieces*e-a.xOffset,height:k()?a.height/a.hPieces:a.scaleY*a.height/a.hPieces,"background-image":"url("+m.find("img").attr("src")+")",backgroundPosition:-a.width/a.vPieces*e+"px "+-a.height/a.hPieces*b+"px"});f(this).css({width:a.width/a.vPieces,position:"absolute",top:0,left:a.width/a.vPieces*e,height:a.height/a.hPieces,"background-image":"url("+q.find("img").attr("src")+")",backgroundPosition:-a.width/a.vPieces*e+"px "+-a.height/a.hPieces*b+"px"});var n=k()?{left:(a.width+a.xOffset*2)/a.vPieces*e-a.xOffset,top:a.yOffset*2*b/a.hPieces-a.yOffset}:{left:(a.width+a.xOffset*2)/a.vPieces*e-a.xOffset,top:a.yOffset*2*b/a.hPieces-a.yOffset,width:a.scaleX*f(this).width(),height:a.scaleY*f(this).height()};f(this).csTransform({transform:"rotate(0deg) scaleY(1) scaleX(1) translate(0px,0px)",delay:0,time:0,ease:a.ease1,origin:a.origin}).delay((b*a.vPieces/5+e)*a.pieceDelay).animate(n,a.dur1,function(){var h=k()?{left:a.width/a.vPieces*e,top:0}:{left:a.width/a.vPieces*e,top:0,width:a.width/a.vPieces,height:a.height/a.hPieces},g=!a.rotateSymmetric?-(-a.rotate+a.rotate*2*(e+1)/a.vPieces):a.rotate;j.children("div:eq("+b+")").find("div:eq("+e+")").csTransform({transform:"rotate("+g+"deg) scaleY("+a.scaleY+") scaleX("+a.scaleX+") translate("+a.translateX+"px,"+a.translateY+"px)",delay:0,time:0,ease:a.ease2,origin:a.origin}).delay(a.xFadeDelay).fadeIn(a.dur2,function(){l.children("div:eq("+b+")").find("div:eq("+e+")").hide();f(this).csTransform({transform:"rotate(0deg) scaleY(1) scaleX(1) translate(0px,0px)",time:a.dur3,delay:0,ease:a.ease2,origin:a.origin})}).animate(h,a.dur3,function(){(f(this).index()+1)*(f(this).parent().index()+1)==a.hPieces*a.vPieces&&d()})});(function(b,e){setTimeout(function(){var d=!a.rotateSymmetric?-(-a.rotate+a.rotate*2*(e+1)/a.vPieces):a.rotate;l.children("div:eq("+b+")").children("div:eq("+e+")").csTransform({transform:"rotate("+d+"deg) scaleY("+a.scaleY+") scaleX("+a.scaleX+") translate("+a.translateX+"px,"+a.translateY+"px)",delay:(b*a.vPieces/5+e)*a.pieceDelay,time:a.dur1,ease:a.ease1,origin:a.origin})},0)})(b,e)});f(this).css({width:a.width,position:"absolute",top:a.height/a.hPieces*b,left:0,height:a.height/a.hPieces})})}}}f.chopSlider={};d||(d={});d.autoplay=d.autoplay||!1;d.autoplayDelay=d.autoplayDelay||1E4;d.useCaptions=d.useCaptions||!1;d.captionTransform=d.captionTransform||"scale(0) rotate(45deg) translateX(-800)";d.rotate=d.rotate||0;d.scaleY=d.scaleY||d.scaleY===0?d.scaleY:1;d.scaleX=d.scaleX||d.scaleX===0?d.scaleX:1;d.translateX=d.translateX||d.translateX===0?d.translateX:0;d.translateY=d.translateY||d.translateY===0?d.translateY:0;d.ease1=d.ease1||"ease";d.ease2=d.ease2||"ease";d.origin=d.origin||"50% 50%";d.xOffset=d.xOffset||0;d.yOffset=d.yOffset||0;d.hPieces=d.hPieces>0?d.hPieces:10;d.vPieces=d.vPieces>0?d.vPieces:10;d.dur1=d.dur1>=0?d.dur1:1E3;d.dur2=d.dur2>=0?d.dur2:600;d.dur3=d.dur3>=0?d.dur3:1E3;d.type=d.type||"vertical";d.rotateSymmetric=d.rotateSymmetric===!0||d.rotateSymmetric===!1?d.rotateSymmetric:!0;d.disableCSS3=d.disableCSS3===!0||d.disableCSS3===!1?d.disableCSS3:!1;d.pieceDelay=d.pieceDelay>=0?d.pieceDelay:50;d.xFadeDelay=d.xFadeDelay>=0?d.xFadeDelay:300;d.hideControls=d.hideControls===!0||d.hideControls===!1?d.hideControls:!0;if(d.mobile&&v()&&d.mobile.disableCSS3)d.disableCSS3=d.mobile.disableCSS3;f.chopSlider.redefine=function(e){e&&(c={},f.extend(c,d,e),d=c,d.autoplay===!1?clearInterval(f.chopSlider.autoplay):t())};(function(){var e=(document.body||document.documentElement).style,a=e.transition!==void 0||e.WebkitTransition!==void 0||e.MozTransition!==void 0||e.MsTransition!==void 0||e.OTransition!==void 0;f.chopSlider.hasCSS3=function(){return a}})();(function(e){e.fn.csTransform=function(a,d){if(!k())return this;if(arguments.length==0)return this;if(arguments.length==3){var f={};f.transform=arguments[0];f.time=arguments[1];d=arguments[2];a={};a.transform=f.transform;a.time=f.time}if(arguments.length<=2)typeof a=="string"?(f={},f.transform=arguments[0],arguments.length==2?typeof arguments[1]=="number"||typeof arguments[1]=="string"?(f.time=arguments[1],d=""):(f.time=0,d=arguments[1]):f.time=0,a={},a.transform=f.transform,a.time=f.time):(a.time=a.time||0,a.transform=a.transform||"");a.delay=a.delay||0;a.ease=a.ease||"ease";a.origin=a.origin||"50% 50%";if(d){var i=this;i.returnTransformCallback=d;setTimeout(function(){i.returnTransformCallback()},a.time)}return this.each(function(){e(this).css({"-webkit-transform":a.transform,"-webkit-transition-property":"-webkit-transform"+(a.animateOrigin?" ,-webkit-transform-origin":""),"-webkit-transition-duration":""+a.time/1E3+"s","-webkit-transition-delay":""+a.delay/1E3+"s","-webkit-transition-timing-function":""+a.ease,"-webkit-transform-origin":""+a.origin,"-o-transform":a.transform,"-o-transition-property":"-o-transform"+(a.animateOrigin?" ,-o-transform-origin":""),"-o-transition-duration":""+a.time/1E3+"s","-o-transition-delay":""+a.delay/1E3+"s","-o-transition-timing-function":""+a.ease,"-o-transform-origin":""+a.origin,"-moz-transform":a.transform,"-moz-transition-property":"-moz-transform"+(a.animateOrigin?" ,-moz-transform-origin":""),"-moz-transition-duration":""+a.time/1E3+"s","-moz-transition-delay":""+a.delay/1E3+"s","-moz-transition-timing-function":""+a.ease,"-moz-transform-origin":""+a.origin,"-ms-transform":a.transform,"-ms-transition-property":"-ms-transform"+(a.animateOrigin?" ,-ms-transform-origin":""),"-ms-transition-duration":""+a.time/1E3+"s","-ms-transition-delay":""+a.delay/1E3+"s","-ms-transition-timing-function":""+a.ease,"-ms-transform-origin":""+a.origin,"":a.transform,"transition-property":"transform"+(a.animateOrigin?" ,transform-origin":""),"transition-duration":"transform"+a.time/1E3+"s","transition-delay":""+a.delay/1E3+"s","transition-timing-function":""+a.ease,"transform-origin":""+a.origin})})}})(jQuery);(function(e){e.fn.csChop=function(a,d,f){if(this.length!=0)return this.each(function(){function i(b,d){this.loader=function(){return e('.csChopper[data-csid="'+d+'"]')};b.type=="multi"?(this.rows=function(){return this.loader().children("div:last").children("div")},this.slices=function(){return this.rows().find("div")}):(this.slices=function(){return this.loader().children("div:last").find("div")},this.rows=this.slices());this.src=function(){return e('[data-csid="'+d+'"]').not(".csChopper")};this.id=function(){return d};this.reset=function(){this.loader().hide().remove();this.src().css({visibility:"visible"}).attr({"data-csid":""})};this.setBack=function(a,b){this.setTo({scaleX:1,scaleY:1,rotate:0,xOffset:0,yOffset:0,translateX:0,translateY:0},a,b)};this.redefine=function(d,f){var n={};e.extend(n,b);e.extend(b,d);var h=n.type=="multi"?this.loader().children(".csChopper-dummy:last").children("div").find("div").css("background-image"):this.loader().children("div:last").find("div").css("background-image");this.loader().children(".csChopper-dummy:last").remove();this.loader().append('<div class="csChopper-dummy"></div>');n=this.loader().children(".csChopper-dummy:last");if(b.type=="multi"){for(var n=l.find(".csChopper-dummy"),g=1;g<=b.hPieces;g++)n.append("<div ></div>");n.children("div").each(function(){for(var a=1;a<=b.vPieces;a++)e(this).append("<div></div>")});n.children("div").each(function(){var d=e(this).index();e(this).css({width:a.width,position:"absolute",top:a.height/b.hPieces*d,left:0,height:a.height/b.hPieces}).find("div").each(function(){var d=e(this).parent().index(),f=e(this).index(),g=!b.rotateSymmetric?-(-b.rotate+b.rotate*2*(f+1)/b.vPieces):b.rotate;e(this).css({width:!k()?a.width/b.vPieces*b.scaleX:a.width/b.vPieces,height:!k()?a.height/b.hPieces*b.scaleY:a.height/b.hPieces,position:"absolute",left:(a.width+b.xOffset*2)/b.vPieces*f-b.xOffset,top:b.yOffset*2*d/b.hPieces-b.yOffset,"background-image":h,backgroundPosition:-a.width/b.vPieces*f+"px "+-a.height/b.hPieces*d+"px"}).csTransform({transform:"rotate("+g+"deg) scaleY("+b.scaleY+") scaleX("+b.scaleX+") translate("+b.translateX+"px,"+b.translateY+"px)",delay:0,time:0,ease:b.ease,origin:b.origin,animateOrigin:b.animateOrigin});b.initSliceWidth=a.width/b.vPieces;b.initSliceHeight=a.height/b.hPieces})})}else{for(g=1;g<=(a.type=="vertical"?a.vPieces:a.hPieces);g++)n.append("<div ></div>");n.children("div").each(function(){var d=e(this).index();e(this).css({width:k()?b.type=="vertical"?a.width/b.vPieces:a.width:b.type=="vertical"?a.width/b.vPieces*b.scaleX:a.width*b.scaleX,height:k()?b.type=="vertical"?a.height:a.height/b.hPieces:a.type=="vertical"?a.height*b.scaleY:a.height/b.hPieces*b.scaleY,position:"absolute",left:b.type=="vertical"?(a.width+b.xOffset*2)/b.vPieces*d-b.xOffset:b.xOffset-b.xOffset*2/b.hPieces*d,top:b.type=="vertical"?b.yOffset:(a.height+b.yOffset*2)/b.hPieces*d-b.yOffset,"background-image":h,backgroundPosition:b.type=="vertical"?-a.width/b.vPieces*d+"px top":"left "+-a.height/b.hPieces*d+"px"}).csTransform({transform:!b.rotateSymmetric?"rotate("+(-b.rotate+b.rotate*2*(d+1)/b.vPieces)+"deg) scaleY("+b.scaleY+") scaleX("+b.scaleX+") translate("+b.translateX+"px,"+b.translateY+"px)":"rotate("+b.rotate+"deg) scaleY("+b.scaleY+") scaleX("+b.scaleX+") translate("+b.translateX+"px,"+b.translateY+"px)",delay:0,time:0,ease:b.ease,origin:b.origin,animateOrigin:b.animateOrigin});b.initSliceWidth=a.width/b.vPieces;b.initSliceHeight=a.height/b.hPieces})}f&&setTimeout(function(){f()},20)};this.setTo=function(a,d,f){var h={};e.extend(h,a);e.extend(b,a);if(d)b.dur=d;b.type=="multi"?(a=this.loader().find(".csChopper-dummy"),a.children("div").each(function(){e(this).children("div").each(function(){var a=e(this).parent().index(),d=e(this).index(),y=k()?{left:(b.width+b.xOffset*2)/b.vPieces*d-b.xOffset,top:b.yOffset*2*a/b.hPieces-b.yOffset}:{left:(b.width+b.xOffset*2)/b.vPieces*d-b.xOffset,top:b.yOffset*2*a/b.hPieces-b.yOffset,width:b.scaleX*b.initSliceWidth,height:b.scaleY*b.initSliceHeight},l=!b.rotateSymmetric?-(-b.rotate+b.rotate*2*(d+1)/b.vPieces):b.rotate;e(this).csTransform({transform:"rotate("+l+"deg) scaleY("+b.scaleY+") scaleX("+b.scaleX+") translate("+b.translateX+"px,"+b.translateY+"px)",delay:(a*b.vPieces/5+d)*b.pieceDelay,time:b.dur,ease:b.ease,origin:b.origin,animateOrigin:b.animateOrigin}).delay((a*b.vPieces/5+d)*b.pieceDelay).animate(y,b.dur,function(){f&&(d+1)*(a+1)==b.hPieces*b.vPieces&&f();h.completeEach&&h.completeEach();h.completeFirst&&a==0&&d==0&&h.completeFirst()})})})):(a=this.loader().find(".csChopper-dummy"),a.children("div").each(function(){var a=e(this).index();if(h.onStart&&a==0)h.onStart();var d=k()?{left:b.type=="vertical"?(b.width+b.xOffset*2)/b.vPieces*a-b.xOffset:b.xOffset-b.xOffset*2/b.hPieces*a,top:b.type=="vertical"?b.yOffset:(b.height+b.yOffset*2)/b.hPieces*a-b.yOffset}:{left:b.type=="vertical"?(b.width+b.xOffset*2)/b.vPieces*a-b.xOffset:b.xOffset-b.xOffset*2/b.hPieces*a,top:b.type=="vertical"?b.yOffset:(b.height+b.yOffset*2)/b.hPieces*a-b.yOffset,width:b.scaleX*b.initSliceWidth,height:b.scaleY*b.initSliceHeight};e(this).csTransform({transform:!b.rotateSymmetric?"rotate("+(-b.rotate+b.rotate*2*(a+1)/b.vPieces)+"deg) scaleY("+b.scaleY+") scaleX("+b.scaleX+") translate("+b.translateX+"px,"+b.translateY+"px)":"rotate("+b.rotate+"deg) scaleY("+b.scaleY+") scaleX("+b.scaleX+") translate("+b.translateX+"px,"+b.translateY+"px)",delay:b.pieceDelay*a,time:b.dur,ease:b.ease,origin:b.origin,animateOrigin:b.animateOrigin}).delay(b.pieceDelay*a).animate(d,{duration:b.dur,complete:function(){f&&e(this).index()==(b.type=="vertical"?b.vPieces-1:b.hPieces-1)&&f();h.completeEach&&h.completeEach();h.completeFirst&&e(this).index()==0&&h.completeFirst();h.completeNth&&e(this).index()==h.completeNth.index&&h.completeNth.complete()}})}))};this.fadeTo=function(a,d,f){a.dur=d>=0?d:300;a.pieceDelay=a.pieceDelay>=0?a.pieceDelay:b.pieceDelay;var h=this.loader().children("div:last");h.clone().appendTo(l);var g,d=e(a.image);d.length>0?(d.attr("src")&&(g="url("+d.attr("src")+")"),d.css("background-image").indexOf("rl")>=0&&(g=d.css("background-image"))):g="url("+a.image+")";b.type=="multi"?this.loader().children("div:eq(1)").children("div").each(function(){e(this).find("div").each(function(){var d=e(this).parent().index(),k=e(this).index();h.children("div:eq("+d+")").find("div:eq("+k+")").delay((d*b.vPieces/5+k)*a.pieceDelay).fadeOut(a.dur);e(this).css({display:"none","background-image":g}).delay((e(this).parent().index()*b.vPieces/5+e(this).index())*a.pieceDelay).fadeIn(a.dur,function(){h.children("div:eq("+e(this).parent().index()+")").find("div:eq("+e(this).index()+")").hide();e(this).index()*e(this).parent().index()==(b.hPieces-1)*(b.vPieces-1)&&(h.remove(),f&&f())})})}):this.loader().children("div:eq(1)").find("div").each(function(){h.find("div:eq("+e(this).index()+")").delay(a.pieceDelay*e(this).index()).fadeOut(a.dur);e(this).css({display:"none","background-image":g}).delay(a.pieceDelay*e(this).index()).fadeIn(a.dur,function(){h.find("div:eq("+e(this).index()+")").hide();if(e(this).index()==(b.type=="vertical"?b.vPieces-1:b.hPieces-1))h.remove(),f&&f()})})};this.fadeToSet=function(d,f,n){var h={},g={};e.extend(g,b);e.extend(h,d);e.extend(b,d);if(f)b.dur=f;if(!b.fadeDur)b.fadeDur=900;var i=this.loader().children("div:last");i.clone().appendTo(l);var j,d=e(h.image);d.length>0?(d.attr("src")&&(j="url("+d.attr("src")+")"),d.css("background-image").indexOf("rl")>=0&&(j=d.css("background-image"))):j="url("+ft.image+")";b.type=="multi"?this.loader().children("div:last").children("div").each(function(){e(this).find("div").each(function(){var d=e(this).parent().index(),f=e(this).index(),l=!g.rotateSymmetric?-(-g.rotate+g.rotate*2*(f+1)/g.vPieces):g.rotate;h.xFade&&i.children("div:eq("+d+")").find("div:eq("+f+")").fadeOut(b.fadeDur);e(this).css({display:"none","background-image":j,left:(a.width+g.xOffset*2)/a.vPieces*f-g.xOffset,top:g.yOffset*2*d/a.hPieces-g.yOffset,width:!k()?g.scaleX*b.initSliceWidth:e(this).width(),height:!k()?g.scaleY*b.initSliceHeight:e(this).height()}).csTransform({transform:"rotate("+l+"deg) scaleY("+g.scaleY+") scaleX("+g.scaleX+") translate("+g.translateX+"px,"+g.translateY+"px)",delay:0,time:0,ease:g.ease,origin:g.origin,animateOrigin:g.animateOrigin}).delay((d*b.vPieces/5+f)*b.pieceDelay).fadeIn(b.fadeDur,function(){i.children("div:eq("+d+")").find("div:eq("+f+")").hide();e(this).index()*e(this).parent().index()==(b.hPieces-1)*(b.vPieces-1)&&i.remove();var a=k()?{left:(b.width+b.xOffset*2)/b.vPieces*f-b.xOffset,top:b.yOffset*2*d/b.hPieces-b.yOffset}:{left:(b.width+b.xOffset*2)/b.vPieces*f-b.xOffset,top:b.yOffset*2*d/b.hPieces-b.yOffset,width:b.scaleX*b.initSliceWidth,height:b.scaleY*b.initSliceHeight},g=!b.rotateSymmetric?-(-b.rotate+b.rotate*2*(f+1)/b.vPieces):b.rotate;e(this).csTransform({transform:"rotate("+g+"deg) scaleY("+b.scaleY+") scaleX("+b.scaleX+") translate("+b.translateX+"px,"+b.translateY+"px)",time:b.dur,ease:b.ease,origin:b.origin,animateOrigin:b.animateOrigin,delay:0}).animate(a,b.dur,function(){n&&(f+1)*(d+1)==b.hPieces*b.vPieces&&n();h.completeEach&&h.completeEach();h.completeFirst&&d==0&&f==0&&h.completeFirst()})})})}):this.loader().children("div:last").find("div").each(function(){var a=e(this).index(),d=!g.rotateSymmetric?-g.rotate+g.rotate*2*(a+1)/b.vPieces:g.rotate;h.xFade&&i.find("div:eq("+e(this).index()+")").fadeOut(b.fadeDur);e(this).css({display:"none","background-image":j,left:b.type=="vertical"?(b.width+g.xOffset*2)/b.vPieces*a-g.xOffset:g.xOffset-g.xOffset*2/b.hPieces*a,top:b.type=="vertical"?g.yOffset:(b.height+g.yOffset*2)/b.hPieces*a-g.yOffset,width:!k()?g.scaleX*b.initSliceWidth:e(this).width(),height:!k()?g.scaleY*b.initSliceHeight:e(this).height()}).csTransform({transform:"rotate("+d+"deg) scaleY("+g.scaleY+") scaleX("+g.scaleX+") translate("+g.translateX+"px,"+g.translateY+"px)",delay:0,time:0,ease:g.ease,origin:g.origin,animateOrigin:g.animateOrigin}).delay(b.pieceDelay*e(this).index()).fadeIn(b.fadeDur,function(){i.find("div:eq("+e(this).index()+")").hide();e(this).index()==(b.type=="vertical"?b.vPieces-1:b.hPieces-1)&&i.remove();var d=k()?{left:b.type=="vertical"?(b.width+b.xOffset*2)/b.vPieces*a-b.xOffset:b.xOffset-b.xOffset*2/b.hPieces*a,top:b.type=="vertical"?b.yOffset:(b.height+b.yOffset*2)/b.hPieces*a-b.yOffset}:{left:b.type=="vertical"?(b.width+b.xOffset*2)/b.vPieces*a-b.xOffset:b.xOffset-b.xOffset*2/b.hPieces*a,top:b.type=="vertical"?b.yOffset:(b.height+b.yOffset*2)/b.hPieces*a-b.yOffset,width:b.scaleX*b.initSliceWidth,height:b.scaleY*b.initSliceHeight},f=!b.rotateSymmetric?-(b.rotate+b.rotate*2*(a+1)/b.vPieces):b.rotate;e(this).csTransform({transform:"rotate("+f+"deg) scaleY("+b.scaleY+") scaleX("+b.scaleX+") translate("+b.translateX+"px,"+b.translateY+"px)",time:b.dur,ease:b.ease,origin:b.origin,animateOrigin:b.animateOrigin,delay:0}).animate(d,b.dur,function(){n&&e(this).index()==(b.type=="vertical"?b.vPieces-1:b.hPieces-1)&&n();h.completeEach&&h.completeEach();h.completeFirst&&e(this).index()==0&&h.completeFirst();h.completeNth&&e(this).index()==h.completeNth.index&&h.completeNth.complete()})})})}}a.zIndex=a.zIndex||2E4;a.rotate=a.rotate||0;a.scaleY=a.scaleY||a.scaleY===0?a.scaleY:1;a.scaleX=a.scaleX||a.scaleX===0?a.scaleX:1;a.translateX=a.translateX||a.translateX===0?a.translateX:0;a.translateY=a.translateY||a.translateY===0?a.translateY:0;a.ease=a.ease||"ease";a.origin=a.origin||"50% 50%";a.xOffset=a.xOffset||0;a.yOffset=a.yOffset||0;a.hPieces=a.hPieces>0?a.hPieces:10;a.vPieces=a.vPieces>0?a.vPieces:10;a.dur=d>=0?d:1E3;a.type=a.type||"vertical";a.rotateSymmetric=a.rotateSymmetric===!0||a.rotateSymmetric===!1?a.rotateSymmetric:!0;a.disableCSS3=a.disableCSS3===!0||a.disableCSS3===!1?a.disableCSS3:!1;a.pieceDelay=a.pieceDelay>=0?a.pieceDelay:0;a.width=e(this).outerWidth();a.height=e(this).outerHeight();a.hideSrc=a.hideSrc===!0||a.hideSrc===!1?a.hideSrc:!0;if(a.allowMultiChop||!(e(this).attr("data-csid")&&e(".csChopper[data-csid='"+e(this).attr("data-csid")+"']").length>0)){var m=e(".csChopper:last").attr("data-csid");m?m++:m=0;e("body").append('<div class="csChopper" data-csid="'+m+'"><div class="csChopper-dummy"></div></div>');var l=e('.csChopper[data-csid="'+m+'"]');l.css({left:e(this).offset().left,top:e(this).offset().top,position:"absolute","z-index":a.zIndex,width:a.width,height:a.height,display:"none"});var j=e(this),o;e(this).attr("src")&&(o="url("+e(this).attr("src")+")");e(this).css("background-image").indexOf("rl")>=0&&(o=e(this).css("background-image"));e(window).resize(function(){l.css({left:j.offset().left,top:j.offset().top})});j.attr({"data-csid":m});a.hideSrc&&j.css("visibility","hidden");(function(a){switch(a.type){case "multi":for(var d=l.find(".csChopper-dummy"),j=1;j<=a.hPieces;j++)d.append("<div ></div>");d.children("div").each(function(){for(var d=1;d<=a.vPieces;d++)e(this).append("<div></div>")});a.hidden||l.show();var m=new i(a,l.attr("data-csid"));if(a.onStart)a.onStart(m),a.onStart=!1;d.children("div").each(function(){var i=e(this).index();e(this).css({width:a.width,position:"absolute",top:a.height/a.hPieces*i,left:0,height:a.height/a.hPieces}).find("div").each(function(){var h=e(this).parent().index(),g=e(this).index();e(this).css({width:a.width/a.vPieces,position:"absolute",top:0,left:a.width/a.vPieces*g,height:a.height/a.hPieces,"background-image":o,backgroundPosition:-a.width/a.vPieces*g+"px "+-a.height/a.hPieces*h+"px"});a.initSliceWidth=e(this).width();a.initSliceHeight=e(this).height();var i=k()?{left:(a.width+a.xOffset*2)/a.vPieces*g-a.xOffset,top:a.yOffset*2*h/a.hPieces-a.yOffset}:{left:(a.width+a.xOffset*2)/a.vPieces*g-a.xOffset,top:a.yOffset*2*h/a.hPieces-a.yOffset,width:a.scaleX*e(this).width(),height:a.scaleY*e(this).height()};(function(e,f){setTimeout(function(){var g=!a.rotateSymmetric?-(-a.rotate+a.rotate*2*(f+1)/a.vPieces):a.rotate;d.children("div:eq("+e+")").children("div:eq("+f+")").csTransform({transform:"rotate("+g+"deg) scaleY("+a.scaleY+") scaleX("+a.scaleX+") translate("+a.translateX+"px,"+a.translateY+"px)",delay:(e*a.vPieces/5+f)*a.pieceDelay,time:a.dur,ease:a.ease,origin:a.origin,animateOrigin:a.animateOrigin})},0)})(h,g);e(this).delay((h*a.vPieces/5+g)*a.pieceDelay).animate(i,a.dur,function(){a.completeEach&&a.completeEach(m);a.completeFirst&&e(this).index()==0&&e(this).parent().index()==0&&a.completeFirst(m);f&&(e(this).index()+1)*(e(this).parent().index()+1)==a.hPieces*a.vPieces&&f(m)})})});break;default:d=l.find(".csChopper-dummy");for(j=1;j<=(a.type=="vertical"?a.vPieces:a.hPieces);j++)d.append("<div ></div>");a.hidden||l.show();m=new i(a,l.attr("data-csid"));if(a.onStart)a.onStart(m),a.onStart=!1;d.children("div").each(function(){var d=e(this).index();e(this).css({width:a.type=="vertical"?a.width/a.vPieces:a.width,position:"absolute",top:a.type=="vertical"?0:a.height/a.hPieces*d,left:a.type=="vertical"?a.width/a.vPieces*d:0,height:a.type=="vertical"?a.height:a.height/a.hPieces,"background-image":o,backgroundPosition:a.type=="vertical"?-a.width/a.vPieces*d+"px top":"left "+-a.height/a.hPieces*d+"px"});a.initSliceWidth=e(this).width();a.initSliceHeight=e(this).height();var h=k()?{left:a.type=="vertical"?(a.width+a.xOffset*2)/a.vPieces*d-a.xOffset:a.xOffset-a.xOffset*2/a.hPieces*d,top:a.type=="vertical"?a.yOffset:(a.height+a.yOffset*2)/a.hPieces*d-a.yOffset}:{left:a.type=="vertical"?(a.width+a.xOffset*2)/a.vPieces*d-a.xOffset:a.xOffset-a.xOffset*2/a.hPieces*d,top:a.type=="vertical"?a.yOffset:(a.height+a.yOffset*2)/a.hPieces*d-a.yOffset,width:a.scaleX*e(this).width(),height:a.scaleY*e(this).height()};e(this).csTransform({transform:!a.rotateSymmetric?"rotate("+(-a.rotate+a.rotate*2*(d+1)/a.vPieces)+"deg) scaleY("+a.scaleY+") scaleX("+a.scaleX+") translate("+a.translateX+"px,"+a.translateY+"px)":"rotate("+a.rotate+"deg) scaleY("+a.scaleY+") scaleX("+a.scaleX+") translate("+a.translateX+"px,"+a.translateY+"px)",delay:a.pieceDelay*d,time:a.dur,ease:a.ease,origin:a.origin,animateOrigin:a.animateOrigin}).delay(a.pieceDelay*d).animate(h,{duration:a.dur,complete:function(){f&&e(this).index()==(a.type=="vertical"?a.vPieces-1:a.hPieces-1)&&f(m);a.completeEach&&a.completeEach(m);a.completeFirst&&e(this).index()==0&&a.completeFirst(m);a.completeNth&&e(this).index()==a.completeNth.index&&a.completeNth.complete(m)}})})}})(a)}})}})(jQuery);if(this.length!=0){f.chopSlider.animation=0;var i={},r=this;i.loader=f(d.loader);i.loader.html('<div class="dummy-blocks" style="position:relative"><div class="dummy-first"></div><div class="dummy-last" style="display:none;position:absolute;left:0px;top:0px;"></div></div>');var p=d.slide||".slide";d.width=r.width();d.height=r.height();f.chopSlider.slide=function(e){e?(c={},f.extend(c,d,e)):c=e=d;if(!e.direction)e.direction="next";c.autoplay==!1?clearInterval(f.chopSlider.autoplay):t();s(e.direction,c)};d.autoplay&&t();if(d.useCaptions){var x=f(d.everyCaptionIn).eq(f(d.slide+".activeSlide").index()).html();f.trim(x)!=""&&f(d.showCaptionIn).show().html(x)}f.chopSlider.hideDescr=function(){f(d.showCaptionIn).hide().csTransform({transform:d.captionTransform,time:300,delay:0})};f.chopSlider.showDescr=function(){var e=f(d.everyCaptionIn).eq(f(d.slide+".activeSlide").index()).html();f.trim(e)!=""&&(f(d.showCaptionIn).html(e),f(d.showCaptionIn).fadeIn(300,function(){f(this).csTransform({transform:"scale(1,1) translate(0px,0px) rotate(0deg)",time:600,delay:0})}))};i.loader.css({left:r.offset().left,top:r.offset().top,position:"absolute","z-index":d.loaderIndex>=0?d.loaderIndex:2E4,width:d.width,height:d.height,display:"none"});f(window).resize(function(){i.loader.css({left:r.offset().left,top:r.offset().top})});i.nextTrigger=f(d.nextTrigger);i.prevTrigger=f(d.prevTrigger);i.nextTrigger.click(function(e){clearInterval(f.chopSlider.autoplay);e.preventDefault();s("next",d,"full")});i.prevTrigger.click(function(e){clearInterval(f.chopSlider.autoplay);e.preventDefault();s("prev",d,"full")})}}})(jQuery);