=r)a(!0,h);else{if(!v&&!f)if(0>=m){if(0=r-1&&0>t){a(!0,h);return}if(f){var u=d._thumbsPosition;if(u>d._thumbsMinPosition)u=d._thumbsMinPosition;else if(uq?(q+=d._thumbsViewportSize/(15/(n/h*.003)),h=h*q/n,n=q):0>e&&n>p&&(p+=d._thumbsViewportSize/(15/(n/h*.003)),h=h*p/n,n=p);q=Math.max(Math.round(h/.003),50);u+=n*(0>e?-1:1);if(u>d._thumbsMinPosition){d._animateThumbsTo(u,q,!0,d._thumbsMinPosition,200);return}if(uk&&b++;return b},p+kt?a(!1,h):(q=q(n-p),d._moveTo(d.currSlideId-q,c(Math.abs(d._sPosition-(-d._realId-d._idOffset+q)*d._slideSize)/h),!1,!0,!0)):p-k>n?0this.numSlides)f=this.numSlides;this.slides.splice(f,0,c);this.slidesJQ.splice(f,0,l(""));f=f._realId?0:Math.floor(f._realId/b);f.numSlides=f.slides.length;0===f.numSlides?(f.currSlideId=f._idOffset=f._realId=0,f.currSlide=f._oldHolder=null):f._realId=b*f.numSlides+f.currSlideId;for(b=0;b=f.numSlides?f.goTo(f.numSlides-1):0>f.currSlideId&&f.goTo(0);f._refreshNumPreloadImages();f._isMove&&f._loop&&f._slidesContainer.css(f._vendorPref+f._TD,"0ms");f._refreshSlidesTimeout&&clearTimeout(f._refreshSlidesTimeout);f._refreshSlidesTimeout=setTimeout(function(){f._isMove&&f._setPosition((-f._realId-f._idOffset)*f._slideSize);f._updateBlocksContent();f._isMove||f._currHolder.css({display:"block",opacity:1})},14);f.ev.trigger("rsOnUpdateNav")},_setGrabCursor:function(){this._hasDrag&&this._isMove&&(this._grabCursor?this._sliderOverflow.css("cursor",this._grabCursor):(this._sliderOverflow.removeClass("grabbing-cursor"),this._sliderOverflow.addClass("grab-cursor")))},_setGrabbingCursor:function(){this._hasDrag&&this._isMove&&(this._grabbingCursor?this._sliderOverflow.css("cursor",this._grabbingCursor):(this._sliderOverflow.removeClass("grab-cursor"),this._sliderOverflow.addClass("grabbing-cursor")))},next:function(b){this._moveTo("next",this.st.transitionSpeed,!0,!b)},prev:function(b){this._moveTo("prev",this.st.transitionSpeed,!0,!b)},_moveTo:function(b,f,c,a,d){var g=this;g.ev.trigger("rsBeforeMove",[b,a]);var e="next"===b?g.currSlideId+1:"prev"===b?g.currSlideId-1:b=parseInt(b,10);if(!g._loop){if(0>e){g._doBackAndForthAnim("left",!a);return}if(e>=g.numSlides){g._doBackAndForthAnim("right",!a);return}}g._isAnimating&&(g._stopAnimation(!0),c=!1);var h=e-g.currSlideId;e=g._prevSlideId=g.currSlideId;var k=g.currSlideId+h;a=g._realId;var n;g._loop?(k=g._updateBlocksContent(!1,k),a+=h):a=k;g._newSlideId=k;g._oldHolder=g.slidesJQ[g.currSlideId];g._realId=a;g.currSlideId=g._newSlideId;g.currSlide=g.slides[g.currSlideId];g._currHolder=g.slidesJQ[g.currSlideId];k=g.st.slidesDiff;var l=0g.numSlides-1?m=g.numSlides-1:0>m&&(m=0);e=l?m-e:e-m;e>g._numPreloadImages&&(e=g._numPreloadImages);if(h>e+k)for(g._idOffset+=(h-(e+k))*(l?-1:1),f*=1.4,e=0;e=this.numSlides?(this._arrowLeft.css("display","none"),this._arrowRight.css("display","none")):(this._arrowLeft.css("display","block"),this._arrowRight.css("display","block"),this._loop||this.st.loopRewind||(0===this.currSlideId?this._arrowLeft.addClass("rsArrowDisabled"):this._arrowLeft.removeClass("rsArrowDisabled"),this.currSlideId===this.numSlides-1?this._arrowRight.addClass("rsArrowDisabled"):this._arrowRight.removeClass("rsArrowDisabled"))))},_animateTo:function(b,f,c,a,d){function g(){var a;k&&(a=k.data("rsTimeout"))&&(k!==n&&k.css({opacity:0,display:"none",zIndex:0}),clearTimeout(a),k.data("rsTimeout",""));if(a=n.data("rsTimeout"))clearTimeout(a),n.data("rsTimeout","")}var e=this,h={};isNaN(e._currAnimSpeed)&&(e._currAnimSpeed=400);e._sPosition=e._currRenderPosition=b;e.ev.trigger("rsBeforeAnimStart");if(e._useCSS3Transitions)if(e._isMove)e._currAnimSpeed=parseInt(e._currAnimSpeed,10),c=e._vendorPref+e._TTF,h[e._vendorPref+e._TD]=e._currAnimSpeed+"ms",h[c]=a?l.rsCSS3Easing[e.st.easeInOut]:l.rsCSS3Easing[e.st.easeOut],e._slidesContainer.css(h),a||!e.hasTouch?setTimeout(function(){e._setPosition(b)},5):e._setPosition(b);else{e._currAnimSpeed=e.st.transitionSpeed;var k=e._oldHolder;var n=e._currHolder;n.data("rsTimeout")&&n.css("opacity",0);g();k&&k.data("rsTimeout",setTimeout(function(){h[e._vendorPref+e._TD]="0ms";h.zIndex=0;h.display="none";k.data("rsTimeout","");k.css(h);setTimeout(function(){k.css("opacity",0)},16)},e._currAnimSpeed+60));h.display="block";h.zIndex=e._fadeZIndex;h.opacity=0;h[e._vendorPref+e._TD]="0ms";h[e._vendorPref+e._TTF]=l.rsCSS3Easing[e.st.easeInOut];n.css(h);n.data("rsTimeout",setTimeout(function(){n.css(e._vendorPref+e._TD,e._currAnimSpeed+"ms");n.data("rsTimeout",setTimeout(function(){n.css("opacity",1);n.data("rsTimeout","")},20))},20))}else e._isMove?(h[e._slidesHorizontal?e._xProp:e._yProp]=b+"px",e._slidesContainer.animate(h,e._currAnimSpeed,a?e.st.easeInOut:e.st.easeOut)):(k=e._oldHolder,n=e._currHolder,n.stop(!0,!0).css({opacity:0,display:"block",zIndex:e._fadeZIndex}),e._currAnimSpeed=e.st.transitionSpeed,n.animate({opacity:1},e._currAnimSpeed,e.st.easeInOut),g(),k&&k.data("rsTimeout",setTimeout(function(){k.stop(!0,!0).css({opacity:0,display:"none",zIndex:0})},e._currAnimSpeed+60)));e._isAnimating=!0;e.loadingTimeout&&clearTimeout(e.loadingTimeout);e.loadingTimeout=d?setTimeout(function(){e.loadingTimeout=null;d.call()},e._currAnimSpeed+60):setTimeout(function(){e.loadingTimeout=null;e._animationComplete(f)},e._currAnimSpeed+60)},_stopAnimation:function(b){this._isAnimating=!1;clearTimeout(this.loadingTimeout);if(this._isMove)if(!this._useCSS3Transitions)this._slidesContainer.stop(!0),this._sPosition=parseInt(this._slidesContainer.css(this._xProp),10);else{if(!b){b=this._sPosition;var f=this._currRenderPosition=this._getTransformProp();this._slidesContainer.css(this._vendorPref+this._TD,"0ms");b!==f&&this._setPosition(f)}}else 20h||l>p)&&(g="fit");if("fill"===g||"fit"===g){var r=h/k;var t=p/l;r="fill"==g?r>t?r:t:"fit"==g?r(a.st.minAutoHeight||30)&&(a._wrapHeight=c,a._useCSS3Transitions||!d?a._sliderOverflow.css("height",c):a._sliderOverflow.stop(!0,!0).animate({height:c},a.st.transitionSpeed),a.ev.trigger("rsAutoHeightChange",c),f&&(a._useCSS3Transitions&&setTimeout(function(){a._sliderOverflow.css(a._vendorPref+"transition","height "+a.st.transitionSpeed+"ms ease-in-out")},16),f=!1))};a.ev.on("rsMaybeSizeReady.rsAutoHeight",function(a,b){e===b&&d()});a.ev.on("rsAfterContentSet.rsAutoHeight",function(a,b){e===b&&d()});a.slider.addClass("rsAutoHeight");a.ev.one("rsAfterInit",function(){setTimeout(function(){d(!1);setTimeout(function(){a.slider.append("")},16)},16)});a.ev.on("rsBeforeAnimStart",function(){d(!0)});a.ev.on("rsBeforeSizeSet",function(){setTimeout(function(){d(!1)},16)})}}});b.rsModules.autoHeight=b.rsProto._initAutoHeight})(jQuery);(function(c){c.extend(c.rsProto,{_initBullets:function(){var a=this;"bullets"===a.st.controlNavigation&&(a.ev.one("rsAfterPropsSetup",function(){a._controlNavEnabled=!0;a.slider.addClass("rsWithBullets");for(var b="",e=0;e";a._controlNav=b=c(b+"");a._controlNavItems=b.appendTo(a.slider).children();a._controlNav.on("click.rs",".rsNavItem",function(b){a._thumbsDrag||a.goTo(c(this).index())})}),a.ev.on("rsOnAppendSlide",function(b,c,d){d>=a.numSlides?a._controlNav.append(""):a._controlNavItems.eq(d).before("");a._controlNavItems=a._controlNav.children()}),a.ev.on("rsOnRemoveSlide",function(b,c){var d=a._controlNavItems.eq(c);d&&d.length&&(d.remove(),a._controlNavItems=a._controlNav.children())}),a.ev.on("rsOnUpdateNav",function(){var b=a.currSlideId;a._prevNavItem&&a._prevNavItem.removeClass("rsNavSelected");b=a._controlNavItems.eq(b);b.addClass("rsNavSelected");a._prevNavItem=b}))}});c.rsModules.bullets=c.rsProto._initBullets})(jQuery);(function($) { "use strict"; /** * * RoyalSlider active class module * @version 1.0.1: * * 1.0.1 * - Simplified code * - Fixed bug when slide with activeClass is removed */ $.rsProto._initActiveClass = function() { var updClassTimeout, self = this, aSlideClass = "rsActiveSlide"; if(self.st.addActiveClass) { self.ev.on("rsOnUpdateNav", function() { if(updClassTimeout) clearTimeout(updClassTimeout); updClassTimeout = setTimeout(function() { if(self._oldHolder) self._oldHolder.removeClass(aSlideClass); if(self._currHolder) self._currHolder.addClass(aSlideClass); updClassTimeout = null; }, 50); }); } }; $.rsModules.activeClass = $.rsProto._initActiveClass;})(jQuery);(function(a){a.extend({nanoShare:function(e){var g={type:"icon",displayCounter:!1,counter:void 0,showShareMore:!1,url:"",title:a(document).attr("title"),description:a("meta[name="description"]").attr("content"),image:"",mainClass:"nano-share",enableTracking:!1,shareLabel:"Condivisioni",socialNetwork:{facebook:{enable:!0,showIcon:!0,showLabel:!0,showMobile:!0,hasPopup:!0,forceView:!1,hideOnExpand:!1,callback:function(){},icoImg:"",classIcon:"icon-FB",classLabel:"icon-FB-text",accountName:"",appID:"",popup:{width:600,height:550,shareURL:"https://www.facebook.com/dialog/share"}},twitter:{enable:!0,showIcon:!0,showLabel:!0,showMobile:!0,hasPopup:!0,forceView:!1,hideOnExpand:!1,callback:function(){},icoImg:"",classIcon:"icon-TW",classLabel:"icon-TW-text",accountName:"",popup:{width:750,height:250,shareURL:"https://twitter.com/share"}},googlePlus:{enable:!0,showIcon:!0,showLabel:!0,showMobile:!0,hasPopup:!0,forceView:!1,hideOnExpand:!1,callback:function(){},icoImg:"",classIcon:"icon-GP",classLabel:"icon-GP-text",accountName:"",popup:{width:500,height:600,shareURL:"https://plus.google.com/share"}},meneame:{enable:!1,showIcon:!1,showLabel:!1,showMobile:!1,hasPopup:!0,forceView:!1,hideOnExpand:!1,callback:function(){},icoImg:"",classIcon:"icon-MN",classLabel:"icon-MN-text",accountName:"",label:"Men\u00c3\u00a9ame",popup:{width:470,height:500,shareURL:"https://www.meneame.net/submit.php"}},pinterest:{enable:!0,showIcon:!0,showLabel:!0,showMobile:!0,hasPopup:!0,forceView:!1,hideOnExpand:!1,callback:function(){},icoImg:"",classIcon:"icon-PI",classLabel:"icon-PI-text",accountName:"",popup:{width:750,height:250,shareURL:"http://www.pinterest.com/pin/create/button/"},pinItButton:!1,pinItSelector:".galleryImg img, #sliderMultiPage .rsContainer > div:first-of-type img.rsImg, .the_content > img:not(.gnone), .the_content > p img:not(.gnone), .the_content_img > img:not(.gnone)",pinItMoreClass:""},linkedIn:{enable:!0,showIcon:!1,showLabel:!1,showMobile:!1,hasPopup:!0,forceView:!0,hideOnExpand:!0,callback:function(){},icoImg:"",classIcon:"icon-LI",classLabel:"icon-LI",accountName:"",popup:{width:520,height:570,shareURL:"http://www.linkedin.com/shareArticle"}},whatsApp:{enable:!0,showIcon:!1,showLabel:!1,showMobile:!0,hasPopup:!1,callback:function(){},icoImg:"",classIcon:"icon-WA",classLabel:"",accountName:"",href:"whatsapp://send?"},email:{enable:!0,showIcon:!1,showLabel:!1,showMobile:!1,hasPopup:!1,hideOnExpand:!0,onClick:function(){},callback:function(){},classIcon:"icon-mail addthis_button_email",classLabel:"icon-mail addthis_button_email"},print:{enable:!0,showIcon:!1,showLabel:!1,showMobile:!1,hasPopup:!1,hideOnExpand:!0,onClick:function(d){a("html").addClass("nano-printing");a("div.unit.to-print").removeClass("to-print");a(".ns-hide-for-print").removeClass("ns-hide-for-print");0
e;e++){c=a(d).find(".disqus_thread:first");if(1==a(c).size())break;d=a(d).parent()}}var g=a(c).data("url"),l=a(c).data("post-id");a(c).attr("id","disqus_thread");DISQUS.reset({reload:!0,config:function(){this.page.identifier=l;this.page.url=g+""}});a(c).show(function(){a(window).height();var c=a(this).offset().top-a(window).height()/2;window.location.hash="disqus";a("html, body").animate({scrollTop:c},1500)})},callback:function(){},icoImg:"",classIcon:"icon-CM",classLabel:"icon-CM-text"}}};a(".nano-share:hidden:not(.force):not(.active)").removeClass("nano-share");var c=a.extend(!0,g,e);e=a(".nano-share:not(.active)");a(e).each(function(){var d=c.url,e=c.title,g=c.description,q=c.image,l=c.showShareMore,u=c.socialNetwork.facebook.enable,v=c.socialNetwork.twitter.enable,w=c.socialNetwork.googlePlus.enable,x=c.socialNetwork.pinterest.enable,y=c.socialNetwork.meneame.enable,z=c.socialNetwork.linkedIn.enable,A=c.socialNetwork.whatsApp.enable;enableComments=c.socialNetwork.comments.enable;newMainClass=c.mainClass;a(this);var h=a(""),m=a(""),r=!1,t=!1,k=a(this).attr("class").split(/\s+/);a.each(k,function(c,b){"nano-share"!=b&&"ns-icon"!=b&&"force"!=b&&"ns-label"!=b&&"active"!=b&&a(h).addClass(b)});a.each(a(this).data(),function(c,b){b=a.trim(b);"true"==b&&(b=!0);"false"==b&&(b=!1);a(h).attr("data-"+c,b);switch(c.toLowerCase()){case "title":e=b;break;case "description":g=b;break;case "url":d=b;break;case "image":q=b;break;case "showsharemore":l=b;break;case "facebook":u=b;break;case "twitter":v=b;break;case "googleplus":w=b;break;case "pinterest":x=b;break;case "meneame":y=b;break;case "linkedin":z=b;break;case "whatsapp":A=b;break;case "comments":enableComments=b;break;case "mainclass":newMainClass=b}});""==a.trim(d)&&(d=document.URL);a(this).hasClass("ns-icon")?(r=!0,a(h).addClass("ns-icon")):a(this).hasClass("ns-mobile")?(t=!0,a(h).addClass("ns-mobile")):a(h).addClass("ns-label");a(h).addClass("clearfix");a(h).addClass(newMainClass);a(m).addClass("ns-more addthis_toolbox");a.each(c.socialNetwork,function(c,b){switch(c){case "facebook":if(!u)return;break;case "twitter":if(!v)return;break;case "googlePlus":if(!w)return;break;case "pinterest":if(!x)return;break;case "meneame":if(!y)return;break;case "linkedIn":if(!z)return;break;case "whatsApp":if(!A)return;break;case "comments":if(!enableComments)return}var k="javascript:void(0);",l="",p="";r&&b.showIcon?(""!=a.trim(b.icoImg)&&(l=""),""!=a.trim(b.classIcon)&&(p=a.trim(b.classIcon))):t&&b.showMobile?p=a.trim(b.classIcon):t||r||!b.showLabel?b.showIcon&&""!=a.trim(b.classIcon)&&(p=a.trim(b.classIcon)):(""!=a.trim(b.icoImg)&&(l=""),""!=a.trim(b.classLabel)&&(p=a.trim(b.classLabel)));if(""!=a.trim(p)||""!=a.trim(l)){if(""!=a.trim(b.href))switch(c){case "whatsApp":k=a.trim(b.href+"text="+(e+" - "+d).replace(/"/g,"\\""))}var n=a(""+l+"