/******************************************** * REVOLUTION 5.0 EXTENSION - ACTIONS * @version: 1.0.4 (29.09.2015) * @requires jquery.themepunch.revolution.js * @author ThemePunch *********************************************/ !function($){var _R=jQuery.fn.revolution;jQuery.extend(!0,_R,{checkActions:function(e,t,a){checkActions_intern(e,t,a)}});var checkActions_intern=function(_nc,opt,as){as&&jQuery.each(as,function(i,a){switch(a.delay=parseInt(a.delay,0)/1e3,_nc.addClass("noSwipe"),_nc.on(a.event,function(){var tnc=jQuery("#"+a.layer);if("stoplayer"==a.action||"togglelayer"==a.action||"startlayer"==a.action){if(tnc.length>0)if("startlayer"==a.action||"togglelayer"==a.action&&"in"!=tnc.data("animdirection")){tnc.data("animdirection","in");var otl=tnc.data("timeline_out"),base_offsetx="carousel"===opt.sliderType?0:opt.width/2-opt.gridwidth[opt.curWinRange]*opt.bw/2,base_offsety=0;void 0!=otl&&otl.pause(0).kill(),_R.animateSingleCaption&&_R.animateSingleCaption(tnc,opt,base_offsetx,base_offsety,0,!1,!0);var tl=tnc.data("timeline");tnc.data("triggerstate","on"),punchgs.TweenLite.delayedCall(a.delay,function(){tl.play(0)},[tl])}else("stoplayer"==a.action||"togglelayer"==a.action&&"out"!=tnc.data("animdirection"))&&(tnc.data("animdirection","out"),tnc.data("triggered",!0),tnc.data("triggerstate","off"),_R.stopVideo&&_R.stopVideo(tnc,opt),_R.endMoveCaption&&punchgs.TweenLite.delayedCall(a.delay,_R.endMoveCaption,[tnc,null,null,opt]))}else punchgs.TweenLite.delayedCall(a.delay,function(){switch(a.action){case"scrollbelow":_nc.addClass("tp-scrollbelowslider"),_nc.data("scrolloffset",a.offset),_nc.data("scrolldelay",a.delay);var off=getOffContH(opt.fullScreenOffsetContainer)||0,aof=parseInt(a.offset,0)||0;off=off-aof||0,jQuery("body,html").animate({scrollTop:opt.c.offset().top+jQuery(opt.li[0]).height()-off+"px"},{duration:400});break;case"callback":eval(a.callback);break;case"jumptoslide":switch(a.slide.toLowerCase()){case"+1":case"next":opt.sc_indicator="arrow",_R.callingNewSlide(opt,opt.c,1);break;case"previous":case"prev":case"-1":opt.sc_indicator="arrow",_R.callingNewSlide(opt,opt.c,-1);break;default:var ts=jQuery.isNumeric(a.slide)?parseInt(a.slide,0):a.slide;_R.callingNewSlide(opt,opt.c,ts)}break;case"simplelink":window.open(a.url,a.target);break;case"toggleslider":opt.noloopanymore=0,"playing"==opt.sliderstatus?opt.c.revpause():opt.c.revresume();break;case"pauseslider":opt.c.revpause();break;case"playslider":opt.noloopanymore=0,opt.c.revresume();break;case"playvideo":tnc.length>0&&_R.playVideo(tnc,opt);break;case"stopvideo":tnc.length>0&&_R.stopVideo&&_R.stopVideo(tnc,opt);break;case"togglevideo":tnc.length>0&&(_R.isVideoPlaying(tnc,opt)?_R.stopVideo&&_R.stopVideo(tnc,opt):_R.playVideo(tnc,opt));break;case"simulateclick":tnc.length>0&&tnc.click();break;case"toggleclass":tnc.length>0&&(tnc.hasClass(a.classname)?tnc.removeClass(a.classname):tnc.addClass(a.classname));break;case"gofullscreen":case"exitfullscreen":case"togglefullscreen":if(jQuery("#rs-go-fullscreen").length>0&&("togglefullscreen"==a.action||"exitfullscreen"==a.action)){jQuery("#rs-go-fullscreen").appendTo(jQuery("#rs-was-here"));var paw=opt.c.closest(opt.c.closest(".forcefullwidth_wrapper_tp_banner").length>0?".forcefullwidth_wrapper_tp_banner":".rev_slider_wrapper");paw.unwrap(),paw.unwrap(),opt.minHeight=opt.oldminheight,opt.infullscreenmode=!1,opt.c.revredraw(),void 0!=opt.playingvideos&&opt.playingvideos.length>0&&jQuery.each(opt.playingvideos,function(e,t){_R.playVideo(t,opt)})}else if(0==jQuery("#rs-go-fullscreen").length&&("togglefullscreen"==a.action||"gofullscreen"==a.action)){var paw=opt.c.closest(opt.c.closest(".forcefullwidth_wrapper_tp_banner").length>0?".forcefullwidth_wrapper_tp_banner":".rev_slider_wrapper");paw.wrap('