var delayLength=6E3;function doMove(a,e){var d=$("#mover").css("left");d=="auto"&&(d=0);var f=parseFloat(d,10)-a;f==e?$(".slide img").animate({top:0},function(){$("#mover").animate({left:0},function(){$(".slide img").animate({top:1})})}):$(".slide img").animate({top:-300},function(){$("#mover").animate({left:f},function(){$(".slide img").animate({top:1})})})}
$(function(){var a=$("#slide-1"),e=a.css("width"),d=a.css("paddingLeft"),a=a.css("paddingRight"),e=parseFloat(e,10),d=parseFloat(d,10),a=parseFloat(a,10),e=e+d+a,f=$(".slide").length,b=-(e*f);$("#mover").css("width",f*e);sliderIntervalID=setInterval(function(){doMove(e,b,f)},delayLength);$("#slider-stopper").click(function(){$(this).text()=="Stop"?(clearInterval(sliderIntervalID),$(this).text("Start")):(sliderIntervalID=setInterval(function(){doMove(e,b,f)},delayLength),$(this).text("Stop"))})});
(function(a){a.fn.superfish=function(d){var f=a.fn.superfish,b=f.c,e=a(['<span class="',b.arrowClass,'"> &#187;</span>'].join("")),h=function(){var g=a(this),c=i(g);clearTimeout(c.sfTimer);g.showSuperfishUl().siblings().hideSuperfishUl()},g=function(){var g=a(this),c=i(g),d=f.op;clearTimeout(c.sfTimer);c.sfTimer=setTimeout(function(){d.retainPath=a.inArray(g[0],d.$path)>-1;g.hideSuperfishUl();d.$path.length&&g.parents(["li.",d.hoverClass].join("")).length<1&&h.call(d.$path)},d.delay)},i=function(a){a=
a.parents(["ul.",b.menuClass,":first"].join(""))[0];f.op=f.o[a.serial];return a};return this.each(function(){var i=this.serial=f.o.length,c=a.extend({},f.defaults,d);c.$path=a("li."+c.pathClass,this).slice(0,c.pathLevels).each(function(){a(this).addClass([c.hoverClass,b.bcClass].join(" ")).filter("li:has(ul)").removeClass(c.pathClass)});f.o[i]=f.op=c;a("li:has(ul)",this)[a.fn.hoverIntent&&!c.disableHI?"hoverIntent":"hover"](h,g).each(function(){c.autoArrows&&a(">a:first-child",this).addClass(b.anchorClass).append(e.clone())}).not("."+
b.bcClass).hideSuperfishUl();var l=a("a",this);l.each(function(a){var c=l.eq(a).parents("li");l.eq(a).focus(function(){h.call(c)}).blur(function(){g.call(c)})});c.onInit.call(this)}).each(function(){var g=[b.menuClass];f.op.dropShadows&&!(a.browser.msie&&a.browser.version<7)&&g.push(b.shadowClass);a(this).addClass(g.join(" "))})};var e=a.fn.superfish;e.o=[];e.op={};e.IE7fix=function(){var d=e.op;a.browser.msie&&a.browser.version>6&&d.dropShadows&&d.animation.opacity!=void 0&&this.toggleClass(e.c.shadowClass+
"-off")};e.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};e.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:!0,dropShadows:!0,disableHI:!1,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};a.fn.extend({hideSuperfishUl:function(){var d=e.op,f=d.retainPath===!0?d.$path:"";d.retainPath=!1;f=a(["li.",
d.hoverClass].join(""),this).add(this).not(f).removeClass(d.hoverClass).find(">ul").hide().css("visibility","hidden");d.onHide.call(f);return this},showSuperfishUl:function(){var a=e.op,f=this.addClass(a.hoverClass).find(">ul:hidden").css("visibility","visible");e.IE7fix.call(f);a.onBeforeShow.call(f);f.animate(a.animation,a.speed,function(){e.IE7fix.call(f);a.onShow.call(f)});return this}})})(jQuery);
(function(a){function e(g){function b(g){var c=RegExp(a.map(g,encodeURIComponent).join("|"),"ig");return function(a){return a.replace(c,decodeURIComponent)}}g=a.extend({unescape:!1},g||{});d.encoder=function(a){return a===!0?function(a){return a}:typeof a=="string"&&(a=b(a.split("")))||typeof a=="function"?function(g){return a(encodeURIComponent(g))}:encodeURIComponent}(g.unescape)}var d={put:function(a,b){(b||window).location.hash=this.encoder(a)},get:function(g){g=(g||window).location.hash.replace(/^#/,
"");return a.browser.mozilla?g:decodeURIComponent(g)},encoder:encodeURIComponent},f={id:"__jQuery_history",init:function(){var g='<iframe id="'+this.id+'" style="display:none" src="javascript:false;" />';a("body").prepend(g);return this},_document:function(){return a("#"+this.id)[0].contentWindow.document},put:function(a){var b=this._document();b.open();b.close();d.put(a,b)},get:function(){return d.get(this._document())}},b={appState:void 0,callback:void 0,init:function(){},check:function(){},load:function(){}};
a.history=b;var j={init:function(a,f){e(f);b.callback=a;var h=d.get();b.appState=h;b.callback(h);setInterval(b.check,100)},check:function(){var a=d.get();if(a!=b.appState)b.appState=a,b.callback(a)},load:function(a){if(a!=b.appState)d.put(a),b.appState=a,b.callback(a)}},h={init:function(a,i){e(i);b.callback=a;var h=d.get();b.appState=h;f.init().put(h);b.callback(h);setInterval(b.check,100)},check:function(){var a=f.get(),e=d.get();if(e!=a)e==b.appState?(b.appState=a,d.put(a),b.callback(a)):(b.appState=
e,f.put(e),b.callback(e))},load:function(a){if(a!=b.appState)d.put(a),f.put(a),b.appState=a,b.callback(a)}};a.browser.msie&&(a.browser.version<8||document.documentMode<8)?a.extend(b,h):a.extend(b,j)})(jQuery);
(function(a,e){a.fn.quicksearch=function(d,f){var b,j,h,g,i="",k=this,c=a.extend({delay:100,selector:null,stripeRows:null,loader:null,noResults:"",bind:"keyup",onBefore:function(){},onAfter:function(){},show:function(){this.style.display=""},hide:function(){this.style.display="none"},prepareQuery:function(a){return a.toLowerCase().split(" ")},testQuery:function(a,b){for(var c=0;c<a.length;c+=1)if(b.indexOf(a[c])===-1)return!1;return!0}},f);this.go=function(){var b=0,d=!0,e=c.prepareQuery(i),f=i.replace(" ",
"").length===0;e[0].length<1?a("#searchResult").hide():(a("#searchResult").show(),b=e[0],a("#searchQuery").empty(),a("#searchQuery").append(b));for(var b=0,g=h.length;b<g;b++)f||c.testQuery(e,j[b],h[b])?(c.show.apply(h[b]),d=!1):c.hide.apply(h[b]);d?this.results(!1):(this.results(!0),this.stripe());this.loader(!1);c.onAfter();return this};this.stripe=function(){if(typeof c.stripeRows==="object"&&c.stripeRows!==null){var b=c.stripeRows.join(" "),d=c.stripeRows.length;g.not(":hidden").each(function(e){a(this).removeClass(b).addClass(c.stripeRows[e%
d])})}return this};this.strip_html=function(b){b=b.replace(RegExp("<[^<]+>","g"),"");return b=a.trim(b.toLowerCase())};this.results=function(b){typeof c.noResults==="string"&&c.noResults!==""&&(b?a(c.noResults).hide():a(c.noResults).show());return this};this.loader=function(b){typeof c.loader==="string"&&c.loader!==""&&(b?a(c.loader).show():a(c.loader).hide());return this};this.cache=function(){g=a(d);typeof c.noResults==="string"&&c.noResults!==""&&(g=g.not(c.noResults));j=(typeof c.selector==="string"?
g.find(c.selector):a(d).not(c.noResults)).map(function(){return k.strip_html(this.innerHTML)});h=g.map(function(){return this});return this.go()};this.trigger=function(){this.loader(!0);c.onBefore();e.clearTimeout(b);b=e.setTimeout(function(){k.go()},c.delay);return this};this.cache();this.results(!0);this.stripe();this.loader(!1);return this.each(function(){a(this).bind(c.bind,function(){i=a(this).val();k.trigger()})})}})(jQuery,this,document);

