jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:1>(b/=e/2)?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return 1>(b/=e/2)?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),Math.abs(d)>h){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),Math.abs(d)>h){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(2==(b/=e/2))return c+d;if(g||(g=e*.3*1.5),Math.abs(d)>h){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return 1>b?-.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c:.5*h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),1>(b/=e/2)?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return 1/2.75>(b/=e)?d*7.5625*b*b+c:2/2.75>b?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:2.5/2.75>b?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return e/2>b?.5*jQuery.easing.easeInBounce(a,2*b,0,d,e)+c:.5*jQuery.easing.easeOutBounce(a,2*b-e,0,d,e)+.5*d+c}}); ;/*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh) * Licensed under the MIT License (LICENSE.txt). * * Version: 3.1.12 * * Requires: jQuery 1.2.2+ */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}); ;jQuery(document).ready(function($){$('body:not(.su-other-shortcodes-loaded)').on('click','.su-spoiler-title',function(e){var $title=$(this),$spoiler=$title.parent(),bar=($('#wpadminbar').length>0)?28:0;$spoiler.toggleClass('su-spoiler-closed');$spoiler.parent('.su-accordion').children('.su-spoiler').not($spoiler).addClass('su-spoiler-closed');if($(window).scrollTop()>$title.offset().top)$(window).scrollTop($title.offset().top-$title.height()-bar);e.preventDefault();});$('.su-spoiler-content').removeAttr('style');$('body:not(.su-other-shortcodes-loaded)').on('click','.su-tabs-nav span',function(e){var $tab=$(this),data=$tab.data(),index=$tab.index(),is_disabled=$tab.hasClass('su-tabs-disabled'),$tabs=$tab.parent('.su-tabs-nav').children('span'),$panes=$tab.parents('.su-tabs').find('.su-tabs-pane'),$gmaps=$panes.eq(index).find('.su-gmap:not(.su-gmap-reloaded)');if(is_disabled)return false;$panes.hide().eq(index).show();$tabs.removeClass('su-tabs-current').eq(index).addClass('su-tabs-current');if($gmaps.length>0)$gmaps.each(function(){var $iframe=$(this).find('iframe:first');$(this).addClass('su-gmap-reloaded');$iframe.attr('src',$iframe.attr('src'));});tabs_height();if(data.url!==''){if(data.target==='self')window.location=data.url;else if(data.target==='blank')window.open(data.url);} e.preventDefault();});$('.su-tabs').each(function(){var active=parseInt($(this).data('active'))-1;$(this).children('.su-tabs-nav').children('span').eq(active).trigger('click');tabs_height();});anchor_nav();$('.su-lightbox').each(function(){$(this).on('click',function(e){e.preventDefault();e.stopPropagation();if($(this).parent().attr('id')==='su-generator-preview')$(this).html(su_other_shortcodes.no_preview);else{var type=$(this).data('mfp-type');$(this).magnificPopup({type:type,tClose:su_magnific_popup.close,tLoading:su_magnific_popup.loading,gallery:{tPrev:su_magnific_popup.prev,tNext:su_magnific_popup.next,tCounter:su_magnific_popup.counter},image:{tError:su_magnific_popup.error},ajax:{tError:su_magnific_popup.error}}).magnificPopup('open');}});});$('.su-table tr:even').addClass('su-even');$('.su-frame-align-center, .su-frame-align-none').each(function(){var frame_width=$(this).find('img').width();$(this).css('width',frame_width+12);});$('.su-tooltip').each(function(){var $tt=$(this),$content=$tt.find('.su-tooltip-content'),is_advanced=$content.length>0,data=$tt.data(),config={style:{classes:data.classes},position:{my:data.my,at:data.at,viewport:$(window)},content:{title:'',text:''}};if(data.title!=='')config.content.title=data.title;if(is_advanced)config.content.text=$content;else config.content.text=$tt.attr('title');if(data.close==='yes')config.content.button=true;if(data.behavior==='click'){config.show='click';config.hide='click';$tt.on('click',function(e){e.preventDefault();e.stopPropagation();});$(window).on('scroll resize',function(){$tt.qtip('reposition');});}else if(data.behavior==='always'){config.show=true;config.hide=false;$(window).on('scroll resize',function(){$tt.qtip('reposition');});}else if(data.behavior==='hover'&&is_advanced){config.hide={fixed:true,delay:600}} $tt.qtip(config);});$('.su-expand').each(function(){var $this=$(this),$content=$this.children('.su-expand-content'),$more=$this.children('.su-expand-link-more'),$less=$this.children('.su-expand-link-less'),data=$this.data(),col='su-expand-collapsed';$more.on('click',function(e){$content.css('max-height','none');$this.removeClass(col);});$less.on('click',function(e){$content.css('max-height',data.height+'px');$this.addClass(col);});});function is_transition_supported(){var thisBody=document.body||document.documentElement,thisStyle=thisBody.style,support=thisStyle.transition!==undefined||thisStyle.WebkitTransition!==undefined||thisStyle.MozTransition!==undefined||thisStyle.MsTransition!==undefined||thisStyle.OTransition!==undefined;return support;} if(is_transition_supported()){$('.su-animate').each(function(){$(this).one('inview',function(e){var $this=$(this),data=$this.data();window.setTimeout(function(){$this.addClass(data.animation);$this.addClass('animated');$this.css('visibility','visible');},data.delay*1000);});});} else{$('.su-animate').css('visibility','visible');} function tabs_height(){$('.su-tabs-vertical').each(function(){var $tabs=$(this),$nav=$tabs.children('.su-tabs-nav'),$panes=$tabs.find('.su-tabs-pane'),height=0;$panes.css('min-height',$nav.outerHeight(true));});} function anchor_nav(){if(document.location.hash==='')return;$('.su-tabs-nav span[data-anchor]').each(function(){if('#'+$(this).data('anchor')===document.location.hash){var $tabs=$(this).parents('.su-tabs'),bar=($('#wpadminbar').length>0)?28:0;$(this).trigger('click');window.setTimeout(function(){$(window).scrollTop($tabs.offset().top-bar-10);},100);}});$('.su-spoiler[data-anchor]').each(function(){if('#'+$(this).data('anchor')===document.location.hash){var $spoiler=$(this),bar=($('#wpadminbar').length>0)?28:0;if($spoiler.hasClass('su-spoiler-closed'))$spoiler.find('.su-spoiler-title:first').trigger('click');window.setTimeout(function(){$(window).scrollTop($spoiler.offset().top-bar-10);},100);}});} if('onhashchange'in window)$(window).on('hashchange',anchor_nav);$('body').addClass('su-other-shortcodes-loaded');});