function loopOneAnimation(e,a,t,n,i){if(!e)return!1;var r=function(e){var a={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(var t in a)if(void 0!==e.style[t])return a[t]}(document.createElement("div")),s=1e3*i,o=jQuery(e).css("display"),m=!1;"inline"===o&&(jQuery(e).css({display:"inline-block"}),m=!0),jQuery(e).addClass("animated "+a).one(r,function(){var r=n+1;r==t?(jQuery(e).css({"-webkit-animation-duration":"","-webkit-animation-delay":"","animation-timing-function":""}).removeClass("animated "+a),m&&jQuery(e).css({display:"inline"})):(jQuery(e).removeClass("animated "+a),setTimeout(function(){loopOneAnimation(e,a,t,r,i)},s))})}function loopTowAnimation(e,a,t,n,i,r){var s=function(e){var a={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(var t in a)if(void 0!==e.style[t])return a[t]}(document.createElement("div")),o=1e3*r,m=a.name,c=a.time,l=a.delay,d=a.timing,f=t.name,D=t.time,y=t.delay,p=t.timing,_=jQuery(e).css("display"),h=!1;"inline"===_&&(jQuery(e).css({display:"inline-block"}),h=!0),jQuery(e).css({"-webkit-animation-duration":c+"s","-webkit-animation-delay":l+"s","animation-timing-function":d}).addClass("animated "+m).one(s,function(){jQuery(e).removeClass(m),jQuery(e).css({"-webkit-animation-duration":D+"s","-webkit-animation-delay":y+"s","animation-timing-function":p}).addClass("animated "+f).one(s,function(){var s=i+1;s==n?(jQuery(e).css({"-webkit-animation-duration":"","-webkit-animation-delay":"","animation-timing-function":""}).removeClass("animated "+f),h&&jQuery(e).css({display:"inline"})):(jQuery(e).removeClass("animated "+f),setTimeout(function(){loopTowAnimation(e,a,t,n,s,r)},o))})})}function getCssPathFromXPath(e){if(e){var a=e.match(/\[\d+\]/g);if(null!==a)for(var e=e.replace(/\[\d+\]/g,"(index)"),t=0,n=a.length;t"),e.toLowerCase()}}function getElementFromPath(e){var a=getCssPathFromXPath(e),t=jQuery(document).find(a);return t||null}function galoover_ae_check_min_screen(e,a){var t,n;if(e){if("0"===e)t=!0;else{switch(e){case"1":n=320;break;case"2":n=768;break;case"3":n=1024;break;case"4":n=1366;break;case"5":n=1600}t=a>n}return t}}function galoover_ae_check_max_screen(e,a){var t,n;if(e){if("0"===e)t=!0;else{switch(e){case"1":n=320;break;case"2":n=768;break;case"3":n=1024;break;case"4":n=1366;break;case"5":n=1600}t=a<=n}return t}}jQuery.fn.extend({animateCss:function(e){var a=e[0],t=a.name,n=a.delay,i=a.time,r=a.timing,s=e[1]||1,o=e[2]||0;this.css({"-webkit-animation-duration":i+"s","-webkit-animation-delay":n+"s","animation-timing-function":r}),loopOneAnimation(this,t,s,0,o)},playAnimation:function(e){var a=e[0],t=e[1],n=e[2]||1,i=e[3]||0;loopTowAnimation(this,a,t,n,0,i)}});var widthScreen=jQuery(window).width(),heightScreen=jQuery(window).height(),animationList=galoover_ae_script_vars.animationList,animationScrollList=[],animationScroll=[],scrollElement=[],scrollEffect=[],animatedElement=[],animatedScrollElement=[],hookElement=[],repeat=[],repeatDelay=[],firstData=[],seconData=[],data=[],effectList=[];jQuery(document).ready(function(e){jQuery.each(animationList,function(e,a){a.hasOwnProperty("effect")&&(effectList["e"+e]=a.effect,jQuery.each(effectList["e"+e],function(t,n){if(n.hasOwnProperty("meta_key")&&n.hasOwnProperty("meta_value"))switch(n.meta_key){case"load_effect":var i=n.meta_value;if(i.hasOwnProperty("start"))switch(i.start){case"1":scrollElement["e"+e+t]=a.post_excerpt,scrollEffect["e"+e+t]=i,animationScrollList.push({post_excerpt:scrollElement["e"+e+t],effect:scrollEffect["e"+e+t]});break;case"2":animatedElement["e"+e+t]=getElementFromPath(a.post_excerpt),animatedElement["e"+e+t]&&!jQuery(animatedElement["e"+e+t]).hasClass("wasScroll")&&(i.hasOwnProperty("seconData")?galoover_ae_check_min_screen(i.minScreen,widthScreen)&&galoover_ae_check_max_screen(i.maxScreen,widthScreen)&&(repeat["e"+e+t]=i.repeat,repeatDelay["e"+e+t]=i.repeatDelay,firstData["e"+e+t]={},firstData["e"+e+t].name=i.firstData.name,firstData["e"+e+t].time=i.firstData.time,firstData["e"+e+t].delay=i.firstData.delay,firstData["e"+e+t].timing=i.firstData.timing,seconData["e"+e+t]={},seconData["e"+e+t].name=i.seconData.name,seconData["e"+e+t].time=i.seconData.time,seconData["e"+e+t].delay=i.seconData.delay,seconData["e"+e+t].timing=i.seconData.timing,data["e"+e+t]=[firstData["e"+e+t],seconData["e"+e+t],repeat["e"+e+t],repeatDelay["e"+e+t]],jQuery(animatedElement["e"+e+t]).playAnimation(data["e"+e+t])):galoover_ae_check_min_screen(i.minScreen,widthScreen)&&galoover_ae_check_max_screen(i.maxScreen,widthScreen)&&(repeat["e"+e+t]=i.repeat,repeatDelay["e"+e+t]=i.repeatDelay,firstData["e"+e+t]={},firstData["e"+e+t].name=i.firstData.name,firstData["e"+e+t].time=i.firstData.time,firstData["e"+e+t].delay=i.firstData.delay,firstData["e"+e+t].timing=i.firstData.timing,data["e"+e+t]=[firstData["e"+e+t],repeat["e"+e+t],repeatDelay["e"+e+t]],jQuery(animatedElement["e"+e+t]).animateCss(data["e"+e+t])))}}}))}),window.frameElement&&e("body").append("")}),jQuery(window).load(function(e){jQuery.each(animationList,function(e,a){a.hasOwnProperty("effect")&&(effectList["e"+e]=a.effect,jQuery.each(effectList["e"+e],function(t,n){if(n.hasOwnProperty("meta_key")&&n.hasOwnProperty("meta_value")){var i=n.meta_value;switch(n.meta_key){case"load_effect":if(i.hasOwnProperty("start"))switch(i.start){case"3":animatedElement["e"+e+t]=getElementFromPath(a.post_excerpt),animatedElement["e"+e+t]&&(i.hasOwnProperty("seconData")?galoover_ae_check_min_screen(i.minScreen,widthScreen)&&galoover_ae_check_max_screen(i.maxScreen,widthScreen)&&(repeat["e"+e+t]=i.repeat,repeatDelay["e"+e+t]=i.repeatDelay,firstData["e"+e+t]={},firstData["e"+e+t].name=i.firstData.name,firstData["e"+e+t].time=i.firstData.time,firstData["e"+e+t].delay=i.firstData.delay,firstData["e"+e+t].timing=i.firstData.timing,seconData["e"+e+t]={},seconData["e"+e+t].name=i.seconData.name,seconData["e"+e+t].time=i.seconData.time,seconData["e"+e+t].delay=i.seconData.delay,seconData["e"+e+t].timing=i.seconData.timing,data["e"+e+t]=[firstData["e"+e+t],seconData["e"+e+t],repeat["e"+e+t],repeatDelay["e"+e+t]],jQuery(animatedElement["e"+e+t]).playAnimation(data["e"+e+t])):galoover_ae_check_min_screen(i.minScreen,widthScreen)&&galoover_ae_check_max_screen(i.maxScreen,widthScreen)&&(repeat["e"+e+t]=i.repeat,repeatDelay["e"+e+t]=i.repeatDelay,firstData["e"+e+t]={},firstData["e"+e+t].name=i.firstData.name,firstData["e"+e+t].time=i.firstData.time,firstData["e"+e+t].delay=i.firstData.delay,firstData["e"+e+t].timing=i.firstData.timing,data["e"+e+t]=[firstData["e"+e+t],repeat["e"+e+t],repeatDelay["e"+e+t]],jQuery(animatedElement["e"+e+t]).animateCss(data["e"+e+t])))}break;case"hover_effect":animatedElement["e"+e+t]=getElementFromPath(a.post_excerpt),hookElement["e"+e+t]=getElementFromPath(i.eleTaget),animatedElement["e"+e+t]&&hookElement["e"+e+t]&&(i.hasOwnProperty("seconData")?galoover_ae_check_min_screen(i.minScreen,widthScreen)&&galoover_ae_check_max_screen(i.maxScreen,widthScreen)&&(repeat["e"+e+t]=i.repeat,repeatDelay["e"+e+t]=i.repeatDelay,firstData["e"+e+t]={},firstData["e"+e+t].name=i.firstData.name,firstData["e"+e+t].time=i.firstData.time,firstData["e"+e+t].delay=i.firstData.delay,firstData["e"+e+t].timing=i.firstData.timing,seconData["e"+e+t]={},seconData["e"+e+t].name=i.seconData.name,seconData["e"+e+t].time=i.seconData.time,seconData["e"+e+t].delay=i.seconData.delay,seconData["e"+e+t].timing=i.seconData.timing,data["e"+e+t]=[firstData["e"+e+t],seconData["e"+e+t],repeat["e"+e+t],repeatDelay["e"+e+t]],jQuery(hookElement["e"+e+t]).mouseenter(function(){jQuery(animatedElement["e"+e+t]).playAnimation(data["e"+e+t])})):galoover_ae_check_min_screen(i.minScreen,widthScreen)&&galoover_ae_check_max_screen(i.maxScreen,widthScreen)&&(repeat["e"+e+t]=i.repeat,repeatDelay["e"+e+t]=i.repeatDelay,firstData["e"+e+t]={},firstData["e"+e+t].name=i.firstData.name,firstData["e"+e+t].time=i.firstData.time,firstData["e"+e+t].delay=i.firstData.delay,firstData["e"+e+t].timing=i.firstData.timing,data["e"+e+t]=[firstData["e"+e+t],repeat["e"+e+t],repeatDelay["e"+e+t]],jQuery(hookElement["e"+e+t]).mouseenter(function(){jQuery(animatedElement["e"+e+t]).animateCss(data["e"+e+t])})));break;case"click_effect":animatedElement["e"+e+t]=getElementFromPath(a.post_excerpt),hookElement["e"+e+t]=getElementFromPath(i.eleTaget),animatedElement["e"+e+t]&&hookElement["e"+e+t]&&(i.hasOwnProperty("seconData")?galoover_ae_check_min_screen(i.minScreen,widthScreen)&&galoover_ae_check_max_screen(i.maxScreen,widthScreen)&&(repeat["e"+e+t]=i.repeat,repeatDelay["e"+e+t]=i.repeatDelay,firstData["e"+e+t]={},firstData["e"+e+t].name=i.firstData.name,firstData["e"+e+t].time=i.firstData.time,firstData["e"+e+t].delay=i.firstData.delay,firstData["e"+e+t].timing=i.firstData.timing,seconData["e"+e+t]={},seconData["e"+e+t].name=i.seconData.name,seconData["e"+e+t].time=i.seconData.time,seconData["e"+e+t].delay=i.seconData.delay,seconData["e"+e+t].timing=i.seconData.timing,data["e"+e+t]=[firstData["e"+e+t],seconData["e"+e+t],repeat["e"+e+t],repeatDelay["e"+e+t]],jQuery(hookElement["e"+e+t]).click(function(){jQuery(animatedElement["e"+e+t]).playAnimation(data["e"+e+t])})):galoover_ae_check_min_screen(i.minScreen,widthScreen)&&galoover_ae_check_max_screen(i.maxScreen,widthScreen)&&(repeat["e"+e+t]=i.repeat,repeatDelay["e"+e+t]=i.repeatDelay,firstData["e"+e+t]={},firstData["e"+e+t].name=i.firstData.name,firstData["e"+e+t].time=i.firstData.time,firstData["e"+e+t].delay=i.firstData.delay,firstData["e"+e+t].timing=i.firstData.timing,data["e"+e+t]=[firstData["e"+e+t],repeat["e"+e+t],repeatDelay["e"+e+t]],jQuery(hookElement["e"+e+t]).click(function(){jQuery(animatedElement["e"+e+t]).animateCss(data["e"+e+t])})))}}}))}),jQuery(window).scroll(function(){var e=jQuery(window).scrollTop(),a=[],t=[];jQuery.each(animationScrollList,function(n,i){animatedScrollElement["e"+n]=getElementFromPath(i.post_excerpt);var r=i.effect;animatedScrollElement["e"+n]&&!jQuery(animatedScrollElement["e"+n]).hasClass("wasScroll")&&(jQuery(animatedScrollElement["e"+n]).addClass("hide-when-scroll"),r.hasOwnProperty("seconData")?galoover_ae_check_min_screen(r.minScreen,widthScreen)&&galoover_ae_check_max_screen(r.maxScreen,widthScreen)&&(a["e"+n]=jQuery(animatedScrollElement["e"+n]).offset(),t["e"+n]=jQuery(animatedScrollElement["e"+n]).innerHeight(),heightScreen+e>a["e"+n].top+50&&ea["e"+n].top+50&&e