window.EA=(typeof EA!="undefined")?EA:{};EA.originUxElements=(typeof EA.originUxElements!="undefined")?EA.originUxElements:{};EA.originUxElements.$=(typeof EA.originUxElements.$!="undefined")?EA.originUxElements.$:(typeof $!="undefined")?$:jQuery;if(typeof EA.originUxElements.$!="undefined"&&EA.originUxElements.$.isFunction(EA.originUxElements.$.fn.on)===false){EA.originUxElements.$=(typeof EA.originWidgets!="undefined"&&typeof EA.originWidgets.$!="undefined")?EA.originWidgets.$:EA.originUxElements.$; /*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. * Thanks to: Seamus Leahy for adding deltaX and deltaY * * Version: 3.0.6 * * Requires: 1.2.2+ */ }(function(f){function g(a){var n=a||window.event,m=[].slice.call(arguments,1),l=0,k=!0,j=0,i=0;return a=f.event.fix(n),a.type="mousewheel",n.wheelDelta&&(l=n.wheelDelta/120),n.detail&&(l=-n.detail/3),i=l,n.axis!==undefined&&n.axis===n.HORIZONTAL_AXIS&&(i=0,j=-1*l),n.wheelDeltaY!==undefined&&(i=n.wheelDeltaY/120),n.wheelDeltaX!==undefined&&(j=-1*n.wheelDeltaX/120),m.unshift(a,l,j,i),(f.event.dispatch||f.event.handle).apply(this,m)}var e=["DOMMouseScroll","mousewheel"];if(f.event.fixHooks){for(var h=e.length;h;){f.event.fixHooks[e[--h]]=f.event.mouseHooks}}f.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var b=e.length;b;){this.addEventListener(e[--b],g,!1)}}else{this.onmousewheel=g}},teardown:function(){if(this.removeEventListener){for(var b=e.length;b;){this.removeEventListener(e[--b],g,!1)}}else{this.onmousewheel=null}}},f.fn.extend({mousewheel:function(b){return b?this.bind("mousewheel",b):this.trigger("mousewheel")},unmousewheel:function(b){return this.unbind("mousewheel",b)}})})(EA.originUxElements.$) /*! jquery scroll - a custom stylable scrollbar Version 0.4 https://github.com/thomd/jquery-scroll Copyright (c) 2011 Thomas Duerr (me-at-thomd-dot-net) Licensed under the MIT license (https://raw.github.com/thomd/jquery-scroll/master/MIT-LICENSE) */ ;(function(c,a){var b={init:function(e,f){var d=c.extend({},c.fn.scrollbar.defaults,f);return this.each(function(){var g=c(this),h={arrows:d.arrows};if(d.containerHeight!="auto"){g.height(d.containerHeight)}h.containerHeight=g.height();h.contentHeight=c.fn.scrollbar.contentHeight(g);if(h.contentHeight<=h.containerHeight){return true}this.scrollbar=new c.fn.scrollbar.Scrollbar(g,h,d);this.scrollbar.buildHtml().setHandle().appendEvents();if(typeof e==="function"){e(g.find(".scrollbar-pane"),this.scrollbar)}})},repaint:function(){return this.each(function(){if(this.scrollbar){this.scrollbar.repaint()}})},scrollto:function(d){return this.each(function(){this.scrollbar.scrollto(d)})},unscrollbar:function(){return this.each(function(){if(this.scrollbar){this.scrollbar.unscrollbar()}})}};c.fn.scrollbar=function(d){if(b[d]){return b[d].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof d==="function"||d===undefined){return b.init.apply(this,arguments)}else{if(typeof d==="object"){return b.init.apply(this,[null,d])}else{c.error("method '"+d+"' does not exist for $.fn.scrollbar")}}}};c.fn.scrollbar.defaults={containerHeight:"auto",arrows:true,handleHeight:"auto",handleMinHeight:40,scrollTimeout:150,scrollStep:40,scrollTimeoutArrows:40,scrollStepArrows:1};c.fn.scrollbar.Scrollbar=function(d,f,e){this.container=d;this.props=f;this.opts=e;this.mouse={};this.props.arrows=this.container.hasClass("no-arrows")?false:this.props.arrows};c.fn.scrollbar.Scrollbar.prototype={buildHtml:function(){this.container.wrapInner('
');this.container.append('
');if(this.props.arrows){this.container.append('
').append('
')}var d=this.container.height();this.pane=this.container.find(".scrollbar-pane");this.handle=this.container.find(".scrollbar-handle");this.handleContainer=this.container.find(".scrollbar-handle-container");this.handleInner=this.container.find(".scrollbar-handle-inner");this.handleArrows=this.container.find(".scrollbar-handle-up, .scrollbar-handle-down");this.handleArrowUp=this.container.find(".scrollbar-handle-up");this.handleArrowDown=this.container.find(".scrollbar-handle-down");this.pane.defaultCss({top:0,left:0});this.handleContainer.defaultCss({right:0});this.handle.defaultCss({top:0,right:0});this.handleArrows.defaultCss({right:0});this.handleArrowUp.defaultCss({top:0});this.handleArrowDown.defaultCss({bottom:0});this.container.css({position:this.container.css("position")==="absolute"?"absolute":"relative",overflow:"hidden",height:d});this.pane.css({position:"absolute",overflow:"visible",height:"auto"});this.handleContainer.css({position:"absolute",top:this.handleArrowUp.outerHeight(true),height:(this.props.containerHeight-this.handleArrowUp.outerHeight(true)-this.handleArrowDown.outerHeight(true))+"px"});this.handleInner.css({height:(this.props.containerHeight-this.handleArrowUp.outerHeight(true)-this.handleArrowDown.outerHeight(true))+"px",position:0});this.handle.css({position:"absolute",cursor:"pointer"});this.handleArrows.css({position:"absolute",cursor:"pointer"});this.pane.top=0;return this},setHandle:function(){this.props.handleContainerHeight=this.handleContainer.height();this.props.contentHeight=c.fn.scrollbar.contentHeight(this.pane);this.props.handleHeight=this.opts.handleHeight=="auto"?Math.max(Math.ceil(this.props.containerHeight*this.props.handleContainerHeight/this.props.contentHeight),this.opts.handleMinHeight):this.opts.handleHeight;this.handle.height(this.props.handleHeight);this.handle.height(2*this.handle.height()-this.handle.outerHeight(true));this.props.handlePosition={min:0,max:this.props.handleContainerHeight-this.props.handleHeight};this.props.handleContentRatio=(this.props.contentHeight-this.props.containerHeight)/(this.props.handleContainerHeight-this.props.handleHeight);if(this.handle.top==undefined){this.handle.top=0}else{this.handle.top=-1*this.pane.top/this.props.handleContentRatio}return this},appendEvents:function(){this.handle.on("mousedown.handle",c.proxy(this,"startOfHandleMove"));this.handleContainer.on("mousedown.handle",c.proxy(this,"onHandleContainerMousedown"));this.handleContainer.on("mouseenter.container mouseleave.container",c.proxy(this,"onHandleContainerHover"));this.handleArrows.on("mousedown.arrows",c.proxy(this,"onArrowsMousedown"));this.container.on("mousewheel.container",c.proxy(this,"onMouseWheel"));this.container.on("mouseenter.container mouseleave.container",c.proxy(this,"onContentHover"));this.handle.on("click.scrollbar",this.preventClickBubbling);this.handleContainer.on("click.scrollbar",this.preventClickBubbling);this.handleArrows.on("click.scrollbar",this.preventClickBubbling);return this},mousePosition:function(d){return d.pageY||(d.clientY+(a.documentElement.scrollTop||a.body.scrollTop))||0},repaint:function(){this.setHandle();this.setHandlePosition();this.setContentPosition()},scrollto:function(e){var d=0;if(typeof e=="number"){d=(e<0?0:e)/this.props.handleContentRatio}else{if(typeof e=="string"){if(e=="bottom"){d=this.props.handlePosition.max}if(e=="middle"){d=Math.ceil(this.props.handlePosition.max/2)}}else{if(typeof e=="object"&&!c.isPlainObject(e)){d=Math.min(Math.floor(e.position().top/this.props.handleContentRatio),this.props.handlePosition.max)}}}this.handle.top=d;this.setHandlePosition();this.setContentPosition()},unscrollbar:function(){var d=this.container.find(".scrollbar-pane").find("*");this.container.empty();this.container.append(d);this.container.attr("style","")},startOfHandleMove:function(d){d.preventDefault();d.stopPropagation();this.mouse.start=this.mousePosition(d);this.handle.start=this.handle.top;c(a).on("mousemove.handle",c.proxy(this,"onHandleMove")).on("mouseup.handle",c.proxy(this,"endOfHandleMove"));this.handle.addClass("move");this.handleContainer.addClass("move")},onHandleMove:function(d){d.preventDefault();var e=this.mousePosition(d)-this.mouse.start;this.handle.top=this.handle.start+e;this.setHandlePosition();this.setContentPosition()},endOfHandleMove:function(d){c(a).unbind(".handle");this.handle.removeClass("move");this.handleContainer.removeClass("move")},setHandlePosition:function(){this.handle.top=(this.handle.top>this.props.handlePosition.max)?this.props.handlePosition.max:this.handle.top;this.handle.top=(this.handle.topthis.props.handlePosition.min&&this.handle.top").find(":first");var d=0;var g=false;if(!c("body").is(":visible")){c("body").show();g=true}if(h.height()>0){d=h.height()}else{var e=h.clone().attr("id",false).css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0});c("body").append(e);d=e.height();e.remove()}h.replaceWith(h.contents());return d};c.fn.defaultCss=function(d){var e={right:"auto",left:"auto",top:"auto",bottom:"auto",position:"static"};return this.each(function(){var g=c(this);for(var f in d){if(g.css(f)===e[f]){g.css(f,d[f])}}})}})(EA.originUxElements.$,document);(function(a,b){a.fn.originUxElements=function(e){var f={};var d={init:function(){a(".origin-ux-checkbox-control input[checked=checked]").parents(".origin-ux-checkbox-control").addClass("checked");a(".origin-ux-radio-button-control span input[checked=checked]").parents(".origin-ux-radio-button-control").addClass("checked");if(navigator.platform.indexOf("iPad")==-1&&navigator.platform.indexOf("iPhone")==-1&&navigator.platform.indexOf("iPod")==-1&&navigator.userAgent.indexOf("Android")==-1&&navigator.userAgent.indexOf("Windows Phone")==-1){a(".origin-ux-drop-down-control").each(function(){a("select",this).attr("size",""+a("select option",this).length);a("select",this).wrap("
");a(".origin-ux-drop-down-selection",this).prepend(""+a("select option:selected",this).text()+"");var g=a("