(function(e){"use strict";function t(e){return new RegExp("(^|\\s+)"+e+"(\\s+|$)")}function s(e,t){var s=n(e,t)?i:r;s(e,t)}var n,r,i;if("classList"in document.documentElement){n=function(e,t){return e.classList.contains(t)};r=function(e,t){e.classList.add(t)};i=function(e,t){e.classList.remove(t)}}else{n=function(e,n){return t(n).test(e.className)};r=function(e,t){if(!n(e,t)){e.className=e.className+" "+t}};i=function(e,n){e.className=e.className.replace(t(n)," ")}}var o={hasClass:n,addClass:r,removeClass:i,toggleClass:s,has:n,add:r,remove:i,toggle:s};if(typeof define==="function"&&define.amd){define(o)}else{e.classie=o}})(window);(function(e){e(document).ready(function(){function h(){f.click(function(e){p("next");e.preventDefault()});l.click(function(e){p("prev");e.preventDefault()})}function p(e){if(c)return false;c=true;var n=0;var i=s[o];if(e==="next"){o=o<u-1?o+1:0}else if(e==="prev"){o=o>0?o-1:u-1}var a=s[o];var f=function(){this.removeEventListener(r,f);classie.removeClass(this,"current");classie.removeClass(this,e==="next"?"navOutNext":"navOutPrev");++n;if(n===2){c=false}};var l=function(){this.removeEventListener(r,l);classie.addClass(this,"current");classie.removeClass(this,e==="next"?"navInNext":"navInPrev");++n;if(n===2){c=false}};if(t.animations){i.addEventListener(r,f);a.addEventListener(r,l)}else{f();l()}classie.addClass(i,e==="next"?"navOutNext":"navOutPrev");classie.addClass(a,e==="next"?"navInNext":"navInPrev")}var t={animations:Modernizr.cssanimations},n={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd",animation:"animationend"},r=n[Modernizr.prefixed("animation")],i=e("#ut-fancy-slider"),s=e("ul.ut-fancy-slides").children(),o=0,u=s.length,a=i.find("nav"),f=a.find(".next"),l=a.find(".prev"),c=false;h()})})(jQuery)