$(function(){$("input[type=text]").each(function(){$(this).val($(this).attr("title"));$(this).css("color","#888");$(this).focus(function(){if($(this).val()==$(this).attr("title")){$(this).val("");$(this).css("color","#333")}});$(this).blur(function(){if($(this).val()==""){$(this).val($(this).attr("title"));$(this).css("color","#888")}})});$("div.nav-gradient div").hide();$("div.nav-gradient li.selected div").show();$("ul.gallery a.lightbox").lightBox({imageLoading:baseUrl+"content/images/loading.gif",imageBtnClose:baseUrl+"content/images/close.gif",imageBtnPrev:baseUrl+"content/images/prev.gif",imageBtnNext:baseUrl+"content/images/next.gif",imageBlank:baseUrl+"content/images/lightbox-blank.gif"});$("#rotate").cycle({fx:"fade"})});(function(a){a.fn.lightBox=function(n){n=jQuery.extend({overlayBgColor:"#000",overlayOpacity:0.8,fixedNavigation:false,imageLoading:"images/lightbox-ico-loading.gif",imageBtnPrev:"images/lightbox-btn-prev.gif",imageBtnNext:"images/lightbox-btn-next.gif",imageBtnClose:"images/lightbox-btn-close.gif",imageBlank:"images/lightbox-blank.gif",containerBorderSize:10,containerResizeSpeed:400,txtImage:"Image",txtOf:"of",keyToClose:"c",keyToPrev:"p",keyToNext:"n",imageArray:[],activeImage:0},n);var m=this;function j(){b(this,m);return false}function b(w,v){a("embed, object, select").css({visibility:"hidden"});i();n.imageArray.length=0;n.activeImage=0;if(v.length==1){n.imageArray.push(new Array(w.getAttribute("href"),w.getAttribute("title")))}else{for(var u=0;u<v.length;u++){n.imageArray.push(new Array(v[u].getAttribute("href"),v[u].getAttribute("title")))}}while(n.imageArray[n.activeImage][0]!=w.getAttribute("href")){n.activeImage++}s()}function i(){a("body").append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+n.imageLoading+'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="'+n.imageBtnClose+'"></a></div></div></div></div>');var v=t();a("#jquery-overlay").css({backgroundColor:n.overlayBgColor,opacity:n.overlayOpacity,width:v[0],height:v[1]}).fadeIn();var u=k();a("#jquery-lightbox").css({top:u[1]+(v[3]/10),left:u[0]}).show();a("#jquery-overlay,#jquery-lightbox").click(function(){d()});a("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function(){d();return false});a(window).resize(function(){var x=t();a("#jquery-overlay").css({width:x[0],height:x[1]});var w=k();a("#jquery-lightbox").css({top:w[1]+(x[3]/10),left:w[0]})})}function s(){a("#lightbox-loading").show();if(n.fixedNavigation){a("#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide()}else{a("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide()}var u=new Image();u.onload=function(){a("#lightbox-image").attr("src",n.imageArray[n.activeImage][0]);r(u.width,u.height);u.onload=function(){}};u.src=n.imageArray[n.activeImage][0]}function r(y,A){var B=a("#lightbox-container-image-box").width();var u=a("#lightbox-container-image-box").height();var z=(y+(n.containerBorderSize*2));var w=(A+(n.containerBorderSize*2));var x=B-z;var v=u-w;a("#lightbox-container-image-box").animate({width:z,height:w},n.containerResizeSpeed,function(){g()});if((x==0)&&(v==0)){if(a.browser.msie){f(250)}else{f(100)}}a("#lightbox-container-image-data-box").css({width:y});a("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:A+(n.containerBorderSize*2)})}function g(){a("#lightbox-loading").hide();a("#lightbox-image").fadeIn(function(){c();e()});o()}function c(){a("#lightbox-container-image-data-box").slideDown("fast");a("#lightbox-image-details-caption").hide();if(n.imageArray[n.activeImage][1]){a("#lightbox-image-details-caption").html(n.imageArray[n.activeImage][1]).show()}if(n.imageArray.length>1){a("#lightbox-image-details-currentNumber").html(n.txtImage+" "+(n.activeImage+1)+" "+n.txtOf+" "+n.imageArray.length).show()}}function e(){a("#lightbox-nav").show();a("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({background:"transparent url("+n.imageBlank+") no-repeat"});if(n.activeImage!=0){if(n.fixedNavigation){a("#lightbox-nav-btnPrev").css({background:"url("+n.imageBtnPrev+") left 15% no-repeat"}).unbind().bind("click",function(){n.activeImage=n.activeImage-1;s();return false})}else{a("#lightbox-nav-btnPrev").unbind().hover(function(){a(this).css({background:"url("+n.imageBtnPrev+") left 15% no-repeat"})},function(){a(this).css({background:"transparent url("+n.imageBlank+") no-repeat"})}).show().bind("click",function(){n.activeImage=n.activeImage-1;s();return false})}}if(n.activeImage!=(n.imageArray.length-1)){if(n.fixedNavigation){a("#lightbox-nav-btnNext").css({background:"url("+n.imageBtnNext+") right 15% no-repeat"}).unbind().bind("click",function(){n.activeImage=n.activeImage+1;s();return false})}else{a("#lightbox-nav-btnNext").unbind().hover(function(){a(this).css({background:"url("+n.imageBtnNext+") right 15% no-repeat"})},function(){a(this).css({background:"transparent url("+n.imageBlank+") no-repeat"})}).show().bind("click",function(){n.activeImage=n.activeImage+1;s();return false})}}h()}function h(){a(document).keydown(function(u){l(u)})}function q(){a(document).unbind()}function l(u){if(u==null){keycode=event.keyCode;escapeKey=27}else{keycode=u.keyCode;escapeKey=u.DOM_VK_ESCAPE}key=String.fromCharCode(keycode).toLowerCase();if((key==n.keyToClose)||(key=="x")||(keycode==escapeKey)){d()}if((key==n.keyToPrev)||(keycode==37)){if(n.activeImage!=0){n.activeImage=n.activeImage-1;s();q()}}if((key==n.keyToNext)||(keycode==39)){if(n.activeImage!=(n.imageArray.length-1)){n.activeImage=n.activeImage+1;s();q()}}}function o(){if((n.imageArray.length-1)>n.activeImage){objNext=new Image();objNext.src=n.imageArray[n.activeImage+1][0]}if(n.activeImage>0){objPrev=new Image();objPrev.src=n.imageArray[n.activeImage-1][0]}}function d(){a("#jquery-lightbox").remove();a("#jquery-overlay").fadeOut(function(){a("#jquery-overlay").remove()});a("embed, object, select").css({visibility:"visible"})}function t(){var u,w;if(window.innerHeight&&window.scrollMaxY){u=window.innerWidth+window.scrollMaxX;w=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){u=document.body.scrollWidth;w=document.body.scrollHeight}else{u=document.body.offsetWidth;w=document.body.offsetHeight}}var x,v;if(self.innerHeight){if(document.documentElement.clientWidth){x=document.documentElement.clientWidth}else{x=self.innerWidth}v=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){x=document.documentElement.clientWidth;v=document.documentElement.clientHeight}else{if(document.body){x=document.body.clientWidth;v=document.body.clientHeight}}}if(w<v){pageHeight=v}else{pageHeight=w}if(u<x){pageWidth=u}else{pageWidth=x}arrayPageSize=new Array(pageWidth,pageHeight,x,v);return arrayPageSize}function k(){var u,v;if(self.pageYOffset){v=self.pageYOffset;u=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){v=document.documentElement.scrollTop;u=document.documentElement.scrollLeft}else{if(document.body){v=document.body.scrollTop;u=document.body.scrollLeft}}}arrayPageScroll=new Array(u,v);return arrayPageScroll}function f(u){var v=new Date();w=null;do{var w=new Date()}while(w-v<u)}return this.unbind("click").click(j)}})(jQuery);(function(d){var e="2.63";if(d.support==undefined){d.support={opacity:!(d.browser.msie)}}function a(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}d.fn.cycle=function(r,q){var s={s:this.selector,c:this.context};if(this.length==0&&r!="stop"){if(!d.isReady&&s.s){a("DOM not ready, queuing slideshow");d(function(){d(s.s,s.c).cycle(r,q)});return this}a("terminating; zero elements found by selector"+(d.isReady?"":" (DOM not ready)"));return this}return this.each(function(){r=l(this,r,q);if(r===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var t=d(this);var u=r.slideExpr?d(r.slideExpr,this):t.children();var v=u.get();if(v.length<2){a("terminating; too few slides: "+v.length);return}var o=b(t,u,v,r,s);if(o===false){return}if(o.timeout||o.continuous){this.cycleTimeout=setTimeout(function(){m(v,o,0,!o.rev)},o.continuous?10:o.timeout+(o.delay||0))}})};function l(q,r,o){if(q.cycleStop==undefined){q.cycleStop=0}if(r===undefined||r===null){r={}}if(r.constructor==String){switch(r){case"stop":q.cycleStop++;if(q.cycleTimeout){clearTimeout(q.cycleTimeout)}q.cycleTimeout=0;d(q).removeData("cycle.opts");return false;case"pause":q.cyclePause=1;return false;case"resume":q.cyclePause=0;if(o===true){r=d(q).data("cycle.opts");if(!r){a("options not found, can not resume");return false}if(q.cycleTimeout){clearTimeout(q.cycleTimeout);q.cycleTimeout=0}m(r.elements,r,1,1)}return false;default:r={fx:r}}}else{if(r.constructor==Number){var s=r;r=d(q).data("cycle.opts");if(!r){a("options not found, can not advance slide");return false}if(s<0||s>=r.elements.length){a("invalid slide index: "+s);return false}r.nextSlide=s;if(q.cycleTimeout){clearTimeout(this.cycleTimeout);q.cycleTimeout=0}if(typeof o=="string"){r.oneTimeFx=o}m(r.elements,r,1,s>=r.currSlide);return false}}return r}function n(q,o){if(!d.support.opacity&&o.cleartype&&q.style.filter){try{q.style.removeAttribute("filter")}catch(r){}}}function b(C,q,u,z,A){var B=d.extend({},d.fn.cycle.defaults,z||{},d.metadata?C.metadata():d.meta?C.data():{});if(B.autostop){B.countdown=B.autostopCount||u.length}var r=C[0];C.data("cycle.opts",B);B.$cont=C;B.stopCount=r.cycleStop;B.elements=u;B.before=B.before?[B.before]:[];B.after=B.after?[B.after]:[];B.after.unshift(function(){B.busy=0});if(!d.support.opacity&&B.cleartype){B.after.push(function(){n(this,B)})}if(B.continuous){B.after.push(function(){m(u,B,0,!B.rev)})}h(B);if(!d.support.opacity&&B.cleartype&&!B.cleartypeNoBg){j(q)}if(C.css("position")=="static"){C.css("position","relative")}if(B.width){C.width(B.width)}if(B.height&&B.height!="auto"){C.height(B.height)}if(B.startingSlide){B.startingSlide=parseInt(B.startingSlide)}if(B.random){B.randomMap=[];for(var y=0;y<u.length;y++){B.randomMap.push(y)}B.randomMap.sort(function(o,w){return Math.random()-0.5});B.randomIndex=0;B.startingSlide=B.randomMap[0]}else{if(B.startingSlide>=u.length){B.startingSlide=0}}B.currSlide=B.startingSlide=B.startingSlide||0;var t=B.startingSlide;q.css({position:"absolute",top:0,left:0}).hide().each(function(w){var o=t?w>=t?u.length-(w-t):t-w:u.length-w;d(this).css("z-index",o)});d(u[t]).css("opacity",1).show();n(u[t],B);if(B.fit&&B.width){q.width(B.width)}if(B.fit&&B.height&&B.height!="auto"){q.height(B.height)}var F=B.containerResize&&!C.innerHeight();if(F){var s=0,I=0;for(var y=0;y<u.length;y++){var E=d(u[y]),D=E[0],v=E.outerWidth(),x=E.outerHeight();if(!v){v=D.offsetWidth}if(!x){x=D.offsetHeight}s=v>s?v:s;I=x>I?x:I}if(s>0&&I>0){C.css({width:s+"px",height:I+"px"})}}if(B.pause){C.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(f(B)===false){return false}if(!B.multiFx){var H=d.fn.cycle.transitions[B.fx];if(d.isFunction(H)){H(C,q,B)}else{if(B.fx!="custom"&&!B.multiFx){a("unknown transition: "+B.fx,"; slideshow terminating");return false}}}var J=false;z.requeueAttempts=z.requeueAttempts||0;q.each(function(){var w=d(this);this.cycleH=(B.fit&&B.height)?B.height:w.height();this.cycleW=(B.fit&&B.width)?B.width:w.width();if(w.is("img")){var L=(d.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var o=(d.browser.opera&&this.cycleW==42&&this.cycleH==19&&!this.complete);var K=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(L||o||K){if(A.s&&B.requeueOnImageNotLoaded&&++z.requeueAttempts<100){a(z.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){d(A.s,A.c).cycle(z)},B.requeueTimeout);J=true;return false}else{a("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(J){return false}B.cssBefore=B.cssBefore||{};B.animIn=B.animIn||{};B.animOut=B.animOut||{};q.not(":eq("+t+")").css(B.cssBefore);if(B.cssFirst){d(q[t]).css(B.cssFirst)}if(B.timeout){B.timeout=parseInt(B.timeout);if(B.speed.constructor==String){B.speed=d.fx.speeds[B.speed]||parseInt(B.speed)}if(!B.sync){B.speed=B.speed/2}while((B.timeout-B.speed)<250){B.timeout+=B.speed}}if(B.easing){B.easeIn=B.easeOut=B.easing}if(!B.speedIn){B.speedIn=B.speed}if(!B.speedOut){B.speedOut=B.speed}B.slideCount=u.length;B.currSlide=B.lastSlide=t;if(B.random){B.nextSlide=B.currSlide;if(++B.randomIndex==u.length){B.randomIndex=0}B.nextSlide=B.randomMap[B.randomIndex]}else{B.nextSlide=B.startingSlide>=(u.length-1)?0:B.startingSlide+1}var G=q[t];if(B.before.length){B.before[0].apply(G,[G,G,B,true])}if(B.after.length>1){B.after[1].apply(G,[G,G,B,true])}if(B.next){d(B.next).click(function(){return c(B,B.rev?-1:1)})}if(B.prev){d(B.prev).click(function(){return c(B,B.rev?1:-1)})}if(B.pager){i(u,B)}k(B,u);return B}function h(o){o.original={before:[],after:[]};o.original.cssBefore=d.extend({},o.cssBefore);o.original.cssAfter=d.extend({},o.cssAfter);o.original.animIn=d.extend({},o.animIn);o.original.animOut=d.extend({},o.animOut);d.each(o.before,function(){o.original.before.push(this)});d.each(o.after,function(){o.original.after.push(this)})}function f(o){var q=d.fn.cycle.transitions;if(o.fx.indexOf(",")>0){o.multiFx=true;o.fxs=o.fx.replace(/\s*/g,"").split(",");for(var t=0;t<o.fxs.length;t++){var v=o.fxs[t];var r=q[v];if(!r||!q.hasOwnProperty(v)||!d.isFunction(r)){a("discarding unknown transition: ",v);o.fxs.splice(t,1);t--}}if(!o.fxs.length){a("No valid transitions named; slideshow terminating.");return false}}else{if(o.fx=="all"){o.multiFx=true;o.fxs=[];for(p in q){var r=q[p];if(q.hasOwnProperty(p)&&d.isFunction(r)){o.fxs.push(p)}}}}if(o.multiFx&&o.randomizeEffects){var s=Math.floor(Math.random()*20)+30;for(var t=0;t<s;t++){var u=Math.floor(Math.random()*o.fxs.length);o.fxs.push(o.fxs.splice(u,1)[0])}a("randomized fx sequence: ",o.fxs)}return true}function k(o,q){o.addSlide=function(v,u){var t=d(v),r=t[0];if(!o.autostopCount){o.countdown++}q[u?"unshift":"push"](r);if(o.els){o.els[u?"unshift":"push"](r)}o.slideCount=q.length;t.css("position","absolute");t[u?"prependTo":"appendTo"](o.$cont);if(u){o.currSlide++;o.nextSlide++}if(!d.support.opacity&&o.cleartype&&!o.cleartypeNoBg){j(t)}if(o.fit&&o.width){t.width(o.width)}if(o.fit&&o.height&&o.height!="auto"){$slides.height(o.height)}r.cycleH=(o.fit&&o.height)?o.height:t.height();r.cycleW=(o.fit&&o.width)?o.width:t.width();t.css(o.cssBefore);if(o.pager){d.fn.cycle.createPagerAnchor(q.length-1,r,d(o.pager),q,o)}if(d.isFunction(o.onAddSlide)){o.onAddSlide(t)}else{t.hide()}}}d.fn.cycle.resetState=function(o,r){r=r||o.fx;o.before=[];o.after=[];o.cssBefore=d.extend({},o.original.cssBefore);o.cssAfter=d.extend({},o.original.cssAfter);o.animIn=d.extend({},o.original.animIn);o.animOut=d.extend({},o.original.animOut);o.fxFn=null;d.each(o.original.before,function(){o.before.push(this)});d.each(o.original.after,function(){o.after.push(this)});var q=d.fn.cycle.transitions[r];if(d.isFunction(q)){q(o.$cont,d(o.elements),o)}};function m(r,z,y,u){if(y&&z.busy&&z.manualTrump){d(r).stop(true,true);z.busy=false}if(z.busy){return}var w=z.$cont[0],x=r[z.currSlide],o=r[z.nextSlide];if(w.cycleStop!=z.stopCount||w.cycleTimeout===0&&!y){return}if(!y&&!w.cyclePause&&((z.autostop&&(--z.countdown<=0))||(z.nowrap&&!z.random&&z.nextSlide<z.currSlide))){if(z.end){z.end(z)}return}if(y||!w.cyclePause){var s=z.fx;x.cycleH=x.cycleH||d(x).height();x.cycleW=x.cycleW||d(x).width();o.cycleH=o.cycleH||d(o).height();o.cycleW=o.cycleW||d(o).width();if(z.multiFx){if(z.lastFx==undefined||++z.lastFx>=z.fxs.length){z.lastFx=0}s=z.fxs[z.lastFx];z.currFx=s}if(z.oneTimeFx){s=z.oneTimeFx;z.oneTimeFx=null}d.fn.cycle.resetState(z,s);if(z.before.length){d.each(z.before,function(B,A){if(w.cycleStop!=z.stopCount){return}A.apply(o,[x,o,z,u])})}var q=function(){d.each(z.after,function(B,A){if(w.cycleStop!=z.stopCount){return}A.apply(o,[x,o,z,u])})};if(z.nextSlide!=z.currSlide){z.busy=1;if(z.fxFn){z.fxFn(x,o,z,q,u)}else{if(d.isFunction(d.fn.cycle[z.fx])){d.fn.cycle[z.fx](x,o,z,q)}else{d.fn.cycle.custom(x,o,z,q,y&&z.fastOnEvent)}}}z.lastSlide=z.currSlide;if(z.random){z.currSlide=z.nextSlide;if(++z.randomIndex==r.length){z.randomIndex=0}z.nextSlide=z.randomMap[z.randomIndex]}else{var t=(z.nextSlide+1)==r.length;z.nextSlide=t?0:z.nextSlide+1;z.currSlide=t?r.length-1:z.nextSlide-1}if(z.pager){d.fn.cycle.updateActivePagerLink(z.pager,z.currSlide)}}var v=0;if(z.timeout&&!z.continuous){v=g(x,o,z,u)}else{if(z.continuous&&w.cyclePause){v=10}}if(v>0){w.cycleTimeout=setTimeout(function(){m(r,z,0,!z.rev)},v)}}d.fn.cycle.updateActivePagerLink=function(q,o){d(q).find("a").removeClass("activeSlide").filter("a:eq("+o+")").addClass("activeSlide")};function g(r,s,o,u){if(o.timeoutFn){var q=o.timeoutFn(r,s,o,u);if(q!==false){return q}}return o.timeout}d.fn.cycle.next=function(o){c(o,o.rev?-1:1)};d.fn.cycle.prev=function(o){c(o,o.rev?1:-1)};function c(o,s){var t=o.elements;var q=o.$cont[0],r=q.cycleTimeout;if(r){clearTimeout(r);q.cycleTimeout=0}if(o.random&&s<0){o.randomIndex--;if(--o.randomIndex==-2){o.randomIndex=t.length-2}else{if(o.randomIndex==-1){o.randomIndex=t.length-1}}o.nextSlide=o.randomMap[o.randomIndex]}else{if(o.random){if(++o.randomIndex==t.length){o.randomIndex=0}o.nextSlide=o.randomMap[o.randomIndex]}else{o.nextSlide=o.currSlide+s;if(o.nextSlide<0){if(o.nowrap){return false}o.nextSlide=t.length-1}else{if(o.nextSlide>=t.length){if(o.nowrap){return false}o.nextSlide=0}}}}if(d.isFunction(o.prevNextClick)){o.prevNextClick(s>0,o.nextSlide,t[o.nextSlide])}m(t,o,1,s>=0);return false}function i(r,o){var q=d(o.pager);d.each(r,function(t,s){d.fn.cycle.createPagerAnchor(t,s,q,r,o)});d.fn.cycle.updateActivePagerLink(o.pager,o.startingSlide)}d.fn.cycle.createPagerAnchor=function(u,s,r,v,o){var t=(d.isFunction(o.pagerAnchorBuilder))?o.pagerAnchorBuilder(u,s):'<a href="#">'+(u+1)+"</a>";if(!t){return}var q=d(t);if(q.parents("body").length==0){q.appendTo(r)}q.bind(o.pagerEvent,function(){o.nextSlide=u;var x=o.$cont[0],w=x.cycleTimeout;if(w){clearTimeout(w);x.cycleTimeout=0}if(d.isFunction(o.pagerClick)){o.pagerClick(o.nextSlide,v[o.nextSlide])}m(v,o,1,o.currSlide<u);return false});if(o.pauseOnPagerHover){q.hover(function(){o.$cont[0].cyclePause++},function(){o.$cont[0].cyclePause--})}};d.fn.cycle.hopsFromLast=function(o,t){var s,r=o.lastSlide,q=o.currSlide;if(t){s=q>r?q-r:o.slideCount-r}else{s=q<r?r-q:r+o.slideCount-q}return s};function j(o){function q(t){t=parseInt(t).toString(16);return t.length<2?"0"+t:t}function r(u){for(;u&&u.nodeName.toLowerCase()!="html";u=u.parentNode){var s=d.css(u,"background-color");if(s.indexOf("rgb")>=0){var t=s.match(/\d+/g);return"#"+q(t[0])+q(t[1])+q(t[2])}if(s&&s!="transparent"){return s}}return"#ffffff"}o.each(function(){d(this).css("background-color",r(this))})}d.fn.cycle.commonReset=function(q,u,o,r,s,t){d(o.elements).not(q).hide();o.cssBefore.opacity=1;o.cssBefore.display="block";if(r!==false&&u.cycleW>0){o.cssBefore.width=u.cycleW}if(s!==false&&u.cycleH>0){o.cssBefore.height=u.cycleH}o.cssAfter=o.cssAfter||{};o.cssAfter.display="none";d(q).css("zIndex",o.slideCount+(t===true?1:0));d(u).css("zIndex",o.slideCount+(t===true?0:1))};d.fn.cycle.custom=function(v,o,u,w,r){var x=d(v),A=d(o);var q=u.speedIn,t=u.speedOut,z=u.easeIn,y=u.easeOut;A.css(u.cssBefore);if(r){if(typeof r=="number"){q=t=r}else{q=t=1}z=y=null}var s=function(){A.animate(u.animIn,q,z,w)};x.animate(u.animOut,t,y,function(){if(u.cssAfter){x.css(u.cssAfter)}if(!u.sync){s()}});if(u.sync){s()}};d.fn.cycle.transitions={fade:function(q,r,o){r.not(":eq("+o.currSlide+")").css("opacity",0);o.before.push(function(t,u,s){d.fn.cycle.commonReset(t,u,s);s.cssBefore.opacity=0});o.animIn={opacity:1};o.animOut={opacity:0};o.cssBefore={top:0,left:0}}};d.fn.cycle.ver=function(){return e};d.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,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,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!d.support.opacity,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250}})(jQuery);