(function(a){function h(b){function d(b){for(;b&&b.nodeName.toLowerCase()!="html";b=b.parentNode){var d=a.css(b,"background-color");if(d.indexOf("rgb")>=0){var e=d.match(/\d+/g);return"#"+c(e[0])+c(e[1])+c(e[2])}if(d&&d!="transparent")return d}return"#ffffff"}function c(a){var a=parseInt(a).toString(16);return a.length<2?"0"+a:a}b.each(function(){a(this).css("background-color",d(this))})}function g(b,c){var d=a(c.pager);a.each(b,function(f,g){var h=typeof c.pagerAnchorBuilder=="function"?a(c.pagerAnchorBuilder(f,g)):a('<a href="#">'+(f+1)+"</a>");if(h.parents("body").length==0)h.appendTo(d);h.bind(c.pagerEvent,function(){c.nextSlide=f;var a=b[0].parentNode,d=a.cycleTimeout;if(d){clearTimeout(d);a.cycleTimeout=0}if(typeof c.pagerClick=="function")c.pagerClick(c.nextSlide,b[c.nextSlide]);e(b,c,1,!c.rev);return false})});a.fn.cycle.updateActivePagerLink(c.pager,c.startingSlide)}function f(a,b,c){var d=a[0].parentNode,f=d.cycleTimeout;if(f){clearTimeout(f);d.cycleTimeout=0}b.nextSlide=b.currSlide+c;if(b.nextSlide<0){if(b.nowrap)return false;b.nextSlide=a.length-1}else if(b.nextSlide>=a.length){if(b.nowrap)return false;b.nextSlide=0}if(b.prevNextClick&&typeof b.prevNextClick=="function")b.prevNextClick(c>0,b.nextSlide,a[b.nextSlide]);e(a,b,1,c>=0);return false}function e(b,c,d,f){if(c.busy)return;var g=b[0].parentNode,h=b[c.currSlide],i=b[c.nextSlide];if(g.cycleTimeout===0&&!d)return;if(!d&&!g.cyclePause&&(c.autostop&&--c.countdown<=0||c.nowrap&&!c.random&&c.nextSlide<c.currSlide)){if(c.end)c.end(c);return}if(d||!g.cyclePause){if(c.before.length)a.each(c.before,function(a,b){b.apply(i,[h,i,c,f])});var j=function(){if(a.browser.msie&&c.cleartype)this.style.removeAttribute("filter");a.each(c.after,function(a,b){b.apply(i,[h,i,c,f])})};if(c.nextSlide!=c.currSlide){c.busy=1;if(c.fxFn)c.fxFn(h,i,c,j,f);else if(a.isFunction(a.fn.cycle[c.fx]))a.fn.cycle[c.fx](h,i,c,j);else a.fn.cycle.custom(h,i,c,j)}if(c.random){c.currSlide=c.nextSlide;if(++c.randomIndex==b.length)c.randomIndex=0;c.nextSlide=c.randomMap[c.randomIndex]}else{var k=c.nextSlide+1==b.length;c.nextSlide=k?0:c.nextSlide+1;c.currSlide=k?b.length-1:c.nextSlide-1}if(c.pager)a.fn.cycle.updateActivePagerLink(c.pager,c.currSlide)}if(c.timeout&&!c.continuous)g.cycleTimeout=setTimeout(function(){e(b,c,0,!c.rev)},c.timeout);else if(c.continuous&&g.cyclePause)g.cycleTimeout=setTimeout(function(){e(b,c,0,!c.rev)},10)}function d(){if(window.console&&window.console.log)window.console.log("[cycle] "+Array.prototype.join.call(arguments,""))}var b="2.22";var c=a.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);a.fn.cycle=function(b){return this.each(function(){b=b||{};if(b.constructor==String){switch(b){case"stop":if(this.cycleTimeout)clearTimeout(this.cycleTimeout);this.cycleTimeout=0;return;case"pause":this.cyclePause=1;return;case"resume":this.cyclePause=0;return;default:b={fx:b}}}if(this.cycleTimeout)clearTimeout(this.cycleTimeout);this.cycleTimeout=0;this.cyclePause=0;var i=a(this);var j=b.slideExpr?a(b.slideExpr,this):i.children();var k=j.get();if(k.length<2){d("terminating; too few slides: "+k.length);return}var l=a.extend({},a.fn.cycle.defaults,b||{},a.metadata?i.metadata():a.meta?i.data():{});if(l.autostop)l.countdown=l.autostopCount||k.length;l.before=l.before?[l.before]:[];l.after=l.after?[l.after]:[];l.after.unshift(function(){l.busy=0});if(l.continuous)l.after.push(function(){e(k,l,0,!l.rev)});if(c&&l.cleartype&&!l.cleartypeNoBg)h(j);var m=this.className;l.width=parseInt((m.match(/w:(\d+)/)||[])[1])||l.width;l.height=parseInt((m.match(/h:(\d+)/)||[])[1])||l.height;l.timeout=parseInt((m.match(/t:(\d+)/)||[])[1])||l.timeout;if(i.css("position")=="static")i.css("position","relative");if(l.width)i.width(l.width);if(l.height&&l.height!="auto")i.height(l.height);if(l.random){l.randomMap=[];for(var n=0;n<k.length;n++)l.randomMap.push(n);l.randomMap.sort(function(a,b){return Math.random()-.5});l.randomIndex=0;l.startingSlide=l.randomMap[0]}else if(l.startingSlide>=k.length)l.startingSlide=0;var o=l.startingSlide||0;j.css({position:"absolute",top:0,left:0}).hide().each(function(b){var c=o?b>=o?k.length-(b-o):o-b:k.length-b;a(this).css("z-index",c)});a(k[o]).css("opacity",1).show();if(a.browser.msie)k[o].style.removeAttribute("filter");if(l.fit&&l.width)j.width(l.width);if(l.fit&&l.height&&l.height!="auto")j.height(l.height);if(l.pause)i.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});var p=a.fn.cycle.transitions[l.fx];if(a.isFunction(p))p(i,j,l);else if(l.fx!="custom")d("unknown transition: "+l.fx);j.each(function(){var b=a(this);this.cycleH=l.fit&&l.height?l.height:b.height();this.cycleW=l.fit&&l.width?l.width:b.width()});l.cssBefore=l.cssBefore||{};l.animIn=l.animIn||{};l.animOut=l.animOut||{};j.not(":eq("+o+")").css(l.cssBefore);if(l.cssFirst)a(j[o]).css(l.cssFirst);if(l.timeout){if(l.speed.constructor==String)l.speed={slow:600,fast:200}[l.speed]||400;if(!l.sync)l.speed=l.speed/2;while(l.timeout-l.speed<250)l.timeout+=l.speed}if(l.easing)l.easeIn=l.easeOut=l.easing;if(!l.speedIn)l.speedIn=l.speed;if(!l.speedOut)l.speedOut=l.speed;l.slideCount=k.length;l.currSlide=o;if(l.random){l.nextSlide=l.currSlide;if(++l.randomIndex==k.length)l.randomIndex=0;l.nextSlide=l.randomMap[l.randomIndex]}else l.nextSlide=l.startingSlide>=k.length-1?0:l.startingSlide+1;var q=j[o];if(l.before.length)l.before[0].apply(q,[q,q,l,true]);if(l.after.length>1)l.after[1].apply(q,[q,q,l,true]);if(l.click&&!l.next)l.next=l.click;if(l.next)a(l.next).bind("click",function(){return f(k,l,l.rev?-1:1)});if(l.prev)a(l.prev).bind("click",function(){return f(k,l,l.rev?1:-1)});if(l.pager)g(k,l);l.addSlide=function(b){var d=a(b),e=d[0];if(!l.autostopCount)l.countdown++;k.push(e);if(l.els)l.els.push(e);l.slideCount=k.length;d.css("position","absolute").appendTo(i);if(c&&l.cleartype&&!l.cleartypeNoBg)h(d);if(l.fit&&l.width)d.width(l.width);if(l.fit&&l.height&&l.height!="auto")j.height(l.height);e.cycleH=l.fit&&l.height?l.height:d.height();e.cycleW=l.fit&&l.width?l.width:d.width();d.css(l.cssBefore);if(typeof l.onAddSlide=="function")l.onAddSlide(d)};if(l.timeout||l.continuous)this.cycleTimeout=setTimeout(function(){e(k,l,0,!l.rev)},l.continuous?10:l.timeout+(l.delay||0))})};a.fn.cycle.updateActivePagerLink=function(b,c){a(b).find("a").removeClass("activeSlide").filter("a:eq("+c+")").addClass("activeSlide")};a.fn.cycle.custom=function(b,c,d,e){var f=a(b),g=a(c);g.css(d.cssBefore);var h=function(){g.animate(d.animIn,d.speedIn,d.easeIn,e)};f.animate(d.animOut,d.speedOut,d.easeOut,function(){if(d.cssAfter)f.css(d.cssAfter);if(!d.sync)h()});if(d.sync)h()};a.fn.cycle.transitions={fade:function(b,c,d){c.not(":eq("+d.startingSlide+")").css("opacity",0);d.before.push(function(){a(this).show()});d.animIn={opacity:1};d.animOut={opacity:0};d.cssBefore={opacity:0};d.cssAfter={display:"none"}}};a.fn.cycle.ver=function(){return b};a.fn.cycle.defaults={fx:"scollLeft",timeout:4e3,continuous:0,speed:800,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,pause:1,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:0,nowrap:0}})(jQuery);(function(a){a.fn.cycle.transitions.scrollLeft=function(b,c,d){d.before.push(function(b,c,d){a(this).show();d.cssBefore.left=c.offsetWidth;d.animOut.left=0-b.offsetWidth});d.cssFirst={left:0};d.animIn={left:0}};a.fn.cycle.transitions.scrollRight=function(b,c,d){b.css("overflow","hidden");d.before.push(function(b,c,d){a(this).show();d.cssBefore.left=0-c.offsetWidth;d.animOut.left=b.offsetWidth});d.cssFirst={left:0};d.animIn={left:0}};a.fn.cycle.transitions.scrollHorz=function(b,c,d){b.css("overflow","hidden").width();d.before.push(function(b,d,e,f){a(this).show();var g=b.offsetWidth,h=d.offsetWidth;e.cssBefore=f?{left:h}:{left:-h};e.animIn.left=0;e.animOut.left=f?-g:g;c.not(b).css(e.cssBefore)});d.cssFirst={left:0};d.cssAfter={display:"none"}}})(jQuery)

$(function(){$("#featureSlider").cycle({fx:"scrollLeft",pager:"#featureNavigation",timeout:5500})})
