(function(e){function t(e){if(e in u.style)return e;var t=["moz","webkit","o","ms"],n=e.charat(0).touppercase()+e.substr(1);if(e in u.style)return e;for(e=0;ee.fn.jquery&&(e.csshooks.transformorigin={get:function(e){return e.style[a.transformorigin]},set:function(e,t){e.style[a.transformorigin]=t}},e.csshooks.transition={get:function(e){return e.style[a.transition]},set:function(e,t){e.style[a.transition]=t}});i("scale");i("translate");i("rotate");i("rotatex");i("rotatey");i("rotate3d");i("perspective");i("skewx");i("skewy");i("x",!0);i("y",!0);n.prototype={setfromstring:function(e,t){var r="string"===typeof t?t.split(","):t.constructor===array?t:[t];r.unshift(e);n.prototype.set.apply(this,r)},set:function(e){var t=array.prototype.slice.apply(arguments,[1]);this.setter[e]?this.setter[e].apply(this,t):this[e]=t.join(",")},get:function(e){return this.getter[e]?this.getter[e].apply(this):this[e]||0},setter:{rotate:function(e){this.rotate=s(e,"deg")},rotatex:function(e){this.rotatex=s(e,"deg")},rotatey:function(e){this.rotatey=s(e,"deg")},scale:function(e,t){void 0===t&&(t=e);this.scale=e+","+t},skewx:function(e){this.skewx=s(e,"deg")},skewy:function(e){this.skewy=s(e,"deg")},perspective:function(e){this.perspective=s(e,"px")},x:function(e){this.set("translate",e,null)},y:function(e){this.set("translate",null,e)},translate:function(e,t){void 0===this._translatex&&(this._translatex=0);void 0===this._translatey&&(this._translatey=0);null!==e&&void 0!==e&&(this._translatex=s(e,"px"));null!==t&&void 0!==t&&(this._translatey=s(t,"px"));this.translate=this._translatex+","+this._translatey}},getter:{x:function(){return this._translatex||0},y:function(){return this._translatey||0},scale:function(){var e=(this.scale||"1,1").split(",");e[0]&&(e[0]=parsefloat(e[0]));e[1]&&(e[1]=parsefloat(e[1]));return e[0]===e[1]?e[0]:e},rotate3d:function(){for(var e=(this.rotate3d||"0,0,0,0deg").split(","),t=0;3>=t;++t)e[t]&&(e[t]=parsefloat(e[t]));e[3]&&(e[3]=s(e[3],"deg"));return e}},parse:function(e){var t=this;e.replace(/([a-za-z0-9]+)\((.*?)\)/g,function(e,n,r){t.setfromstring(n,r)})},tostring:function(e){var t=[],n;for(n in this)if(this.hasownproperty(n)&&(a.transform3d||!("rotatex"===n||"rotatey"===n||"perspective"===n||"transformorigin"===n)))"_"!==n[0]&&(e&&"scale"===n?t.push(n+"3d("+this[n]+",1)"):e&&"translate"===n?t.push(n+"3d("+this[n]+",0)"):t.push(n+"("+this[n]+")"));return t.join(" ")}};e.fn.transition=e.fn.transit=function(t,n,i,s){var u=this,f=0,c=!0;"function"===typeof n&&(s=n,n=void 0);"function"===typeof i&&(s=i,i=void 0);"undefined"!==typeof t.easing&&(i=t.easing,delete t.easing);"undefined"!==typeof t.duration&&(n=t.duration,delete t.duration);"undefined"!==typeof t.complete&&(s=t.complete,delete t.complete);"undefined"!==typeof t.queue&&(c=t.queue,delete t.queue);"undefined"!==typeof t.delay&&(f=t.delay,delete t.delay);"undefined"===typeof n&&(n=e.fx.speeds._default);"undefined"===typeof i&&(i=e.cssease._default);n=o(n);var h=r(t,n,i,f),v=e.transit.enabled&&a.transition?parseint(n,10)+parseint(f,10):0;if(0===v)return n=c,i=function(e){u.css(t);s&&s.apply(u);e&&e()},!0===n?u.queue(i):n?u.queue(n,i):i(),u;var m={};n=c;i=function(n){var r=0;"moztransition"===a.transition&&25>r&&(r=25);window.settimeout(function(){var r=!1,i=function(){r&&u.unbind(l,i);0=0)return r;else if(e<=360&&e>=315)return r;else if(e>=135&&e<=225)return i;else if(e>45&&e<135)return o;else return s}function s(){var e=h.x-b.x;var t=b.y-h.y;var n=math.atan2(t,e);var r=math.round(n*180/math.pi);if(r<0)r=360-math.abs(r);return r}function x(){return math.round(math.sqrt(math.pow(b.x-h.x,2)+math.pow(b.y-h.y,2)))}function t(e,t){if(n.allowpagescroll==u){e.preventdefault()}else{var a=n.allowpagescroll==c;switch(t){case r:if(n.swipeleft&&a||!a&&n.allowpagescroll!=f)e.preventdefault();break;case i:if(n.swiperight&&a||!a&&n.allowpagescroll!=f)e.preventdefault();break;case s:if(n.swipeup&&a||!a&&n.allowpagescroll!=l)e.preventdefault();break;case o:if(n.swipedown&&a||!a&&n.allowpagescroll!=l)e.preventdefault();break}}}function n(e,t){if(n.swipestatus)n.swipestatus.call(_,e,t,direction||null,distance||0);if(t==v){if(n.click&&(p==1||!m)&&(isnan(distance)||distance==0))n.click.call(_,e,e.target)}if(t==d){if(n.swipe){n.swipe.call(_,e,direction,distance)}switch(direction){case r:if(n.swipeleft)n.swipeleft.call(_,e,direction,distance);break;case i:if(n.swiperight)n.swiperight.call(_,e,direction,distance);break;case s:if(n.swipeup)n.swipeup.call(_,e,direction,distance);break;case o:if(n.swipedown)n.swipedown.call(_,e,direction,distance);break}}}function c(e){p=0;h.x=0;h.y=0;b.x=0;b.y=0;f.x=0;f.y=0}function l(e){e.preventdefault();distance=x();direction=t();if(n.triggerontouchend){e=d;if((p==n.fingers||!m)&&b.x!=0){if(distance>=n.threshold){n(e,e);c(e)}else{e=v;n(e,e);c(e)}}else{e=v;n(e,e);c(e)}}else if(e==p){e=v;n(e,e);c(e)}m.removeeventlistener(y,a,false);m.removeeventlistener(b,l,false)}function a(e){if(e==d||e==v)return;var r=m?e.touches[0]:e;b.x=r.pagex;b.y=r.pagey;direction=t();if(m){p=e.touches.length}e=p;t(e,direction);if(p==n.fingers||!m){distance=x();if(n.swipestatus)n(e,e,direction,distance);if(!n.triggerontouchend){if(distance>=n.threshold){e=d;n(e,e);c(e)}}}else{e=v;n(e,e);c(e)}}function o(e){var t=m?e.touches[0]:e;e=h;if(m){p=e.touches.length}distance=0;direction=null;if(p==n.fingers||!m){h.x=b.x=t.pagex;h.y=b.y=t.pagey;if(n.swipestatus)n(e,e)}else{c(e)}m.addeventlistener(y,a,false);m.addeventlistener(b,l,false)}var m=this;var _=e(this);var d=null;var p=0;var h={x:0,y:0};var b={x:0,y:0};var f={x:0,y:0};try{this.addeventlistener(g,o,false);this.addeventlistener(w,c)}catch(i){}})}})(jquery) $(window).load(function() { // portfolio slides // $('#slides').slides({ preload: true, preloadimage: 'images/nivo-preloader.gif', play: 0, pause: 0, effect: 'fade', autoheight: true, effects: { navigation: 'fade', // [string] can be either "slide" or "fade" pagination: 'fade' // [string] can be either "slide" or "fade" }, hoverpause: true }); }); // homepage slider // var api; jquery(document).ready(function() { api = jquery('.fullwidthbanner').revolution( { delay:9000, startheight:450, startwidth:1120, hidethumbs:200, thumbwidth:100, // thumb with and height and amount (only if navigation tyope set to thumb !) thumbheight:50, thumbamount:5, navigationtype:"bullet", //bullet, thumb, none, both (no thumbs in fullwidth version !) navigationarrows:"verticalcentered", //nexttobullets, verticalcentered, none navigationstyle:"round", //round,square,navbar touchenabled:"on", // enable swipe function : on/off onhoverstop:"on", // stop banner timet at hover on slide on/off navoffsethorizontal:0, navoffsetvertical:0, stopatslide:-1, stopafterloops:-1, shadow:0, //0 = no shadow, 1,2,3 = 3 different art of shadows (no shadow in fullwidth version !) fullwidth:"on" // turns on or off the fullwidth image centering in fullwidth modus }); });