// EdgeCommons for Edge Animate v1.1.2 +++ Visit edgecommons.org for documentation, updates and examples +++ Copyright (c) 2013 by Simon Widjaja +++ Distributed under the terms of the MIT license (http://www.opensource.org/licenses/mit-license.html) +++ This notice shall be included in all copies or substantial portions of the Software.

!function(a,b){var c=function(){};c.VERSION="1.1.2",c.$=b;a.EC=a.EdgeCommons=c}(window,jQuery),function(a){var b=function(){};b.VERSION="1.1.0",b.compositions={};var c=a.$,d=ModulogLog,e="EdgeCommons | Parallax";b.addComposition=function(a){this.compositions[a]={};var b=AdobeEdge.getComposition(a).getStage();this.compositions[a].stage=b;var c=AdobeEdge.getComposition(a).getStage().getSymbolElement();this.compositions[a].stageElement=c;var d=c.height(),e=c.width();this.compositions[a].stageHeight=d,this.compositions[a].stageWidth=e;var f=c.position().top;this.compositions[a].stageTop=f,this.compositions[a].stageMiddle=Math.floor(f+d/2),this.compositions[a].duration=b.getDuration(),b.stop(0)},b.setup=function(b,f){return b?(void 0===f&&(f="vertical"),this.addComposition(b.getComposition().compId),c(document).scroll(function(){function b(){c.each(a.Parallax.compositions,function(a,b){var d=e/(b.stageHeight-c(window).height()),f=Math.floor(d*b.duration);b.stage.stop(f)})}function d(){c.each(a.Parallax.compositions,function(a,b){var d=e/(b.stageWidth-c(window).width()),f=Math.floor(d*b.duration);b.stage.stop(f)})}if("vertical"==f){var e=c(document).scrollTop();b()}else if("horizontal"==f){var e=c(document).scrollLeft();d()}}),void 0):(d.error("Error in setup(). Argument 'sym' is not optional.",e),void 0)},a.Parallax=b}(EdgeCommons);