(function(a){a.event.special.mousewheel={setup:function(){var b=a.event.special.mousewheel.handler;if(a.browser.mozilla){a(this).bind("mousemove.mousewheel",function(c){a.data(this,"mwcursorposdata",{pageX:c.pageX,pageY:c.pageY,clientX:c.clientX,clientY:c.clientY})})}if(this.addEventListener){this.addEventListener((a.browser.mozilla?"DOMMouseScroll":"mousewheel"),b,false)}else{this.onmousewheel=b}},teardown:function(){var b=a.event.special.mousewheel.handler;a(this).unbind("mousemove.mousewheel");if(this.removeEventListener){this.removeEventListener((a.browser.mozilla?"DOMMouseScroll":"mousewheel"),b,false)}else{this.onmousewheel=function(){}}a.removeData(this,"mwcursorposdata")},handler:function(d){var e=Array.prototype.slice.call(arguments,1);d=a.event.fix(d||window.event);a.extend(d,a.data(this,"mwcursorposdata")||{});var c=0,b=true;if(d.wheelDelta){c=d.wheelDelta/120}if(d.detail){c=-d.detail/3}if(a.browser.opera){c=-d.wheelDelta}d.data=d.data||{};d.type="mousewheel";e.unshift(c);e.unshift(d);return a.event.handle.apply(this,e)
}};a.fn.extend({mousewheel:function(b){return b?this.bind("mousewheel",b):this.trigger("mousewheel")},unmousewheel:function(b){return this.unbind("mousewheel",b)}})})(jQuery);

(function($){$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnImgPrev:null,btnImgNext:null,btnImgPrevSrc:null,btnImgNextSrc:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:3,divWidth:null,start:0,scroll:1,beforeStart:null},o||{});return this.each(function(){var running=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var div=$(this),ul=$("ul",div),tLi=$("li",ul),tl=tLi.size(),v=o.visible;var arrowPrev=$("#"+o.btnImgPrev);var arrowNext=$("#"+o.btnImgNext);if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());o.start+=v;}
else{arrowPrev.attr("src",o.btnImgPrevSrc+"light.png");arrowPrev.attr("style","cursor:auto;");}
var li=$("li",ul),itemLength=li.size(),curr=o.start;div.css("visibility","visible");li.css({overflow:"hidden",float:o.vertical?"none":"left"});ul.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});div.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var liSize=o.vertical?height(li):width(li);var ulSize=0
var divSize=liSize*v;if(o.divWidth!=null){divSize=o.divWidth;if(ulSize<=divSize){arrowNext.attr("src",o.btnImgNextSrc+"light.png");arrowNext.attr("style","cursor:auto;");}}
for(var i=0;i<li.length;i++){ulSize+=li[i].offsetWidth;li[i].style.width=li[i].offsetWidth;li[i].style.height=li[i].offsetHeight;}
ul.css(sizeCss,ulSize+"px").css(animCss,-(curr*liSize));div.css(sizeCss,divSize+"px");if(o.btnPrev)
$(o.btnPrev).click(function(){return go(curr-o.scroll);});if(o.btnNext)
$(o.btnNext).click(function(){return go(curr+o.scroll);});if(o.btnGo)
$.each(o.btnGo,function(i,val){$(val).click(function(){return go(o.circular?o.visible+i:i);});});if(o.mouseWheel&&div.mousewheel)
div.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll);});if(o.auto)
setInterval(function(){go(curr+o.scroll);},o.auto+o.speed);function vis(){return li.slice(curr).slice(0,v);};function go(to){if(!running){if(o.beforeStart)
o.beforeStart.call(this,vis());if(o.circular){if(to<=o.start-v-1){ul.css(animCss,-((itemLength-(v*2))*liSize)+"px");curr=to==o.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll;}else if(to>=itemLength-v+1){ul.css(animCss,-((v)*liSize)+"px");curr=to==itemLength-v+1?v+1:v+o.scroll;}else curr=to;}else{if(to<0||to>itemLength-v||ulSize<=divSize){return;}
else{curr=to;if(to==0){arrowPrev.attr("src",o.btnImgPrevSrc+"light.png");arrowNext.attr("src",o.btnImgNextSrc+"dark.png");arrowPrev.attr("style","cursor:auto;");arrowNext.attr("style","cursor:pointer;");}
else{arrowPrev.attr("src",o.btnImgPrevSrc+"dark.png");arrowPrev.attr("style","cursor:pointer;");if(to==itemLength-v){arrowNext.attr("src",o.btnImgNextSrc+"light.png");arrowNext.attr("style","cursor:auto;");}}}}
running=true;ul.animate(animCss=="left"?{left:-(curr*liSize)}:{top:-(curr*liSize)},o.speed,o.easing,function(){if(o.afterEnd)
o.afterEnd.call(this,vis());running=false;});if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass("disabled");$((curr-o.scroll<0&&o.btnPrev)||(curr+o.scroll>itemLength-v&&o.btnNext)||[]).addClass("disabled");}}
return false;};});};function css(el,prop){return parseInt($.css(el[0],prop))||0;};function width(el){return el[0].offsetWidth+css(el,'marginLeft')+css(el,'marginRight');};function height(el){return el[0].offsetHeight+css(el,'marginTop')+css(el,'marginBottom');};})(jQuery);
(function(d){var a=null;var c=[];d.elementReady=function(f,e){c.push({id:f,fn:e});if(!a){a=setInterval(b,d.elementReady.interval_ms)}return this};d.elementReady.interval_ms=23;function b(){var g=d.isReady;for(var f=c.length-1;0<=f;--f){var e=document.getElementById(c[f].id);if(e){var h=c[f].fn;c[f]=c[c.length-1];c.pop();h.apply(e,[d])}}if(g){clearInterval(a);a=null}}})(jQuery);

