(function(a,b){a.fn.rotator=function(c){var e=a(this),d={currentIndex:0,timer:b,elem:e,opts:{interval:5000,speed:"slow"}};d.init=function(f){a.extend(d.opts,f);d.elem.children().fadeOut(d.opts.speed);e.children().eq(d.currentIndex).fadeIn(d.opts.speed);if(d.currentIndex==(d.elem.children().size()-1)){d.currentIndex=0}else{d.currentIndex++}d.timer=setInterval(function(){d.next()},d.opts.interval)};d.next=function(){d.elem.children().fadeOut(d.opts.speed);d.elem.children().eq(d.currentIndex).fadeIn(d.opts.speed);if(d.currentIndex==(d.elem.children().size()-1)){d.currentIndex=0}else{d.currentIndex++}};return d.init(c)};a(document).ready(function(){var c=a(window).width();var f=a("#nav ul.nav");var e=f.width();var d=(1262-e)/2;f.css({left:d})})}(window.jQuery));
