!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=Z.type(e);return"function"===n||Z.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function r(e,t,n){if(Z.isFunction(t))return Z.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return Z.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(at.test(t))return Z.filter(t,e,n);t=Z.filter(t,e)}return Z.grep(e,function(e){return U.call(t,e)>=0!==n})}function i(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function o(e){var t=ht[e]={};return Z.each(e.match(dt)||[],function(e,n){t[n]=!0}),t}function s(){J.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1),Z.ready()}function a(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Z.expando+a.uid++}function u(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(bt,"-$1").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:xt.test(n)?Z.parseJSON(n):n}catch(i){}yt.set(e,t,n)}else n=void 0;return n}function l(){return!0}function c(){return!1}function f(){try{return J.activeElement}catch(e){}}function p(e,t){return Z.nodeName(e,"table")&&Z.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function d(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function h(e){var t=Pt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function g(e,t){for(var n=0,r=e.length;r>n;n++)vt.set(e[n],"globalEval",!t||vt.get(t[n],"globalEval"))}function m(e,t){var n,r,i,o,s,a,u,l;if(1===t.nodeType){if(vt.hasData(e)&&(o=vt.access(e),s=vt.set(t,o),l=o.events)){delete s.handle,s.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)Z.event.add(t,i,l[i][n])}yt.hasData(e)&&(a=yt.access(e),u=Z.extend({},a),yt.set(t,u))}}function v(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&Z.nodeName(e,t)?Z.merge([e],n):n}function y(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Nt.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function x(t,n){var r,i=Z(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:Z.css(i[0],"display");return i.detach(),o}function b(e){var t=J,n=$t[e];return n||(n=x(e,t),"none"!==n&&n||(Wt=(Wt||Z("");t.appendTo(w.contentContainer),v=S.outerHeight(!0),P=S.outerWidth(!0),i(),t.attr("src",w.loadUrl),f(w.loadCallback);break;case"image":i(),o("").load(function(){f(w.loadCallback),s(o(this))}).attr("src",w.loadUrl).hide().appendTo(w.contentContainer);break;default:i(),o('
').load(w.loadUrl,w.loadData,function(t,e){f(w.loadCallback,e),s(o(this))}).hide().appendTo(w.contentContainer)}}function i(){w.modal&&o('
').css({backgroundColor:w.modalColor,position:"fixed",top:0,right:0,bottom:0,left:0,opacity:0,zIndex:w.zIndex+D}).appendTo(w.appendTo).fadeTo(w.speed,w.opacity),h(),S.data("bPopup",w).data("id",m).css({left:"slideIn"==w.transition||"slideBack"==w.transition?"slideBack"==w.transition?z.scrollLeft()+W:-1*(x+P):u(!(!w.follow[0]&&k||T)),position:w.positionStyle||"absolute",top:"slideDown"==w.transition||"slideUp"==w.transition?"slideUp"==w.transition?z.scrollTop()+H:y+-1*v:p(!(!w.follow[1]&&C||T)),"z-index":w.zIndex+D+1}).each(function(){w.appending&&o(this).appendTo(w.appendTo)}),c(!0)}function a(){return w.modal&&o(".b-modal."+S.data("id")).fadeTo(w.speed,0,function(){o(this).remove()}),w.scrollBar||o("html").css("overflow","auto"),o(".b-modal."+m).unbind("click"),z.unbind("keydown."+m),B.unbind("."+m).data("bPopup",0=S.height()&&(n.height=S.height()),t>=S.width()&&(n.width=S.width()),v=S.outerHeight(!0),P=S.outerWidth(!0),h(),w.contentContainer.css({height:"auto",width:"auto"}),n.left=u(!(!w.follow[0]&&k||T)),n.top=p(!(!w.follow[1]&&C||T)),S.animate(n,250,function(){o.show(),g=b()})}function d(){B.data("bPopup",D),S.delegate(".bClose, ."+w.closeClass,"click."+m,a),w.modalClose&&o(".b-modal."+m).css("cursor","pointer").bind("click",a),_||!w.follow[0]&&!w.follow[1]||B.bind("scroll."+m,function(){if(g.x||g.y){var o={};g.x&&(o.left=w.follow[0]?u(!T):"auto"),g.y&&(o.top=w.follow[1]?p(!T):"auto"),S.dequeue().animate(o,w.followSpeed,w.followEasing)}}).bind("resize."+m,function(){l()}),w.escClose&&z.bind("keydown."+m,function(o){27==o.which&&a()})}function c(o){function t(t){S.css({display:"block",opacity:1}).animate(t,w.speed,w.easing,function(){r(o)})}switch(o?w.transition:w.transitionClose||w.transition){case"slideIn":t({left:o?u(!(!w.follow[0]&&k||T)):z.scrollLeft()-(P||S.outerWidth(!0))-200});break;case"slideBack":t({left:o?u(!(!w.follow[0]&&k||T)):z.scrollLeft()+W+200});break;case"slideDown":t({top:o?p(!(!w.follow[1]&&C||T)):z.scrollTop()-(v||S.outerHeight(!0))-200});break;case"slideUp":t({top:o?p(!(!w.follow[1]&&C||T)):z.scrollTop()+H+200});break;default:S.stop().fadeTo(w.speed,o?1:0,function(){r(o)})}}function r(o){o?(d(),f(e),w.autoClose&&(I=setTimeout(a,w.autoClose))):(S.hide(),f(w.onClose),w.loadUrl&&(w.contentContainer.empty(),S.css({height:"auto",width:"auto"})))}function u(o){return o?x+z.scrollLeft():x}function p(o){return o?y+z.scrollTop():y}function f(t,e){o.isFunction(t)&&t.call(S,e)}function h(){y=C?w.position[1]:Math.max(0,(H-S.outerHeight(!0))/2-w.amsl),x=k?w.position[0]:(W-S.outerWidth(!0))/2,g=b()}function b(){return{x:W>S.outerWidth(!0),y:H>S.outerHeight(!0)}}o.isFunction(t)&&(e=t,t=null);var w=o.extend({},o.fn.bPopup.defaults,t);w.scrollBar||o("html").css("overflow","hidden");var m,g,C,k,T,y,x,v,P,U,I,S=this,z=o(document),B=o(window),H=B.height(),W=B.width(),_=/OS 6(_\d)+/i.test(navigator.userAgent),D=0;return S.close=function(){a()},S.reposition=function(o){l(o)},S.each(function(){o(this).data("bPopup")||(f(w.onOpen),D=(B.data("bPopup")||0)+1,m="__b-popup"+D+"__",C="auto"!==w.position[1],k="auto"!==w.position[0],T="fixed"===w.positionStyle,v=S.outerHeight(!0),P=S.outerWidth(!0),w.loadUrl?n():i())})},o.fn.bPopup.defaults={amsl:50,appending:!0,appendTo:"body",autoClose:!1,closeClass:"b-close",content:"ajax",contentContainer:!1,easing:"swing",escClose:!0,follow:[!0,!0],followEasing:"swing",followSpeed:500,iframeAttr:'scrolling="no" frameborder="0"',loadCallback:!1,loadData:!1,loadUrl:!1,modal:!0,modalClose:!0,modalColor:"#000",onClose:!1,onOpen:!1,opacity:.7,position:["auto","auto"],positionStyle:"absolute",scrollBar:!0,speed:250,transition:"fadeIn",transitionClose:!1,zIndex:9997}}(jQuery); !function(i){"use strict";i.fn.equalHeight=function(){var t=[];return i.each(this,function(e,n){var r,s=i(n),a="border-box"===s.css("box-sizing")||"border-box"===s.css("-moz-box-sizing");r=a?s.innerHeight():s.height(),t.push(r)}),this.css("height",Math.max.apply(window,t)+"px"),this},i.fn.equalHeightGrid=function(t){var e=this.filter(":visible");e.css("height","auto");for(var n=0;ns;s++)r=r.add(e[n+s]);r.equalHeight()}return this},i.fn.detectGridColumns=function(){var t=0,e=0,n=this.filter(":visible");return n.each(function(n,r){var s=i(r).offset().top;return 0!==t&&s!==t?!1:(e++,void(t=s))}),e};var t=0;i.fn.responsiveEqualHeightGrid=function(){function e(){var i=n.detectGridColumns();n.equalHeightGrid(i)}var n=this,r=".grids_"+t;return n.data("grids-event-namespace",r),i(window).bind("resize"+r+" load"+r,e),e(),t++,this},i.fn.responsiveEqualHeightGridDestroy=function(){var t=this;return t.css("height","auto"),i(window).unbind(t.data("grids-event-namespace")),this}}(window.jQuery); !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t,e){function n(t){function e(){a?(n(),O(e),i=!0,a=!1):i=!1}var n=t,a=!1,i=!1;this.kick=function(){a=!0,i||e()},this.end=function(t){var e=n;t&&(i?(n=a?function(){e(),t()}:t,a=!0):t())}}function a(){return!0}function i(){return!1}function o(t){t.preventDefault()}function r(t){z[t.target.tagName.toLowerCase()]||t.preventDefault()}function u(t){return 1===t.which&&!t.ctrlKey&&!t.altKey}function c(t,e){var n,a;if(t.identifiedTouch)return t.identifiedTouch(e);for(n=-1,a=t.length;++ni*i+o*o||y(t,e,n,i,o,a)}function Y(){return this._handled=a,!1}function w(t){t._handled()}function y(t,e,n,a,i,o){{var r,u;e.target}r=t.targetTouches,u=t.timeStamp-e.timeStamp,e.type="movestart",e.distX=a,e.distY=i,e.deltaX=a,e.deltaY=i,e.pageX=n.pageX,e.pageY=n.pageY,e.velocityX=a/u,e.velocityY=i/u,e.targetTouches=r,e.finger=r?r.length:1,e._handled=Y,e._preventTouchmoveDefault=function(){t.preventDefault()},N(e.target,e),o(e.identifier)}function T(t){var e=t.data.timer;t.data.touch=t,t.data.timeStamp=t.timeStamp,e.kick()}function S(t){var e=t.data.event,n=t.data.timer;k(),F(e,n,function(){setTimeout(function(){L(e.target,"click",i)},0)})}function k(){L(document,Q.move,T),L(document,Q.end,S)}function _(t){var e=t.data.event,n=t.data.timer,a=d(t,e);a&&(t.preventDefault(),e.targetTouches=t.targetTouches,t.data.touch=a,t.data.timeStamp=t.timeStamp,n.kick())}function q(t){var e=t.data.event,n=t.data.timer,a=c(t.changedTouches,e.identifier);a&&(A(e),F(e,n))}function A(t){L(document,"."+t.identifier,_),L(document,"."+t.identifier,q)}function D(t,e,n){var a=n-t.timeStamp;t.type="move",t.distX=e.pageX-t.startX,t.distY=e.pageY-t.startY,t.deltaX=e.pageX-t.pageX,t.deltaY=e.pageY-t.pageY,t.velocityX=.3*t.velocityX+.7*t.deltaX/a,t.velocityY=.3*t.velocityY+.7*t.deltaY/a,t.pageX=e.pageX,t.pageY=e.pageY}function F(t,e,n){e.end(function(){return t.type="moveend",N(t.target,t),n&&n()})}function R(){return K(this,"movestart.move",w),!0}function x(){return L(this,"dragstart drag",o),L(this,"mousedown touchstart",r),L(this,"movestart",w),!0}function b(t){"move"!==t.namespace&&"moveend"!==t.namespace&&(K(this,"dragstart."+t.guid+" drag."+t.guid,o,e,t.selector),K(this,"mousedown."+t.guid,r,e,t.selector))}function j(t){"move"!==t.namespace&&"moveend"!==t.namespace&&(L(this,"dragstart."+t.guid+" drag."+t.guid),L(this,"mousedown."+t.guid))}var C=6,K=t.event.add,L=t.event.remove,N=function(e,n,a){t.event.trigger(n,a,e)},O=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(function(){t()},25)}}(),z={textarea:!0,input:!0,select:!0,button:!0},Q={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},B={move:"touchmove",cancel:"touchend",end:"touchend"};t.event.special.movestart={setup:R,teardown:x,add:b,remove:j,_default:function(t){function a(){D(o,r.touch,r.timeStamp),N(t.target,o)}var o,r;t._handled()&&(o={target:t.target,startX:t.startX,startY:t.startY,pageX:t.pageX,pageY:t.pageY,distX:t.distX,distY:t.distY,deltaX:t.deltaX,deltaY:t.deltaY,velocityX:t.velocityX,velocityY:t.velocityY,timeStamp:t.timeStamp,identifier:t.identifier,targetTouches:t.targetTouches,finger:t.finger},r={event:o,timer:new n(a),touch:e,timeStamp:e},t.identifier===e?(K(t.target,"click",i),K(document,Q.move,T,r),K(document,Q.end,S,r)):(t._preventTouchmoveDefault(),K(document,B.move+"."+t.identifier,_,r),K(document,B.end+"."+t.identifier,q,r)))}},t.event.special.move={setup:function(){K(this,"movestart.move",t.noop)},teardown:function(){L(this,"movestart.move",t.noop)}},t.event.special.moveend={setup:function(){K(this,"movestart.moveend",t.noop)},teardown:function(){L(this,"movestart.moveend",t.noop)}},K(document,"mousedown.move",m),K(document,"touchstart.move",p),"function"==typeof Array.prototype.indexOf&&!function(t){for(var e=["changedTouches","targetTouches"],n=e.length;n--;)-1===t.event.props.indexOf(e[n])&&t.event.props.push(e[n])}(t)}); jQuery.fn.fastLiveFilter=function(e,t){t=t||{},e=jQuery(e);var n,l=this,i="",o=t.timeout||0,a=t.callback||function(){},s=e.children(),r=s.length,c=r>0?s[0].style.display:"block";return a(r),l.change(function(){for(var e,n,i=l.val().toLowerCase(),o=0,y=0;r>y;y++)e=s[y],n=t.selector?$(e).find(t.selector).text():e.textContent||e.innerText||"",n.toLowerCase().indexOf(i)>=0?("none"==e.style.display&&(e.style.display=c),o++):"none"!=e.style.display&&(e.style.display="none");return a(o),!1}).keydown(function(){clearTimeout(n),n=setTimeout(function(){l.val()!==i&&(i=l.val(),l.change())},o)}),this}; !function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var r=document.head||document.getElementsByTagName("head")[0],a=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",d=document.createElement("div");d.innerHTML='

x

",r.appendChild(d.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var r=".fitvidsignore";i.ignore&&(r=r+", "+i.ignore);var a=t(this).find(e.join(","));a=a.not("object object"),a=a.not(r),a.each(function(e){var i=t(this);if(!(i.parents(r).length>0||"embed"===this.tagName.toLowerCase()&&i.parent("object").length||i.parent(".fluid-width-video-wrapper").length)){i.css("height")||i.css("width")||!isNaN(i.attr("height"))&&!isNaN(i.attr("width"))||(i.attr("height",9),i.attr("width",16));var a="object"===this.tagName.toLowerCase()||i.attr("height")&&!isNaN(parseInt(i.attr("height"),10))?parseInt(i.attr("height"),10):i.height(),d=isNaN(parseInt(i.attr("width"),10))?i.width():parseInt(i.attr("width"),10),o=a/d;if(!i.attr("id")){var h="fitvid"+e;i.attr("id",h)}i.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*o+"%"),i.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto); !function(e){"use strict";var t=e(window),a=function(t){if(t.valAttr("error-msg-container"))return e(t.valAttr("error-msg-container"));var a=t.parent();if(!a.hasClass("form-group")&&!a.closest("form").hasClass("form-horizontal")){var n=a.closest(".form-group");if(n.length)return n.eq(0)}return a},n=function(e,t){e.addClass(t.errorElementClass).removeClass("valid"),a(e).addClass(t.inputParentClassOnError).removeClass(t.inputParentClassOnSuccess),""!==t.borderColorOnError&&e.css("border-color",t.borderColorOnError)},r=function(t,n){t.each(function(){var t=e(this);i(t,"",n,n.errorMessagePosition),t.removeClass("valid").removeClass(n.errorElementClass).css("border-color",""),a(t).removeClass(n.inputParentClassOnError).removeClass(n.inputParentClassOnSuccess).find("."+n.errorMessageClass).remove()})},i=function(n,r,i,o){var s=document.getElementById(n.attr("name")+"_err_msg"),l=function(e){t.trigger("validationErrorDisplay",[n,e]),e.html(r)},d={};if(s)l(e(s));else if("object"==typeof o){var u=!1;o.find("."+i.errorMessageClass).each(function(){return this.inputReferer===n[0]?(u=e(this),!1):void 0}),u?r?l(u):u.remove():(d=e('
'),l(d),d[0].inputReferer=n[0],o.prepend(d))}else{var c=a(n);d=c.find("."+i.errorMessageClass+".help-block"),0===d.length&&(d=e("").addClass("help-block").addClass(i.errorMessageClass),d.appendTo(c)),l(d)}},o=function(t,a,n,r){var i,o=r.errorMessageTemplate.messages.replace(/\{errorTitle\}/g,a),s=[];e.each(n,function(e,t){s.push(r.errorMessageTemplate.field.replace(/\{msg\}/g,t))}),o=o.replace(/\{fields\}/g,s.join("")),i=r.errorMessageTemplate.container.replace(/\{errorMessageClass\}/g,r.errorMessageClass),i=i.replace(/\{messages\}/g,o),t.children().eq(0).before(i)};e.fn.validateOnBlur=function(t,a){return this.find("*[data-validation]").bind("blur.validation",function(){e(this).validateInputOnBlur(t,a,!0,"blur")}),a.validateCheckboxRadioOnClick&&this.find("input[type=checkbox][data-validation],input[type=radio][data-validation]").bind("click.validation",function(){e(this).validateInputOnBlur(t,a,!0,"click")}),this},e.fn.validateOnEvent=function(t,a){return this.find("*[data-validation-event]").each(function(){var n=e(this),r=n.valAttr("event");r&&n.unbind(r+".validation").bind(r+".validation",function(){e(this).validateInputOnBlur(t,a,!0,r)})}),this},e.fn.showHelpOnFocus=function(t){return t||(t="data-validation-help"),this.find(".has-help-txt").valAttr("has-keyup-event",!1).removeClass("has-help-txt"),this.find("textarea,input").each(function(){var a=e(this),n="jquery_form_help_"+(a.attr("name")||"").replace(/(:|\.|\[|\])/g,""),r=a.attr(t);r&&a.addClass("has-help-txt").unbind("focus.help").bind("focus.help",function(){var t=a.parent().find("."+n);0===t.length&&(t=e("").addClass(n).addClass("help").addClass("help-block").text(r).hide(),a.after(t)),t.fadeIn()}).unbind("blur.help").bind("blur.help",function(){e(this).parent().find("."+n).fadeOut("slow")})}),this},e.fn.validate=function(t,a,n){var r=e.extend({},e.formUtils.LANG,n||{});this.each(function(){var n=e(this),i=n.closest("form").get(0).validationConfig||{};n.one("validation",function(e,a){"function"==typeof t&&t(a,this,e)}),n.validateInputOnBlur(r,e.extend({},i,a||{}),!0)})},e.fn.willPostponeValidation=function(){return(this.valAttr("suggestion-nr")||this.valAttr("postpone")||this.hasClass("hasDatepicker"))&&!window.postponedValidation},e.fn.validateInputOnBlur=function(t,o,s,l){if(e.formUtils.eventType=l,this.willPostponeValidation()){var d=this,u=this.valAttr("postpone")||200;return window.postponedValidation=function(){d.validateInputOnBlur(t,o,s,l),window.postponedValidation=!1},setTimeout(function(){window.postponedValidation&&window.postponedValidation()},u),this}t=e.extend({},e.formUtils.LANG,t||{}),r(this,o);var c=this,g=c.closest("form"),f=e.formUtils.validateInput(c,t,o,g,l);return f.isValid?f.shouldChangeDisplay&&(c.addClass("valid"),a(c).addClass(o.inputParentClassOnSuccess)):f.isValid||(n(c,o),i(c,f.errorMsg,o,o.errorMessagePosition),s&&c.unbind("keyup.validation").bind("keyup.validation",function(){e(this).validateInputOnBlur(t,o,!1,"keyup")})),this},e.fn.valAttr=function(e,t){return void 0===t?this.attr("data-validation-"+e):t===!1||null===t?this.removeAttr("data-validation-"+e):(e=e.length>0?"-"+e:"",this.attr("data-validation"+e,t))},e.fn.isValid=function(s,l,d){if(e.formUtils.isLoadingModules){var u=this;return setTimeout(function(){u.isValid(s,l,d)},200),null}l=e.extend({},e.formUtils.defaultConfig(),l||{}),s=e.extend({},e.formUtils.LANG,s||{}),d=d!==!1,e.formUtils.errorDisplayPreventedWhenHalted&&(delete e.formUtils.errorDisplayPreventedWhenHalted,d=!1),e.formUtils.isValidatingEntireForm=!0,e.formUtils.haltValidation=!1;var c=function(t,a){e.inArray(t,f)<0&&f.push(t),h.push(a),a.attr("current-error",t),d&&n(a,l)},g=[],f=[],h=[],m=this,v=function(t,a){return"submit"===a||"button"===a||"reset"===a?!0:e.inArray(t,l.ignore||[])>-1};if(d&&(m.find("."+l.errorMessageClass+".alert").remove(),r(m.find("."+l.errorElementClass+",.valid"),l)),m.find("input,textarea,select").filter(':not([type="submit"],[type="button"])').each(function(){var t=e(this),n=t.attr("type"),r="radio"===n||"checkbox"===n,i=t.attr("name");if(!v(i,n)&&(!r||e.inArray(i,g)<0)){r&&g.push(i);var o=e.formUtils.validateInput(t,s,l,m,"submit");o.shouldChangeDisplay&&(o.isValid?o.isValid&&(t.valAttr("current-error",!1).addClass("valid"),a(t).addClass(l.inputParentClassOnSuccess)):c(o.errorMsg,t))}}),"function"==typeof l.onValidate){var p=l.onValidate(m);e.isArray(p)?e.each(p,function(e,t){c(t.message,t.element)}):p&&p.element&&p.message&&c(p.message,p.element)}return e.formUtils.isValidatingEntireForm=!1,!e.formUtils.haltValidation&&h.length>0?(d&&("top"===l.errorMessagePosition?o(m,s.errorTitle,f,l):"custom"===l.errorMessagePosition?"function"==typeof l.errorMessageCustom&&l.errorMessageCustom(m,s.errorTitle,f,l):e.each(h,function(e,t){i(t,t.attr("current-error"),l,l.errorMessagePosition)}),l.scrollToTopOnError&&t.scrollTop(m.offset().top-20)),!1):(!d&&e.formUtils.haltValidation&&(e.formUtils.errorDisplayPreventedWhenHalted=!0),!e.formUtils.haltValidation)},e.fn.validateForm=function(e,t){return window.console&&"function"==typeof window.console.warn&&window.console.warn("Use of deprecated function $.validateForm, use $.isValid instead"),this.isValid(e,t,!0)},e.fn.restrictLength=function(t){return new e.formUtils.lengthRestriction(this,t),this},e.fn.addSuggestions=function(t){var a=!1;return this.find("input").each(function(){var n=e(this);a=e.split(n.attr("data-suggestions")),a.length>0&&!n.hasClass("has-suggestions")&&(e.formUtils.suggest(n,a,t),n.addClass("has-suggestions"))}),this},e.split=function(t,a){if("function"!=typeof a){if(!t)return[];var n=[];return e.each(t.split(a?a:/[,|\-\s]\s*/g),function(t,a){a=e.trim(a),a.length&&n.push(a)}),n}t&&e.each(t.split(/[,|\-\s]\s*/g),function(t,n){return n=e.trim(n),n.length?a(n,t):void 0})},e.validate=function(a){var n=e.extend(e.formUtils.defaultConfig(),{form:"form",validateOnEvent:!1,validateOnBlur:!0,validateCheckboxRadioOnClick:!0,showHelpOnFocus:!0,addSuggestions:!0,modules:"",onModulesLoaded:null,language:!1,onSuccess:!1,onError:!1,onElementValidate:!1});if(a=e.extend(n,a||{}),a.lang&&"en"!==a.lang){var i="lang/"+a.lang+".js";a.modules+=a.modules.length?","+i:i}e(a.form).each(function(n,i){i.validationConfig=a;var o=e(i);t.trigger("formValidationSetup",[o,a]),o.find(".has-help-txt").unbind("focus.validation").unbind("blur.validation"),o.removeClass("has-validation-callback").unbind("submit.validation").unbind("reset.validation").find("input[data-validation],textarea[data-validation]").unbind("blur.validation"),o.bind("submit.validation",function(){var t=e(this);if(e.formUtils.haltValidation)return!1;if(e.formUtils.isLoadingModules)return setTimeout(function(){t.trigger("submit.validation")},200),!1;var n=t.isValid(a.language,a);if(e.formUtils.haltValidation)return!1;if(!n||"function"!=typeof a.onSuccess)return n||"function"!=typeof a.onError?n:(a.onError(t),!1);var r=a.onSuccess(t);return r===!1?!1:void 0}).bind("reset.validation",function(){e(this).find("."+a.errorMessageClass+".alert").remove(),r(e(this).find("."+a.errorElementClass+",.valid"),a)}).addClass("has-validation-callback"),a.showHelpOnFocus&&o.showHelpOnFocus(),a.addSuggestions&&o.addSuggestions(),a.validateOnBlur&&(o.validateOnBlur(a.language,a),o.bind("html5ValidationAttrsFound",function(){o.validateOnBlur(a.language,a)})),a.validateOnEvent&&o.validateOnEvent(a.language,a)}),""!==a.modules&&e.formUtils.loadModules(a.modules,!1,function(){"function"==typeof a.onModulesLoaded&&a.onModulesLoaded(),t.trigger("validatorsLoaded",["string"==typeof a.form?e(a.form):a.form,a])})},e.formUtils={defaultConfig:function(){return{ignore:[],errorElementClass:"error",borderColorOnError:"#b94a48",errorMessageClass:"form-error",validationRuleAttribute:"data-validation",validationErrorMsgAttribute:"data-validation-error-msg",errorMessagePosition:"element",errorMessageTemplate:{container:'
{messages}
',messages:"{errorTitle}
    {fields}
",field:"
  • {msg}
  • "},errorMessageCustom:o,scrollToTopOnError:!0,dateFormat:"yyyy-mm-dd",addValidClassOnAll:!1,decimalSeparator:".",inputParentClassOnError:"has-error",inputParentClassOnSuccess:"has-success",validateHiddenInputs:!1}},validators:{},_events:{load:[],valid:[],invalid:[]},haltValidation:!1,isValidatingEntireForm:!1,addValidator:function(e){var t=0===e.name.indexOf("validate_")?e.name:"validate_"+e.name;void 0===e.validateOnKeyUp&&(e.validateOnKeyUp=!0),this.validators[t]=e},isLoadingModules:!1,loadedModules:{},loadModules:function(a,n,r){if(void 0===r&&(r=!0),e.formUtils.isLoadingModules)return void setTimeout(function(){e.formUtils.loadModules(a,n,r)});var i=!1,o=function(a,n){var o=e.split(a),s=o.length,l=function(){s--,0===s&&(e.formUtils.isLoadingModules=!1,r&&i&&("function"==typeof r?r():t.trigger("validatorsLoaded")))};s>0&&(e.formUtils.isLoadingModules=!0);var d="?_="+(new Date).getTime(),u=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];e.each(o,function(t,a){if(a=e.trim(a),0===a.length)l();else{var r=n+a+(".js"===a.slice(-3)?"":".js"),o=document.createElement("SCRIPT");r in e.formUtils.loadedModules?l():(e.formUtils.loadedModules[r]=1,i=!0,o.type="text/javascript",o.onload=l,o.src=r+(".dev.js"===r.slice(-7)?d:""),o.onerror=function(){"console"in window&&window.console.log&&window.console.log("Unable to load form validation module "+r)},o.onreadystatechange=function(){("complete"===this.readyState||"loaded"===this.readyState)&&(l(),this.onload=null,this.onreadystatechange=null)},u.appendChild(o))}})};if(n)o(a,n);else{var s=function(){var t=!1;return e('script[src*="form-validator"]').each(function(){return t=this.src.substr(0,this.src.lastIndexOf("/"))+"/","/"===t&&(t=""),!1}),t!==!1?(o(a,t),!0):!1};s()||e(s)}},validateInput:function(t,a,n,r,i){t.trigger("beforeValidation"),n=n||e.formUtils.defaultConfig(),a=a||e.formUtils.LANG;var o=t.val()||"",s={isValid:!0,shouldChangeDisplay:!0,errorMsg:""},l=t.valAttr("optional"),d=!1,u=!1,c=!1,g=t.valAttr("if-checked"),f=t.valAttr("if-checked-value");if(t.attr("disabled")||!t.is(":visible")&&!n.validateHiddenInputs)return s.shouldChangeDisplay=!1,s;null!=g&&(d=!0,c=r.find('input[name="'+g+'"]'),null!=f?c.each(function(t,a){e(a).prop("checked")&&e(a).val()===f&&(u=!0)}):c.prop("checked")&&(u=!0));var h=!o&&"number"===t[0].type;if(!o&&"true"===l&&!h||d&&!u)return s.shouldChangeDisplay=n.addValidClassOnAll,s;var m=t.attr(n.validationRuleAttribute),v=!0;return m?(e.split(m,function(s){0!==s.indexOf("validate_")&&(s="validate_"+s);var l=e.formUtils.validators[s];if(!l||"function"!=typeof l.validatorFunction)throw new Error('Using undefined validator "'+s+'"');"validate_checkbox_group"===s&&(t=r.find('[name="'+t.attr("name")+'"]:eq(0)'));var d=null;return("keyup"!==i||l.validateOnKeyUp)&&(d=l.validatorFunction(o,t,n,a,r)),d?void 0:(v=null,null!==d&&(v=t.attr(n.validationErrorMsgAttribute+"-"+s.replace("validate_","")),v||(v=t.attr(n.validationErrorMsgAttribute),v||(v=a[l.errorMessageKey],v||(v=l.errorMessage)))),!1)}," "),"string"==typeof v?(t.trigger("validation",!1),s.errorMsg=v,s.isValid=!1,s.shouldChangeDisplay=!0):null===v?s.shouldChangeDisplay=n.addValidClassOnAll:(t.trigger("validation",!0),s.shouldChangeDisplay=!0),"function"==typeof n.onElementValidate&&null!==v&&n.onElementValidate(s.isValid,t,r,v),s):(s.shouldChangeDisplay=n.addValidClassOnAll,s)},parseDate:function(t,a){var n,r,i,o,s=a.replace(/[a-zA-Z]/gi,"").substring(0,1),l="^",d=a.split(s||null);if(e.each(d,function(e,t){l+=(e>0?"\\"+s:"")+"(\\d{"+t.length+"})"}),l+="$",n=t.match(new RegExp(l)),null===n)return!1;var u=function(t,a,n){for(var r=0;r28&&(o%4!==0||o%100===0&&o%400!==0)||2===i&&r>29&&(o%4===0||o%100!==0&&o%400===0)||i>12||0===i?!1:this.isShortMonth(i)&&r>30||!this.isShortMonth(i)&&r>31||0===r?!1:[o,i,r]},parseDateInt:function(e){return 0===e.indexOf("0")&&(e=e.replace("0","")),parseInt(e,10)},isShortMonth:function(e){return e%2===0&&7>e||e%2!==0&&e>7},lengthRestriction:function(t,a){var n=parseInt(a.text(),10),r=0,i=function(){var e=t.val().length;if(e>n){var i=t.scrollTop();t.val(t.val().substring(0,n)),t.scrollTop(i)}r=n-e,0>r&&(r=0),a.text(r)};e(t).bind("keydown keyup keypress focus blur",i).bind("cut paste",function(){setTimeout(i,100)}),e(document).bind("ready",i)},numericRangeCheck:function(t,a){var n=e.split(a),r=parseInt(a.substr(3),10);return 1===n.length&&-1===a.indexOf("min")&&-1===a.indexOf("max")&&(n=[a,a]),2===n.length&&(tparseInt(n[1],10))?["out",n[0],n[1]]:0===a.indexOf("min")&&r>t?["min",r]:0===a.indexOf("max")&&t>r?["max",r]:["ok"]},_numSuggestionElements:0,_selectedSuggestion:null,_previousTypedVal:null,suggest:function(a,n,r){var i={css:{maxHeight:"150px",background:"#FFF",lineHeight:"150%",textDecoration:"underline",overflowX:"hidden",overflowY:"auto",border:"#CCC solid 1px",borderTop:"none",cursor:"pointer"},activeSuggestionCSS:{background:"#E9E9E9"}},o=function(e,t){var a=t.offset();e.css({width:t.outerWidth(),left:a.left+"px",top:a.top+t.outerHeight()+"px"})};r&&e.extend(i,r),i.css.position="absolute",i.css["z-index"]=9999,a.attr("autocomplete","off"),0===this._numSuggestionElements&&t.bind("resize",function(){e(".jquery-form-suggestions").each(function(){var t=e(this),a=t.attr("data-suggest-container");o(t,e(".suggestions-"+a).eq(0))})}),this._numSuggestionElements++;var s=function(t){var a=t.valAttr("suggestion-nr");e.formUtils._selectedSuggestion=null,e.formUtils._previousTypedVal=null,e(".jquery-form-suggestion-"+a).fadeOut("fast")};return a.data("suggestions",n).valAttr("suggestion-nr",this._numSuggestionElements).unbind("focus.suggest").bind("focus.suggest",function(){e(this).trigger("keyup"),e.formUtils._selectedSuggestion=null}).unbind("keyup.suggest").bind("keyup.suggest",function(){var t=e(this),n=[],r=e.trim(t.val()).toLocaleLowerCase();if(r!==e.formUtils._previousTypedVal){e.formUtils._previousTypedVal=r;var l=!1,d=t.valAttr("suggestion-nr"),u=e(".jquery-form-suggestion-"+d);if(u.scrollTop(0),""!==r){var c=r.length>2;e.each(t.data("suggestions"),function(e,t){var a=t.toLocaleLowerCase();return a===r?(n.push(""+t+""),l=!0,!1):void((0===a.indexOf(r)||c&&a.indexOf(r)>-1)&&n.push(t.replace(new RegExp(r,"gi"),"$&")))})}l||0===n.length&&u.length>0?u.hide():n.length>0&&0===u.length?(u=e("
    ").css(i.css).appendTo("body"),a.addClass("suggestions-"+d),u.attr("data-suggest-container",d).addClass("jquery-form-suggestions").addClass("jquery-form-suggestion-"+d)):n.length>0&&!u.is(":visible")&&u.show(),n.length>0&&r.length!==n[0].length&&(o(u,t),u.html(""),e.each(n,function(a,n){e("
    ").append(n).css({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"5px"}).addClass("form-suggest-element").appendTo(u).click(function(){t.focus(),t.val(e(this).text()),s(t)})}))}}).unbind("keydown.validation").bind("keydown.validation",function(t){var a,n,r=t.keyCode?t.keyCode:t.which,o=e(this);if(13===r&&null!==e.formUtils._selectedSuggestion){if(a=o.valAttr("suggestion-nr"),n=e(".jquery-form-suggestion-"+a),n.length>0){var l=n.find("div").eq(e.formUtils._selectedSuggestion).text();o.val(l),s(o),t.preventDefault()}}else{a=o.valAttr("suggestion-nr"),n=e(".jquery-form-suggestion-"+a);var d=n.children();if(d.length>0&&e.inArray(r,[38,40])>-1){38===r?(null===e.formUtils._selectedSuggestion?e.formUtils._selectedSuggestion=d.length-1:e.formUtils._selectedSuggestion--,e.formUtils._selectedSuggestion<0&&(e.formUtils._selectedSuggestion=d.length-1)):40===r&&(null===e.formUtils._selectedSuggestion?e.formUtils._selectedSuggestion=0:e.formUtils._selectedSuggestion++,e.formUtils._selectedSuggestion>d.length-1&&(e.formUtils._selectedSuggestion=0));var u=n.innerHeight(),c=n.scrollTop(),g=n.children().eq(0).outerHeight(),f=g*e.formUtils._selectedSuggestion;return(c>f||f>c+u)&&n.scrollTop(f),d.removeClass("active-suggestion").css("background","none").eq(e.formUtils._selectedSuggestion).addClass("active-suggestion").css(i.activeSuggestionCSS),t.preventDefault(),!1}}}).unbind("blur.suggest").bind("blur.suggest",function(){s(e(this))}),a},LANG:{errorTitle:"Form submission failed!",requiredFields:"You have not answered all required fields",badTime:"You have not given a correct time",badEmail:"You have not given a correct e-mail address",badTelephone:"You have not given a correct phone number",badSecurityAnswer:"You have not given a correct answer to the security question",badDate:"You have not given a correct date",lengthBadStart:"The input value must be between ",lengthBadEnd:" characters",lengthTooLongStart:"The input value is longer than ",lengthTooShortStart:"The input value is shorter than ",notConfirmed:"Input values could not be confirmed",badDomain:"Incorrect domain value",badUrl:"The input value is not a correct URL",badCustomVal:"The input value is incorrect",andSpaces:" and spaces ",badInt:"The input value was not a correct number",badSecurityNumber:"Your social security number was incorrect",badUKVatAnswer:"Incorrect UK VAT Number",badStrength:"The password isn't strong enough",badNumberOfSelectedOptionsStart:"You have to choose at least ",badNumberOfSelectedOptionsEnd:" answers",badAlphaNumeric:"The input value can only contain alphanumeric characters ",badAlphaNumericExtra:" and ",wrongFileSize:"The file you are trying to upload is too large (max %s)",wrongFileType:"Only files of type %s is allowed",groupCheckedRangeStart:"Please choose between ",groupCheckedTooFewStart:"Please choose at least ",groupCheckedTooManyStart:"Please choose a maximum of ",groupCheckedEnd:" item(s)",badCreditCard:"The credit card number is not correct",badCVV:"The CVV number was not correct",wrongFileDim:"Incorrect image dimensions,",imageTooTall:"the image can not be taller than",imageTooWide:"the image can not be wider than",imageTooSmall:"the image was too small",min:"min",max:"max",imageRatioNotAccepted:"Image ratio is not be accepted",badBrazilTelephoneAnswer:"The phone number entered is invalid",badBrazilCEPAnswer:"The CEP entered is invalid",badBrazilCPFAnswer:"The CPF entered is invalid"}},e.formUtils.addValidator({name:"email",validatorFunction:function(t){var a=t.toLowerCase().split("@"),n=a[0],r=a[1];if(n&&r){if(0===n.indexOf('"')){var i=n.length;if(n=n.replace(/\"/g,""),n.length!==i-2)return!1}return e.formUtils.validators.validate_domain.validatorFunction(a[1])&&0!==n.indexOf(".")&&"."!==n.substring(n.length-1,n.length)&&-1===n.indexOf("..")&&!/[^\w\+\.\-\#\-\_\~\!\$\&\'\(\)\*\+\,\;\=\:]/.test(n)}return!1},errorMessage:"",errorMessageKey:"badEmail"}),e.formUtils.addValidator({name:"domain",validatorFunction:function(e){return e.length>0&&e.length<=253&&!/[^a-zA-Z0-9]/.test(e.slice(-2))&&!/[^a-zA-Z0-9]/.test(e.substr(0,1))&&!/[^a-zA-Z0-9\.\-]/.test(e)&&1===e.split("..").length&&e.split(".").length>1},errorMessage:"",errorMessageKey:"badDomain"}),e.formUtils.addValidator({name:"required",validatorFunction:function(t,a,n,r,i){switch(a.attr("type")){case"checkbox":return a.is(":checked");case"radio":return i.find('input[name="'+a.attr("name")+'"]').filter(":checked").length>0;default:return""!==e.trim(t)}},errorMessage:"",errorMessageKey:"requiredFields"}),e.formUtils.addValidator({name:"length",validatorFunction:function(t,a,n,r){var i=a.valAttr("length"),o=a.attr("type");if(void 0===i)return alert('Please add attribute "data-validation-length" to '+a[0].nodeName+" named "+a.attr("name")),!0;var s,l="file"===o&&void 0!==a.get(0).files?a.get(0).files.length:t.length,d=e.formUtils.numericRangeCheck(l,i);switch(d[0]){case"out":this.errorMessage=r.lengthBadStart+i+r.lengthBadEnd,s=!1;break;case"min":this.errorMessage=r.lengthTooShortStart+d[1]+r.lengthBadEnd,s=!1;break;case"max":this.errorMessage=r.lengthTooLongStart+d[1]+r.lengthBadEnd,s=!1;break;default:s=!0}return s},errorMessage:"",errorMessageKey:""}),e.formUtils.addValidator({name:"url",validatorFunction:function(t){var a=/^(https?|ftp):\/\/((((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])(\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])(\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/(((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|\[|\]|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#(((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;if(a.test(t)){var n=t.split("://")[1],r=n.indexOf("/");return r>-1&&(n=n.substr(0,r)),e.formUtils.validators.validate_domain.validatorFunction(n)}return!1},errorMessage:"",errorMessageKey:"badUrl"}),e.formUtils.addValidator({name:"number",validatorFunction:function(e,t,a){if(""!==e){var n,r,i=t.valAttr("allowing")||"",o=t.valAttr("decimal-separator")||a.decimalSeparator,s=!1,l=t.valAttr("step")||"",d=!1;if(-1===i.indexOf("number")&&(i+=",number"),-1===i.indexOf("negative")&&0===e.indexOf("-"))return!1;if(i.indexOf("range")>-1&&(n=parseFloat(i.substring(i.indexOf("[")+1,i.indexOf(";"))),r=parseFloat(i.substring(i.indexOf(";")+1,i.indexOf("]"))),s=!0),""!==l&&(d=!0),","===o){if(e.indexOf(".")>-1)return!1;e=e.replace(",",".")}if(i.indexOf("number")>-1&&""===e.replace(/[0-9-]/g,"")&&(!s||e>=n&&r>=e)&&(!d||e%l===0))return!0;if(i.indexOf("float")>-1&&null!==e.match(new RegExp("^([0-9-]+)\\.([0-9]+)$"))&&(!s||e>=n&&r>=e)&&(!d||e%l===0))return!0}return!1},errorMessage:"",errorMessageKey:"badInt"}),e.formUtils.addValidator({name:"alphanumeric",validatorFunction:function(t,a,n,r){var i="^([a-zA-Z0-9",o="]+)$",s=a.valAttr("allowing"),l="";if(s){l=i+s+o;var d=s.replace(/\\/g,"");d.indexOf(" ")>-1&&(d=d.replace(" ",""),d+=r.andSpaces||e.formUtils.LANG.andSpaces),this.errorMessage=r.badAlphaNumeric+r.badAlphaNumericExtra+d}else l=i+o,this.errorMessage=r.badAlphaNumeric;return new RegExp(l).test(t)},errorMessage:"",errorMessageKey:""}),e.formUtils.addValidator({name:"custom",validatorFunction:function(e,t){var a=new RegExp(t.valAttr("regexp"));return a.test(e)},errorMessage:"",errorMessageKey:"badCustomVal"}),e.formUtils.addValidator({name:"date",validatorFunction:function(t,a,n){var r=a.valAttr("format")||n.dateFormat||"yyyy-mm-dd";return e.formUtils.parseDate(t,r)!==!1},errorMessage:"",errorMessageKey:"badDate"}),e.formUtils.addValidator({name:"checkbox_group",validatorFunction:function(t,a,n,r,i){var o=!0,s=a.attr("name"),l=e('input[type=checkbox][name^="'+s+'"]',i),d=l.filter(":checked").length,u=a.valAttr("qty");if(void 0===u){var c=a.get(0).nodeName;alert('Attribute "data-validation-qty" is missing from '+c+" named "+a.attr("name"))}var g=e.formUtils.numericRangeCheck(d,u);switch(g[0]){case"out":this.errorMessage=r.groupCheckedRangeStart+u+r.groupCheckedEnd,o=!1;break;case"min":this.errorMessage=r.groupCheckedTooFewStart+g[1]+r.groupCheckedEnd,o=!1;break;case"max":this.errorMessage=r.groupCheckedTooManyStart+g[1]+r.groupCheckedEnd,o=!1;break;default:o=!0}if(!o){var f=function(){l.unbind("click",f),l.filter("*[data-validation]").validateInputOnBlur(r,n,!1,"blur")};l.bind("click",f)}return o}})}(jQuery); !function(e){function t(e,t){this.previewElement=e,this.options=t,this.animationLoaded=!1}t.prototype={activate:function(){this.wrap(),this.addSpinner(),this.addControl(),this.addEvents()},wrap:function(){this.previewElement.addClass("gifplayer-ready"),this.wrapper=this.previewElement.wrap("
    ").parent(),this.wrapper.css("width",this.previewElement.width()),this.wrapper.css("height",this.previewElement.height()),this.previewElement.css("cursor","pointer")},addSpinner:function(){this.spinnerElement=e("
    "),this.wrapper.append(this.spinnerElement),this.spinnerElement.hide()},getOption:function(e){var t=this.previewElement.data(e.toLowerCase());return void 0!=t&&""!=t?t:this.options[e]},addControl:function(){var t=this.getOption("label");this.playElement=e(""+t+""),this.wrapper.append(this.playElement),this.playElement.css("top",this.previewElement.height()/2-this.playElement.height()/2),this.playElement.css("left",this.previewElement.width()/2-this.playElement.width()/2)},addEvents:function(){{var e=this,t=this.getOption("playOn");this.getOption("mode")}switch(t){case"click":e.playElement.on("click",function(){e.loadAnimation()}),e.previewElement.on("click",function(t){e.loadAnimation(),t.preventDefault(),t.stopPropagation()});break;case"hover":e.previewElement.on("click mouseover",function(t){e.loadAnimation(),t.preventDefault(),t.stopPropagation()})}},loadAnimation:function(){this.spinnerElement.show();var e=this.getOption("mode");"gif"==e?this.loadGif():"video"==e&&this.loadVideo()},stopGif:function(){this.gifElement.hide(),this.previewElement.show(),this.playElement.show(),this.resetEvents()},getGif:function(){var e=this.getOption("gif");return void 0!=e&&""!=e?e:this.previewElement.attr("src").replace(".png",".gif").replace(".jpg",".gif")},getWebm:function(){var e=this.getOption("webm");return void 0!=e&&""!=e?e:this.previewElement.attr("src").replace(".png",".webm").replace(".jpg",".webm")},getMp4:function(){var e=this.getOption("mp4");return void 0!=e&&""!=e?e:this.previewElement.attr("src").replace(".png",".mp4").replace(".jpg",".mp4")},loadGif:function(){var t=this;t.playElement.hide(),this.animationLoaded||this.enableAbort();var i=this.getGif(),n=this.previewElement.width(),s=this.previewElement.height();this.gifElement=e("");var o=this.getOption("wait");o?this.gifElement.load(function(){t.animationLoaded=!0,t.resetEvents(),t.previewElement.hide(),t.wrapper.append(t.gifElement),t.spinnerElement.hide()}):(t.animationLoaded=!0,t.resetEvents(),t.previewElement.hide(),t.wrapper.append(t.gifElement),t.spinnerElement.hide()),this.gifElement.css("cursor","pointer"),this.gifElement.css("position","absolute"),this.gifElement.css("top","0"),this.gifElement.css("left","0"),this.gifElement.attr("src",i),this.gifElement.click(function(i){e(this).remove(),t.previewElement.show(),t.playElement.show(),t.resetEvents(),i.preventDefault(),i.stopPropagation()})},loadVideo:function(){var t=this,i=this.getMp4(),n=this.getWebm(),s=this.previewElement.width(),o=this.previewElement.height();t.videoElement=e('');var p=function(){t.spinnerElement.hide(),t.previewElement.hide(),t.playElement.hide(),t.gifLoaded=!0,t.previewElement.hide(),t.wrapper.append(t.videoElement),t.videoPaused=!1,t.videoElement[0].play()},a=function(){4===t.videoElement[0].readyState?(p(),t.animationLoaded=!0):setTimeout(a,100)},l=this.getOption("wait");l?a():p(),t.videoElement.on("click",function(){t.videoPaused?t.resumeVideo():t.pauseVideo()})},pauseVideo:function(){var e=this;e.videoPaused=!0,e.videoElement[0].pause(),console.log(e.videoElement),e.playElement.show(),e.mouseoverEnabled=!1},resumeVideo:function(){var e=this;e.videoPaused=!1,e.videoElement[0].play(),e.playElement.hide()},enableAbort:function(){var e=this;this.previewElement.click(function(t){e.abortLoading(t)}),this.spinnerElement.click(function(t){e.abortLoading(t)})},abortLoading:function(e){this.spinnerElement.hide(),this.playElement.show(),e.preventDefault(),e.stopPropagation(),this.gifElement.off("load").on("load",function(e){e.preventDefault(),e.stopPropagation()}),this.resetEvents()},resetEvents:function(){this.previewElement.off("click"),this.previewElement.off("mouseover"),this.playElement.off("click"),this.spinnerElement.off("click"),this.addEvents()}},e.fn.gifplayer=function(i){return this.each(/^(play|pause|stop)$/i.test(i)?function(){if(i=i.toLowerCase(),e(this).hasClass("gifplayer-ready")){var n=new t(e(this),null);switch(n.options={},n.options=e.extend({},e.fn.gifplayer.defaults,n.options),n.wrapper=e(this).parent(),n.spinnerElement=n.wrapper.find(".spinner"),n.playElement=n.wrapper.find(".play-gif"),n.gifElement=n.wrapper.find(".gp-gif-element"),n.videoElement=n.wrapper.find(".gp-video-element"),n.gifElement.length>0?n.options.mode="gif":n.videoElement.length>0&&(n.options.mode="video"),i){case"play":n.playElement.trigger("click");break;case"stop":n.playElement.is(":visible")||("gif"==n.options.mode?n.stopGif():"video"==n.options.mode&&n.videoElement.trigger("click"))}}else console.log("Not a valid gifplayer element")}:function(){i=e.extend({},e.fn.gifplayer.defaults,i);var n=new t(e(this),i);n.activate()})},e.fn.gifplayer.defaults={label:"GIF",playOn:"click",mode:"gif",gif:"",mp4:"",webm:"",wait:!1}}(jQuery); !function(e){e.fn.hoverIntent=function(t,n,o){var r={interval:100,sensitivity:7,timeout:0};r="object"==typeof t?e.extend(r,t):e.isFunction(n)?e.extend(r,{over:t,out:n,selector:o}):e.extend(r,{over:t,out:t,selector:n});var v,u,i,s,h=function(e){v=e.pageX,u=e.pageY},a=function(t,n){return n.hoverIntent_t=clearTimeout(n.hoverIntent_t),Math.abs(i-v)+Math.abs(s-u)n;n++)a.synonyms[n].src=a.synonyms[n].src.split(",");return this.each(function(){var e,n,r,o,c="";a.scope?(o=t(this).closest(a.scope),n=o.find(a.targets),r=o.find(a.sections)):(n=t(a.targets),r=t(a.sections)),n.each(function(){$target=t(this),original=$target.text(),$target.data("values",function(t){var e=[original],i=original;if(!a.useSynonyms)return e;for(var s=0,n=t.length;n>s;s++)for(var r=0;r=0));s++);return i}(i.data("values"),e),n=i.data("originalText"),r=(a.caseSensitive?n:n.toLowerCase(),null),o=null;s>=0&&a.markMatches&&(r=n.substring(s,s+e.length),o=n.replace(r,''+r+""),i.html(i.data("originalHtml").replace(n,o))),i.attr("data-instafilta-hide",a.beginsWith&&0!==s||0>s?"true":"false")}),f())},s=function(e,i){return e&&e.length?("string"==typeof e&&(e=e.split(",")),n.each(function(){var s=!0,n=0,r=t(this),o=r.data(a.categoryDataAttr);if(o){o=o.split(",");for(var c=0;c').css("padding",gt).append(t.children()),E=e('
    ').css({width:q+"px",height:O+"px"}).append(L).appendTo(t);else{if(t.css("width",""),j=F.stickToBottom&&D(),g=F.stickToRight&&x(),p=t.innerWidth()+vt!=q||t.outerHeight()!=O,p&&(q=t.innerWidth()+vt,O=t.innerHeight(),E.css({width:q+"px",height:O+"px"})),!p&&mt==V&&L.outerHeight()==G)return void t.width(q);mt=V,L.css("width",""),t.width(q),E.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}L.css("overflow","auto"),V=n.contentWidth?n.contentWidth:L[0].scrollWidth,G=L[0].scrollHeight,L.css("overflow",""),N=V/q,K=G/O,Q=K>1,U=N>1,U||Q?(t.addClass("jspScrollable"),s=F.maintainPosition&&(Z||tt),s&&(a=T(),l=B()),o(),r(),c(),s&&(k(g?V-q:a,!1),y(j?G-O:l,!1)),A(),H(),R(),F.enableKeyboardNavigation&&Y(),F.clickOnTrack&&d(),M(),F.hijackInternalLinks&&X()):(t.removeClass("jspScrollable"),L.css({top:0,left:0,width:E.width()-vt}),P(),W(),z(),f()),F.autoReinitialise&&!jt?jt=setInterval(function(){i(F)},F.autoReinitialiseDelay):!F.autoReinitialise&&jt&&clearInterval(jt),u&&t.scrollTop(0)&&y(u,!1),h&&t.scrollLeft(0)&&k(h,!1),t.trigger("jsp-initialised",[U||Q])}function o(){Q&&(E.append(e('
    ').append(e('
    '),e('
    ').append(e('
    ').append(e('
    '),e('
    '))),e('
    '))),nt=E.find(">.jspVerticalBar"),it=nt.find(">.jspTrack"),$=it.find(">.jspDrag"),F.showArrows&&(at=e('').bind("mousedown.jsp",p(0,-1)).bind("click.jsp",S),ct=e('').bind("mousedown.jsp",p(0,1)).bind("click.jsp",S),F.arrowScrollOnHover&&(at.bind("mouseover.jsp",p(0,-1,at)),ct.bind("mouseover.jsp",p(0,1,ct))),l(it,F.verticalArrowPositions,at,ct)),st=O,E.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){st-=e(this).outerHeight()}),$.hover(function(){$.addClass("jspHover")},function(){$.removeClass("jspHover")}).bind("mousedown.jsp",function(t){e("html").bind("dragstart.jsp selectstart.jsp",S),$.addClass("jspActive");var n=t.pageY-$.position().top;return e("html").bind("mousemove.jsp",function(e){j(e.pageY-n,!1)}).bind("mouseup.jsp mouseleave.jsp",h),!1}),s())}function s(){it.height(st+"px"),Z=0,ot=F.verticalGutter+it.outerWidth(),L.width(q-ot-vt);try{0===nt.position().left&&L.css("margin-left",ot+"px")}catch(e){}}function r(){U&&(E.append(e('
    ').append(e('
    '),e('
    ').append(e('
    ').append(e('
    '),e('
    '))),e('
    '))),lt=E.find(">.jspHorizontalBar"),pt=lt.find(">.jspTrack"),_=pt.find(">.jspDrag"),F.showArrows&&(ft=e('').bind("mousedown.jsp",p(-1,0)).bind("click.jsp",S),ht=e('').bind("mousedown.jsp",p(1,0)).bind("click.jsp",S),F.arrowScrollOnHover&&(ft.bind("mouseover.jsp",p(-1,0,ft)),ht.bind("mouseover.jsp",p(1,0,ht))),l(pt,F.horizontalArrowPositions,ft,ht)),_.hover(function(){_.addClass("jspHover")},function(){_.removeClass("jspHover")}).bind("mousedown.jsp",function(t){e("html").bind("dragstart.jsp selectstart.jsp",S),_.addClass("jspActive");var n=t.pageX-_.position().left;return e("html").bind("mousemove.jsp",function(e){v(e.pageX-n,!1)}).bind("mouseup.jsp mouseleave.jsp",h),!1}),ut=E.innerWidth(),a())}function a(){E.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){ut-=e(this).outerWidth()}),pt.width(ut+"px"),tt=0}function c(){if(U&&Q){var t=pt.outerHeight(),n=it.outerWidth();st-=t,e(lt).find(">.jspCap:visible,>.jspArrow").each(function(){ut+=e(this).outerWidth()}),ut-=n,O-=n,q-=t,pt.parent().append(e('
    ').css("width",t+"px")),s(),a()}U&&L.width(E.outerWidth()-vt+"px"),G=L.outerHeight(),K=G/O,U&&(dt=Math.ceil(1/N*ut),dt>F.horizontalDragMaxWidth?dt=F.horizontalDragMaxWidth:dtF.verticalDragMaxHeight?rt=F.verticalDragMaxHeight:rts)Z-p>o?bt.scrollByY(-l):j(o);else{if(!(s>0))return void c();o>Z+p?bt.scrollByY(l):j(o)}n=setTimeout(a,r?F.initialDelay:F.trackClickRepeatFreq),r=!1},c=function(){n&&clearTimeout(n),n=null,e(document).unbind("mouseup.jsp",c)};return a(),e(document).bind("mouseup.jsp",c),!1}}),U&&pt.bind("mousedown.jsp",function(t){if(void 0===t.originalTarget||t.originalTarget==t.currentTarget){var n,i=e(this),o=i.offset(),s=t.pageX-o.left-tt,r=!0,a=function(){var e=i.offset(),o=t.pageX-e.left-dt/2,l=q*F.scrollPagePercent,p=et*l/(V-q);if(0>s)tt-p>o?bt.scrollByX(-l):v(o);else{if(!(s>0))return void c();o>tt+p?bt.scrollByX(l):v(o)}n=setTimeout(a,r?F.initialDelay:F.trackClickRepeatFreq),r=!1},c=function(){n&&clearTimeout(n),n=null,e(document).unbind("mouseup.jsp",c)};return a(),e(document).bind("mouseup.jsp",c),!1}})}function f(){pt&&pt.unbind("mousedown.jsp"),it&&it.unbind("mousedown.jsp")}function h(){e("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp"),$&&$.removeClass("jspActive"),_&&_.removeClass("jspActive")}function j(n,i){if(Q){0>n?n=0:n>J&&(n=J);var o=new e.Event("jsp-will-scroll-y");if(t.trigger(o,[n]),!o.isDefaultPrevented()){var s=n||0,r=0===s,a=s==J,c=n/J,l=-c*(G-O);void 0===i&&(i=F.animateScroll),i?bt.animate($,"top",n,g,function(){t.trigger("jsp-user-scroll-y",[-l,r,a])}):($.css("top",n),g(n),t.trigger("jsp-user-scroll-y",[-l,r,a]))}}}function g(e){void 0===e&&(e=$.position().top),E.scrollTop(0),Z=e||0;var n=0===Z,i=Z==J,o=e/J,s=-o*(G-O);(wt!=n||kt!=i)&&(wt=n,kt=i,t.trigger("jsp-arrow-change",[wt,kt,yt,Ct])),b(n,i),L.css("top",s),t.trigger("jsp-scroll-y",[-s,n,i]).trigger("scroll")}function v(n,i){if(U){0>n?n=0:n>et&&(n=et);var o=new e.Event("jsp-will-scroll-x");if(t.trigger(o,[n]),!o.isDefaultPrevented()){var s=n||0,r=0===s,a=s==et,c=n/et,l=-c*(V-q);void 0===i&&(i=F.animateScroll),i?bt.animate(_,"left",n,m,function(){t.trigger("jsp-user-scroll-x",[-l,r,a])}):(_.css("left",n),m(n),t.trigger("jsp-user-scroll-x",[-l,r,a]))}}}function m(e){void 0===e&&(e=_.position().left),E.scrollTop(0),tt=e||0;var n=0===tt,i=tt==et,o=e/et,s=-o*(V-q);(yt!=n||Ct!=i)&&(yt=n,Ct=i,t.trigger("jsp-arrow-change",[wt,kt,yt,Ct])),w(n,i),L.css("left",s),t.trigger("jsp-scroll-x",[-s,n,i]).trigger("scroll")}function b(e,t){F.showArrows&&(at[e?"addClass":"removeClass"]("jspDisabled"),ct[t?"addClass":"removeClass"]("jspDisabled"))}function w(e,t){F.showArrows&&(ft[e?"addClass":"removeClass"]("jspDisabled"),ht[t?"addClass":"removeClass"]("jspDisabled"))}function y(e,t){var n=e/(G-O);j(n*J,t)}function k(e,t){var n=e/(V-q);v(n*et,t)}function C(t,n,i){var o,s,r,a,c,l,p,u,d,f=0,h=0;try{o=e(t)}catch(j){return}for(s=o.outerHeight(),r=o.outerWidth(),E.scrollTop(0),E.scrollLeft(0);!o.is(".jspPane");)if(f+=o.position().top,h+=o.position().left,o=o.offsetParent(),/^body|html$/i.test(o[0].nodeName))return;a=B(),l=a+O,a>f||n?u=f-F.horizontalGutter:f+s>l&&(u=f-O+s+F.horizontalGutter),isNaN(u)||y(u,i),c=T(),p=c+q,c>h||n?d=h-F.horizontalGutter:h+r>p&&(d=h-q+r+F.horizontalGutter),isNaN(d)||k(d,i)}function T(){return-L.position().left}function B(){return-L.position().top}function D(){var e=G-O;return e>20&&e-B()<10}function x(){var e=V-q;return e>20&&e-T()<10}function H(){E.unbind(Bt).bind(Bt,function(e,t,n,i){tt||(tt=0),Z||(Z=0);var o=tt,s=Z,r=e.deltaFactor||F.mouseWheelSpeed;return bt.scrollBy(n*r,-i*r,!1),o==tt&&s==Z})}function P(){E.unbind(Bt)}function S(){return!1}function A(){L.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(e){C(e.target,!1)})}function W(){L.find(":input,a").unbind("focus.jsp")}function Y(){function n(){var e=tt,t=Z;switch(i){case 40:bt.scrollByY(F.keyboardSpeed,!1);break;case 38:bt.scrollByY(-F.keyboardSpeed,!1);break;case 34:case 32:bt.scrollByY(O*F.scrollPagePercent,!1);break;case 33:bt.scrollByY(-O*F.scrollPagePercent,!1);break;case 39:bt.scrollByX(F.keyboardSpeed,!1);break;case 37:bt.scrollByX(-F.keyboardSpeed,!1)}return o=e!=tt||t!=Z}var i,o,s=[];U&&s.push(lt[0]),Q&&s.push(nt[0]),L.bind("focus.jsp",function(){t.focus()}),t.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(t){if(t.target===this||s.length&&e(t.target).closest(s).length){var r=tt,a=Z;switch(t.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:i=t.keyCode,n();break;case 35:y(G-O),i=null;break;case 36:y(0),i=null}return o=t.keyCode==i&&r!=tt||a!=Z,!o}}).bind("keypress.jsp",function(t){return t.keyCode==i&&n(),t.target===this||s.length&&e(t.target).closest(s).length?!o:void 0}),F.hideFocus?(t.css("outline","none"),"hideFocus"in E[0]&&t.attr("hideFocus",!0)):(t.css("outline",""),"hideFocus"in E[0]&&t.attr("hideFocus",!1))}function z(){t.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp"),L.unbind(".jsp")}function M(){if(location.hash&&location.hash.length>1){var t,n,i=escape(location.hash.substr(1));try{t=e("#"+i+', a[name="'+i+'"]')}catch(o){return}t.length&&L.find(i)&&(0===E.scrollTop()?n=setInterval(function(){E.scrollTop()>0&&(C(t,!0),e(document).scrollTop(E.position().top),clearInterval(n))},50):(C(t,!0),e(document).scrollTop(E.position().top)))}}function X(){e(document.body).data("jspHijack")||(e(document.body).data("jspHijack",!0),e(document.body).delegate("a[href*=#]","click",function(t){var n,i,o,s,r,a,c=this.href.substr(0,this.href.indexOf("#")),l=location.href;if(-1!==location.href.indexOf("#")&&(l=location.href.substr(0,location.href.indexOf("#"))),c===l){n=escape(this.href.substr(this.href.indexOf("#")+1));try{i=e("#"+n+', a[name="'+n+'"]')}catch(p){return}i.length&&(o=i.closest(".jspScrollable"),s=o.data("jsp"),s.scrollToElement(i,!0),o[0].scrollIntoView&&(r=e(window).scrollTop(),a=i.offset().top,(r>a||a>r+e(window).height())&&o[0].scrollIntoView()),t.preventDefault())}}))}function R(){var e,t,n,i,o,s=!1;E.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(r){var a=r.originalEvent.touches[0];e=T(),t=B(),n=a.pageX,i=a.pageY,o=!1,s=!0}).bind("touchmove.jsp",function(r){if(s){var a=r.originalEvent.touches[0],c=tt,l=Z;return bt.scrollTo(e+n-a.pageX,t+i-a.pageY),o=o||Math.abs(n-a.pageX)>5||Math.abs(i-a.pageY)>5,c==tt&&l==Z}}).bind("touchend.jsp",function(){s=!1}).bind("click.jsp-touchclick",function(){return o?(o=!1,!1):void 0})}function I(){var e=B(),n=T();t.removeClass("jspScrollable").unbind(".jsp"),L.unbind(".jsp"),t.replaceWith(Tt.append(L.children())),Tt.scrollTop(e),Tt.scrollLeft(n),jt&&clearInterval(jt)}var F,L,q,O,E,V,G,N,K,Q,U,$,J,Z,_,et,tt,nt,it,ot,st,rt,at,ct,lt,pt,ut,dt,ft,ht,jt,gt,vt,mt,bt=this,wt=!0,yt=!0,kt=!1,Ct=!1,Tt=t.clone(!1,!1).empty(),Bt=e.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";"border-box"===t.css("box-sizing")?(gt=0,vt=0):(gt=t.css("paddingTop")+" "+t.css("paddingRight")+" "+t.css("paddingBottom")+" "+t.css("paddingLeft"),vt=(parseInt(t.css("paddingLeft"),10)||0)+(parseInt(t.css("paddingRight"),10)||0)),e.extend(bt,{reinitialise:function(t){t=e.extend({},F,t),i(t)},scrollToElement:function(e,t,n){C(e,t,n)},scrollTo:function(e,t,n){k(e,n),y(t,n)},scrollToX:function(e,t){k(e,t)},scrollToY:function(e,t){y(e,t)},scrollToPercentX:function(e,t){k(e*(V-q),t)},scrollToPercentY:function(e,t){y(e*(G-O),t)},scrollBy:function(e,t,n){bt.scrollByX(e,n),bt.scrollByY(t,n)},scrollByX:function(e,t){var n=T()+Math[0>e?"floor":"ceil"](e),i=n/(V-q);v(i*et,t)},scrollByY:function(e,t){var n=B()+Math[0>e?"floor":"ceil"](e),i=n/(G-O);j(i*J,t)},positionDragX:function(e,t){v(e,t)},positionDragY:function(e,t){j(e,t)},animate:function(e,t,n,i){var o={};o[t]=n,e.animate(o,{duration:F.animateDuration,easing:F.animateEase,queue:!1,step:i})},getContentPositionX:function(){return T()},getContentPositionY:function(){return B()},getContentWidth:function(){return V},getContentHeight:function(){return G},getPercentScrolledX:function(){return T()/(V-q)},getPercentScrolledY:function(){return B()/(G-O)},getIsScrollableH:function(){return U},getIsScrollableV:function(){return Q},getContentPane:function(){return L},scrollToBottom:function(e){j(J,e)},hijackInternalLinks:e.noop,destroy:function(){I()}}),i(n)}return t=e.extend({},e.fn.jScrollPane.defaults,t),e.each(["arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){t[this]=t[this]||t.speed}),this.each(function(){var i=e(this),o=i.data("jsp");o?o.reinitialise(t):(e("script",i).filter('[type="text/javascript"],:not([type])').remove(),o=new n(i,t),i.data("jsp",o))})},e.fn.jScrollPane.defaults={showArrows:!1,maintainPosition:!0,stickToBottom:!1,stickToRight:!1,clickOnTrack:!0,autoReinitialise:!1,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:void 0,animateScroll:!1,animateDuration:300,animateEase:"linear",hijackInternalLinks:!1,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:3,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:!1,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:!0,hideFocus:!1,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:.8}}); !function(t){"use strict";function i(i,s){this.element=t(i),this.settings=t.extend({},e,s),this._defaults=e,this._init()}var s="Morphext",e={animation:"bounceIn",separator:",",speed:2e3,complete:t.noop};i.prototype={_init:function(){var i=this;this.phrases=[],this.element.addClass("morphext"),t.each(this.element.text().split(this.settings.separator),function(t,s){i.phrases.push(s.trim())}),this.index=-1,this.animate(),this.start()},animate:function(){this.index=++this.index%this.phrases.length,this.element[0].innerHTML=''+this.phrases[this.index]+"",t.isFunction(this.settings.complete)&&this.settings.complete.call(this)},start:function(){var t=this;this._interval=setInterval(function(){t.animate()},this.settings.speed)},stop:function(){this._interval=clearInterval(this._interval)}},t.fn[s]=function(e){return this.each(function(){t.data(this,"plugin_"+s)||t.data(this,"plugin_"+s,new i(this,e))})}}(jQuery); !function(e){function t(t){var n=t||window.event,i=[].slice.call(arguments,1),l=0,s=0,o=0;return t=e.event.fix(n),t.type="mousewheel",n.wheelDelta&&(l=n.wheelDelta/120),n.detail&&(l=-n.detail/3),o=l,void 0!==n.axis&&n.axis===n.HORIZONTAL_AXIS&&(o=0,s=-1*l),void 0!==n.wheelDeltaY&&(o=n.wheelDeltaY/120),void 0!==n.wheelDeltaX&&(s=-1*n.wheelDeltaX/120),i.unshift(t,l,s,o),(e.event.dispatch||e.event.handle).apply(this,i)}var n=["DOMMouseScroll","mousewheel"];if(e.event.fixHooks)for(var i=n.length;i;)e.event.fixHooks[n[--i]]=e.event.mouseHooks;e.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=n.length;e;)this.addEventListener(n[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=n.length;e;)this.removeEventListener(n[--e],t,!1);else this.onmousewheel=null}},e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(jQuery); !function(t,i,n){var s=function(s,e){this.elem=s,this.$elem=t(s),this.options=e,this.metadata=this.$elem.data("plugin-options"),this.$win=t(i),this.sections={},this.didScroll=!1,this.$doc=t(n),this.docHeight=this.$doc.height()};s.prototype={defaults:{navItems:"a",currentClass:"current",changeHash:!1,easing:"swing",filter:"",scrollSpeed:750,scrollThreshold:.5,begin:!1,end:!1,scrollChange:!1},init:function(){return this.config=t.extend({},this.defaults,this.options,this.metadata),this.$nav=this.$elem.find(this.config.navItems),""!==this.config.filter&&(this.$nav=this.$nav.filter(this.config.filter)),this.$nav.on("click.onePageNav",t.proxy(this.handleClick,this)),this.getPositions(),this.bindInterval(),this.$win.on("resize.onePageNav",t.proxy(this.getPositions,this)),this},adjustNav:function(t,i){t.$elem.find("."+t.config.currentClass).removeClass(t.config.currentClass),i.addClass(t.config.currentClass)},bindInterval:function(){var t,i=this;i.$win.on("scroll.onePageNav",function(){i.didScroll=!0}),i.t=setInterval(function(){t=i.$doc.height(),i.didScroll&&(i.didScroll=!1,i.scrollChange()),t!==i.docHeight&&(i.docHeight=t,i.getPositions())},250)},getHash:function(t){return t.attr("href").split("#")[1]},getPositions:function(){var i,n,s,e=this;e.$nav.each(function(){i=e.getHash(t(this)),s=t("#"+i),s.length&&(n=s.offset().top,e.sections[i]=Math.round(n))})},getSection:function(t){var i=null,n=Math.round(this.$win.height()*this.config.scrollThreshold);for(var s in this.sections)this.sections[s]-n0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){var t,e,i=this._clones,s=this._items,n=this.settings.loop?i.length-Math.max(2*this.settings.items,4):0;for(t=0,e=Math.abs(n/2);e>t;t++)n>0?(this.$stage.children().eq(s.length+i.length-1).remove(),i.pop(),this.$stage.children().eq(0).remove(),i.pop()):(i.push(i.length/2),this.$stage.append(s[i[i.length-1]].clone().addClass("cloned")),i.push(s.length-1-(i.length-1)/2),this.$stage.prepend(s[i[i.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var t,e,i,s=this.settings.rtl?1:-1,n=(this.width()/this.settings.items).toFixed(3),o=0;for(this._coordinates=[],e=0,i=this._clones.length+this._items.length;i>e;e++)t=this._mergers[this.relative(e)],t=this.settings.mergeFit&&Math.min(t,this.settings.items)||t,o+=(this.settings.autoWidth?this._items[this.relative(e)].width()+this.settings.margin:n*t)*s,this._coordinates.push(o)}},{filter:["width","items","settings"],run:function(){var e,i,s=(this.width()/this.settings.items).toFixed(3),n={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(n),n={width:this.settings.autoWidth?"auto":s-this.settings.margin},n[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&t.grep(this._mergers,function(t){return t>1}).length>0)for(e=0,i=this._coordinates.length;i>e;e++)n.width=Math.abs(this._coordinates[e])-Math.abs(this._coordinates[e-1]||0)-this.settings.margin,this.$stage.children().eq(e).css(n);else this.$stage.children().css(n)}},{filter:["width","items","settings"],run:function(t){t.current&&this.reset(this.$stage.children().index(t.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,s,n=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*n,h=[];for(i=0,s=this._coordinates.length;s>i;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*n,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&h.push(i);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+h.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],n.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&this.state.imagesLoaded!==!0){var e,i,n;if(e=this.$element.find("img"),i=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:s,n=this.$element.children(i).width(),e.length&&0>=n)return this.preloadAutoWidthImages(e),!1}this.$element.addClass("owl-loading"),this.$stage=t("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('
    '),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},n.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,s=-1,n=null;i?(t.each(i,function(t){e>=t&&t>s&&(s=Number(t))}),n=t.extend({},this.options,i[s]),delete n.responsive,n.responsiveClass&&this.$element.attr("class",function(t,e){return e.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+s)):n=t.extend({},this.options),(null===this.settings||this._breakpoint!==s)&&(this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=s,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},n.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length").addClass(this.settings.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},n.prototype.update=function(){for(var e=0,i=this._pipe.length,s=t.proxy(function(t){return this[t]},this._invalidated),n={};i>e;)(this._invalidated.all||t.grep(this._pipe[e].filter,s).length>0)&&this._pipe[e].run(n),e++;this._invalidated={}},n.prototype.width=function(t){switch(t=t||n.Width.Default){case n.Width.Inner:case n.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},n.prototype.refresh=function(){return 0===this._items.length?!1:((new Date).getTime(),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=e.orientation,this.watchVisibility(),this.trigger("refreshed"),void 0)},n.prototype.eventsCall=function(){this.e._onDragStart=t.proxy(function(t){this.onDragStart(t)},this),this.e._onDragMove=t.proxy(function(t){this.onDragMove(t)},this),this.e._onDragEnd=t.proxy(function(t){this.onDragEnd(t)},this),this.e._onResize=t.proxy(function(t){this.onResize(t)},this),this.e._transitionEnd=t.proxy(function(t){this.transitionEnd(t)},this),this.e._preventClick=t.proxy(function(t){this.preventClick(t)},this)},n.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},n.prototype.onResize=function(){return this._items.length?this._width===this.$element.width()?!1:this.trigger("resize").isDefaultPrevented()?!1:(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized")):!1},n.prototype.eventsRouter=function(t){var e=t.type;"mousedown"===e||"touchstart"===e?this.onDragStart(t):"mousemove"===e||"touchmove"===e?this.onDragMove(t):"mouseup"===e||"touchend"===e?this.onDragEnd(t):"touchcancel"===e&&this.onDragEnd(t)},n.prototype.internalEvents=function(){var i=(c(),d());this.settings.mouseDrag?(this.$stage.on("mousedown",t.proxy(function(t){this.eventsRouter(t)},this)),this.$stage.on("dragstart",function(){return!1}),this.$stage.get(0).onselectstart=function(){return!1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!i&&this.$stage.on("touchstart touchcancel",t.proxy(function(t){this.eventsRouter(t)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),this.settings.responsive!==!1&&this.on(e,"resize",t.proxy(this.onThrottledResize,this))},n.prototype.onDragStart=function(s){var n,r,a,h;if(n=s.originalEvent||s||e.event,3===n.which||this.state.isTouch)return!1;if("mousedown"===n.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,r=o(n).x,a=o(n).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)h=this.getTransformProperty(),this.drag.offsetX=h,this.animate(h),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1,!1;this.drag.startX=r-this.drag.offsetX,this.drag.startY=a-this.drag.offsetY,this.drag.start=r-this.drag.startX,this.drag.targetEl=n.target||n.srcElement,this.drag.updatedX=this.drag.start,("IMG"===this.drag.targetEl.tagName||"A"===this.drag.targetEl.tagName)&&(this.drag.targetEl.draggable=!1),t(i).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",t.proxy(function(t){this.eventsRouter(t)},this))},n.prototype.onDragMove=function(t){var i,n,r,a,h,l;this.state.isTouch&&(this.state.isScrolling||(i=t.originalEvent||t||e.event,n=o(i).x,r=o(i).y,this.drag.currentX=n-this.drag.startX,this.drag.currentY=r-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(a=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),h=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),l=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,a+l),h+l)),(this.drag.distance>8||this.drag.distance<-8)&&(i.preventDefault!==s?i.preventDefault():i.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===!1&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},n.prototype.onDragEnd=function(e){var s,n,o;if(this.state.isTouch){if("mouseup"===e.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&this.state.inMotion!==!0)return this.state.inMotion=!1,!1;this.drag.endTime=(new Date).getTime(),s=this.drag.endTime-this.drag.startTime,n=Math.abs(this.drag.distance),(n>3||s>300)&&this.removeClick(this.drag.targetEl),o=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(o),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(o)||this.transitionEnd(),this.drag.distance=0,t(i).off(".owl.dragEvents")}},n.prototype.removeClick=function(i){this.drag.targetEl=i,t(i).on("click.preventClick",this.e._preventClick),e.setTimeout(function(){t(i).off("click.preventClick")},300)},n.prototype.preventClick=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),t(e.target).off("click.preventClick")},n.prototype.getTransformProperty=function(){var t,i;return t=e.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform"),t=t.replace(/matrix(3d)?\(|\)/g,"").split(","),i=16===t.length,i!==!0?t[4]:t[12]},n.prototype.closest=function(e){var i=-1,s=30,n=this.width(),o=this.coordinates();return this.settings.freeDrag||t.each(o,t.proxy(function(t,r){return e>r-s&&r+s>e?i=t:this.op(e,"<",r)&&this.op(e,">",o[t+1]||r-n)&&(i="left"===this.state.direction?t+1:t),-1===i},this)),this.settings.loop||(this.op(e,">",o[this.minimum()])?i=e=this.minimum():this.op(e,"<",o[this.maximum()])&&(i=e=this.maximum())),i},n.prototype.animate=function(e){this.trigger("translate"),this.state.inMotion=this.speed()>0,this.support3d?this.$stage.css({transform:"translate3d("+e+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:e+"px"}):this.$stage.animate({left:e},this.speed()/1e3,this.settings.fallbackEasing,t.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},n.prototype.current=function(t){if(t===s)return this._current;if(0===this._items.length)return s;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==s&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},n.prototype.invalidate=function(t){this._invalidated[t]=!0},n.prototype.reset=function(t){t=this.normalize(t),t!==s&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},n.prototype.normalize=function(e,i){var n=i?this._items.length:this._items.length+this._clones.length;return!t.isNumeric(e)||1>n?s:e=this._clones.length?(e%n+n)%n:Math.max(this.minimum(i),Math.min(this.maximum(i),e))},n.prototype.relative=function(t){return t=this.normalize(t),t-=this._clones.length/2,this.normalize(t,!0)},n.prototype.maximum=function(t){var e,i,s,n=0,o=this.settings;if(t)return this._items.length-1;if(!o.loop&&o.center)e=this._items.length-1;else if(o.loop||o.center)if(o.loop||o.center)e=this._items.length+o.items;else{if(!o.autoWidth&&!o.merge)throw"Can not detect maximum absolute position.";for(revert=o.rtl?1:-1,i=this.$stage.width()-this.$element.width();(s=this.coordinates(n))&&!(s*revert>=i);)e=++n}else e=this._items.length-o.items;return e},n.prototype.minimum=function(t){return t?0:this._clones.length/2},n.prototype.items=function(t){return t===s?this._items.slice():(t=this.normalize(t,!0),this._items[t])},n.prototype.mergers=function(t){return t===s?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},n.prototype.clones=function(e){var i=this._clones.length/2,n=i+this._items.length,o=function(t){return t%2===0?n+t/2:i-(t+1)/2};return e===s?t.map(this._clones,function(t,e){return o(e)}):t.map(this._clones,function(t,i){return t===e?o(i):null})},n.prototype.speed=function(t){return t!==s&&(this._speed=t),this._speed},n.prototype.coordinates=function(e){var i=null;return e===s?t.map(this._coordinates,t.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[e-1]||0))/2*(this.settings.rtl?-1:1)):i=this._coordinates[e-1]||0,i)},n.prototype.duration=function(t,e,i){return Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},n.prototype.to=function(i,s){if(this.settings.loop){var n=i-this.relative(this.current()),o=this.current(),r=this.current(),a=this.current()+n,h=0>r-a?!0:!1,l=this._clones.length+this._items.length;a=l-this.settings.items&&h===!0&&(o=r-this._items.length,this.reset(o)),e.clearTimeout(this.e._goToLoop),this.e._goToLoop=e.setTimeout(t.proxy(function(){this.speed(this.duration(this.current(),o+n,s)),this.current(o+n),this.update()},this),30)}else this.speed(this.duration(this.current(),i,s)),this.current(i),this.update()},n.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},n.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},n.prototype.transitionEnd=function(t){return t!==s&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0))?!1:(this.state.inMotion=!1,void this.trigger("translated"))},n.prototype.viewport=function(){var s;if(this.options.responsiveBaseElement!==e)s=t(this.options.responsiveBaseElement).width();else if(e.innerWidth)s=e.innerWidth;else{if(!i.documentElement||!i.documentElement.clientWidth)throw"Can not detect viewport width.";s=i.documentElement.clientWidth}return s},n.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(t.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},n.prototype.add=function(t,e){e=e===s?this._items.length:this.normalize(e,!0),this.trigger("add",{content:t,position:e}),0===this._items.length||e===this._items.length?(this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:t,position:e})},n.prototype.remove=function(t){t=this.normalize(t,!0),t!==s&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},n.prototype.addTriggerableEvents=function(){var e=t.proxy(function(e,i){return t.proxy(function(t){t.relatedTarget!==this&&(this.suppress([i]),e.apply(this,[].slice.call(arguments,1)),this.release([i]))},this)},this);t.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},t.proxy(function(t,i){this.$element.on(t+".owl.carousel",e(i,t+".owl.carousel"))},this))},n.prototype.watchVisibility=function(){function i(t){return t.offsetWidth>0&&t.offsetHeight>0}function s(){i(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),e.clearInterval(this.e._checkVisibile))}i(this.$element.get(0))||(this.$element.addClass("owl-hidden"),e.clearInterval(this.e._checkVisibile),this.e._checkVisibile=e.setInterval(t.proxy(s,this),500))},n.prototype.preloadAutoWidthImages=function(e){var i,s,n,o;i=0,s=this,e.each(function(r,a){n=t(a),o=new Image,o.onload=function(){i++,n.attr("src",o.src),n.css("opacity",1),i>=e.length&&(s.state.imagesLoaded=!0,s.initialize())},o.src=n.attr("src")||n.attr("data-src")||n.attr("data-src-retina")})},n.prototype.destroy=function(){this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),this.settings.responsive!==!1&&t(e).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd);for(var s in this._plugins)this._plugins[s].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),t(i).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},n.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case"<":return s?t>i:i>t;case">":return s?i>t:t>i;case">=":return s?i>=t:t>=i;case"<=":return s?t>=i:i>=t}},n.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent("on"+e,i)},n.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent("on"+e,i)},n.prototype.trigger=function(e,i,s){var n={item:{count:this._items.length,index:this.current()}},o=t.camelCase(t.grep(["on",e,s],function(t){return t}).join("-").toLowerCase()),r=t.Event([e,"owl",s||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},n,i));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(r)}),this.$element.trigger(r),this.settings&&"function"==typeof this.settings[o]&&this.settings[o].apply(this,r)),r},n.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},n.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},n.prototype.browserSupport=function(){if(this.support3d=l(),this.support3d){this.transformVendor=h();var t=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"];this.transitionEndVendor=t[a()],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=e.orientation},t.fn.owlCarousel=function(e){return this.each(function(){t(this).data("owlCarousel")||t(this).data("owlCarousel",new n(this,e))})},t.fn.owlCarousel.Constructor=n}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type))for(var i=this._core.settings,s=i.center&&Math.ceil(i.items/2)||i.items,n=i.center&&-1*s||0,o=(e.property&&e.property.value||this._core.current())+n,r=this._core.clones().length,a=t.proxy(function(t,e){this.load(e)},this);n++-1||(n.each(t.proxy(function(i,s){var n,o=t(s),r=e.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src");this._core.trigger("load",{element:o,url:r},"lazy"),o.is("img")?o.one("load.owl.lazy",t.proxy(function(){o.css("opacity",1),this._core.trigger("loaded",{element:o,url:r},"lazy")},this)).attr("src",r):(n=new Image,n.onload=t.proxy(function(){o.css({"background-image":"url("+r+")",opacity:"1"}),this._core.trigger("loaded",{element:o,url:r},"lazy")},this),n.src=r)},this)),this._loaded.push(s.get(0)))},i.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||window.jQuery,window,document),function(t){var e=function(i){this._core=i,this._handlers={"initialized.owl.carousel":t.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":t.proxy(function(t){this._core.settings.autoHeight&&"position"==t.property.name&&this.update()},this),"loaded.owl.lazy":t.proxy(function(t){this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(t,e,i){var s=function(e){this._core=e,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":t.proxy(function(t){this._core.settings.video&&!this.isInFullScreen()&&t.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":t.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":t.proxy(function(e){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))},this)},this._core.options=t.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.play(t)},this))};s.Defaults={video:!1,videoHeight:!1,videoWidth:!1},s.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":"youtube",s=t.attr("data-vimeo-id")||t.attr("data-youtube-id"),n=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if(s=r.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),s[3].indexOf("youtu")>-1)i="youtube";else{if(!(s[3].indexOf("vimeo")>-1))throw new Error("Video URL not supported.");i="vimeo"}s=s[6],this._videos[r]={type:i,id:s,width:n,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},s.prototype.thumbnail=function(e,i){var s,n,o,r=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",a=e.find("img"),h="src",l="",c=this._core.settings,d=function(t){n='
    ',s=c.lazyLoad?'
    ':'
    ',e.after(s),e.after(n)};return e.wrap('
    "),this._core.settings.lazyLoad&&(h="data-src",l="owl-lazy"),a.length?(d(a.attr(h)),a.remove(),!1):void("youtube"===i.type?(o="http://img.youtube.com/vi/"+i.id+"/hqdefault.jpg",d(o)):"vimeo"===i.type&&t.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){o=t[0].thumbnail_large,d(o)}}))},s.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},s.prototype.play=function(e){this._core.trigger("play",null,"video"),this._playing&&this.stop();var i,s,n=t(e.target||e.srcElement),o=n.closest("."+this._core.settings.itemClass),r=this._videos[o.attr("data-video")],a=r.width||"100%",h=r.height||this._core.$stage.height();"youtube"===r.type?i='':"vimeo"===r.type&&(i=''),o.addClass("owl-video-playing"),this._playing=o,s=t('
    '+i+"
    "),n.after(s)},s.prototype.isInFullScreen=function(){var s=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return s&&t(s).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),s&&this._fullscreen&&this._playing?!1:this._fullscreen?(this._fullscreen=!1,!1):this._playing&&this._core.state.orientation!==e.orientation?(this._core.state.orientation=e.orientation,!1):!0},s.prototype.destroy=function(){var t,e;this._core.$element.off("click.owl.video");for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this.core=e,this.core.options=t.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=s,this.next=s,this.handlers={"change.owl.carousel":t.proxy(function(t){"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){this.swapping="translated"==t.type},this),"translate.owl.carousel":t.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var e,i=t.proxy(this.clear,this),s=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),s.css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i)),o&&n.addClass("animated owl-animated-in").addClass(o).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i))}},n.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=n}(window.Zepto||window.jQuery,window,document),function(t,e,i){var s=function(e){this.core=e,this.core.options=t.extend({},s.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":t.proxy(function(){this.autoplay() },this),"play.owl.autoplay":t.proxy(function(t,e,i){this.play(e,i)},this),"stop.owl.autoplay":t.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};s.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},s.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(e.clearInterval(this.interval),this.interval=e.setInterval(t.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):e.clearInterval(this.interval)},s.prototype.play=function(){return i.hidden===!0||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:this.core.settings.autoplay===!1?void e.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},s.prototype.stop=function(){e.clearInterval(this.interval)},s.prototype.pause=function(){e.clearInterval(this.interval)},s.prototype.destroy=function(){var t,i;e.clearInterval(this.interval);for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=s}(window.Zepto||window.jQuery,window,document),function(t){"use strict";var e=function(i){this._core=i,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){this._core.settings.dotsData&&this._templates.push(t(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":t.proxy(function(e){this._core.settings.dotsData&&this._templates.splice(e.position,0,t(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":t.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"change.owl.carousel":t.proxy(function(t){if("position"==t.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var e=this._core.current(),i=this._core.maximum(),s=this._core.minimum();t.data=t.property.value>i?e>=i?s:i:t.property.value").addClass(s.dotClass).append(t("")).prop("outerHTML")]),s.navContainer&&s.dotsContainer||(this._controls.$container=t("
    ").addClass(s.controlsClass).appendTo(this.$element)),this._controls.$indicators=s.dotsContainer?t(s.dotsContainer):t("
    ").hide().addClass(s.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",t.proxy(function(e){var i=t(e.target).parent().is(this._controls.$indicators)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(i,s.dotsSpeed)},this)),e=s.navContainer?t(s.navContainer):t("
    ").addClass(s.navContainerClass).prependTo(this._controls.$container),this._controls.$next=t("<"+s.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(s.navClass[0]).html(s.navText[0]).hide().prependTo(e).on("click",t.proxy(function(){this.prev(s.navSpeed)},this)),this._controls.$next.addClass(s.navClass[1]).html(s.navText[1]).hide().appendTo(e).on("click",t.proxy(function(){this.next(s.navSpeed)},this));for(i in this._overrides)this._core[i]=t.proxy(this[i],this)},e.prototype.destroy=function(){var t,e,i,s;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i,s=this._core.settings,n=this._core.clones().length/2,o=n+this._core.items().length,r=s.center||s.autoWidth||s.dotData?1:s.dotsEach||s.items;if("page"!==s.slideBy&&(s.slideBy=Math.min(s.slideBy,s.items)),s.dots||"page"==s.slideBy)for(this._pages=[],t=n,e=0,i=0;o>t;t++)(e>=r||0===e)&&(this._pages.push({start:t-n,end:t-n+r-1}),e=0,++i),e+=this._core.mergers(this._core.relative(t))},e.prototype.draw=function(){var e,i,s="",n=this._core.settings,o=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!n.nav||n.loop||n.navRewind||(this._controls.$previous.toggleClass("disabled",0>=o),this._controls.$next.toggleClass("disabled",o>=this._core.maximum())),this._controls.$previous.toggle(n.nav),this._controls.$next.toggle(n.nav),n.dots){if(e=this._pages.length-this._controls.$indicators.children().length,n.dotData&&0!==e){for(i=0;i0?(s=new Array(e+1).join(this._templates[0]),this._controls.$indicators.append(s)):0>e&&this._controls.$indicators.children().slice(e).remove();this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(t.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(n.dots)},e.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotData?1:i.dotsEach||i.items)}},e.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,function(t){return t.start<=e&&t.end>=e}).pop()},e.prototype.getPosition=function(e){var i,s,n=this._core.settings;return"page"==n.slideBy?(i=t.inArray(this.current(),this._pages),s=this._pages.length,e?++i:--i,i=this._pages[(i%s+s)%s].start):(i=this._core.relative(this._core.current()),s=this._core.items().length,e?i+=n.slideBy:i-=n.slideBy),i},e.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},e.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},e.prototype.to=function(e,i,s){var n;s?t.proxy(this._overrides.to,this._core)(e,i):(n=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%n+n)%n].start,i))},t.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(t,e){"use strict";var i=function(s){this._core=s,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy(function(){"URLHash"==this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":t.proxy(function(e){var i=t(e.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[i]=e.content},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy(function(){var t=e.location.hash.substring(1),i=this._core.$stage.children(),s=this._hashes[t]&&i.index(this._hashes[t])||0;return t?void this._core.to(s,!1,!0):!1},this))};i.Defaults={URLhashListener:!1},i.prototype.destroy=function(){var i,s;t(e).off("hashchange.owl.navigation");for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(s in Object.getOwnPropertyNames(this))"function"!=typeof this[s]&&(this[s]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||window.jQuery,window,document); !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(e){function t(t){var a={},l=/^jQuery\d+$/;return e.each(t.attributes,function(e,t){t.specified&&!l.test(t.name)&&(a[t.name]=t.value)}),a}function a(t,a){var l=this,o=e(l);if(l.value==o.attr("placeholder")&&o.hasClass(p.customClass))if(o.data("placeholder-password")){if(o=o.hide().nextAll('input[type="password"]:first').show().attr("id",o.removeAttr("id").data("placeholder-id")),t===!0)return o[0].value=a;o.focus()}else l.value="",o.removeClass(p.customClass),l==r()&&l.select()}function l(){var l,r=this,o=e(r),n=this.id;if(""===r.value){if("password"===r.type){if(!o.data("placeholder-textinput")){try{l=o.clone().attr({type:"text"})}catch(s){l=e("").attr(e.extend(t(this),{type:"text"}))}l.removeAttr("name").data({"placeholder-password":o,"placeholder-id":n}).bind("focus.placeholder",a),o.data({"placeholder-textinput":l,"placeholder-id":n}).before(l)}o=o.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",n).show()}o.addClass(p.customClass),o[0].value=o.attr("placeholder")}else o.removeClass(p.customClass)}function r(){try{return document.activeElement}catch(e){}}var o,n,s="[object OperaMini]"==Object.prototype.toString.call(window.operamini),c="placeholder"in document.createElement("input")&&!s,u="placeholder"in document.createElement("textarea")&&!s,d=e.valHooks,i=e.propHooks;if(c&&u)n=e.fn.placeholder=function(){return this},n.input=n.textarea=!0;else{var p={};n=e.fn.placeholder=function(t){var r={customClass:"placeholder"};p=e.extend({},r,t);var o=this;return o.filter((c?"textarea":":input")+"[placeholder]").not("."+p.customClass).bind({"focus.placeholder":a,"blur.placeholder":l}).data("placeholder-enabled",!0).trigger("blur.placeholder"),o},n.input=c,n.textarea=u,o={get:function(t){var a=e(t),l=a.data("placeholder-password");return l?l[0].value:a.data("placeholder-enabled")&&a.hasClass(p.customClass)?"":t.value},set:function(t,o){var n=e(t),s=n.data("placeholder-password");return s?s[0].value=o:n.data("placeholder-enabled")?(""===o?(t.value=o,t!=r()&&l.call(t)):n.hasClass(p.customClass)?a.call(t,!0,o)||(t.value=o):t.value=o,n):t.value=o}},c||(d.input=o,i.value=o),u||(d.textarea=o,i.value=o),e(function(){e(document).delegate("form","submit.placeholder",function(){var t=e("."+p.customClass,this).each(a);setTimeout(function(){t.each(l)},10)})}),e(window).bind("beforeunload.placeholder",function(){e("."+p.customClass).each(function(){this.value=""})})}}); !function(t,i){"use strict";function n(n,o){this.$input=t(n),this.$rating=t("").css({cursor:"default"}).insertBefore(this.$input),this.options=function(n){return n.start=parseInt(n.start,10),n.start=isNaN(n.start)?i:n.start,n.stop=parseInt(n.stop,10),n.stop=isNaN(n.stop)?n.start+s||i:n.stop,n.step=parseInt(n.step,10)||i,n.fractions=Math.abs(parseInt(n.fractions,10))||i,n.scale=Math.abs(parseInt(n.scale,10))||i,n=t.extend({},t.fn.rating.defaults,n),n.filledSelected=n.filledSelected||n.filled,n}(t.extend({},this.$input.data(),o)),this._init()}var s=5;n.prototype={_init:function(){for(var n=this,s=this.$input,o=this.$rating,a=function(t){return function(n){s.prop("disabled")||s.prop("readonly")||s.data("readonly")!==i||t.call(this,n)}},e=1;e<=this._rateToIndex(this.options.stop);e++){var r=t('
    ').css({display:"inline-block",position:"relative"});t('
    ').appendTo(r),t('
    ').append("").css({display:"inline-block",position:"absolute",overflow:"hidden",left:0,right:0,width:0}).appendTo(r),o.append(r),this.options.extendSymbol.call(r,this._indexToRate(e))}this._updateRate(s.val()),s.on("change",function(){n._updateRate(t(this).val())});var l,p=function(i){var s=t(i.currentTarget),o=Math.abs((i.pageX||i.originalEvent.touches[0].pageX)-(("rtl"===s.css("direction")&&s.width())+s.offset().left));return o=o>0?o:.1*n.options.scale,s.index()+o/s.width()};o.on("mousedown touchstart",".rating-symbol",a(function(t){s.val(n._indexToRate(p(t))).change()})).on("mousemove touchmove",".rating-symbol",a(function(s){var o=n._roundToFraction(p(s));o!==l&&(l!==i&&t(this).trigger("rating.rateleave"),l=o,t(this).trigger("rating.rateenter",[n._indexToRate(l)])),n._fillUntil(o)})).on("mouseleave touchend",".rating-symbol",a(function(){l=i,t(this).trigger("rating.rateleave"),n._fillUntil(n._rateToIndex(parseFloat(s.val())))}))},_fillUntil:function(t){var i=this.$rating,n=Math.floor(t);i.find(".rating-symbol-background").css("visibility","visible").slice(0,n).css("visibility","hidden");var s=i.find(".rating-symbol-foreground");s.width(0),s.slice(0,n).width("auto").find("span").attr("class",this.options.filled),s.eq(t%1?n:n-1).find("span").attr("class",this.options.filledSelected),s.eq(n).width(t%1*100+"%")},_indexToRate:function(t){return this.options.start+Math.floor(t)*this.options.step+this.options.step*this._roundToFraction(t%1)},_rateToIndex:function(t){return(t-this.options.start)/this.options.step},_roundToFraction:function(t){var i=Math.ceil(t%1*this.options.fractions)/this.options.fractions,n=Math.pow(10,this.options.scale);return Math.floor(t)+Math.floor(i*n)/n},_contains:function(t){var i=this.options.step>0?this.options.start:this.options.stop,n=this.options.step>0?this.options.stop:this.options.start;return t>=i&&n>=t},_updateRate:function(t){var i=parseFloat(t);this._contains(i)&&(this._fillUntil(this._rateToIndex(i)),this.$input.val(i))},rate:function(t){return t===i?this.$input.val():void this._updateRate(t)}},t.fn.rating=function(i){var s,o=Array.prototype.slice.call(arguments,1);return this.each(function(){var a=t(this),e=a.data("rating");e||a.data("rating",e=new n(this,i)),"string"==typeof i&&"_"!==i[0]&&(s=e[i].apply(e,o))}),s||this},t.fn.rating.defaults={filled:"glyphicon glyphicon-star",filledSelected:i,empty:"glyphicon glyphicon-star-empty",start:0,stop:s,step:1,fractions:1,scale:3,extendSymbol:function(){}},t(function(){t("input.rating").rating()})}(jQuery); !function(e,t,n){"use strict";e.fn.ReSmenu=function(i){function s(t,n,i){i=i||"",e(t).children("li").each(function(){var t=e(this).children("a").attr("href");(void 0===t||t===!1||"#"===t||0===t.length)&&(t=""),e("