/home/arranoyd/telegastro/wp-content/plugins/Ultimate_VC_Addons/assets/min-js/vhparallax.min.js
!function(e){var t=jQuery(window),f=t.height();t.resize(function(){f=t.height()}),jQuery.fn.vparallax=function(s,u,e){var o,h,r=jQuery(this);function a(){var n=t.scrollTop();r.each(function(){h=jQuery(this).offset().top;var e=jQuery(this),r=e.offset().top;if(!(r+o(e)<n||n+f<r)){var a=Math.round((h-n)*u);if(a=-a,jQuery(this).parent().hasClass("vcpb-mlvp-jquery"))var t=jQuery(this).parent().parent().data("img-parallax-mobile-disable").toString();else t=jQuery(this).parent().data("img-parallax-mobile-disable").toString();if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))i="true";else var i="false";if("true"==t&&"true"==i)var l="true";else l="false";"false"==l&&jQuery(this).css("backgroundPosition",s+" "+a+"px")}})}o=e?function(e){return e.outerHeight(!0)}:function(e){return e.height()},(arguments.length<1||null===s)&&(s="50%"),(arguments.length<2||null===u)&&(u=.5),(arguments.length<3||null===e)&&(e=!0),t.bind("scroll",a).resize(a),a()},jQuery.fn.hparallax=function(h,p,e){var y,r=jQuery(this);y=e?function(e){return e.outerHeight(!0)}:function(e){return e.height()},(arguments.length<1||null===h)&&(h="50%"),(arguments.length<2||null===p)&&(p=.5),(arguments.length<3||null===e)&&(e=!0),p=jQuery(this).data("parallax_sense")/100,h="0px";var c=t.scrollTop();function a(){var o=t.scrollTop();r.each(function(){jQuery(this).offset().top;var e=jQuery(this),r=e.offset().top;if(!(r+y(e)<o||o+f<r)){var a=jQuery(this).css("backgroundPosition"),t=a.indexOf("px"),i=a.substring(0,t),l=0;c-o<=0?l=parseInt(i)-parseInt(p*Math.abs(c-o)):0<(l=parseInt(i)+parseInt(p*(c-o)))&&(l=0);var n=jQuery(this).parent().data("img-parallax-mobile-disable").toString();if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))s="true";else var s="false";if("true"==s&&"true"==n)var u="true";else u="false";"false"==u&&jQuery(this).css("backgroundPosition",l+"px "+h)}}),c=o}t.bind("scroll",a).resize(a),a()}}(jQuery),jQuery(document).ready(function(){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))i="true";else var i="false";jQuery(".vcpb-mlvp-jquery").each(function(){for(var e=jQuery(this),r=e.data("img-array"),a=(r=r.split(",")).length,t=0;t<a;t++)jQuery(e).prepend('<div class="vertical_layer_parallax" style="position:absolute;background-image:url('+r[t]+');"></div>');jQuery(e).find(".vertical_layer_parallax").css({"max-width":"none",position:"absolute"})}),jQuery(".vcpb-mlvp-jquery").each(function(){var r=jQuery(this).find(".vertical_layer_parallax").length,a=parseInt(jQuery(this).data("parallax_sense"))/100,e=jQuery(this).parent().data("img-parallax-mobile-disable").toString();if(r=a/r,a=0,"true"==i&&"true"==e)var t="true";else t="false";jQuery(this).find(".vertical_layer_parallax").each(function(e){a+=r,jQuery(this).css({height:jQuery(this).parent().outerHeight()+"px",width:jQuery(this).parent().outerWidth()+"px"}).attr("data-p-sense",a),"false"==t&&jQuery(this).vparallax("0%",a)})}),jQuery(".vcpb-vz-jquery").each(function(){var e=jQuery(this).parent().data("img-parallax-mobile-disable");if("true"==i&&"true"==e)var r="true";else r="false";"false"==r&&jQuery(this).vparallax("50%",jQuery(this).data("parallax_sense")/100)}),jQuery(".vcpb-hz-jquery").hparallax(),0<jQuery(".vcpb-hz-jquery").length&&setTimeout(function(){jQuery(window).scrollTop(0)},1e3)});