var winScrollTop=0;$.fn.is_on_screen=function(o){o=o||0;var t=$(window);var r={top:t.scrollTop(),left:t.scrollLeft()};r.bottom=r.top+t.height();var n=this.offset();n.bottom=n.top+this.outerHeight();return!(r.bottom+on.bottom)};function parallax(o,t,r,n){var i=$(window).scrollTop();n=n||"";$(o).each((function(){if($(this).is_on_screen()){var o=$(this).offset().top;$(this).children(t).each((function(t){if(t%2===0){var i=(o-winScrollTop)*r*-1}else{var i=(o-winScrollTop)*r}$(this).css({transform:"translate3d(0,"+i.toFixed()+"px,0)"+n})}))}}))}function parallaxRot(o,t,r,n,i){var s=$(window).scrollTop();$(o).each((function(o){i=i||0;n=n||"";var s=$(this);if(s.is_on_screen(i)){var a=s.offset().top;s.children(t).each((function(o){var t=(a-winScrollTop)*r;$(this).css({transform:"rotate("+-t+"deg)"+n})}))}}))}