(function(b){b.fn.sudoSlider=function(e){var d=true;var c=!d;var h={prevNext:d,prevHtml:' previous ',nextHtml:' next ',controlsShow:d,controlsAttr:'id="controls"',controlsFadeSpeed:"400",controlsFade:d,insertAfter:d,firstShow:c,firstHtml:' first ',lastShow:c,lastHtml:' last ',numericAttr:'class="controls"',numericText:["1"],vertical:c,speed:"800",ease:"swing",auto:c,pause:"2000",continuous:c,clickableAni:c,numeric:c,updateBefore:c,history:c,speedhistory:"400",autoheight:d,customLink:c,fade:c,crossFade:d,fadespeed:"1000",ajax:c,loadingText:"Loading Content...",preloadAjax:c,startSlide:c,ajaxLoadFunction:c,beforeAniFunc:c,afterAniFunc:c,uncurrentFunc:c,currentFunc:c,autowidth:d,slideCount:1};var e=b.extend(h,e);var f=[e.controlsShow,e.controlsFadeSpeed,e.controlsFade,e.insertAfter,e.firstShow,e.lastShow,e.vertical,e.speed,e.ease,e.auto,e.pause,e.continuous,e.prevNext,e.numeric,e.numericAttr,e.numericText,e.clickableAni,e.history,e.speedhistory,e.autoheight,e.customLink,e.fade,e.crossFade,e.fadespeed,e.updateBefore,e.ajax,e.preloadAjax,e.startSlide,e.ajaxLoadFunction,e.beforeAniFunc,e.afterAniFunc,e.uncurrentFunc,e.currentFunc,e.prevHtml,e.nextHtml,e.loadingText,e.firstHtml,e.controlsAttr,e.lastHtml,e.autowidth,e.slideCount];var g=this;return this.each(function(){var an,X,W,k,af,ac,ap,ae,P,am,av,ao,ak,j,n,F,v,H,aw,B,N,O,Q,E,ar,C,ai,y,q,Y,K,o=b(this);ad(o,c,c);function ad(az,ay,w){aw=c;an=d;if(f[9]){f[11]=d}X=az.children("ul");W=X.children("li");k=W;af=W.length;ac=W.eq(0).outerWidth(d);ap=W.eq(0).outerHeight(d);if(f[25]){if(X.length==0){az.append("
");X=az.children("ul")}if(f[25].length>af){for(var ax=1;ax<=f[25].length-af;ax++){X.append(""+f[35]+"
")}W=X.children("li");af=W.length;ac=W.eq(0).width()}}ae=0;P=ae;am=ae;av=af-1;ao=d;ak=c;j=c;n=c;F=0;v=new Array();H=c;aw=c;B=screen.fontSmoothingEnabled;az.css("overflow","hidden");if(az.css("position")=="static"){az.css("position","relative")}W.css("float","left");if(w||w===0){if(K){K--}if(!K){f[25]=false}}else{if(f[25]&&f[11]&&f[40]!=1){K=0;for(var t=0;t=1;ax--){var aA=W.eq(-f[40]+ax-1).clone();t=t+aA.outerHeight(d);X.prepend(aA);X.append(W.eq(f[40]-ax).clone().css({"z-index":"0"}))}}else{t=0;for(ax=f[40];ax>=1;ax--){var aA=W.eq(-f[40]+ax-1).clone();t=t+aA.outerWidth(d);X.prepend(aA);X.append(W.eq(f[40]-ax).clone().css({"z-index":"0"}))}}if(f[25]){if(f[25][0]){Z("last",0,c,0,c)}if(f[25][af-1]){Z("first",(af-1),c,0,c);Z(av,av,c,0,c);f[25][af-1]=c}}}au();k=X.children("li");N=c;if(f[0]){N=b("");if(f[3]){b(az).after(N)}else{b(az).before(N)}if(f[13]){H=N.prepend("
").children();var s=f[11]?1:f[40];for(var ax=0;ax'+f[15][ax]+"").appendTo(H).click(function(){ag(b(this).attr("rel")-1,d);return c})}}if(f[4]){Q=ab(f[36],"first")}if(f[5]){E=ab(f[38],"last")}if(f[12]){ar=ab(f[34],"next");C=ab(f[33],"prev")}}if(f[26]){u()}f[1]=m(f[1]);f[7]=m(f[7]);f[10]=m(f[10]);f[18]=m(f[18]);f[23]=m(f[23]);if(f[9]){ai=M(f[10])}if(f[20]){b(f[20]).live("click",function(){t=b(this).attr("rel");if(t){if(t=="stop"){clearTimeout(ai)}else{if(t=="start"){ai=M(f[10]);f[9]=d}else{if(t=="block"){ao=c}else{if(t=="unblock"){ao=d}else{if(ao){ag((t==parseInt(t))?t-1:t,d)}}}}}}return c})}if(ay){aj(ay,c,c,c)}else{if(f[17]){b.address.init(function(aB){if(!ay){aj(J(aB.value),c,c,c)}}).change(function(aC){var aB=J(aC.value);if(aB!=ae){ag(aB,c)}})}else{if(f[27]){aj(f[27]-1,c,c,c)}else{aj(0,c,c,c)}}}}}function u(){for(var s=0;s<=av;s++){if(f[25][s]){Z(s,s,c,0,c);f[25][s]=c}}}function au(){a=0;if(f[6]){for(var s=-1;s<=af;s++){a=a+W.eq(s).outerHeight(d)}X.height(a*4)}else{for(var s=-1;s<=af;s++){a=a+W.eq(s).outerWidth(d)}X.width(a*4)}}function M(s){return setTimeout(function(){ag("next",c)},s)}function m(s){if(parseInt(s)){var t=parseInt(s)}else{var t=400;switch(s){case"fast":t=200;case"normal":t=400;case"medium":t=400;case"slow":t=600}}return t}function ab(s,t){return b(s).prependTo(N).click(function(){ag(t,d);return c})}function ag(t,s){if(!aw){if(f[21]){G(t,s)}else{aj(t,s,d,c)}}}function L(t,s){t.each(function(){var ax=(this.tagName.toLowerCase()==="img")?b(this):b("img",this),ay=this,w=0,az=function(){if(typeof s==="function"){s(ay)}};if(ax.length){ax.each(function(){var aA=this,aB=function(aC){if((aA.complete)||(aA.readyState=="complete"&&aC.type=="readystatechange")){if(++w===ax.length){az()}}else{if(aA.readyState===undefined){b(aA).attr("src",b(aA).attr("src"))}}};b(aA).bind("load readystatechange",function(aC){aB(aC)});aB({type:"readystatechange"})})}else{az()}})}function I(t){var ax=c;var s=t.length;var w=t.substr(s-4,4);if(w==".jpg"||w==".png"||w==".bmp"||w==".gif"){ax=d}var w=t.substr(s-5,5);if(w==".jpeg"){ax=d}return ax}function U(az,ay,s){if(!f[11]){if(s){var ax=ar,t=E,aA="next",w="last",aB=f[5]}else{var ax=C,t=Q,aA="prev",w="first",aB=f[4]}if(f[12]){if(az==0){ax.fadeOut(ay)}else{ax.fadeIn(ay)}}if(aB){if(az==0){t.fadeOut(ay)}else{t.fadeIn(ay)}}if(f[20]){b(f[20]).filter(function(aC){return(b(this).attr("rel")==aA||b(this).attr("rel")==w)}).fadeTo(ay,az,function(){if(az==0){b(this).hide()}})}}}function r(s,t){if(s==0){U(0,t,c)}else{U(1,t,c)}if(s>=af-parseInt(f[40],10)){U(0,t,d)}else{U(1,t,d)}}function A(t){t=parseInt((t>av)?t=0:((t<0)?t=av+t+1:t))+1;for(var s=0;sav){ae=0}if(ae<1-f[40]){ae=af-f[40]}}else{if(ae>av){ae=0}if(ae<0){ae=av}}if(ae==av&&!f[21]){u()}if(!f[24]){A(ae)}T();ao=d;if(f[17]&&ak){window.location.hash=f[15][ae]}if(!j){a=ae+1;if(a<1){a=a+af}if(a>af){a=a-af}at(W.eq(ae),a);if(f[11]&&!f[21]){if(aeav-f[40]){at(k.eq(f[40]+ae-av-1),a)}}}}function at(t,s){if(b.isFunction(f[30])){f[30].call(t,s)}}function x(t,s){if(b.isFunction(f[29])){f[29].call(t,s)}}function V(s,w){var t=ae;switch(s){case"next":t=(w>=av)?(f[11]?t+1:av):t+1;break;case"prev":t=(t<=0)?(f[11]?t-1:0):t-1;break;case"first":t=0;break;case"last":t=av;break;default:t=parseInt(s);break}return t}function Z(ay,ax,aC,t,s){var w=c;if(parseInt(ay)||ay==0){w=W.eq(ay)}else{if(ay=="last"){w=b("li:last",o)}else{w=b("li:first",o)}var az=d}var aB=(j)?(!f[22]?parseInt(f[23]*(2/5)):f[23]):t;var aA=ax+1;if(I(f[25][ax])){w.html(" ").append(b(new Image()).attr("src",f[25][ax]));L(w,function(aE){var aF=b(aE).children();aD(aF);function aD(aJ){var aI=aJ.width(),aG=aJ.height(),aH=aJ.parent().width();if(aI==0){setTimeout(function(){aD(aJ)},1)}else{aJ.attr({oldheight:aG,oldwidth:aI});if(aI>aH){aJ.animate({width:aH,height:(aG/aI)*aH},0).parent().animate({height:(aG/aI)*aH},0).css("height","auto")}if(b.isFunction(f[28])){f[28].call(b(aE),aA,d)}S(aJ.parent(),az,s);if(aC){z(ay,aB)}}}})}else{w.load(f[25][ax],function(aE,aD,aF){S(b(this),az,s);if(aC){T()}if(aD=="error"||!b(this).html()){b(this).html("Sorry but there was an error: "+(aF.status?aF.status:"no content")+" "+aF.statusText)}if(aD!="error"&&b.isFunction(f[28])){f[28].call(b(this),aA,c)}if(aC){z(ax,aB)}})}}function S(w,t,s){if(b.isFunction(s)){s()}if(t){T()}au()}function G(ay,ax){if(ay!=ae&&!aw&&ao){n=c;if(ax){clearTimeout(ai)}if(f[24]){A(V(ay,P))}ao=!ax;var az=(!ax&&!f[9]&&f[17])?f[23]*(f[18]/f[7]):f[23];var aB=V(ay,P);if(aB>av){aB=0}if(aB<0){aB=av}if(f[2]){r(aB,f[1])}if(f[25]&&f[25][aB]){Z(aB,aB,c,az,function(){f[25][aB]=c;ao=d;T();G(aB,d)})}else{z(aB,f[23]);var aA=W.eq(aB);x(aA,aB+1);if(f[22]){aA.clone().prependTo(o).css({"z-index":"100000",position:"absolute","list-style":"none",top:"0",left:"0"}).hide().fadeIn(f[23],function(){if(B){this.style.removeAttribute("filter")}ao=d;j=d;aj(ay,c,c,c);b(this).remove();if(f[17]&&ax){window.location.hash=f[15][ae]}j=c;at(aA,aB+1)})}else{var w=parseInt((az)*(3/5)),t=az-w,s=W.children();s.stop().fadeTo(t,0.0001,function(){ao=d;j=d;aj(ay,c,c,c);ao=!ax;s.add(W).stop().fadeTo(w,1,function(){if(B){this.style.removeAttribute("filter")}if(f[17]&&ax){window.location.hash=f[15][ae]}ao=d;j=c;at(aA,aB+1)})})}}}}function aj(az,aD,ax,aH){if((ao&&!aw&&(V(az,P)!=ae||an))||aH){n=c;ao=(!aD&&!f[9])?d:f[16];ak=aD;P=ae;ae=V(az,P);if(f[24]){A(ae)}var aF=Math.sqrt(Math.abs(P-ae)),ay=parseInt(aF*f[7]);if(!aD&&!f[9]){ay=parseInt(aF*f[18])}if(!ax){ay=0}var aB=ae;if(aB<0){aB=aB+af}if(aB>av){aB=aB-af}if(aH){ay=q;if(Y){Y--}}else{if(f[25]){if(f[25][aB]){Z(aB,aB,d,ay,c);f[25][aB]=c;n=d}if(!j){var s=(P>ae)?ae:P,aG=(P>ae)?P:ae;Y=0;q=ay;for(var aE=s;aE<=aG;aE++){if(aE<=av&&aE>=0&&f[25][aE]){Z(aE,aE,c,ay,function(){aj(az,aD,ax,aE)});f[25][aE]=c;Y++}}}if(aB+1<=av&&f[25][aB+1]){Z(aB+1,aB+1,c,0,c);f[25][aB+1]=c}}}if(!Y){if(ae<0){var t=k.eq(f[40]+ae)}if(ae>av){var t=k.eq(ae-af-f[40])}if(!j){x(W.eq(aB),aB+1);if(f[11]){if(aeav-f[40]||ae==-f[40]){x(k.eq((ae==-f[40])?-1:f[40]+ae-av-1),aB+1)}}}if(!j&&!n){z(ae,ay)}if(!f[6]){var w=l(ae);X.animate({marginLeft:w},{queue:c,duration:ay,easing:f[8],complete:aq})}else{if(ae==-1||ae==af){var w=-t.position().top-parseFloat(t.css("marginTop"),10)+X.position().top}else{var w=-W.eq(ae).position().top+X.position().top}X.animate({marginTop:w},{queue:c,duration:ay,easing:f[8],complete:aq})}if(f[2]){var aC=f[1];if(!aD&&!f[9]){aC=(f[18]/f[7])*f[1]}if(!ax){aC=0}if(j){aC=parseInt((f[23])*(3/5))}r(ae,aC)}if(aD){clearTimeout(ai)}var aA=f[7];if(j&&f[22]){aA=parseInt((aA)*(3/5))}else{if(j){aA=0}}if(f[9]&&az=="next"&&!aD){ai=M(f[10]+aA)}an=c}}}function R(s){var ax=["controlsShow","controlsFadeSpeed","controlsFade","insertAfter","firstShow","lastShow","vertical","speed","ease","auto","pause","continuous","prevNext","numeric","numericAttr","numericText","clickableAni","history","speedhistory","autoheight","customLink","fade","crossFade","fadespeed","updateBefore","ajax","preloadAjax","startSlide","ajaxLoadFunction","beforeAniFunc","afterAniFunc","uncurrentFunc","currentFunc","prevHtml","nextHtml","loadingText","firstHtml","controlsAttr","lastHtml","autowidth","slideCount"];for(var t=0;taf){w=af}var t=""+t+"";if(!w||w==0){X.prepend(t)}else{W.eq(w-1).after(t)}if(w