var ua,domReady,cssHelper;typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t});ua={toString:function(){return navigator.userAgent},test:function(n){return this.toString().toLowerCase().indexOf(n.toLowerCase())>-1}};ua.version=(ua.toString().toLowerCase().match(/[\s\S]+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1];ua.webkit=ua.test("webkit");ua.gecko=ua.test("gecko")&&!ua.webkit;ua.opera=ua.test("opera");ua.ie=ua.test("msie")&&!ua.opera;ua.ie6=ua.ie&&document.compatMode&&typeof document.documentElement.style.maxHeight=="undefined";ua.ie7=ua.ie&&document.documentElement&&typeof document.documentElement.style.maxHeight!="undefined"&&typeof XDomainRequest=="undefined";ua.ie8=ua.ie&&typeof XDomainRequest!="undefined";domReady=function(){var t=[],n=function(){if(!arguments.callee.done){arguments.callee.done=!0;for(var n=0;n<t.length;n++)t[n]()}};return document.addEventListener&&document.addEventListener("DOMContentLoaded",n,!1),ua.ie&&(function(){try{document.documentElement.doScroll("left")}catch(t){setTimeout(arguments.callee,50);return}n()}(),document.onreadystatechange=function(){document.readyState==="complete"&&(document.onreadystatechange=null,n())}),ua.webkit&&document.readyState&&function(){document.readyState!=="loading"?n():setTimeout(arguments.callee,10)}(),window.onload=n,function(n){return typeof n=="function"&&(t[t.length]=n),n}}();cssHelper=function(){var t={BLOCKS:/[^\s{][^{]*\{(?:[^{}]*\{[^{}]*\}[^{}]*|[^{}]*)*\}/g,BLOCKS_INSIDE:/[^\s{][^{]*\{[^{}]*\}/g,DECLARATIONS:/[a-zA-Z\-]+[^;]*:[^;]+;/g,RELATIVE_URLS:/url\(['"]?([^\/\)'"][^:\)'"]+)['"]?\)/g,REDUNDANT_COMPONENTS:/(?:\/\*([^*\\\\]|\*(?!\/))+\*\/|@import[^;]+;)/g,REDUNDANT_WHITESPACE:/\s*(,|:|;|\{|\})\s*/g,MORE_WHITESPACE:/\s{2,}/g,FINAL_SEMICOLONS:/;\}/g,NOT_WHITESPACE:/\S+/g},i,s=!1,e=[],c=function(n){typeof n=="function"&&(e[e.length]=n)},w=function(){for(var n=0;n<e.length;n++)e[n](i)},r={},o=function(n,t){var i,u;if(r[n]&&(i=r[n].listeners,i))for(u=0;u<i.length;u++)i[u](t)},b=function(n,t,i){var r,u;if(ua.ie&&!window.XMLHttpRequest&&(window.XMLHttpRequest=function(){return new ActiveXObject("Microsoft.XMLHTTP")}),!XMLHttpRequest)return"";r=new XMLHttpRequest;try{r.open("get",n,!0);r.setRequestHeader("X_REQUESTED_WITH","XMLHttpRequest")}catch(f){i();return}u=!1;setTimeout(function(){u=!0},5e3);document.documentElement.style.cursor="progress";r.onreadystatechange=function(){r.readyState!==4||u||(!r.status&&location.protocol==="file:"||r.status>=200&&r.status<300||r.status===304||navigator.userAgent.indexOf("Safari")>-1&&typeof r.status=="undefined"?t(r.responseText):i(),document.documentElement.style.cursor="",r=null)};r.send("")},l=function(n){return n=n.replace(t.REDUNDANT_COMPONENTS,""),n=n.replace(t.REDUNDANT_WHITESPACE,"$1"),n=n.replace(t.MORE_WHITESPACE," "),n.replace(t.FINAL_SEMICOLONS,"}")},u={mediaQueryList:function(n){var r={},s=n.indexOf("{"),h=n.substring(0,s),i,f;n=n.substring(s+1,n.length-1);var e=[],o=[],c=h.toLowerCase().substring(7).split(",");for(i=0;i<c.length;i++)e[e.length]=u.mediaQuery(c[i],r);if(f=n.match(t.BLOCKS_INSIDE),f!==null)for(i=0;i<f.length;i++)o[o.length]=u.rule(f[i],r);return r.getMediaQueries=function(){return e},r.getRules=function(){return o},r.getListText=function(){return h},r.getCssText=function(){return n},r},mediaQuery:function(n,i){var f,r,o;n=n||"";var s=!1,u,e=[],c=!0,h=n.match(t.NOT_WHITESPACE);for(f=0;f<h.length;f++)r=h[f],u||r!=="not"&&r!=="only"?u?r.charAt(0)==="("&&(o=r.substring(1,r.length-1).split(":"),e[e.length]={mediaFeature:o[0],value:o[1]||null}):u=r:r==="not"&&(s=!0);return{getList:function(){return i||null},getValid:function(){return c},getNot:function(){return s},getMediaType:function(){return u},getExpressions:function(){return e}}},rule:function(n,t){for(var i={},e=n.indexOf("{"),o=n.substring(0,e),h=o.split(","),r=[],s=n.substring(e+1,n.length-1).split(";"),f=0;f<s.length;f++)r[r.length]=u.declaration(s[f],i);return i.getMediaQueryList=function(){return t||null},i.getSelectors=function(){return h},i.getSelectorText=function(){return o},i.getDeclarations=function(){return r},i.getPropertyValue=function(n){for(var t=0;t<r.length;t++)if(r[t].getProperty()===n)return r[t].getValue();return null},i},declaration:function(n,t){var i=n.indexOf(":"),r=n.substring(0,i),u=n.substring(i+1);return{getRule:function(){return t||null},getProperty:function(){return r},getValue:function(){return u}}}},a=function(n){var r,h,v,o,c,l;if(typeof n.cssHelperText=="string"){var f={mediaQueryLists:[],rules:[],selectors:{},declarations:[],properties:{}},a=f.mediaQueryLists,e=f.rules,s=n.cssHelperText.match(t.BLOCKS);if(s!==null)for(r=0;r<s.length;r++)s[r].substring(0,7)==="@media "?(a[a.length]=u.mediaQueryList(s[r]),e=f.rules=e.concat(a[a.length-1].getRules())):e[e.length]=u.rule(s[r]);for(h=f.selectors,v=function(n){for(var r=n.getSelectors(),t,i=0;i<r.length;i++)t=r[i],h[t]||(h[t]=[]),h[t][h[t].length]=n},r=0;r<e.length;r++)v(e[r]);for(o=f.declarations,r=0;r<e.length;r++)o=f.declarations=o.concat(e[r].getDeclarations());for(c=f.properties,r=0;r<o.length;r++)l=o[r].getProperty(),c[l]||(c[l]=[]),c[l][c[l].length]=o[r];return n.cssHelperParsed=f,i[i.length]=n,f}},v=function(n,t){return n.cssHelperText=l(t||n.innerHTML),a(n)},k=function(){var r,u;s=!0;i=[];var n=[],f=function(){for(var i,t=0;t<n.length;t++)a(n[t]);for(i=document.getElementsByTagName("style"),t=0;t<i.length;t++)v(i[t]);s=!1;w()},e=document.getElementsByTagName("link");for(r=0;r<e.length;r++)u=e[r],u.getAttribute("rel").indexOf("style")>-1&&u.href&&u.href.length!==0&&!u.disabled&&(n[n.length]=u);if(n.length>0){var o=0,h=function(){o++;o===n.length&&f()},c=function(n){var i=n.href;b(i,function(r){r=l(r).replace(t.RELATIVE_URLS,"url("+i.substring(0,i.lastIndexOf("/"))+"/$1)");n.cssHelperText=r;h()},h)};for(r=0;r<n.length;r++)c(n[r])}else f()},y={mediaQueryLists:"array",rules:"array",selectors:"object",declarations:"array",properties:"object"},n={mediaQueryLists:null,rules:null,selectors:null,declarations:null,properties:null},p=function(t,i){var u,r;if(n[t]!==null){if(y[t]==="array")return n[t]=n[t].concat(i);u=n[t];for(r in i)i.hasOwnProperty(r)&&(u[r]=u[r]?u[r].concat(i[r]):i[r]);return u}},f=function(t){n[t]=y[t]==="array"?[]:{};for(var r=0;r<i.length;r++)p(t,i[r].cssHelperParsed[t]);return n[t]},h;return domReady(function(){for(var t=document.body.getElementsByTagName("*"),n=0;n<t.length;n++)t[n].checkedByCssHelper=!0;document.implementation.hasFeature("MutationEvents","2.0")||window.MutationEvent?document.body.addEventListener("DOMNodeInserted",function(n){var t=n.target;t.nodeType===1&&(o("DOMElementInserted",t),t.checkedByCssHelper=!0)},!1):setInterval(function(){for(var t=document.body.getElementsByTagName("*"),n=0;n<t.length;n++)t[n].checkedByCssHelper||(o("DOMElementInserted",t[n]),t[n].checkedByCssHelper=!0)},1e3)}),h=function(n){return typeof window.innerWidth!="undefined"?window["inner"+n]:typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0?document.documentElement["client"+n]:void 0},{addStyle:function(n,t){var i=document.createElement("style");return i.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),i.addedWithCssHelper=!0,typeof t=="undefined"||t===!0?cssHelper.parsed(function(){var r=v(i,n),t;for(t in r)r.hasOwnProperty(t)&&p(t,r[t]);o("newStyleParsed",i)}):i.parsingDisallowed=!0,i},removeStyle:function(n){return n.parentNode.removeChild(n)},parsed:function(n){s?c(n):typeof i!="undefined"?typeof n=="function"&&n(i):(c(n),k())},mediaQueryLists:function(t){cssHelper.parsed(function(){t(n.mediaQueryLists||f("mediaQueryLists"))})},rules:function(t){cssHelper.parsed(function(){t(n.rules||f("rules"))})},selectors:function(t){cssHelper.parsed(function(){t(n.selectors||f("selectors"))})},declarations:function(t){cssHelper.parsed(function(){t(n.declarations||f("declarations"))})},properties:function(t){cssHelper.parsed(function(){t(n.properties||f("properties"))})},broadcast:o,addListener:function(n,t){typeof t=="function"&&(r[n]||(r[n]={listeners:[]}),r[n].listeners[r[n].listeners.length]=t)},removeListener:function(n,t){var u,i;if(typeof t=="function"&&r[n])for(u=r[n].listeners,i=0;i<u.length;i++)u[i]===t&&(u.splice(i,1),i-=1)},getViewportWidth:function(){return h("Width")},getViewportHeight:function(){return h("Height")}}}();domReady(function(){var n,r={LENGTH_UNIT:/[0-9]+(em|ex|px|in|cm|mm|pt|pc)$/,RESOLUTION_UNIT:/[0-9]+(dpi|dpcm)$/,ASPECT_RATIO:/^[0-9]+\/[0-9]+$/,ABSOLUTE_VALUE:/^[0-9]*(\.[0-9]+)*$/},i=[],u=function(){var r="css3-mediaqueries-test",n=document.createElement("div"),t,i;return n.id=r,t=cssHelper.addStyle("@media all and (width) { #"+r+" { width: 1px !important; } }",!1),document.body.appendChild(n),i=n.offsetWidth===1,t.parentNode.removeChild(t),n.parentNode.removeChild(n),u=function(){return i},i},h=function(){n=document.createElement("div");n.style.cssText="position:absolute;top:-9999em;left:-9999em;margin:0;border:none;padding:0;width:1em;font-size:1em;";document.body.appendChild(n);n.offsetWidth!==16&&(n.style.fontSize=16/n.offsetWidth+"em");n.style.width=""},f=function(t){n.style.width=t;var i=n.offsetWidth;return n.style.width="",i},c=function(n,t){var u=n.length,e=n.substring(0,4)==="min-",o=!e&&n.substring(0,4)==="max-",s,i,y,h,c,l,a,v;return t!==null&&(r.LENGTH_UNIT.exec(t)?(s="length",i=f(t)):r.RESOLUTION_UNIT.exec(t)?(s="resolution",i=parseInt(t,10),y=t.substring((i+"").length)):r.ASPECT_RATIO.exec(t)?(s="aspect-ratio",i=t.split("/")):r.ABSOLUTE_VALUE?(s="absolute",i=t):s="unknown"),"device-width"===n.substring(u-12,u)?(h=screen.width,t!==null?s==="length"?e&&h>=i||o&&h<i||!e&&!o&&h===i:!1:h>0):"device-height"===n.substring(u-13,u)?(c=screen.height,t!==null?s==="length"?e&&c>=i||o&&c<i||!e&&!o&&c===i:!1:c>0):"width"===n.substring(u-5,u)?(h=document.documentElement.clientWidth||document.body.clientWidth,t!==null?s==="length"?e&&h>=i||o&&h<i||!e&&!o&&h===i:!1:h>0):"height"===n.substring(u-6,u)?(c=document.documentElement.clientHeight||document.body.clientHeight,t!==null?s==="length"?e&&c>=i||o&&c<i||!e&&!o&&c===i:!1:c>0):"device-aspect-ratio"===n.substring(u-19,u)?s==="aspect-ratio"&&screen.width*i[1]==screen.height*i[0]:"color-index"===n.substring(u-11,u)?(l=Math.pow(2,screen.colorDepth),t!==null?s==="absolute"?e&&l>=i||o&&l<i||!e&&!o&&l===i:!1:l>0):"color"===n.substring(u-5,u)?(a=screen.colorDepth,t!==null?s==="absolute"?e&&a>=i||o&&a<i||!e&&!o&&a===i:!1:a>0):"resolution"===n.substring(u-10,u)?(v=y==="dpcm"?f("1cm"):f("1in"),t!==null?s==="resolution"?e&&v>=i||o&&v<i||!e&&!o&&v===i:!1:v>0):!1},l=function(n){var i=n.getValid(),r=n.getExpressions(),f=r.length,t,u;if(f>0){for(t=0;t<f&&i;t++)i=c(r[t].mediaFeature,r[t].value);return u=n.getNot(),i&&!u||u&&!i}},a=function(n){for(var f=n.getMediaQueries(),e={},r,u,o,t=0;t<f.length;t++)l(f[t])&&(e[f[t].getMediaType()]=!0);r=[];u=0;for(o in e)e.hasOwnProperty(o)&&(u>0&&(r[u++]=","),r[u++]=o);r.length>0&&(i[i.length]=cssHelper.addStyle("@media "+r.join("")+"{"+n.getCssText()+"}",!1))},o=function(n){for(var t=0;t<n.length;t++)a(n[t]);ua.ie?(document.documentElement.style.display="block",setTimeout(function(){document.documentElement.style.display=""},0),setTimeout(function(){cssHelper.broadcast("cssMediaQueriesTested")},100)):cssHelper.broadcast("cssMediaQueriesTested")},s=function(){for(var n=0;n<i.length;n++)cssHelper.removeStyle(i[n]);i=[];cssHelper.mediaQueryLists(o)},e=0,v=function(){var t=cssHelper.getViewportWidth(),i=cssHelper.getViewportHeight(),n,r,f;ua.ie&&(n=document.createElement("div"),n.style.position="absolute",n.style.top="-9999em",n.style.overflow="scroll",document.body.appendChild(n),e=n.offsetWidth-n.clientWidth,document.body.removeChild(n));f=function(){var n=cssHelper.getViewportWidth(),f=cssHelper.getViewportHeight();(Math.abs(n-t)>e||Math.abs(f-i)>e)&&(t=n,i=f,clearTimeout(r),r=setTimeout(function(){u()?cssHelper.broadcast("cssMediaQueriesTested"):s()},500))};window.onresize=function(){var n=window.onresize||function(){};return function(){n();f()}}()},t=document.documentElement;return t.style.marginLeft="-32767px",setTimeout(function(){t.style.marginTop=""},2e4),function(){u()?t.style.marginLeft="":(cssHelper.addListener("newStyleParsed",function(n){o(n.cssHelperParsed.mediaQueryLists)}),cssHelper.addListener("cssMediaQueriesTested",function(){ua.ie&&(t.style.width="1px");setTimeout(function(){t.style.width="";t.style.marginLeft=""},0);cssHelper.removeListener("cssMediaQueriesTested",arguments.callee)}),h(),s());v()}}());try{document.execCommand("BackgroundImageCache",!1,!0)}catch(e){}(function(n){typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],n):n(jQuery)})(function(n){function it(t){return t&&t.allowPageScroll===undefined&&(t.swipe!==undefined||t.swipeStatus!==undefined)&&(t.allowPageScroll=v),t.click!==undefined&&t.tap===undefined&&(t.tap=t.click),t||(t={}),t=n.extend({},n.fn.swipe.defaults,t),this.each(function(){var r=n(this),i=r.data(h);i||(i=new rt(this,t),r.data(h,i))})}function rt(it,rt){function ai(t){if(!cu()&&!(n(t.target).closest(rt.excludedElements,ft).length>0)){var u=t.originalEvent?t.originalEvent:t,f,e=r?u.touches[0]:u;return(et=tt,r?ot=u.touches.length:t.preventDefault(),ht=0,ct=null,pt=null,st=0,bt=0,kt=0,vt=1,yt=0,lt=au(),si=yu(),yr(),!r||ot===rt.fingers||rt.fingers===c||ii()?(di(0,e),ir=wt(),ot==2&&(di(1,u.touches[1]),bt=kt=gi(lt[0].start,lt[1].start)),(rt.swipeStatus||rt.pinchStatus)&&(f=at(u,et))):f=!1,f===!1)?(et=i,at(u,et),f):(ri(!0),null)}}function vi(n){var u=n.originalEvent?n.originalEvent:n,o,h,f,e,l;et===t||et===i||pr()||(h=r?u.touches[0]:u,f=wr(h),hi=wt(),r&&(ot=u.touches.length),et=s,ot==2&&(bt==0?(di(1,u.touches[1]),bt=kt=gi(lt[0].start,lt[1].start)):(wr(u.touches[1]),kt=gi(lt[0].end,lt[1].end),pt=wu(lt[0].end,lt[1].end)),vt=pu(bt,kt),yt=Math.abs(bt-kt)),ot===rt.fingers||rt.fingers===c||!r||ii()?(ct=du(f.start,f.end),gr(n,ct),ht=bu(f.start,f.end),st=kr(),vu(ct,ht),(rt.swipeStatus||rt.pinchStatus)&&(o=at(u,et)),(!rt.triggerOnTouchEnd||rt.triggerOnTouchLeave)&&(e=!0,rt.triggerOnTouchLeave&&(l=gu(this),e=nf(f.end,l)),!rt.triggerOnTouchEnd&&e?et=wi(s):rt.triggerOnTouchLeave&&!e&&(et=wi(t)),(et==i||et==t)&&at(u,et))):(et=i,at(u,et)),o===!1&&(et=i,at(u,et)))}function yi(n){var u=n.originalEvent;return r&&u.touches.length>0?(hu(),!0):(pr()&&(ot=rr),n.preventDefault(),hi=wt(),st=kr(),bi()?(et=i,at(u,et)):rt.triggerOnTouchEnd||rt.triggerOnTouchEnd==!1&&et===s?(et=t,at(u,et)):!rt.triggerOnTouchEnd&&ar()?(et=t,ni(u,et,y)):et===s&&(et=i,at(u,et)),ri(!1),null)}function gt(){ot=0;hi=0;ir=0;bt=0;kt=0;vt=1;yr();ri(!1)}function pi(n){var i=n.originalEvent;rt.triggerOnTouchLeave&&(et=wi(t),at(i,et))}function ur(){ft.unbind(ei,ai);ft.unbind(oi,gt);ft.unbind(nr,vi);ft.unbind(tr,yi);ti&&ft.unbind(ti,pi);ri(!1)}function wi(n){var r=n,f=er(),u=fr(),e=bi();return!f||e?r=i:u&&n==s&&(!rt.triggerOnTouchEnd||rt.triggerOnTouchLeave)?r=t:!u&&n==t&&rt.triggerOnTouchLeave&&(r=i),r}function at(n,u){var f=undefined;return tu()||hr()?f=ni(n,u,k):(nu()||ii())&&f!==!1&&(f=ni(n,u,d)),ou()&&f!==!1?f=ni(n,u,g):su()&&f!==!1?f=ni(n,u,nt):eu()&&f!==!1&&(f=ni(n,u,y)),u===i&&gt(n),u===t&&(r?n.touches.length==0&&gt(n):gt(n)),f}function ni(r,s,h){var c=undefined;if(h==k){if(ft.trigger("swipeStatus",[s,ct||null,ht||0,st||0,ot]),rt.swipeStatus&&(c=rt.swipeStatus.call(ft,r,s,ct||null,ht||0,st||0,ot),c===!1))return!1;if(s==t&&sr()){if(ft.trigger("swipe",[ct,ht,st,ot]),rt.swipe&&(c=rt.swipe.call(ft,r,ct,ht,st,ot),c===!1))return!1;switch(ct){case u:ft.trigger("swipeLeft",[ct,ht,st,ot]);rt.swipeLeft&&(c=rt.swipeLeft.call(ft,r,ct,ht,st,ot));break;case f:ft.trigger("swipeRight",[ct,ht,st,ot]);rt.swipeRight&&(c=rt.swipeRight.call(ft,r,ct,ht,st,ot));break;case e:ft.trigger("swipeUp",[ct,ht,st,ot]);rt.swipeUp&&(c=rt.swipeUp.call(ft,r,ct,ht,st,ot));break;case o:ft.trigger("swipeDown",[ct,ht,st,ot]);rt.swipeDown&&(c=rt.swipeDown.call(ft,r,ct,ht,st,ot))}}}if(h==d){if(ft.trigger("pinchStatus",[s,pt||null,yt||0,st||0,ot,vt]),rt.pinchStatus&&(c=rt.pinchStatus.call(ft,r,s,pt||null,yt||0,st||0,ot,vt),c===!1))return!1;if(s==t&&or())switch(pt){case l:ft.trigger("pinchIn",[pt||null,yt||0,st||0,ot,vt]);rt.pinchIn&&(c=rt.pinchIn.call(ft,r,pt||null,yt||0,st||0,ot,vt));break;case a:ft.trigger("pinchOut",[pt||null,yt||0,st||0,ot,vt]);rt.pinchOut&&(c=rt.pinchOut.call(ft,r,pt||null,yt||0,st||0,ot,vt))}}return h==y?(s===i||s===t)&&(clearTimeout(li),ki()&&!ru()?(dt=wt(),li=setTimeout(n.proxy(function(){dt=null;ft.trigger("tap",[r.target]);rt.tap&&(c=rt.tap.call(ft,r,r.target))},this),rt.doubleTapThreshold)):(dt=null,ft.trigger("tap",[r.target]),rt.tap&&(c=rt.tap.call(ft,r,r.target)))):h==g?(s===i||s===t)&&(clearTimeout(li),dt=null,ft.trigger("doubletap",[r.target]),rt.doubleTap&&(c=rt.doubleTap.call(ft,r,r.target))):h==nt&&(s===i||s===t)&&(clearTimeout(li),dt=null,ft.trigger("longtap",[r.target]),rt.longTap&&(c=rt.longTap.call(ft,r,r.target))),c}function fr(){var n=!0;return rt.threshold!==null&&(n=ht>=rt.threshold),n}function bi(){var n=!1;return rt.cancelThreshold!==null&&ct!==null&&(n=br(ct)-ht>=rt.cancelThreshold),n}function dr(){return rt.pinchThreshold!==null?yt>=rt.pinchThreshold:!0}function er(){return rt.maxTimeThreshold?st>=rt.maxTimeThreshold?!1:!0:!0}function gr(n,t){if(rt.allowPageScroll===v||ii())n.preventDefault();else{var i=rt.allowPageScroll===b;switch(t){case u:(rt.swipeLeft&&i||!i&&rt.allowPageScroll!=p)&&n.preventDefault();break;case f:(rt.swipeRight&&i||!i&&rt.allowPageScroll!=p)&&n.preventDefault();break;case e:(rt.swipeUp&&i||!i&&rt.allowPageScroll!=w)&&n.preventDefault();break;case o:(rt.swipeDown&&i||!i&&rt.allowPageScroll!=w)&&n.preventDefault()}}}function or(){var n=cr(),t=lr(),i=dr();return n&&t&&i}function ii(){return!!(rt.pinchStatus||rt.pinchIn||rt.pinchOut)}function nu(){return!!(or()&&ii())}function sr(){var n=er(),t=fr(),i=cr(),r=lr(),u=bi();return!u&&r&&i&&t&&n}function hr(){return!!(rt.swipe||rt.swipeStatus||rt.swipeLeft||rt.swipeRight||rt.swipeUp||rt.swipeDown)}function tu(){return!!(sr()&&hr())}function cr(){return ot===rt.fingers||rt.fingers===c||!r}function lr(){return lt[0].end.x!==0}function ar(){return!!rt.tap}function ki(){return!!rt.doubleTap}function iu(){return!!rt.longTap}function vr(){if(dt==null)return!1;var n=wt();return ki()&&n-dt<=rt.doubleTapThreshold}function ru(){return vr()}function uu(){return(ot===1||!r)&&(isNaN(ht)||ht===0)}function fu(){return st>rt.longTapThreshold&&ht<ut}function eu(){return!!(uu()&&ar())}function ou(){return!!(vr()&&ki())}function su(){return!!(fu()&&iu())}function hu(){ci=wt();rr=event.touches.length+1}function yr(){ci=0;rr=0}function pr(){var n=!1,t;return ci&&(t=wt()-ci,t<=rt.fingerReleaseThreshold&&(n=!0)),n}function cu(){return!!(ft.data(h+"_intouch")===!0)}function ri(n){n===!0?(ft.bind(nr,vi),ft.bind(tr,yi),ti&&ft.bind(ti,pi)):(ft.unbind(nr,vi,!1),ft.unbind(tr,yi,!1),ti&&ft.unbind(ti,pi,!1));ft.data(h+"_intouch",n===!0)}function di(n,t){var i=t.identifier!==undefined?t.identifier:0;return lt[n].identifier=i,lt[n].start.x=lt[n].end.x=t.pageX||t.clientX,lt[n].start.y=lt[n].end.y=t.pageY||t.clientY,lt[n]}function wr(n){var i=n.identifier!==undefined?n.identifier:0,t=lu(i);return t.end.x=n.pageX||n.clientX,t.end.y=n.pageY||n.clientY,t}function lu(n){for(var t=0;t<lt.length;t++)if(lt[t].identifier==n)return lt[t]}function au(){for(var t=[],n=0;n<=5;n++)t.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return t}function vu(n,t){t=Math.max(t,br(n));si[n].distance=t}function br(n){return si[n]?si[n].distance:undefined}function yu(){var n={};return n[u]=ui(u),n[f]=ui(f),n[e]=ui(e),n[o]=ui(o),n}function ui(n){return{direction:n,distance:0}}function kr(){return hi-ir}function gi(n,t){var i=Math.abs(n.x-t.x),r=Math.abs(n.y-t.y);return Math.round(Math.sqrt(i*i+r*r))}function pu(n,t){var i=t/n*1;return i.toFixed(2)}function wu(){return vt<1?a:l}function bu(n,t){return Math.round(Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)))}function ku(n,t){var r=n.x-t.x,u=t.y-n.y,f=Math.atan2(u,r),i=Math.round(f*180/Math.PI);return i<0&&(i=360-Math.abs(i)),i}function du(n,t){var i=ku(n,t);return i<=45&&i>=0?u:i<=360&&i>=315?u:i>=135&&i<=225?f:i>45&&i<135?o:e}function wt(){var n=new Date;return n.getTime()}function gu(t){t=n(t);var i=t.offset();return{left:i.left,right:i.left+t.outerWidth(),top:i.top,bottom:i.top+t.outerHeight()}}function nf(n,t){return n.x>t.left&&n.x<t.right&&n.y>t.top&&n.y<t.bottom}var fi=r||!rt.fallbackToMouseEvents,ei=fi?"touchstart":"mousedown",nr=fi?"touchmove":"mousemove",tr=fi?"touchend":"mouseup",ti=fi?null:"mouseleave",oi="touchcancel",ht=0,ct=null,st=0,bt=0,kt=0,vt=1,yt=0,pt=0,si=null,ft=n(it),et="start",ot=0,lt=null,ir=0,hi=0,ci=0,rr=0,dt=0,li=null;try{ft.bind(ei,ai);ft.bind(oi,gt)}catch(tf){n.error("events not supported "+ei+","+oi+" on jQuery.swipe")}this.enable=function(){return ft.bind(ei,ai),ft.bind(oi,gt),ft};this.disable=function(){return ur(),ft};this.destroy=function(){return ur(),ft.data(h,null),ft};this.option=function(t,i){if(rt[t]!==undefined){if(i===undefined)return rt[t];rt[t]=i}else n.error("Option "+t+" does not exist on jQuery.swipe.options");return null}}var u="left",f="right",e="up",o="down",l="in",a="out",v="none",b="auto",k="swipe",d="pinch",y="tap",g="doubletap",nt="longtap",p="horizontal",w="vertical",c="all",ut=10,tt="start",s="move",t="end",i="cancel",r="ontouchstart"in window,h="TouchSwipe";n.fn.swipe=function(t){var r=n(this),i=r.data(h);if(i&&typeof t=="string"){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));n.error("Method "+t+" does not exist on jQuery.swipe")}else if(!i&&(typeof t=="object"||!t))return it.apply(this,arguments);return r};n.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe"};n.fn.swipe.phases={PHASE_START:tt,PHASE_MOVE:s,PHASE_END:t,PHASE_CANCEL:i};n.fn.swipe.directions={LEFT:u,RIGHT:f,UP:e,DOWN:o,IN:l,OUT:a};n.fn.swipe.pageScroll={NONE:v,HORIZONTAL:p,VERTICAL:w,AUTO:b};n.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:c}}),function(n,t,i){function y(n){var t={},r=/^jQuery\d+$/;return i.each(n.attributes,function(n,i){i.specified&&!r.test(i.name)&&(t[i.name]=i.value)}),t}function f(n,t){var u=this,r=i(u);if(u.value==r.attr("placeholder")&&r.hasClass("placeholder"))if(r.data("placeholder-password")){if(r=r.hide().next().show().attr("id",r.removeAttr("id").data("placeholder-id")),n===!0)return r[0].value=t;r.focus()}else u.value="",r.removeClass("placeholder"),u==h()&&u.select()}function o(){var t,r=this,n=i(r),u=this.id;if(r.value==""){if(r.type=="password"){if(!n.data("placeholder-textinput")){try{t=n.clone().attr({type:"text"})}catch(e){t=i("<input>").attr(i.extend(y(this),{type:"text"}))}t.removeAttr("name").data({"placeholder-password":n,"placeholder-id":u}).bind("focus.placeholder",f);n.data({"placeholder-textinput":t,"placeholder-id":u}).before(t)}n=n.removeAttr("id").hide().prev().attr("id",u).show()}n.addClass("placeholder");n[0].value=n.attr("placeholder")}else n.removeClass("placeholder")}function h(){try{return t.activeElement}catch(n){}}var c=Object.prototype.toString.call(n.operamini)=="[object OperaMini]",e="placeholder"in t.createElement("input")&&!c,s="placeholder"in t.createElement("textarea")&&!c,l=i.fn,a=i.valHooks,v=i.propHooks,u,r;e&&s?(r=l.placeholder=function(){return this},r.input=r.textarea=!0):(r=l.placeholder=function(){var n=this;return n.filter((e?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":f,"blur.placeholder":o}).data("placeholder-enabled",!0).trigger("blur.placeholder"),n},r.input=e,r.textarea=s,u={get:function(n){var t=i(n),r=t.data("placeholder-password");return r?r[0].value:t.data("placeholder-enabled")&&t.hasClass("placeholder")?"":n.value},set:function(n,t){var r=i(n),u=r.data("placeholder-password");return u?u[0].value=t:r.data("placeholder-enabled")?(t==""?(n.value=t,n!=h()&&o.call(n)):r.hasClass("placeholder")?f.call(n,!0,t)||(n.value=t):n.value=t,r):n.value=t}},e||(a.input=u,v.value=u),s||(a.textarea=u,v.value=u),i(function(){i(t).delegate("form","submit.placeholder",function(){var n=i(".placeholder",this).each(f);setTimeout(function(){n.each(o)},10)})}),i(n).bind("beforeunload.placeholder",function(){i(".placeholder").each(function(){this.value=""})}))}(this,document,jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),-(o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e))+i)},easeOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),o*Math.pow(2,-10*t)*Math.sin((t*u-f)*2*Math.PI/e)+r+i)},easeInOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u/2)==2?i+r:(e||(e=u*.3*1.5),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),t<1)?-.5*o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)+i:o*Math.pow(2,-10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}});!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?module.exports=n:n(jQuery)}(function(n){function u(r){var u=r||window.event,w=c.call(arguments,1),l=0,s=0,e=0,a=0,b=0,k=0,v,y,p;if(r=n.event.fix(u),r.type="mousewheel","detail"in u&&(e=-1*u.detail),"wheelDelta"in u&&(e=u.wheelDelta),"wheelDeltaY"in u&&(e=u.wheelDeltaY),"wheelDeltaX"in u&&(s=-1*u.wheelDeltaX),"axis"in u&&u.axis===u.HORIZONTAL_AXIS&&(s=-1*e,e=0),l=0===e?s:e,"deltaY"in u&&(e=-1*u.deltaY,l=e),"deltaX"in u&&(s=u.deltaX,0===e&&(l=-1*s)),0!==e||0!==s)return 1===u.deltaMode?(v=n.data(this,"mousewheel-line-height"),l*=v,e*=v,s*=v):2===u.deltaMode&&(y=n.data(this,"mousewheel-page-height"),l*=y,e*=y,s*=y),(a=Math.max(Math.abs(e),Math.abs(s)),(!t||t>a)&&(t=a,o(u,a)&&(t/=40)),o(u,a)&&(l/=40,s/=40,e/=40),l=Math[l>=1?"floor":"ceil"](l/t),s=Math[s>=1?"floor":"ceil"](s/t),e=Math[e>=1?"floor":"ceil"](e/t),i.settings.normalizeOffset&&this.getBoundingClientRect)&&(p=this.getBoundingClientRect(),b=r.clientX-p.left,k=r.clientY-p.top),r.deltaX=s,r.deltaY=e,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,l,s,e),f&&clearTimeout(f),f=setTimeout(h,200),(n.event.dispatch||n.event.handle).apply(this,w)}function h(){t=null}function o(n,t){return i.settings.adjustOldDeltas&&"mousewheel"===n.type&&t%120==0}var f,t,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],c=Array.prototype.slice,e,i;if(n.event.fixHooks)for(e=s.length;e;)n.event.fixHooks[s[--e]]=n.event.mouseHooks;i=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],u,!1);else this.onmousewheel=u;n.data(this,"mousewheel-line-height",i.getLineHeight(this));n.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],u,!1);else this.onmousewheel=null;n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})}),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function r(t,i){var r,f,e,o=t.nodeName.toLowerCase();return"area"===o?(r=t.parentNode,f=r.name,t.href&&f&&"map"===r.nodeName.toLowerCase()?(e=n("img[usemap='#"+f+"']")[0],!!e&&u(e)):!1):(/^(input|select|textarea|button|object)$/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&u(t)}function u(t){return n.expr.filters.visible(t)&&!n(t).parents().addBack().filter(function(){return"hidden"===n.css(this,"visibility")}).length}var f,i,t;n.ui=n.ui||{};n.extend(n.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});n.fn.extend({scrollParent:function(t){var i=this.css("position"),u="absolute"===i,f=t?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var t=n(this);return u&&"static"===t.css("position")?!1:f.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==i&&r.length?r:n(this[0].ownerDocument||document)},uniqueId:function(){var n=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&n(this).removeAttr("id")})}});n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])},focusable:function(t){return r(t,!isNaN(n.attr(t,"tabindex")))},tabbable:function(t){var i=n.attr(t,"tabindex"),u=isNaN(i);return(u||i>=0)&&r(t,!u)}});n("<a>").outerWidth(1).jquery||n.each(["Width","Height"],function(t,i){function r(t,i,r,u){return n.each(e,function(){i-=parseFloat(n.css(t,"padding"+this))||0;r&&(i-=parseFloat(n.css(t,"border"+this+"Width"))||0);u&&(i-=parseFloat(n.css(t,"margin"+this))||0)}),i}var e="Width"===i?["Left","Right"]:["Top","Bottom"],u=i.toLowerCase(),f={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+i]=function(t){return void 0===t?f["inner"+i].call(this):this.each(function(){n(this).css(u,r(this,t)+"px")})};n.fn["outer"+i]=function(t,e){return"number"!=typeof t?f["outer"+i].call(this,t):this.each(function(){n(this).css(u,r(this,t,!0,e)+"px")})}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))});n("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(n.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,n.camelCase(i)):t.call(this)}}(n.fn.removeData));n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());n.fn.extend({focus:function(t){return function(i,r){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){n(t).focus();r&&r.call(t)},i)}):t.apply(this,arguments)}}(n.fn.focus),disableSelection:function(){var n="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(n+".ui-disableSelection",function(n){n.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(t){if(void 0!==t)return this.css("zIndex",t);if(this.length)for(var r,u,i=n(this[0]);i.length&&i[0]!==document;){if(r=i.css("position"),("absolute"===r||"relative"===r||"fixed"===r)&&(u=parseInt(i.css("zIndex"),10),!isNaN(u)&&0!==u))return u;i=i.parent()}return 0}});n.ui.plugin={add:function(t,i,r){var u,f=n.ui[t].prototype;for(u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i,r){var u,f=n.plugins[t];if(f&&(r||n.element[0].parentNode&&11!==n.element[0].parentNode.nodeType))for(u=0;f.length>u;u++)n.options[f[u][0]]&&f[u][1].apply(n.element,i)}};f=0;i=Array.prototype.slice;n.cleanData=function(t){return function(i){for(var r,u,f=0;null!=(u=i[f]);f++)try{r=n._data(u,"events");r&&r.remove&&n(u).triggerHandler("remove")}catch(e){}t(i)}}(n.cleanData);n.widget=function(t,i,r){var s,f,u,o,h={},e=t.split(".")[0];return t=t.split(".")[1],s=e+"-"+t,r||(r=i,i=n.Widget),n.expr[":"][s.toLowerCase()]=function(t){return!!n.data(t,s)},n[e]=n[e]||{},f=n[e][t],u=n[e][t]=function(n,t){return this._createWidget?(arguments.length&&this._createWidget(n,t),void 0):new u(n,t)},n.extend(u,f,{version:r.version,_proto:n.extend({},r),_childConstructors:[]}),o=new i,o.options=n.widget.extend({},o.options),n.each(r,function(t,r){return n.isFunction(r)?(h[t]=function(){var n=function(){return i.prototype[t].apply(this,arguments)},u=function(n){return i.prototype[t].apply(this,n)};return function(){var t,i=this._super,f=this._superApply;return this._super=n,this._superApply=u,t=r.apply(this,arguments),this._super=i,this._superApply=f,t}}(),void 0):(h[t]=r,void 0)}),u.prototype=n.widget.extend(o,{widgetEventPrefix:f?o.widgetEventPrefix||t:t},h,{constructor:u,namespace:e,widgetName:t,widgetFullName:s}),f?(n.each(f._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,u,i._proto)}),delete f._childConstructors):i._childConstructors.push(u),n.widget.bridge(t,u),u};n.widget.extend=function(t){for(var r,u,e=i.call(arguments,1),f=0,o=e.length;o>f;f++)for(r in e[f])u=e[f][r],e[f].hasOwnProperty(r)&&void 0!==u&&(t[r]=n.isPlainObject(u)?n.isPlainObject(t[r])?n.widget.extend({},t[r],u):n.widget.extend({},u):u);return t};n.widget.bridge=function(t,r){var u=r.prototype.widgetFullName||t;n.fn[t]=function(f){var s="string"==typeof f,o=i.call(arguments,1),e=this;return s?this.each(function(){var i,r=n.data(this,u);return"instance"===f?(e=r,!1):r?n.isFunction(r[f])&&"_"!==f.charAt(0)?(i=r[f].apply(r,o),i!==r&&void 0!==i?(e=i&&i.jquery?e.pushStack(i.get()):i,!1):void 0):n.error("no such method '"+f+"' for "+t+" widget instance"):n.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+f+"'")}):(o.length&&(f=n.widget.extend.apply(null,[f].concat(o))),this.each(function(){var t=n.data(this,u);t?(t.option(f||{}),t._init&&t._init()):n.data(this,u,new r(f,this))})),e}};n.Widget=function(){};n.Widget._childConstructors=[];n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0];this.element=n(i);this.uuid=f++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings=n();this.hoverable=n();this.focusable=n();i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow));this.options=n.widget.extend({},this.options,this._getCreateOptions(),t);this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:n.noop,_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(n.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:n.noop,widget:function(){return this.element},option:function(t,i){var r,u,f,e=t;if(0===arguments.length)return n.widget.extend({},this.options);if("string"==typeof t)if(e={},r=t.split("."),t=r.shift(),r.length){for(u=e[t]=n.widget.extend({},this.options[t]),f=0;r.length-1>f;f++)u[r[f]]=u[r[f]]||{},u=u[r[f]];if(t=r.pop(),1===arguments.length)return void 0===u[t]?null:u[t];u[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];e[t]=i}return this._setOptions(e),this},_setOptions:function(n){var t;for(t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return this.options[n]=t,"disabled"===n&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(t,i,r){var f,u=this;"boolean"!=typeof t&&(r=i,i=t,t=!1);r?(i=f=n(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,f=this.widget());n.each(r,function(r,e){function o(){if(t||u.options.disabled!==!0&&!n(this).hasClass("ui-state-disabled"))return("string"==typeof e?u[e]:e).apply(u,arguments)}"string"!=typeof e&&(o.guid=e.guid=e.guid||o.guid||n.guid++);var s=r.match(/^([\w:-]*)\s*(.*)$/),h=s[1]+u.eventNamespace,c=s[2];c?f.delegate(c,h,o):i.bind(h,o)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;t.unbind(i).undelegate(i);this.bindings=n(this.bindings.not(t).get());this.focusable=n(this.focusable.not(t).get());this.hoverable=n(this.hoverable.not(t).get())},_delay:function(n,t){function r(){return("string"==typeof n?i[n]:n).apply(i,arguments)}var i=this;return setTimeout(r,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t);this._on(t,{mouseenter:function(t){n(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){n(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t);this._on(t,{focusin:function(t){n(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){n(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!(n.isFunction(e)&&e.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}};n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){"string"==typeof u&&(u={effect:u});var o,e=u?u===!0||"number"==typeof u?i:u.effect||i:t;u=u||{};"number"==typeof u&&(u={duration:u});o=!n.isEmptyObject(u);u.complete=f;u.delay&&r.delay(u.delay);o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t]();f&&f.call(r[0]);i()})}});n.widget;t=!1;n(document).mouseup(function(){t=!1});n.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(n){return t._mouseDown(n)}).bind("click."+this.widgetName,function(i){if(!0===n.data(i.target,t.widgetName+".preventClickEvent"))return(n.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1)});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseMoved=!1;this._mouseStarted&&this._mouseUp(i);this._mouseDownEvent=i;var r=this,u=1===i.which,f="string"==typeof this.options.cancel&&i.target.nodeName?n(i.target).closest(this.options.cancel).length:!1;return u&&!f&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===n.data(i.target,this.widgetName+".preventClickEvent")&&n.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(n){return r._mouseMove(n)},this._mouseUpDelegate=function(n){return r._mouseUp(n)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)):!0}},_mouseMove:function(t){return this._mouseMoved&&(n.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button||!t.which)?this._mouseUp(t):((t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted))},_mouseUp:function(i){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&n.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i)),t=!1,!1},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}});n.widget("ui.slider",n.ui.mouse,{version:"1.11.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1;this._mouseSliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this._calculateNewMax();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this._refresh();this._setOption("disabled",this.options.disabled);this._animateOff=!1},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var r,i,u=this.options,t=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f=[];for(i=u.values&&u.values.length||1,t.length>i&&(t.slice(i).remove(),t=t.slice(0,i)),r=t.length;i>r;r++)f.push("<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'><\/span>");this.handles=t.add(n(f.join("")).appendTo(this.element));this.handle=this.handles.eq(0);this.handles.each(function(t){n(this).data("ui-slider-handle-index",t)})},_createRange:function(){var t=this.options,i="";t.range?(t.range===!0&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:n.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=n("<div><\/div>").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===t.range||"max"===t.range?" ui-slider-range-"+t.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles);this._on(this.handles,this._handleEvents);this._hoverable(this.handles);this._focusable(this.handles)},_destroy:function(){this.handles.remove();this.range&&this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all");this._mouseDestroy()},_mouseCapture:function(t){var s,f,r,i,u,h,e,c,o=this,l=this.options;return l.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),s={x:t.pageX,y:t.pageY},f=this._normValueFromMouse(s),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(f-o.values(t));(r>e||r===e&&(t===o._lastChangedValue||o.values(t)===l.min))&&(r=e,i=n(this),u=t)}),h=this._start(t,u),h===!1?!1:(this._mouseSliding=!0,this._handleIndex=u,i.addClass("ui-state-active").focus(),e=i.offset(),c=!n(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:t.pageX-e.left-i.width()/2,top:t.pageY-e.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,u,f),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(n){var t={x:n.pageX,y:n.pageY},i=this._normValueFromMouse(t);return this._slide(n,this._handleIndex,i),!1},_mouseStop:function(n){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(n,this._handleIndex),this._change(n,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(n){var i,r,t,u,f;return"horizontal"===this.orientation?(i=this.elementSize.width,r=n.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(i=this.elementSize.height,r=n.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=r/i,t>1&&(t=1),0>t&&(t=0),"vertical"===this.orientation&&(t=1-t),u=this._valueMax()-this._valueMin(),f=this._valueMin()+t*u,this._trimAlignValue(f)},_start:function(n,t){var i={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("start",n,i)},_slide:function(n,t,i){var r,f,u;this.options.values&&this.options.values.length?(r=this.values(t?0:1),2===this.options.values.length&&this.options.range===!0&&(0===t&&i>r||1===t&&r>i)&&(i=r),i!==this.values(t)&&(f=this.values(),f[t]=i,u=this._trigger("slide",n,{handle:this.handles[t],value:i,values:f}),r=this.values(t?0:1),u!==!1&&this.values(t,i))):i!==this.value()&&(u=this._trigger("slide",n,{handle:this.handles[t],value:i}),u!==!1&&this.value(i))},_stop:function(n,t){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values());this._trigger("stop",n,i)},_change:function(n,t){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values());this._lastChangedValue=t;this._trigger("change",n,i)}},value:function(n){return arguments.length?(this.options.value=this._trimAlignValue(n),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(t,i){var u,f,r;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(i),this._refreshValue(),this._change(null,t),void 0;if(!arguments.length)return this._values();if(!n.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(t):this.value();for(u=this.options.values,f=arguments[0],r=0;u.length>r;r+=1)u[r]=this._trimAlignValue(f[r]),this._change(null,r);this._refreshValue()},_setOption:function(t,i){var r,u=0;switch("range"===t&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),n.isArray(this.options.values)&&(u=this.options.values.length),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!i),this._super(t,i),t){case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=0;u>r;r+=1)this._change(null,r);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0;this._calculateNewMax();this._refreshValue();this._animateOff=!1;break;case"range":this._animateOff=!0;this._refresh();this._animateOff=!1}},_value:function(){var n=this.options.value;return this._trimAlignValue(n)},_values:function(n){var r,t,i;if(arguments.length)return r=this.options.values[n],r=this._trimAlignValue(r);if(this.options.values&&this.options.values.length){for(t=this.options.values.slice(),i=0;t.length>i;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(n){if(this._valueMin()>=n)return this._valueMin();if(n>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(n-this._valueMin())%t,r=n-i;return 2*Math.abs(i)>=t&&(r+=i>0?t:-t),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var n=this.options.max,t=this._valueMin(),i=this.options.step,r=Math.floor(+(n-t).toFixed(this._precision())/i)*i;n=r+t;this.max=parseFloat(n.toFixed(this._precision()))},_precision:function(){var n=this._precisionOf(this.options.step);return null!==this.options.min&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=""+n,i=t.indexOf(".");return-1===i?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshValue:function(){var s,t,c,f,h,e=this.options.range,i=this.options,r=this,u=this._animateOff?!1:i.animate,o={};this.options.values&&this.options.values.length?this.handles.each(function(f){t=100*((r.values(f)-r._valueMin())/(r._valueMax()-r._valueMin()));o["horizontal"===r.orientation?"left":"bottom"]=t+"%";n(this).stop(1,1)[u?"animate":"css"](o,i.animate);r.options.range===!0&&("horizontal"===r.orientation?(0===f&&r.range.stop(1,1)[u?"animate":"css"]({left:t+"%"},i.animate),1===f&&r.range[u?"animate":"css"]({width:t-s+"%"},{queue:!1,duration:i.animate})):(0===f&&r.range.stop(1,1)[u?"animate":"css"]({bottom:t+"%"},i.animate),1===f&&r.range[u?"animate":"css"]({height:t-s+"%"},{queue:!1,duration:i.animate})));s=t}):(c=this.value(),f=this._valueMin(),h=this._valueMax(),t=h!==f?100*((c-f)/(h-f)):0,o["horizontal"===this.orientation?"left":"bottom"]=t+"%",this.handle.stop(1,1)[u?"animate":"css"](o,i.animate),"min"===e&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:t+"%"},i.animate),"max"===e&&"horizontal"===this.orientation&&this.range[u?"animate":"css"]({width:100-t+"%"},{queue:!1,duration:i.animate}),"min"===e&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:t+"%"},i.animate),"max"===e&&"vertical"===this.orientation&&this.range[u?"animate":"css"]({height:100-t+"%"},{queue:!1,duration:i.animate}))},_handleEvents:{keydown:function(t){var e,r,i,u,f=n(t.target).data("ui-slider-handle-index");switch(t.keyCode){case n.ui.keyCode.HOME:case n.ui.keyCode.END:case n.ui.keyCode.PAGE_UP:case n.ui.keyCode.PAGE_DOWN:case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,n(t.target).addClass("ui-state-active"),e=this._start(t,f),e===!1))return}switch(u=this.options.step,r=i=this.options.values&&this.options.values.length?this.values(f):this.value(),t.keyCode){case n.ui.keyCode.HOME:i=this._valueMin();break;case n.ui.keyCode.END:i=this._valueMax();break;case n.ui.keyCode.PAGE_UP:i=this._trimAlignValue(r+(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(r-(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:if(r===this._valueMax())return;i=this._trimAlignValue(r+u);break;case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(r===this._valueMin())return;i=this._trimAlignValue(r-u)}this._slide(t,f,i)},keyup:function(t){var i=n(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),n(t.target).removeClass("ui-state-active"))}}})});var views={init:function(){if(views.fallback=!0,views.lang="en",window.location.href.indexOf(".de")>-1||window.location.href.indexOf("boschde")>-1?views.lang="de":window.location.href.indexOf(".es")>-1||window.location.href.indexOf("bosches")>-1?views.lang="es":window.location.href.indexOf(".fr")>-1||window.location.href.indexOf("boschfr")>-1?views.lang="fr":(window.location.href.indexOf(".cn")>-1||window.location.href.indexOf("boschch")>-1)&&(views.lang="ch",$("body").addClass("ch")),(navigator.userAgent.indexOf("Chrome")>-1||navigator.userAgent.indexOf("Firefox/3")>-1||navigator.userAgent.indexOf("MSIE 10.0")>-1||navigator.userAgent.indexOf("like Gecko")>-1||navigator.userAgent.indexOf("iPhone OS 7_")>-1||navigator.userAgent.indexOf("iPhone OS 8_")>-1||navigator.userAgent.indexOf("iPad")>-1||navigator.userAgent.indexOf("iPhone OS 10_")>-1)&&(views.fallback=!1),$(".mobile").length&&$(".nav-top li:first-child a").prependTo($("#container")),$(".bg-load").each(function(){$(this).hasClass("img-desktop")&&$("body").hasClass("mobile")||$(this).css("background-image","url("+$(this).attr("data-src")+")").removeClass("bg-load")}),$(".img-load").each(function(){$(this).hasClass("img-desktop")&&$("body").hasClass("mobile")||$(this).attr("src",$(this).attr("data-src")).removeClass("img-load")}),$(".ie").length&&$(".gallery > ul > li, .section-2,.section-4").each(function(){$(this).css("background-image","").append('<img class="ie-img" src="'+$(this).attr("data-src")+'"/>')}),$(".section-4 h2").wrapInner("<span>"),views.gate=0,views.section=0,views.subsection=0,views.navigate(),views.ui(),$("form").length&&views.forms.setForm(),$(".gallery").length&&views.galleries.setGallery(),views.resize(),$(window).resize(function(){views.resize()}),$(".section-5 ul a").each(function(n){var t="";n==0&&(t="call",$(this).parents("li").addClass("large"));n==1&&(t="sample");n==2&&(t="download");$(this).addClass(t)}),window.location.href.indexOf("#/")>-1){var n=decodeURI(window.location.href).split("#")[1];$(".nav-main > ul > li > a").each(function(){var t=$(this).attr("href").replace("#","");t.indexOf(n)>-1&&$(this).click()})}},navigate:function(){var n;if($(window).width()>1079){$(document).keydown(function(n){n.which===37?(views.section===0&&$(".gallery").eq(0).find(".prev a").click(),views.section===2&&$(".sidepage").eq(0).find(".prev a").click()):n.which===39?(views.section===0&&$(".gallery").eq(0).find(".next a").click(),views.section===2&&$(".sidepage").eq(0).find(".next a").click()):views.gate===0&&(n.which===38||n.which===40)&&(views.gate=1,n.which===38?views.setSection("-"):n.which===40&&views.setSection("+"))});var t=0,r,u=0,f=0,i=100;$(".sections").bind("mousewheel",function(n){return f=n.timeStamp-u,u=n.timeStamp,f>=i&&((n.deltaY<-2||n.deltaY>2)&&(t=Math.abs(n.deltaY),r=setTimeout(function(){t=0;clearInterval(r)},i*10+t*i)),views.gate===0&&t===0&&(views.gate=1,n.deltaY>0?views.setSection("-"):views.setSection("+"))),!1});$(function(){function n(n,t,i,r){if($(n.toElement).eq(0).hasClass("ui-slider-handle"))return!1;t==="end"&&(i==="down"&&r>100?views.setSection("-"):i==="up"&&r>100&&views.setSection("+"))}$(window).swipe({allowPageScroll:"vertical",swipeStatus:n,triggerOnTouchEnd:!0,threshold:null})});$(".scroll a").click(function(){return views.setSection("+"),!1});views.sliderVal=0;$("#slider").slider({animate:!0,start:function(){$(".ui-slider-handle, .ui-slider-handle > div > div, .sidepage>div").removeClass("transition")},slide:function(n,t){var i=Math.round(t.value*4);$("#slider div div").css("left","-"+t.value*7.64+"px");$(".sidepage > div").css("left","-"+i+"%")},stop:function(n,t){var i=Math.round(t.value/25)*25,u=i*4,r;$("#slider span").css("left",i+"%");$("#slider div div").css("left","-"+i*7.64+"px");$(".sidepage > div").css("left","-"+u+"%");views.sliderVal=i;views.sliderVal===0?($(".sidepage .prev a").hide(),$(".sidepage .next a").show()):views.sliderVal===100?($(".sidepage .next a").hide(),$(".sidepage .prev a").show()):$(".sidepage span a").show();views.sliderVal==50&&(r=document.getElementById("gallery-video"),r.play())}});$("#slider span").append("<div><div>"+$(".slider-list").html()+"<\/div><\/div>");$(".sidepage > span a").click(function(){var n=$(this).parents(".prev").length?"-":"+";return views.setSlide(n),!1});$(".nav-main > ul > li > a").click(function(){return views.section=$(this).parent().index()-1,views.setSection("+"),!1});$(".nav-main ul ul a").click(function(){var n,t;return views.section=$(this).parents(".nav-main > ul > li").index()+1,n=$(this).parent().index(),views.setSlider(n),views.setSection("-"),$(".nav-main ul ul").addClass("hide"),$(".nav-main ul ul").removeClass("hide"),views.sliderVal==50&&(t=document.getElementById("gallery-video"),t.play()),!1});$(".slider-list li").click(function(){var n=$(this).index(),t;return views.setSlider(n),$(".nav-main ul ul").addClass("hide"),$(".nav-main ul ul").removeClass("hide"),n===0?($(".sidepage .prev a").hide(),$(".sidepage .next a").show()):n===4?($(".sidepage .next a").hide(),$(".sidepage .prev a").show()):$(".sidepage span a").show(),views.sliderVal==50&&(t=document.getElementById("gallery-video"),t.play()),!1})}else{if(navigator.userAgent.indexOf("Firefox")<-1){$(".gallery").swipe({allowPageScroll:"vertical",swipeStatus:e,triggerOnTouchEnd:!0,threshold:null});function e(n,t,i,r){t==="end"&&(i==="left"&&r>50?$(".gallery").eq(0).find(".next a").click():i==="right"&&r>50&&$(".gallery").eq(0).find(".prev a").click())}$(".sidepage").swipe({allowPageScroll:"vertical",swipeStatus:o,triggerOnTouchEnd:!0,threshold:null});function o(n,t,i,r){t==="end"&&(i==="left"&&r>50?$(".m-slider").eq(0).find(".next a").click():i==="right"&&r>50&&$(".m-slider").eq(0).find(".prev a").click())}}$(".section-4").addClass("active");$(".table > div").eq(1).find(".number").text(100);$(".scroll a").click(function(){var n=$(this).parents(".sections > div").index();return $(".nav-main > ul > li").eq(n+1).find("ul").length?$(".nav-main > ul > li").eq(n+1).find("ul > li").eq(0).find("a").click():$(".nav-main > ul > li").eq(n+1).children("a").click(),!1});n=0;$(".m-slider>span a").click(function(){return $(this).parents(".next").length?(n++,n>=4&&(n=4,$(".m-slider .next a, .sidepage .next a").hide()),$(".m-slider .prev a, .sidepage .prev a").show()):(n--,n<=0&&(n=0,$(".m-slider .prev a, .sidepage .prev a").hide()),$(".m-slider .next a, .sidepage .next a").show()),$(".sidepage>div,.slider-container ul").css("left","-"+n+"00%"),!1});$(".sidepage > span a").click(function(){return $(this).parents(".prev").length?$(".m-slider .prev a").click():$(".m-slider .next a").click(),!1});$(".nav-main > ul > li > a").click(function(){var n=$(this).parent().index();return $(this).parent().hasClass("drop")?$(this).next().toggle():($("body,html").animate({scrollTop:$(".sections > div").eq(n).offset().top-60}),$(".nav-top,.nav-main,.nav-main ul ul").hide(),$(".settings,.nav").removeClass("active")),!1});$(".nav-main ul ul a").click(function(){var t=$(this).parent().index();return $("body,html").animate({scrollTop:$(".sections > div").eq(2).offset().top-60}),n=t,$(".sidepage>div,.slider-container ul").css("left","-"+n+"00%"),n===0?($(".m-slider .next a").click(),$(".m-slider .prev a").click()):$(".m-slider .next a,.m-slider .prev a").click(),$(".nav-top,.nav-main,.nav-main ul ul").hide(),$(".settings,.nav").removeClass("active"),!1})}$(".m-nav .nav a").click(function(){return $(".nav").toggleClass("active"),$(".nav-main").toggle(),$(".settings").removeClass("active"),$(".nav-top").hide(),!1});$(".m-nav .settings a").click(function(){return $(".nav").removeClass("active"),$(".nav-main").hide(),$(".settings").toggleClass("active"),$(".nav-top").toggle(),!1})},ui:function(){function n(n){var t=n.attr("href");$(".content-overlay").show();$(".content-overlay > div").removeClass("show").each(function(){if(t==$(this).attr("data-video")&&($(this).addClass("show"),!$(this).find("iframe").length)){var n=$(this).find("div > div"),i=n.attr("data-url"),r=n.attr("data-id");n.append("<iframe id="+r+' src="'+i+'" frameborder="0" allowfullscreen><\/iframe>')}})}$("html").click(function(){$(".forms .active > *").show();$(".forms .thanks").hide();$(".forms .active").removeClass("active");$(".forms > div,.content-overlay,.page-overlay").hide();$(".bag li,.bag > div > div,.settings,.nav").removeClass("active");$(".section-2").removeClass("overlay");$(window).width()<1080&&$(".nav-top,.nav-main").hide();$(".content-overlay > div").each(function(){var n=$(this).find("iframe").attr("src");$(this).find("iframe").attr("src","");$(this).find("iframe").attr("src",n)})});$("a").click(function(){var n;if($(this).attr("data-type")==="internal"){var t=$(this).attr("href"),i=$(this).text().toLowerCase(),n="";return t==""&&(n=$(this).attr("data-tab")),$(".page-overlay").show(),$(".page-overlay > div").addClass("show"),n!=""||$(this).parents(".links").length&&$(this).parent().index()==1?$(".tabs li").eq(1).find("a").click():$(".tabs li").eq(0).find("a").click(),!1}});$(".tabs a").click(function(){var n=$(this).parent().index();return $(".tabs li").removeClass("active"),$(this).parent().addClass("active"),$(".tabs").next().children("div").hide().eq(n).show(),!1});$(".forms > div > div, .nav-top, .nav-main, .content-overlay > div, .page-overlay > div").click(function(n){n.stopPropagation()});$("form > span").click(function(){$(".forms > div").hide();$(".forms .thanks").hide()});$(".bag > div > div > div > span").click(function(){$(".bag > div > div").removeClass("active");$(".section-2").removeClass("overlay")});$(".content-overlay > div > span").click(function(){$(".content-overlay").hide();$(".content-overlay > div").each(function(){var n=$(this).find("iframe").attr("src");$(this).find("iframe").attr("src","");$(this).find("iframe").attr("src",n)})});$(".page-overlay > div > span").click(function(){$(".page-overlay").hide()});$("a.form-button, .form-button a").click(function(){if($(this).attr("title")!=undefined){var n=$(this).attr("title").toLowerCase().replace(/ /g,"");$(".forms").find("."+n).show()}return!1});$(".form-button").parents("a").click(function(){if($(this).attr("title")!=undefined){var n=$(this).attr("title").toLowerCase().replace(/ /g,"");$(".forms").find("."+n).show()}return!1});$(".video-button, .video-button a, a .video-button").click(function(){return n($(this)),!1});$(".video-button").parents("a").click(function(){return n($(this)),!1});$(".bag li a").click(function(){var n=$(this).parent().index();return $(".bag li").not(":eq("+n+")").removeClass("active"),$(this).parent().toggleClass("active"),$(".bag > div > div").not(":eq("+n+")").removeClass("active"),$(".bag > div > div").eq(n).toggleClass("active"),$(".bag .active").length?$(".section-2").addClass("overlay"):$(".section-2").removeClass("overlay"),$(window).width()<1079&&$("body,html").scrollTop($(".bag>div>.active>div").offset().top-100),!1});$("input[type=checkbox]").change(function(){$(this).parent().toggleClass("on")});$("select").change(function(){$(this).next().addClass("active").text($(this).val())})},setCounter:function(n){var i=$(".table > div").eq(1).find(".number"),t=parseInt(i.text()),r;n==="-"?t<100&&(r=setInterval(function(){t++;i.text(t);t===100&&clearInterval(r)},30)):i.text(50)},setSlide:function(n){if($(".ui-slider-handle, .ui-slider-handle > div > div, .sidepage>div").removeClass("transition"),views.sliderVal=n==="-"?views.sliderVal-25:views.sliderVal+25,views.sliderVal===0?$(".sidepage .prev a").hide():views.sliderVal===100?$(".sidepage .next a").hide():$(".sidepage span a").show(),views.sliderVal<0)return views.sliderVal=0,!1;if(views.sliderVal>100)return views.sliderVal=100,!1;if($("#slider").slider("value",views.sliderVal),$("#slider div div").stop().animate({left:"-"+views.sliderVal*7.64+"px"}),$(".sidepage > div").stop().animate({left:"-"+views.sliderVal*4+"%"}),views.sliderVal==50){var t=document.getElementById("gallery-video");t.play()}},setSection:function(n){n==="-"?views.section===2&&views.subsection!==0?(views.subsection--,views.setSlide(n),setTimeout(function(){},800)):(views.section=views.section===0?0:views.section-1,views.fallback===!0?$(".sections").animate({top:"-"+100*views.section+"%"},800,function(){}):($(".sections").css("transform","translateY(-"+100*views.section+"%)"),setTimeout(function(){$(".sections > div").eq(views.section).addClass("active").next().removeClass("active")},800))):n==="+"&&(views.section=views.section===$(".sections > div").not(".footer").length-1?views.section:views.section+1,views.fallback===!0?$(".sections").animate({top:"-"+100*views.section+"%"},800,function(){}):($(".sections").css("transform","translateY(-"+100*views.section+"%)"),setTimeout(function(){$(".sections > div").eq(views.section).addClass("active").prev().removeClass("active")},800)));views.section===0?$(".header").removeClass("active"):$(".header").addClass("active");views.section===3?views.setCounter("-"):views.setCounter("+");setTimeout(function(){views.gate=0},1e3);$(".nav-top").removeClass("active-0 active-1 active-2 active-3 active-4");$(".nav-top").addClass("active-"+views.section);$(".bag li").removeClass("active");$(".bag > div > div").removeClass("active");$(".section-2").removeClass("overlay")},setSlider:function(n){views.sliderVal=n*25;$(".ui-slider-handle").addClass("transition").css("left",25*n+"%");$(".ui-slider-handle > div > div").addClass("transition").css("left","-"+191*n+"px");$(".sidepage>div").addClass("transition").css("left","-"+100*n+"%")},resize:function(){},forms:{setForm:function(){$("form").submit(function(n){n.stopPropagation();var t=$(this),i=t.parents(".forms > div").attr("data-method");return($("p.errors").empty(),$("form").removeClass("active"),t.addClass("active"),!views.forms.validate(t))?!1:(t.children("*").hide(),t.addClass("loading"),models.submission(t,i).then(function(n){controllers.getSubmission(n)}),!1)})},validate:function(n){return views.forms.valid=!0,n.find(".error span").remove(),n.find(".required").each(function(){var t=$(this).parents("fieldset > div"),n;$(this).val()===""||$(this).val()===$(this).prev().text()||$(this).val().replace(/ /g,"").length<2?(n="Required field",views.lang=="de"?n="Pflichtfeld":views.lang=="es"?n="Campo obligatorio":views.lang=="fr"?n="Champ obligatoire":views.lang=="ch"&&(n="必填字段"),views.forms.setError(t,n)):views.forms.setValid(t)}),n.find(".requirecheck").each(function(){var n=$(this).parents("fieldset > div");$(this).prop("checked")===!1?views.forms.setError(n,""):views.forms.setValid(n)}),n.find(".email").each(function(){var t=$(this).parents("fieldset > div"),n;views.forms.validateEmail($(this).val())===!1?(n="Invalid email address",views.lang=="de"?n="Ungültige E-mail":views.lang=="es"?n="Direcci&#243;n de correo invalida":views.lang=="fr"?n="Adresse email incorrect":views.lang=="ch"&&(n="电邮地址无效"),views.forms.setError(t,n)):views.forms.setValid(t)}),n.find(".phone").each(function(){var t=$(this).parents("fieldset > div"),n;views.forms.validatePhone($(this).val())===!1?(n="Invalid phone number",views.lang=="de"?n="Ungültige Telefonnummer":views.lang=="es"?n="N&#250;mero de tel&#233;fono invalido":views.lang=="fr"?n="Num&#233;ro de t&#233;l&#233;phone incorrect":views.lang=="ch"&&(n="电话号码无效"),views.forms.setError(t,n)):views.forms.setValid(t)}),n.find(".hidden").each(function(){var n=$(this).parents("fieldset > div");$(this).val()!=""?views.forms.setError(n,"You are no human"):views.forms.setValid(n)}),views.forms.valid},validateEmail:function(n){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)},validatePhone:function(n){return/^\d{7,}$/.test(n.replace(/[\s()+\-\.]|ext/gi,""))},setError:function(n,t){n.addClass("error").append("<span>"+t+"<\/span>");views.forms.valid=!1;views.forms.i++;views.forms.i==1&&views.forms.ajaxValidate(n.parents("form"));$(".error").eq(0).focus()},setValid:function(n){n.removeClass("error")},ajaxValidate:function(n){n.find("input").change(function(){views.forms.validate(n)})}},galleries:{interval:function(){var n=$(".gallery").eq(0);views.galleries.timer=setInterval(function(){views.galleries.next(n,n.find("li.active"))},6e3)},setGallery:function(){var n=$(".gallery").eq(0);views.galleries.interval();$(".gallery > span a").click(function(){return $(this).parents(".prev").length?views.galleries.prev(n,n.find("li.active")):views.galleries.next(n,n.find("li.active")),!1})},next:function(n,t){var i=t.next().length?t.next():t.parent().find("li:first-child");views.galleries.anim(n,t,i)},prev:function(n,t){var i=t.prev().length?t.prev():t.parent().find("li:last-child");views.galleries.anim(n,t,i)},anim:function(n,t,i){t.removeClass("active").removeClass("show");i.addClass("show");i.addClass("active");n.find("div > .active").removeClass("active");n.find("div > span").eq(i.index()).addClass("active");clearInterval(views.galleries.timer);views.galleries.interval()}}},controllers={getSubmission:function(n){$("form").removeClass("loading");n.Errors==undefined||n.Errors==null||n.Errors.length==0?($("form .thanks,form > span").show(),$("form input[type=text], form input[type=tel], form input[type=email]").each(function(){$(this).val("")}),$("form input[type=checkbox]").each(function(){$(this).prop("checked",!1);$(this).parent().removeClass("on")}),$("select").each(function(){$(this).next().text($(this).children("option").first().text()).removeClass("active")})):($("form.active .errors").text(n.Errors),$("form > *").show())}},models={submission:function(n,t){return $.post("/Umbraco/Api/BoschDoyZipApi/"+t,n.serialize()+"&lang="+views.lang)}};views.init()