");d.controlsContainer?(a(d.controlsContainer).append(b),d.directionNav=a("."+e+"direction-nav li a",d.controlsContainer)):(d.append(b),d.directionNav=a("."+e+"direction-nav li a",d)),p.directionNav.update(),d.directionNav.bind(h,function(b){b.preventDefault();var c;(""===i||i===b.type)&&(c=a(this).hasClass(e+"next")?d.getTarget("next"):d.getTarget("prev"),d.flexAnimate(c,d.vars.pauseOnAction)),""===i&&(i=b.type),p.setToClearWatchedEvent()})},update:function(){var a=e+"disabled";1===d.pagingCount?d.directionNav.addClass(a).attr("tabindex","-1"):d.vars.animationLoop?d.directionNav.removeClass(a).removeAttr("tabindex"):0===d.animatingTo?d.directionNav.removeClass(a).filter("."+e+"prev").addClass(a).attr("tabindex","-1"):d.animatingTo===d.last?d.directionNav.removeClass(a).filter("."+e+"next").addClass(a).attr("tabindex","-1"):d.directionNav.removeClass(a).removeAttr("tabindex")}},pausePlay:{setup:function(){var b=a('
');d.controlsContainer?(d.controlsContainer.append(b),d.pausePlay=a("."+e+"pauseplay a",d.controlsContainer)):(d.append(b),d.pausePlay=a("."+e+"pauseplay a",d)),p.pausePlay.update(d.vars.slideshow?e+"pause":e+"play"),d.pausePlay.bind(h,function(b){b.preventDefault(),(""===i||i===b.type)&&(a(this).hasClass(e+"pause")?(d.manualPause=!0,d.manualPlay=!1,d.pause()):(d.manualPause=!1,d.manualPlay=!0,d.play())),""===i&&(i=b.type),p.setToClearWatchedEvent()})},update:function(a){"play"===a?d.pausePlay.removeClass(e+"pause").addClass(e+"play").html(d.vars.playText):d.pausePlay.removeClass(e+"play").addClass(e+"pause").html(d.vars.pauseText)}},touch:function(){function r(b){o=b.touches[0].pageX,p=b.touches[0].pageY,h=k?a-p:a-o,j=k?Math.abs(h)f)&&(b.preventDefault(),!n&&d.transitions&&(d.vars.animationLoop||(h/=0===d.currentSlide&&0>h||d.currentSlide===d.last&&h>0?Math.abs(h)/g+2:1),d.setProps(e+h,"setTouch")))}function s(){if(b.removeEventListener("touchmove",r,!1),d.animatingTo===d.currentSlide&&!j&&null!==h){var k=l?-h:h,m=k>0?d.getTarget("next"):d.getTarget("prev");d.canAdvance(m)&&(Number(new Date)-i<550&&Math.abs(k)>50||Math.abs(k)>g/2)?d.flexAnimate(m,d.vars.pauseOnAction):n||d.flexAnimate(d.currentSlide,d.vars.pauseOnAction,!0)}b.removeEventListener("touchend",s,!1),a=null,c=null,h=null,e=null}function t(f){d.animating?f.preventDefault():(window.navigator.msPointerEnabled||1===f.touches.length)&&(d.pause(),g=k?d.h:d.w,i=Number(new Date),o=f.touches[0].pageX,p=f.touches[0].pageY,e=m&&l&&d.animatingTo===d.last?0:m&&l?d.limit-(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo:m&&d.currentSlide===d.last?d.limit:m?(d.itemW+d.vars.itemMargin)*d.move*d.currentSlide:l?(d.last-d.currentSlide+d.cloneOffset)*g:(d.currentSlide+d.cloneOffset)*g,a=k?p:o,c=k?o:p,b.addEventListener("touchmove",r,!1),b.addEventListener("touchend",s,!1))}function u(a){a.stopPropagation(),d.animating?a.preventDefault():(d.pause(),b._gesture.addPointer(a.pointerId),q=0,g=k?d.h:d.w,i=Number(new Date),e=m&&l&&d.animatingTo===d.last?0:m&&l?d.limit-(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo:m&&d.currentSlide===d.last?d.limit:m?(d.itemW+d.vars.itemMargin)*d.move*d.currentSlide:l?(d.last-d.currentSlide+d.cloneOffset)*g:(d.currentSlide+d.cloneOffset)*g)}function v(a){a.stopPropagation();var c=a.target._slider;if(c){var d=-a.translationX,f=-a.translationY;return q+=k?f:d,h=q,j=k?Math.abs(q)500)&&(a.preventDefault(),!n&&c.transitions&&(c.vars.animationLoop||(h=q/(0===c.currentSlide&&0>q||c.currentSlide===c.last&&q>0?Math.abs(q)/g+2:1)),c.setProps(e+h,"setTouch"))),void 0)}}function w(b){b.stopPropagation();var d=b.target._slider;if(d){if(d.animatingTo===d.currentSlide&&!j&&null!==h){var f=l?-h:h,k=f>0?d.getTarget("next"):d.getTarget("prev");d.canAdvance(k)&&(Number(new Date)-i<550&&Math.abs(f)>50||Math.abs(f)>g/2)?d.flexAnimate(k,d.vars.pauseOnAction):n||d.flexAnimate(d.currentSlide,d.vars.pauseOnAction,!0)}a=null,c=null,h=null,e=null,q=0}}var a,c,e,g,h,i,j=!1,o=0,p=0,q=0;f?(b.style.msTouchAction="none",b._gesture=new MSGesture,b._gesture.target=b,b.addEventListener("MSPointerDown",u,!1),b._slider=d,b.addEventListener("MSGestureChange",v,!1),b.addEventListener("MSGestureEnd",w,!1)):b.addEventListener("touchstart",t,!1)},resize:function(){!d.animating&&d.is(":visible")&&(m||d.doMath(),n?p.smoothHeight():m?(d.slides.width(d.computedW),d.update(d.pagingCount),d.setProps()):k?(d.viewport.height(d.h),d.setProps(d.h,"setTotal")):(d.vars.smoothHeight&&p.smoothHeight(),d.newSlides.width(d.computedW),d.setProps(d.computedW,"setTotal")))},smoothHeight:function(a){if(!k||n){var b=n?d:d.viewport;a?b.animate({height:d.slides.eq(d.animatingTo).height()},a):b.height(d.slides.eq(d.animatingTo).height())}},sync:function(b){var c=a(d.vars.sync).data("flexslider"),e=d.animatingTo;switch(b){case"animate":c.flexAnimate(e,d.vars.pauseOnAction,!1,!0);break;case"play":c.playing||c.asNav||c.play();break;case"pause":c.pause()}},uniqueID:function(b){return b.find("[id]").each(function(){var b=a(this);b.attr("id",b.attr("id")+"_clone")}),b},pauseInvisible:{visProp:null,init:function(){var a=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var b=0;b0?setTimeout(d.play,d.vars.initDelay):d.play()})}},isHidden:function(){return document[p.pauseInvisible.visProp]||!1}},setToClearWatchedEvent:function(){clearTimeout(j),j=setTimeout(function(){i=""},3e3)}},d.flexAnimate=function(b,c,f,h,i){if(d.vars.animationLoop||b===d.currentSlide||(d.direction=b>d.currentSlide?"next":"prev"),o&&1===d.pagingCount&&(d.direction=d.currentItemd.limit&&1!==d.visible?d.limit:t):s=0===d.currentSlide&&b===d.count-1&&d.vars.animationLoop&&"next"!==d.direction?l?(d.count+d.cloneOffset)*q:0:d.currentSlide===d.last&&0===b&&d.vars.animationLoop&&"prev"!==d.direction?l?0:(d.count+1)*q:l?(d.count-1-b+d.cloneOffset)*q:(b+d.cloneOffset)*q,d.setProps(s,"",d.vars.animationSpeed),d.transitions?(d.vars.animationLoop&&d.atEnd||(d.animating=!1,d.currentSlide=d.animatingTo),d.container.unbind("webkitTransitionEnd transitionend"),d.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(d.ensureAnimationEnd),d.wrapup(q)}),clearTimeout(d.ensureAnimationEnd),d.ensureAnimationEnd=setTimeout(function(){d.wrapup(q)},d.vars.animationSpeed+100)):d.container.animate(d.args,d.vars.animationSpeed,d.vars.easing,function(){d.wrapup(q)})}d.vars.smoothHeight&&p.smoothHeight(d.vars.animationSpeed)}},d.wrapup=function(a){n||m||(0===d.currentSlide&&d.animatingTo===d.last&&d.vars.animationLoop?d.setProps(a,"jumpEnd"):d.currentSlide===d.last&&0===d.animatingTo&&d.vars.animationLoop&&d.setProps(a,"jumpStart")),d.animating=!1,d.currentSlide=d.animatingTo,d.vars.after(d)},d.animateSlides=function(){!d.animating&&q&&d.flexAnimate(d.getTarget("next"))},d.pause=function(){clearInterval(d.animatedSlides),d.animatedSlides=null,d.playing=!1,d.vars.pausePlay&&p.pausePlay.update("play"),d.syncExists&&p.sync("pause")},d.play=function(){d.playing&&clearInterval(d.animatedSlides),d.animatedSlides=d.animatedSlides||setInterval(d.animateSlides,d.vars.slideshowSpeed),d.started=d.playing=!0,d.vars.pausePlay&&p.pausePlay.update("pause"),d.syncExists&&p.sync("play")},d.stop=function(){d.pause(),d.stopped=!0},d.canAdvance=function(a,b){var c=o?d.pagingCount-1:d.last;return b?!0:o&&d.currentItem===d.count-1&&0===a&&"prev"===d.direction?!0:o&&0===d.currentItem&&a===d.pagingCount-1&&"next"!==d.direction?!1:a!==d.currentSlide||o?d.vars.animationLoop?!0:d.atEnd&&0===d.currentSlide&&a===c&&"next"!==d.direction?!1:d.atEnd&&d.currentSlide===c&&0===a&&"next"===d.direction?!1:!0:!1},d.getTarget=function(a){return d.direction=a,"next"===a?d.currentSlide===d.last?0:d.currentSlide+1:0===d.currentSlide?d.last:d.currentSlide-1},d.setProps=function(a,b,c){var e=function(){var c=a?a:(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo,e=function(){if(m)return"setTouch"===b?a:l&&d.animatingTo===d.last?0:l?d.limit-(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo:d.animatingTo===d.last?d.limit:c;switch(b){case"setTotal":return l?(d.count-1-d.currentSlide+d.cloneOffset)*a:(d.currentSlide+d.cloneOffset)*a;case"setTouch":return l?a:a;case"jumpEnd":return l?a:d.count*a;case"jumpStart":return l?d.count*a:a;default:return a}}();return-1*e+"px"}();d.transitions&&(e=k?"translate3d(0,"+e+",0)":"translate3d("+e+",0,0)",c=void 0!==c?c/1e3+"s":"0s",d.container.css("-"+d.pfx+"-transition-duration",c),d.container.css("transition-duration",c)),d.args[d.prop]=e,(d.transitions||void 0===c)&&d.container.css(d.args),d.container.css("transform",e)},d.setup=function(b){if(n)d.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"===b&&(g?d.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+d.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(d.currentSlide).css({opacity:1,zIndex:2}):d.slides.css({opacity:0,display:"block",zIndex:1}).eq(d.currentSlide).css({zIndex:2}).animate({opacity:1},d.vars.animationSpeed,d.vars.easing)),d.vars.smoothHeight&&p.smoothHeight();else{var c,f;"init"===b&&(d.viewport=a('').css({overflow:"hidden",position:"relative"}).appendTo(d).append(d.container),d.cloneCount=0,d.cloneOffset=0,l&&(f=a.makeArray(d.slides).reverse(),d.slides=a(f),d.container.empty().append(d.slides))),d.vars.animationLoop&&!m&&(d.cloneCount=2,d.cloneOffset=1,"init"!==b&&d.container.find(".clone").remove(),p.uniqueID(d.slides.first().clone().addClass("clone").attr("aria-hidden","true")).appendTo(d.container),p.uniqueID(d.slides.last().clone().addClass("clone").attr("aria-hidden","true")).prependTo(d.container)),d.newSlides=a(d.vars.selector,d),c=l?d.count-1-d.currentSlide+d.cloneOffset:d.currentSlide+d.cloneOffset,k&&!m?(d.container.height(200*(d.count+d.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){d.newSlides.css({display:"block"}),d.doMath(),d.viewport.height(d.h),d.setProps(c*d.h,"init")},"init"===b?100:0)):(d.container.width(200*(d.count+d.cloneCount)+"%"),d.setProps(c*d.computedW,"init"),setTimeout(function(){d.doMath(),d.newSlides.css({width:d.computedW,"float":"left",display:"block"}),d.vars.smoothHeight&&p.smoothHeight()},"init"===b?100:0))}m||d.slides.removeClass(e+"active-slide").eq(d.currentSlide).addClass(e+"active-slide"),d.vars.init(d)},d.doMath=function(){var a=d.slides.first(),b=d.vars.itemMargin,c=d.vars.minItems,e=d.vars.maxItems;d.w=void 0===d.viewport?d.width():d.viewport.width(),d.h=a.height(),d.boxPadding=a.outerWidth()-a.width(),m?(d.itemT=d.vars.itemWidth+b,d.minW=c?c*d.itemT:d.w,d.maxW=e?e*d.itemT-b:d.w,d.itemW=d.minW>d.w?(d.w-b*(c-1))/c:d.maxWd.w?d.w:d.vars.itemWidth,d.visible=Math.floor(d.w/d.itemW),d.move=d.vars.move>0&&d.vars.moved.w?d.itemW*(d.count-1)+b*(d.count-1):(d.itemW+b)*d.count-d.w-b):(d.itemW=d.w,d.pagingCount=d.count,d.last=d.count-1),d.computedW=d.itemW-d.boxPadding},d.update=function(a,b){d.doMath(),m||(ad.controlNav.length?p.controlNav.update("add"):("remove"===b&&!m||d.pagingCountd.last&&(d.currentSlide-=1,d.animatingTo-=1),p.controlNav.update("remove",d.last))),d.vars.directionNav&&p.directionNav.update()},d.addSlide=function(b,c){var e=a(b);d.count+=1,d.last=d.count-1,k&&l?void 0!==c?d.slides.eq(d.count-c).after(e):d.container.prepend(e):void 0!==c?d.slides.eq(c).before(e):d.container.append(e),d.update(c,"add"),d.slides=a(d.vars.selector+":not(.clone)",d),d.setup(),d.vars.added(d)},d.removeSlide=function(b){var c=isNaN(b)?d.slides.index(a(b)):b;d.count-=1,d.last=d.count-1,isNaN(b)?a(b,d.slides).remove():k&&l?d.slides.eq(d.last).remove():d.slides.eq(b).remove(),d.doMath(),d.update(c,"remove"),d.slides=a(d.vars.selector+":not(.clone)",d),d.setup(),d.vars.removed(d)},p.init()},a(window).blur(function(){focused=!1}).focus(function(){focused=!0}),a.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},a.fn.flexslider=function(b){if(void 0===b&&(b={}),"object"==typeof b)return this.each(function(){var c=a(this),d=b.selector?b.selector:".slides > li",e=c.find(d);1===e.length&&b.allowOneSlide===!0||0===e.length?(e.fadeIn(400),b.start&&b.start(c)):void 0===c.data("flexslider")&&new a.flexslider(this,b)});var c=a(this).data("flexslider");switch(b){case"play":c.play();break;case"pause":c.pause();break;case"stop":c.stop();break;case"next":c.flexAnimate(c.getTarget("next"),!0);break;case"prev":case"previous":c.flexAnimate(c.getTarget("prev"),!0);break;default:"number"==typeof b&&c.flexAnimate(b,!0)}}}(jQuery);
(function($){
$.fn.evoGetFilters=function(){
var ev_cal=$(this);
var evodata=ev_cal.find('.evo-data');
var filters_on=(evodata.attr('data-filters_on')=='true')?'true':'false';
if(filters_on=='true'){
var filter_section=ev_cal.find('.eventon_filter_line');
var filter_array=[];
filter_section.find('.eventon_filter').each(function(index){
var filter_val=$(this).attr('data-filter_val');
if(filter_val!='all'){
var filter_ar={};
filter_ar['filter_type']=$(this).attr('data-filter_type');
filter_ar['filter_name']=$(this).attr('data-filter_field');
if($(this).attr('data-fl_o')=='NOT'){
filter_ar['filter_op']='NOT IN';
}
filter_ar['filter_val']=filter_val;
filter_array.push(filter_ar);
}});
}else{
var filter_array='';
}
return filter_array;
}
$.fn.evo_shortcodes=function(){
var ev_cal=$(this);
var shortcode_array={};
ev_cal.find('.cal_arguments').each(function(){
$.each(this.attributes, function(i, attrib){
var name=attrib.name;
if(attrib.name!='class'&&attrib.name!='style'&&attrib.value!=''){
name__=attrib.name.split('-');
shortcode_array[name__[1]]=attrib.value;
}});
});
return shortcode_array;
}
$.fn.evo_item_shortcodes=function(){
var OBJ=$(this);
var shortcode_array={};
OBJ.each(function(){
$.each(this.attributes, function(i, attrib){
var name=attrib.name;
if(attrib.name!='class'&&attrib.name!='style'&&attrib.value!=''){
name__=attrib.name.split('-');
shortcode_array[name__[1]]=attrib.value;
}});
});
return shortcode_array;
}
$.fn.evo_getevodata=function(){
var ev_cal=$(this);
var evoData={};
ev_cal.find('.evo-data').each(function(){
$.each(this.attributes, function(i, attrib){
var name=attrib.name;
if(attrib.name!='class'&&attrib.name!='style'){
name__=attrib.name.split('-');
evoData[name__[1]]=attrib.value;
}});
});
return evoData;
}
$.fn.evo_otherVals=function(opt){
var defaults={
data_arg: '',
};
var options=$.extend({}, defaults, opt);
var cal_head=$(this);
cal_head.find('.eventon_other_vals').each(function(){
if($(this).val()!=''){
options.data_arg[$(this).attr('name')]=$(this).val();
}});
return options.data_arg;
}
$.fn.evo_loader_animation=function(opt){
var defaults={
direction:'start'
}
var OPT=$.extend({}, defaults, opt);
if(OPT.direction=='start'){
$(this).find('#eventon_loadbar').slideDown();
}else{
$(this).find('#eventon_loadbar').slideUp();
}}
}(jQuery));
(function(e){function d(){var e=o();if(e!==u){u=e;i.trigger("orientationchange")}}function E(t,n,r,i){var s=r.type;r.type=n;e.event.dispatch.call(t,r,i);r.type=s}e.attrFn=e.attrFn||{};var t=navigator.userAgent.toLowerCase(),n=t.indexOf("chrome")>-1&&(t.indexOf("windows")>-1||t.indexOf("macintosh")>-1||t.indexOf("linux")>-1)&&t.indexOf("chrome")<0,r={swipe_h_threshold:50,swipe_v_threshold:50,taphold_threshold:750,doubletap_int:500,touch_capable:"ontouchstart"in document.documentElement&&!n,orientation_support:"orientation"in window&&"onorientationchange"in window,startevent:"ontouchstart"in document.documentElement&&!n?"touchstart":"mousedown",endevent:"ontouchstart"in document.documentElement&&!n?"touchend":"mouseup",moveevent:"ontouchstart"in document.documentElement&&!n?"touchmove":"mousemove",tapevent:"ontouchstart"in document.documentElement&&!n?"tap":"click",scrollevent:"ontouchstart"in document.documentElement&&!n?"touchmove":"scroll",hold_timer:null,tap_timer:null};e.isTouchCapable=function(){return r.touch_capable};e.getStartEvent=function(){return r.startevent};e.getEndEvent=function(){return r.endevent};e.getMoveEvent=function(){return r.moveevent};e.getTapEvent=function(){return r.tapevent};e.getScrollEvent=function(){return r.scrollevent};e.each(["tapstart","tapend","tap","singletap","doubletap","taphold","swipe","swipeup","swiperight","swipedown","swipeleft","swipeend","scrollstart","scrollend","orientationchange"],function(t,n){e.fn[n]=function(e){return e?this.bind(n,e):this.trigger(n)};e.attrFn[n]=true});e.event.special.tapstart={setup:function(){var t=this,n=e(t);n.bind(r.startevent,function(e){n.data("callee",arguments.callee);if(e.which&&e.which!==1){return false}var i=e.originalEvent,s={position:{x:r.touch_capable?i.touches[0].screenX:e.screenX,y:r.touch_capable?i.touches[0].screenY:e.screenY},offset:{x:r.touch_capable?i.touches[0].pageX-i.touches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?i.touches[0].pageY-i.touches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};E(t,"tapstart",e,s);return true})},remove:function(){e(this).unbind(r.startevent,e(this).data.callee)}};e.event.special.tapend={setup:function(){var t=this,n=e(t);n.bind(r.endevent,function(e){n.data("callee",arguments.callee);var i=e.originalEvent;var s={position:{x:r.touch_capable?i.changedTouches[0].screenX:e.screenX,y:r.touch_capable?i.changedTouches[0].screenY:e.screenY},offset:{x:r.touch_capable?i.changedTouches[0].pageX-i.changedTouches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?i.changedTouches[0].pageY-i.changedTouches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};E(t,"tapend",e,s);return true})},remove:function(){e(this).unbind(r.endevent,e(this).data.callee)}};e.event.special.taphold={setup:function(){var t=this,n=e(t),i,s,o={x:0,y:0};n.bind(r.startevent,function(e){if(e.which&&e.which!==1){return false}else{n.data("tapheld",false);i=e.target;var s=e.originalEvent;var u=(new Date).getTime(),a={x:r.touch_capable?s.touches[0].screenX:e.screenX,y:r.touch_capable?s.touches[0].screenY:e.screenY},f={x:r.touch_capable?s.touches[0].pageX-s.touches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?s.touches[0].pageY-s.touches[0].target.offsetTop:e.offsetY};o.x=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageX:e.pageX;o.y=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageY:e.pageY;r.hold_timer=window.setTimeout(function(){var l=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageX:e.pageX,c=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageY:e.pageY;if(e.target==i&&o.x==l&&o.y==c){n.data("tapheld",true);var h=(new Date).getTime(),p={x:r.touch_capable?s.touches[0].screenX:e.screenX,y:r.touch_capable?s.touches[0].screenY:e.screenY},d={x:r.touch_capable?s.touches[0].pageX-s.touches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?s.touches[0].pageY-s.touches[0].target.offsetTop:e.offsetY};duration=h-u;var v={startTime:u,endTime:h,startPosition:a,startOffset:f,endPosition:p,endOffset:d,duration:duration,target:e.target};n.data("callee1",arguments.callee);E(t,"taphold",e,v)}},r.taphold_threshold);return true}}).bind(r.endevent,function(){n.data("callee2",arguments.callee);n.data("tapheld",false);window.clearTimeout(r.hold_timer)})},remove:function(){e(this).unbind(r.startevent,e(this).data.callee1).unbind(r.endevent,e(this).data.callee2)}};e.event.special.doubletap={setup:function(){var t=this,n=e(t),i,s,o,u;n.bind(r.startevent,function(e){if(e.which&&e.which!==1){return false}else{n.data("doubletapped",false);i=e.target;n.data("callee1",arguments.callee);u=e.originalEvent;o={position:{x:r.touch_capable?u.touches[0].screenX:e.screenX,y:r.touch_capable?u.touches[0].screenY:e.screenY},offset:{x:r.touch_capable?u.touches[0].pageX-u.touches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?u.touches[0].pageY-u.touches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};return true}}).bind(r.endevent,function(e){var a=(new Date).getTime();var f=n.data("lastTouch")||a+1;var l=a-f;window.clearTimeout(s);n.data("callee2",arguments.callee);if(l0&&e.target==i&&l>100){n.data("doubletapped",true);window.clearTimeout(r.tap_timer);var c={position:{x:r.touch_capable?u.touches[0].screenX:e.screenX,y:r.touch_capable?u.touches[0].screenY:e.screenY},offset:{x:r.touch_capable?u.touches[0].pageX-u.touches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?u.touches[0].pageY-u.touches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};var h={firstTap:o,secondTap:c,interval:c.time-o.time};E(t,"doubletap",e,h)}else{n.data("lastTouch",a);s=window.setTimeout(function(e){window.clearTimeout(s)},r.doubletap_int,[e])}n.data("lastTouch",a)})},remove:function(){e(this).unbind(r.startevent,e(this).data.callee1).unbind(r.endevent,e(this).data.callee2)}};e.event.special.singletap={setup:function(){var t=this,n=e(t),i=null,s=null,o={x:0,y:0};n.bind(r.startevent,function(e){if(e.which&&e.which!==1){return false}else{s=(new Date).getTime();i=e.target;n.data("callee1",arguments.callee);o.x=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageX:e.pageX;o.y=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageY:e.pageY;return true}}).bind(r.endevent,function(e){n.data("callee2",arguments.callee);if(e.target==i){end_pos_x=e.originalEvent.changedTouches?e.originalEvent.changedTouches[0].pageX:e.pageX;end_pos_y=e.originalEvent.changedTouches?e.originalEvent.changedTouches[0].pageY:e.pageY;r.tap_timer=window.setTimeout(function(){if(!n.data("doubletapped")&&!n.data("tapheld")&&o.x==end_pos_x&&o.y==end_pos_y){var i=e.originalEvent;var u={position:{x:r.touch_capable?i.changedTouches[0].screenX:e.screenX,y:r.touch_capable?i.changedTouches[0].screenY:e.screenY},offset:{x:r.touch_capable?i.changedTouches[0].pageX-i.changedTouches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?i.changedTouches[0].pageY-i.changedTouches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};if(u.time-su.y&&o.y-u.y>p){f="swipeup"}if(o.xh){f="swiperight"}if(o.yp){f="swipedown"}if(o.x>u.x&&o.x-u.x>h){f="swipeleft"}if(f!=undefined&&i){o.x=0;o.y=0;u.x=0;u.y=0;i=false;var d=t.originalEvent;endEvnt={position:{x:r.touch_capable?d.touches[0].screenX:t.screenX,y:r.touch_capable?d.touches[0].screenY:t.screenY},offset:{x:r.touch_capable?d.touches[0].pageX-d.touches[0].target.offsetLeft:t.offsetX,y:r.touch_capable?d.touches[0].pageY-d.touches[0].target.offsetTop:t.offsetY},time:(new Date).getTime(),target:t.target};var v=Math.abs(a.position.x-endEvnt.position.x),m=Math.abs(a.position.y-endEvnt.position.y);var g={startEvnt:a,endEvnt:endEvnt,direction:f.replace("swipe",""),xAmount:v,yAmount:m,duration:endEvnt.time-a.time};s=true;n.trigger("swipe",g).trigger(f,g)}}function c(t){n=e(t.target);var o="";n.data("callee3",arguments.callee);if(s){var u=n.data("xthreshold"),f=n.data("ythreshold"),l=typeof u!=="undefined"&&u!==false&&parseInt(u)?parseInt(u):r.swipe_h_threshold,c=typeof f!=="undefined"&&f!==false&&parseInt(f)?parseInt(f):r.swipe_v_threshold;var h=t.originalEvent;endEvnt={position:{x:r.touch_capable?h.changedTouches[0].screenX:t.screenX,y:r.touch_capable?h.changedTouches[0].screenY:t.screenY},offset:{x:r.touch_capable?h.changedTouches[0].pageX-h.changedTouches[0].target.offsetLeft:t.offsetX,y:r.touch_capable?h.changedTouches[0].pageY-h.changedTouches[0].target.offsetTop:t.offsetY},time:(new Date).getTime(),target:t.target};if(a.position.y>endEvnt.position.y&&a.position.y-endEvnt.position.y>c){o="swipeup"}if(a.position.xl){o="swiperight"}if(a.position.yc){o="swipedown"}if(a.position.x>endEvnt.position.x&&a.position.x-endEvnt.position.x>l){o="swipeleft"}var p=Math.abs(a.position.x-endEvnt.position.x),d=Math.abs(a.position.y-endEvnt.position.y);var v={startEvnt:a,endEvnt:endEvnt,direction:o.replace("swipe",""),xAmount:p,yAmount:d,duration:endEvnt.time-a.time};n.trigger("swipeend",v)}i=false;s=false}var t=this,n=e(t),i=false,s=false,o={x:0,y:0},u={x:0,y:0},a;n.bind(r.startevent,f);n.bind(r.moveevent,l);n.bind(r.endevent,c)},remove:function(){e(this).unbind(r.startevent,e(this).data.callee1).unbind(r.moveevent,e(this).data.callee2).unbind(r.endevent,e(this).data.callee3)}};e.event.special.scrollstart={setup:function(){function o(e,n){i=n;E(t,i?"scrollstart":"scrollend",e)}var t=this,n=e(t),i,s;n.bind(r.scrollevent,function(e){n.data("callee",arguments.callee);if(!i){o(e,true)}clearTimeout(s);s=setTimeout(function(){o(e,false)},50)})},remove:function(){e(this).unbind(r.scrollevent,e(this).data.callee)}};var i=e(window),s,o,u,a,f,l={0:true,180:true};if(r.orientation_support){var c=window.innerWidth||e(window).width(),h=window.innerHeight||e(window).height(),p=50;a=c>h&&c-h>p;f=l[window.orientation];if(a&&f||!a&&!f){l={"-90":true,90:true}}}e.event.special.orientationchange=s={setup:function(){if(r.orientation_support){return false}u=o();i.bind("throttledresize",d);return true},teardown:function(){if(r.orientation_support){return false}i.unbind("throttledresize",d);return true},add:function(e){var t=e.handler;e.handler=function(e){e.orientation=o();return t.apply(this,arguments)}}};e.event.special.orientationchange.orientation=o=function(){var e=true,t=document.documentElement;if(r.orientation_support){e=l[window.orientation]}else{e=t&&t.clientWidth/t.clientHeight<1.1}return e?"portrait":"landscape"};e.event.special.throttledresize={setup:function(){e(this).bind("resize",m)},teardown:function(){e(this).unbind("resize",m)}};var v=250,m=function(){b=(new Date).getTime();w=b-g;if(w>=v){g=b;e(this).trigger("throttledresize")}else{if(y){window.clearTimeout(y)}y=window.setTimeout(d,v-w)}},g=0,y,b,w;e.each({scrollend:"scrollstart",swipeup:"swipe",swiperight:"swipe",swipedown:"swipe",swipeleft:"swipe",swipeend:"swipe"},function(t,n,r){e.event.special[t]={setup:function(){e(this).bind(n,e.noop)}}})})(jQuery);
(function(a){function d(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=!0,g=0,h=0;return b=a.event.fix(c),b.type="mousewheel",c.wheelDelta&&(e=c.wheelDelta/120),c.detail&&(e=-c.detail/3),h=e,c.axis!==undefined&&c.axis===c.HORIZONTAL_AXIS&&(h=0,g=-1*e),c.wheelDeltaY!==undefined&&(h=c.wheelDeltaY/120),c.wheelDeltaX!==undefined&&(g=-1*c.wheelDeltaX/120),d.unshift(b,e,g,h),(a.event.dispatch||a.event.handle).apply(this,d)}var b=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var c=b.length;c;)a.event.fixHooks[b[--c]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=b.length;a;)this.addEventListener(b[--a],d,!1);else this.onmousewheel=d},teardown:function(){if(this.removeEventListener)for(var a=b.length;a;)this.removeEventListener(b[--a],d,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
jQuery(document).ready(function($){
init();
function init(){
init_run_gmap_openevc();
fullheight_img_reset();
}
$('body').on('click','.evolbclose', function(){
LIGHTBOX=$(this).closest('.evo_lightbox');
closing_lightbox(LIGHTBOX);
});
$(document).on('click', function(event){
if($(event.target).hasClass('evo_content_inin')
){
closing_lightbox($(event.target).closest('.evo_lightbox'));
}});
function closing_lightbox(lightboxELM){
if(! lightboxELM.hasClass('show')) return false;
Close=(lightboxELM.parent().find('.evo_lightbox.show').length==1)? true: false;
lightboxELM.removeClass('show');
setTimeout(function(){
lightboxELM.find('.evo_lightbox_body').html('');
if(Close){
$('body').removeClass('evo_overflow');
$('html').removeClass('evo_overflow');
}
$('body').trigger('lightbox_event_closing',lightboxELM);
}, 500);
}
$('body').on('evolightbox_show',function(){
$('.evo_lightboxes').show();
$('body').addClass('evo_overflow');
$('html').addClass('evo_overflow');
});
$('body').on('click','.eventon_events_list .desc_trig', function(event){
var obj=$(this);
var attr=obj.closest('.evo_lightbox').attr('data-cal_id');
if(typeof attr!==typeof undefined&&attr!==false){
var cal_id=attr;
var cal=$('#'+cal_id);
}else{
var cal=obj.closest('.ajde_evcal_calendar');
}
var evodata=cal.find('.evo-data');
var cal_ux_val=evodata.data('ux_val');
var accord__=evodata.data('accord');
var ux_val=obj.data('ux_val');
var exlk=obj.data('exlk');
if(cal_ux_val!=''&&cal_ux_val!==undefined&&cal_ux_val!='0'){
ux_val=cal_ux_val;
}
if(ux_val=='3'){
event.preventDefault();
EVO_LIGHTBOX=$('.evo_lightbox.eventcard');
LIGHTBOX_body=EVO_LIGHTBOX.find('.evo_lightbox_body');
EVO_LIGHTBOX.find('.evo_pop_body').show();
fullheight_img_reset();
LIGHTBOX_body.html('');
var event_list=obj.closest('.eventon_events_list');
var content=obj.closest('.eventon_list_event').find('.event_description').html();
var content_front=obj.html();
var eventid=obj.closest('.eventon_list_event').data('event_id');
var _content=$(content).not('.evcal_close');
if(event_list.hasClass('evortl')){
EVO_LIGHTBOX.find('.evo_popin').addClass('evortl');
EVO_LIGHTBOX.addClass('evortl');
}
LIGHTBOX_body.append('
'+content_front+'
').append(_content);
LIGHTBOX_body.addClass('event_'+eventid);
var this_map=LIGHTBOX_body.find('.evcal_gmaps');
var idd=this_map.attr('id');
this_map.attr({'id':idd+'_evop'});
EVO_LIGHTBOX.addClass('show');
$('body').trigger('evolightbox_show');
obj.evoGenmaps({
'_action':'lightbox',
'cal':cal,
'mapSpotId':idd+'_evop'
});
fullheight_img_reset();
bgcolor=$('.evo_pop_body').find('.evcal_cblock').attr('data-bgcolor');
$('.evo_pop_body').find('.evopop_top').css({'border-left':'3px solid '+bgcolor});
return false;
}else if(ux_val=='4'){
if(obj.attr('href')!=''&&obj.attr('href')!==undefined){
return;
}else{
var url=obj.parent().siblings('.evo_event_schema').find('a').attr('href');
if(obj.attr('target')=='_blank'){ window.open(url);}else{ window.open(url, '_self');}
return false;
}}else if(ux_val=='2'){
var url=obj.parent().siblings('.evo_event_schema').find('a').attr('href');
if(url!==undefined&&url!=''){
if(obj.attr('target')=='_blank'){ window.open(url);}else{ window.open(url, '_self');}}
return false;
}else if(ux_val=='X'){
return false;
}else if(ux_val=='none'){
return false;
}else{
if(exlk=='1'&&ux_val!='1'){
if(obj.attr('href')!=''&&obj.attr('href')!==undefined){
return;
}else{
var url=obj.siblings('.evo_event_schema').find('a').attr('href');
if(obj.attr('target')=='_blank'){ window.open(url);}else{ window.open(url, '_self');}
return false;
}}else{
var click_item=obj.closest('.eventon_list_event').find('.event_description');
if(click_item.hasClass('open')){
click_item.slideUp().removeClass('open');
}else{
if(accord__=='1'){
cal.find('.event_description').slideUp().removeClass('open');
}
click_item.slideDown().addClass('open');
}
if(obj.attr('data-gmstat')!='1'){
obj.attr({'data-gmstat':'1'});
obj.evoGenmaps({'fnt':2});
}
return false;
}}
});
function init_run_gmap_openevc(delay){
$('.ajde_evcal_calendar').each(function(){
if($(this).find('.evo-data').data('evc_open')=='1'){
$(this).find('.desc_trig').each(function(){
if(delay!=''&&delay!==undefined){
$(this).evoGenmaps({'fnt':2, 'delay':delay});
}else{
$(this).evoGenmaps({'fnt':2});
}});
}});
}
$('body').on('click','.evocmd_button', function(event){
event.preventDefault();
event.stopPropagation();
href=$(this).data('href');
if($(this).data('target')=='yes'){
window.open(href,'_blank');
}else{
window.location=href;
}});
if($('body').find('.evo_jumper_months').length>0){
$('.evo_jumper_months').mousewheel(function(e, delta){
OBJ=$(this);
var cur_mleft=parseInt(OBJ.css('marginLeft')),
width=parseInt(OBJ.css('width')),
Pwid=OBJ.parent().width();
maxMLEFT=(width-Pwid)*(-1);
if(cur_mleft<=0){
var new_marl=(cur_mleft+ (delta * 140));
if(new_marl>0){ new_marl=0;}
if(delta==-1&&((new_marl*(-1))< (width -200))){
new_marl=(new_marl 0)? 0: newLEFT;
OBJ.stop().animate({'margin-left': newLEFT });
}}
}
$('body').on('click','.evo-gototoday-btn', function(){
var obj=$(this);
var calid=obj.closest('.ajde_evcal_calendar').attr('id');
var evo_data=$('#'+calid).find('.evo-data');
evo_data.attr({
'data-cmonth':obj.data('mo'),
'data-cyear':obj.data('yr'),
});
$('body').trigger('evo_goto_today',[calid, evo_data]);
ajax_post_content(evo_data.attr('data-sort_by'),calid,'none','today');
obj.fadeOut();
});
$('body').on('evo_main_ajax', function(event, calendar, evodata, ajaxtype){
if(ajaxtype!='sorting'&&ajaxtype!='filering')
calendar.find('.evo-gototoday-btn').fadeIn();
});
$('body').on('evo_main_ajax_complete', function(event, calendar, evodata){
var today=calendar.find('.evo-gototoday-btn');
if(evodata.attr('data-cmonth')==today.attr('data-mo')){
calendar.find('.evo-gototoday-btn').fadeOut();
}});
$('.ajde_evcal_calendar').on('click','.evo-jumper-btn', function(){
$(this).parent().siblings().find('.evo_j_container').slideToggle();
});
$('.evo_j_dates').on('click','a',function(){
var val=$(this).attr('data-val'),
type=$(this).parent().parent().attr('data-val'),
container=$(this).closest('.evo_j_container');
if(type=='m'){
container.attr({'data-m':val});
}else{
container.attr({'data-y':$(this).html() });
}
$(this).parent().find('a').removeClass('set');
$(this).addClass('set');
if(container.attr('data-m')!==undefined&&container.attr('data-y')!==undefined){
var calid=container.closest('.ajde_evcal_calendar').attr('id');
var evo_data=$('#'+calid).find('.evo-data');
evo_data.attr({
'data-cmonth':container.attr('data-m'),
'data-cyear':container.attr('data-y'),
});
ajax_post_content(evo_data.attr('data-sort_by'),calid,'none','jumper');
if(container.data('expj')=='no')
container.delay(2000).slideUp();
}});
function change_jumper_set_values(cal_id){
var evodata=$('#'+cal_id).find('.evo-data');
var ej_container=$('#'+cal_id).find('.evo_j_container');
var new_month=evodata.attr('data-cmonth');
var new_year=evodata.attr('data-cyear');
ej_container.attr({'data-m':new_month});
ej_container.find('.evo_j_months p.legend a').removeClass('set').parent().find('a[data-val='+new_month+']').addClass('set');
ej_container.find('.evo_j_years p.legend a').removeClass('set').parent().find('a[data-val='+new_year+']').addClass('set');
}
$('.eventon_events_list').on('click','.evcal_close',function(){
$(this).parent().parent().slideUp();
});
if($('.ajde_evcal_calendar').hasClass('evcal_widget')){
cal.find('.evcal_gmaps').each(function(){
var gmap_id=obj.attr('id');
var new_gmal_id=gmap_id+'_widget';
obj.attr({'id':new_gmal_id})
});
}
$('body').on('click','.evoShow_more_events', function(){
OBJ=$(this);
var ReDir=OBJ.data('dir');
if(ReDir!='0'){
window.location=ReDir;
return false;
}
var evCal=OBJ.closest('.ajde_evcal_calendar');
var evoData=evCal.find('.evo-data');
if(OBJ.data('ajax')=='yes'){
calargs=evCal.find('.cal_arguments');
CURRENT_PAGED=parseInt(calargs.attr('data-show_limit_paged'));
calargs.attr('data-show_limit_paged', CURRENT_PAGED+1);
var sort_by=evoData.attr('data-sort_by');
cal_id=evCal.attr('id');
ajax_post_content(sort_by, cal_id, 'none','paged');
}else{
var event_count=parseInt(evoData.data('ev_cnt'));
var show_limit=evoData.data('show_limit');
var eventList=OBJ.parent();
var allEvents=eventList.find('.eventon_list_event').length;
var currentShowing=eventList.find('.eventon_list_event:visible').length;
for(x=1; x<=event_count ; x++){
var inde=currentShowing+x-1;
eventList.find('.eventon_list_event:eq('+ inde+')').slideDown();
}
if(allEvents > currentShowing&&allEvents<=(currentShowing+event_count)){
$(this).fadeOut();
}}
});
$('body').find('.evo_tab_container').each(function(){
$(this).find('.evo_tab_section').each(function(){
if(!$(this).hasClass('visible')){
$(this).addClass('hidden');
}});
});
$('body').on('click','ul.evo_tabs li',function(){
tab=$(this).data('tab');
tabsection=$(this).closest('.evo_tab_view').find('.evo_tab_container');
tabsection.find('.evo_tab_section').addClass('hidden').removeClass('visible');
tabsection.find('.'+tab).addClass('visible').removeClass('hidden');
$(this).parent().find('li').removeClass('selected');
$(this).addClass('selected');
});
if($('body').find('.evo_layout_changer').length>0){
$('body').find('.evo_layout_changer').each(function(item){
if($(this).parent().hasClass('boxy')){
$(this).find('.fa-th-large').addClass('on');
}else{
$(this).find('.fa-reorder').addClass('on');
}});
$('.evo_layout_changer').on('click','i',function(){
TYPE=$(this).data('type');
$(this).parent().find('i').removeClass('on');
$(this).addClass('on');
if(TYPE=='row'){
$(this).closest('.ajde_evcal_calendar').removeClass('boxy');
}else{
$(this).closest('.ajde_evcal_calendar').addClass('boxy');
}});
}
$('.evo_sort_btn').click(function(){
$(this).siblings('.eventon_sorting_section').slideToggle('fast');
});
$('.evo_srt_sel p.fa').click(function(){
if($(this).hasClass('onlyone')) return;
$(this).siblings('.evo_srt_options').fadeToggle();
filterSelect=$(this).closest('.eventon_sorting_section').find('.eventon_filter_dropdown');
if(filterSelect.is(':visible')==true) filterSelect.fadeToggle();
});
$('.evo_srt_options').on('click','p',function(){
var evodata=$(this).closest('.eventon_sorting_section').siblings('.evo-data');
var cmonth=parseInt(evodata.attr('data-cmonth'));
var cyear=parseInt(evodata.attr('data-cyear'));
var sort_by=$(this).attr('data-val');
var new_sorting_name=$(this).html();
var cal_id=evodata.parent().attr('id');
ajax_post_content(sort_by,cal_id,'none','sorting');
evodata.attr({'data-sort_by':sort_by});
$(this).parent().find('p').removeClass('evs_hide');
$(this).addClass('evs_hide');
$(this).parent().siblings('p.fa').html(new_sorting_name);
$(this).parent().hide();
sort_options=$(this).closest('.evo_srt_options');
hidden_options=sort_options.find('.evs_hide').length;
all_options=sort_options.find('.evs_btn').length;
if(all_options==hidden_options){
$(this).parent().siblings('p.fa').addClass('onlyone');
}});
$('.filtering_set_val').click(function(){
sortSelect=$(this).closest('.eventon_sorting_section').find('.evo_srt_options');
if(sortSelect.is(':visible')==true) sortSelect.fadeToggle();
var obj=$(this);
var current_Drop=obj.siblings('.eventon_filter_dropdown');
var current_drop_pare=obj.closest('.eventon_filter');
current_drop_pare.siblings('.eventon_filter').find('.eventon_filter_dropdown').each(function(){
if($(this).is(':visible')==true){
$(this).hide();
}});
if(current_Drop.is(':visible')==true){
obj.siblings('.eventon_filter_dropdown').fadeOut('fast');
}else{
obj.siblings('.eventon_filter_dropdown').fadeIn('fast');
}});
$('.eventon_filter_dropdown').on('click','p',function(){
var new_filter_val=$(this).attr('data-filter_val'),
filter_section=$(this).closest('.eventon_filter_line');
var filter=$(this).closest('.eventon_filter');
var filter_current_set_val=filter.attr('data-filter_val');
if(filter_section.hasClass('selecttype')){
val='';
filter.find('input').each(function(){
val=($(this).is(':checked'))? val+$(this).attr('data-filter_val')+',': val;
});
val=val==''? 'all':val;
filter.attr('data-filter_val',val);
}
if(filter_section.hasClass('selecttype')) return;
if(filter_current_set_val==new_filter_val){
$(this).parent().fadeOut();
}else{
CAL=$(this).closest('.ajde_evcal_calendar');
var evodata=CAL.find('.evo-data');
CAL_ARG=CAL.find('.cal_arguments');
CAL_ARG.attr('data-show_limit_paged',0);
var cmonth=parseInt(evodata.attr('data-cmonth'));
var cyear=parseInt(evodata.attr('data-cyear'));
var sort_by=evodata.attr('data-sort_by');
var cal_id=evodata.parent().attr('id');
filter.attr({'data-filter_val':new_filter_val});
evodata.attr({'data-filters_on':'true'});
ajax_post_content(sort_by,cal_id,'none','filering');
var new_filter_name=$(this).html();
$(this).parent().find('p').removeClass('evf_hide');
$(this).addClass('evf_hide');
$(this).parent().fadeOut();
$(this).parent().siblings('.filtering_set_val').html(new_filter_name);
}});
$('.eventon_filter_dropdown').on('change','input',function(event){
FILTER=$(this).closest('.eventon_filter');
val='';
FILTER.find('input').each(function(){
val=($(this).is(':checked'))? val+$(this).attr('data-filter_val')+',': val;
});
val=val==''? '':val;
FILTER.attr('data-filter_val',val);
});
$('body').on('click','.evo_filter_submit',function(){
$(this).closest('.eventon_filter_line').find('.eventon_filter_dropdown').fadeOut();
var evodata=$(this).closest('.eventon_sorting_section').siblings('.evo-data');
var cmonth=parseInt(evodata.attr('data-cmonth'));
var cyear=parseInt(evodata.attr('data-cyear'));
var sort_by=evodata.attr('data-sort_by');
var cal_id=evodata.parent().attr('id');
evodata.attr({'data-filters_on':'true'});
ajax_post_content(sort_by,cal_id,'none','filering');
});
$('body').on('click','.evcal_btn_prev', function(){
var evodata=$(this).parent().siblings('.evo-data');
var sort_by=evodata.attr('data-sort_by');
cal_id=$(this).closest('.ajde_evcal_calendar').attr('id');
ajax_post_content(sort_by,cal_id,'prev','switchmonth');
});
$('body').on('click','.evcal_btn_next',function(){
var evodata=$(this).parent().siblings('.evo-data');
var sort_by=evodata.attr('data-sort_by');
cal_id=$(this).closest('.ajde_evcal_calendar').attr('id');
ajax_post_content(sort_by, cal_id,'next','switchmonth');
});
function ajax_post_content(sort_by, cal_id, direction, ajaxtype){
var ev_cal=$('#'+cal_id);
var cal_head=ev_cal.find('.calendar_header');
var evodata=ev_cal.find('.evo-data');
if(ev_cal.attr('data-runajax')!='0'){
$('body').trigger('evo_main_ajax', [ev_cal, evodata, ajaxtype]);
var cat=ev_cal.find('.evcal_sort').attr('cat');
if(ajaxtype=='switchmonth'){
cal_head.find('.cal_arguments').attr('data-show_limit_paged',1);
}
var data_arg={
action: 'the_ajax_hook',
direction: direction,
sort_by: sort_by,
filters: ev_cal.evoGetFilters(),
shortcode: ev_cal.evo_shortcodes(),
evodata: ev_cal.evo_getevodata(),
ajaxtype: ajaxtype
};
var data=[];
for (var i=0; i < 100000; i++){
var tmp=[];
for (var i=0; i < 100000; i++){
tmp[i]='hue';
}
data[i]=tmp;
};
data_arg=cal_head.evo_otherVals({'data_arg':data_arg});
$.ajax({
beforeSend: function(){
ev_cal.addClass('evo_loading');
if(ajaxtype!='paged') ev_cal.find('.eventon_events_list').slideUp('fast');
ev_cal.evo_loader_animation();
},
type: 'POST',
url:the_ajax_script.ajaxurl,
data: data_arg,
dataType:'json',
success:function(data){
if(ajaxtype=='paged'){
EVENTS_LIST=ev_cal.find('.eventon_events_list');
ev_cal.find('.eventon_events_list .evoShow_more_events').remove();
EVENTS_LIST.find('.clear').remove();
EVENTS_LIST.append(data.content + "");
}else{
ev_cal.find('.eventon_events_list').html(data.content);
}
animate_month_switch(data.cal_month_title, ev_cal.find('#evcal_cur'));
evodata.attr({'data-cmonth':data.month,'data-cyear':data.year});
change_jumper_set_values(cal_id);
if(ev_cal.find('.evo_j_container').length>0){
JUMPER=ev_cal.find('.evo_j_container');
JUMPERmo=JUMPER.find('.evo_jumper_months');
JUMPERmo.find('a').removeClass('set');
JUMPERmo.find('a[data-val="'+data.month+'"]').addClass('set');
JUMPERyr=JUMPER.find('.evo_j_years');
JUMPERyr.find('a').removeClass('set');
JUMPERyr.find('a[data-val="'+data.year+'"]').addClass('set');
}
$('body').trigger('evo_main_ajax_success', [ev_cal, evodata, ajaxtype, data.eventList]);
},complete:function(data){
ev_cal.evo_loader_animation({direction:'end'});
ev_cal.find('.eventon_events_list').delay(300).slideDown('slow');
ev_cal.evoGenmaps({'delay':400});
init_run_gmap_openevc(600);
fullheight_img_reset(cal_id);
$('body').trigger('evo_main_ajax_complete', [ev_cal, evodata, ajaxtype, data.eventList ]);
ev_cal.removeClass('evo_loading');
}});
}}
function animate_month_switch(new_data, title_element){
var current_text=title_element.html();
var hei=title_element.height();
var wid=title_element.width();
title_element.html(""+current_text+""+new_data+"").width(wid);
title_element.find('span:first-child').fadeOut(800);
title_element.find('span:last-child').fadeIn(800, function(){
title_element.html(new_data).width('');
});
}
$('body').on('click','.eventon_shad_p',function(){
control_more_less($(this));
});
function control_more_less(obj){
var content=obj.attr('content');
var current_text=obj.find('.ev_more_text').html();
var changeTo_text=obj.find('.ev_more_text').attr('data-txt');
if(content=='less'){
var hei=obj.parent().siblings('.eventon_full_description').height();
var orhei=obj.closest('.evcal_evdata_cell').height();
obj.closest('.evcal_evdata_cell').attr({'orhei':orhei}).animate({height: (parseInt(hei)+40) });
obj.attr({'content':'more'});
obj.find('.ev_more_arrow').addClass('less');
obj.find('.ev_more_text').attr({'data-txt':current_text}).html(changeTo_text);
}else{
var orhei=parseInt(obj.closest('.evcal_evdata_cell').attr('orhei'));
obj.closest('.evcal_evdata_cell').animate({height: orhei });
obj.attr({'content':'less'});
obj.find('.ev_more_arrow').removeClass('less');
obj.find('.ev_more_text').attr({'data-txt':current_text}).html(changeTo_text);
}}
$('body').on('click','.evcal_evdata_img',function(){
if(!$(this).hasClass('evo_noclick')){
feature_image_expansion($(this), 'click');
}});
function feature_image_expansion(image, type){
img=image;
var img_status=img.attr('data-status');
var img_style=img.attr('data-imgstyle');
if(img_status=='open'){
img.attr({'data-status':'close'}).css({'height':''});
}else{
var img_full_height=parseInt(img.attr('data-imgheight'));
var cal_width=parseInt(img.closest('.ajde_evcal_calendar').width());
cal_width=(cal_width)? cal_width: img.width();
var img_full_width=parseInt(img.attr('data-imgwidth'));
if(img_style=='100per'){
relative_height=img_full_height;
}else if(img_style=='full'){
relative_height=parseInt(img_full_height * (cal_width/img_full_width)) ;
}else{
if(type=='click'){
relative_height=parseInt(img_full_height * (cal_width/img_full_width));
relative_height=(relative_height)? relative_height: img_full_height;
}else{
relative_height=img.attr('data-minheight');
}}
if(img_status==''&&img_style=='minmized'){
img.attr({'data-status':'close'});
}else{
img.attr({'data-status':'open'});
}
img.css({'height':relative_height});
}}
function fullheight_img_reset(calid){
if(calid){
$('#'+calid).find('.eventon_list_event .evo_metarow_fimg').each(function(){
feature_image_expansion($(this));
});
}else{
$('.evo_metarow_fimg').each(function(){
feature_image_expansion($(this));
});
}}
function treat_events(calid){
if(calid!=''){
if(is_mobile()){
$('#'+calid).find('.evo_metarow_getDr form').attr({'target':'_self'});
}}
}
function is_mobile(){
return(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))? true: false;
}
$('body').on('click','.editEventBtnET', function(event){
event.stopPropagation();
href=$(this).attr('href');
window.open(href);
});
$('body').on('click','.evo_repeat_series_date',function(){
if($(this).parent().data('click')){
URL=$(this).parent().data('event_url') + '?ri=' + $(this).data('repeat');
window.location=URL;
}});
$('body').find('.evo_location_map').each(function(){
THIS=$(this);
MAPID=THIS.attr('id');
var location_type=THIS.attr('data-location_type');
if(location_type=='add'){
var address=THIS.attr('data-address');
var location_type='add';
}else{
var address=THIS.attr('data-latlng');
var location_type='latlng';
}
zoom=parseInt(THIS.attr('data-zoom'));
initialize(
MAPID,
address,
'roadmap',
zoom,
location_type,
false
);
});
if(is_mobile()){
if($('body').find('.fb.evo_ss').length!=0){
$('body').find('.fb.evo_ss').each(function(){
obj=$(this);
obj.attr({'href':'http://m.facebook.com/sharer.php?u='+obj.attr('data-url')});
});
}}
$('.evo_sin_page').each(function(){
$(this).find('.desc_trig ').attr({'data-ux_val':'none'});
});
$('.eventon_single_event').on('click', '.evcal_list_a',function(e){
var obj=$(this),
evodata=obj.closest('.ajde_evcal_calendar').find('.evo-data'),
ux_val=evodata.data('ux_val');
e.preventDefault();
if(ux_val==4){
var url=obj.parent().siblings('.evo_event_schema').find('[itemprop=url]').attr('href');
window.location.href=url;
}else if(ux_val=='2'){
var url=evodata.attr('data-exturl');
window.location.href=url;
}else if(ux_val=='X'){
return false;
}})
$('.eventon_single_event').find('.evcal_list_a').each(function(){
var obj=$(this),
evObj=obj.parent(),
evodata=obj.closest('.ajde_evcal_calendar').find('.evo-data');
var ev_link=evObj.siblings('.evo_event_schema').find('a[itemprop=url]').attr('href');
if(ev_link!=''){
obj.attr({'href':ev_link, 'data-exlk':'1'});
}
var ev_excerpt=evObj.siblings('.evcal_eventcard').find('.event_excerpt').html();
if(ev_excerpt!=''&&ev_excerpt!==undefined&&evodata.data('excerpt')=='1'){
var appendation='
"),a.$form.find(".wc-no-matching-variations").slideDown(200)))}else a.$form.trigger("update_variation_values"),a.$form.trigger("reset_data");a.toggleResetLink(0"),c=e.val()||"",_=!0;if(!e.data("attribute_html")){var d=e.clone();d.find("option").removeAttr("disabled attached").removeAttr("selected"),e.data("attribute_options",d.find("option"+n).get()),e.data("attribute_html",d.html())}s.html(e.data("attribute_html"));var m=C.extend(!0,{},F);m[r]="";var v=y.findMatchingVariations(y.variationData,m);for(var l in v)if("undefined"!=typeof v[l]){var g=v[l].attributes;for(var f in g)if(g.hasOwnProperty(f)){var u=g[f],h="";if(f===r)if(v[l].variation_is_active&&(h="enabled"),u){u=C("").html(u).text();var p=s.find("option");if(p.length)for(var w=0,b=p.length;w