/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.88 (08-JUN-2010)
 * Dual licensed under the MIT and GPL licenses.
 * http://jquery.malsup.com/license.html
 * Requires: jQuery v1.2.6 or later
 */
(function($){var ver="2.88";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){if($.fn.cycle.debug){log(s);}}function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(els[opts2.currSlide],els[opts2.nextSlide],opts2,!opts2.rev);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,(!opts2.rev&&!opts.backwards));},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");if(!opts){return false;}cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");if(options=="destroy"){destroy(opts);}return false;case"toggle":cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;checkInstantResume(false,arg2,cont);return false;case"prev":case"next":var opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,(!opts.rev&&!opts.backwards));}}}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function destroy(opts){if(opts.next){$(opts.next).unbind(opts.prevNextEvent);}if(opts.prev){$(opts.prev).unbind(opts.prevNextEvent);}if(opts.pager||opts.pagerAnchorBuilder){$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});}opts.pagerAnchors=null;if(opts.destroy){opts.destroy(opts);}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,(!opts.rev&&!opts.backwards));});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}else{if(opts.backwards){opts.startingSlide=els.length-1;}}if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++){opts.randomMap.push(i);}opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=1;opts.startingSlide=opts.randomMap[1];}else{if(opts.startingSlide>=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z;if(opts.backwards){z=first?i<=first?els.length+(i-first):first-i:els.length-i;}else{z=first?i>=first?els.length-(i-first):first-i:els.length-i;}$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth||e.width||$e.attr("width");}if(!h){h=e.offsetHeight||e.height||$e.attr("height");}maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(supportMultiTransitions(opts)===false){return false;}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr("height")||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr("width")||0);if($el.is("img")){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);if(opts.cssFirst){$($slides[first]).css(opts.cssFirst);}if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}var buffer=opts.fx=="shuffle"?500:250;while((opts.timeout-opts.speed)<buffer){opts.timeout+=opts.speed;}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing;}if(!opts.speedIn){opts.speedIn=opts.speed;}if(!opts.speedOut){opts.speedOut=opts.speed;}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.backwards){opts.nextSlide=opts.startingSlide==0?(els.length-1):opts.startingSlide-1;}else{opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;}}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length>1){opts.after[1].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?-1:1);});}if(opts.prev){$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?1:-1);});}if(opts.pager||opts.pagerAnchorBuilder){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknown transition: ",fx);opts.fxs.splice(i,1);i--;}}if(!opts.fxs.length){log("No valid transitions named; slideshow terminating.");return false;}}else{if(opts.fx=="all"){opts.multiFx=true;opts.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){opts.fxs.push(p);}}}}if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}debug("randomized fx sequence: ",opts.fxs);}return true;}function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount){opts.countdown++;}els[prepend?"unshift":"push"](s);if(opts.els){opts.els[prepend?"unshift":"push"](s);}opts.slideCount=els.length;$s.css("position","absolute");$s[prepend?"prependTo":"appendTo"](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($s);}if(opts.fit&&opts.width){$s.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager||opts.pagerAnchorBuilder){$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);}if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s);}else{$s.hide();}};}$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init)){init(opts.$cont,$(opts.elements),opts);}};function go(els,opts,manual,fwd){if(manual&&opts.busy&&opts.manualTrump){debug("manualTrump in go(), stopping active transition");$(els).stop(true,true);opts.busy=false;}if(opts.busy){debug("transition active, ignoring new tx request");return;}var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual){return;}if(!manual&&!p.cyclePause&&!opts.bounce&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end){opts.end(opts);}return;}var changed=false;if((manual||!p.cyclePause)&&(opts.nextSlide!=opts.currSlide)){changed=true;var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};debug("tx firing; currSlide: "+opts.currSlide+"; nextSlide: "+opts.nextSlide);opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}}}if(changed||opts.nextSlide==opts.currSlide){opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide){opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1;}}else{if(opts.backwards){var roll=(opts.nextSlide-1)<0;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=1;opts.currSlide=0;}else{opts.nextSlide=roll?(els.length-1):opts.nextSlide-1;opts.currSlide=roll?0:opts.nextSlide+1;}}else{var roll=(opts.nextSlide+1)==els.length;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=els.length-2;opts.currSlide=els.length-1;}else{opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}}}}if(changed&&opts.pager){opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass);}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(els[opts.currSlide],els[opts.nextSlide],opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,(!opts.rev&&!opts.backwards));},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);});};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn.call(curr,curr,next,opts,fwd);while((t-opts.speed)<250){t+=opts.speed;}debug("calculated timeout: "+t+"; speed: "+opts.speed);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,opts.rev?-1:1);};$.fn.cycle.prev=function(opts){advance(opts,opts.rev?1:-1);};function advance(opts,val){var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb)){cb(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,val>=0);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug("pagerAnchorBuilder("+i+", el) returned: "+a);}else{a='<a href="#">'+(i+1)+"</a>";}if(!a){return;}var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0]);});$a=$(arr);}else{$a.appendTo($p);}}opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);$a.bind(opts.pagerEvent,function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb)){cb(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlide<i);});if(!/^click/.test(opts.pagerEvent)&&!opts.allowPagerClickBubble){$a.bind("click.cycle",function(){return false;});}if(opts.pauseOnPagerHover){$a.hover(function(){opts.$cont[0].cyclePause++;},function(){opts.$cont[0].cyclePause--;});}};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd){hops=c>l?c-l:opts.slideCount-l;}else{hops=c<l?l-c:l+opts.slideCount-c;}return hops;};function clearTypeFix($slides){debug("applying clearType background-color hack");function hex(s){s=parseInt(s).toString(16);return s.length<2?"0"+s:s;}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();opts.cssBefore.opacity=1;opts.cssBefore.display="block";if(w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,cb);};$l.animate(opts.animOut,speedOut,easeOut,function(){if(opts.cssAfter){$l.css(opts.cssAfter);}if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,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:!$.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null,backwards:false};})(jQuery);
/*
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version:	 2.72
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function($){$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show();$(curr).hide();after();};};$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore={top:h,left:0};opts.cssFirst={top:0};opts.animIn={top:0};opts.animOut={top:-h};};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst={top:0};opts.cssBefore={top:-h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:0-w};};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:-w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.left=fwd?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=fwd?-curr.cycleW:curr.cycleW;});opts.cssFirst={left:0};opts.cssBefore={top:0};opts.animIn={left:0};opts.animOut={top:0};};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.top=fwd?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=fwd?curr.cycleH:-curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0};opts.animIn={top:0};opts.animOut={left:0};};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;});opts.cssBefore={left:0,top:0,width:0};opts.animIn={width:"show"};opts.animOut={width:0};};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;});opts.cssBefore={left:0,top:0,height:0};opts.animIn={height:"show"};opts.animOut={height:0};};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var i,w=$cont.css("overflow","visible").width();$slides.css({left:0,top:0});opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);});if(!opts.speedAdjusted){opts.speed=opts.speed/2;opts.speedAdjusted=true;}opts.random=0;opts.shuffle=opts.shuffle||{left:-w,top:15};opts.els=[];for(i=0;i<$slides.length;i++){opts.els.push($slides[i]);}for(i=0;i<opts.currSlide;i++){opts.els.push(opts.els.shift());}opts.fxFn=function(curr,next,opts,cb,fwd){var $el=fwd?$(curr):$(next);$(next).css(opts.cssBefore);var count=opts.slideCount;$el.animate(opts.shuffle,opts.speedIn,opts.easeIn,function(){var hops=$.fn.cycle.hopsFromLast(opts,fwd);for(var k=0;k<hops;k++){fwd?opts.els.push(opts.els.shift()):opts.els.unshift(opts.els.pop());}if(fwd){for(var i=0,len=opts.els.length;i<len;i++){$(opts.els[i]).css("z-index",len-i+count);}}else{var z=$(curr).css("z-index");$el.css("z-index",parseInt(z)+1+count);}$el.animate({left:0,top:0},opts.speedOut,opts.easeOut,function(){$(fwd?this:curr).hide();if(cb){cb();}});});};opts.cssBefore={display:"block",opacity:1,top:0,left:0};};$.fn.cycle.transitions.turnUp=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=next.cycleH;opts.animIn.height=next.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0,height:0};opts.animIn={top:0};opts.animOut={height:0};};$.fn.cycle.transitions.turnDown=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0,top:0,height:0};opts.animOut={height:0};};$.fn.cycle.transitions.turnLeft=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=next.cycleW;opts.animIn.width=next.cycleW;});opts.cssBefore={top:0,width:0};opts.animIn={left:0};opts.animOut={width:0};};$.fn.cycle.transitions.turnRight=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore={top:0,left:0,width:0};opts.animIn={left:0};opts.animOut={width:0};};$.fn.cycle.transitions.zoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false,true);opts.cssBefore.top=next.cycleH/2;opts.cssBefore.left=next.cycleW/2;opts.animIn={top:0,left:0,width:next.cycleW,height:next.cycleH};opts.animOut={width:0,height:0,top:curr.cycleH/2,left:curr.cycleW/2};});opts.cssFirst={top:0,left:0};opts.cssBefore={width:0,height:0};};$.fn.cycle.transitions.fadeZoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false);opts.cssBefore.left=next.cycleW/2;opts.cssBefore.top=next.cycleH/2;opts.animIn={top:0,left:0,width:next.cycleW,height:next.cycleH};});opts.cssBefore={width:0,height:0};opts.animOut={opacity:0};};$.fn.cycle.transitions.blindX=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.blindY=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore={top:h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.blindZ=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();var w=$cont.width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore={top:h,left:w};opts.animIn={top:0,left:0};opts.animOut={top:h,left:w};};$.fn.cycle.transitions.growX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=this.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:0};});opts.cssBefore={width:0,top:0};};$.fn.cycle.transitions.growY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=this.cycleH/2;opts.animIn={top:0,height:this.cycleH};opts.animOut={top:0};});opts.cssBefore={height:0,left:0};};$.fn.cycle.transitions.curtainX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true,true);opts.cssBefore.left=next.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:curr.cycleW/2,width:0};});opts.cssBefore={top:0,width:0};};$.fn.cycle.transitions.curtainY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false,true);opts.cssBefore.top=next.cycleH/2;opts.animIn={top:0,height:next.cycleH};opts.animOut={top:curr.cycleH/2,height:0};});opts.cssBefore={left:0,height:0};};$.fn.cycle.transitions.cover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);if(d=="right"){opts.cssBefore.left=-w;}else{if(d=="up"){opts.cssBefore.top=h;}else{if(d=="down"){opts.cssBefore.top=-h;}else{opts.cssBefore.left=w;}}}});opts.animIn={left:0,top:0};opts.animOut={opacity:1};opts.cssBefore={top:0,left:0};};$.fn.cycle.transitions.uncover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(d=="right"){opts.animOut.left=w;}else{if(d=="up"){opts.animOut.top=-h;}else{if(d=="down"){opts.animOut.top=h;}else{opts.animOut.left=-w;}}}});opts.animIn={left:0,top:0};opts.animOut={opacity:1};opts.cssBefore={top:0,left:0};};$.fn.cycle.transitions.toss=function($cont,$slides,opts){var w=$cont.css("overflow","visible").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(!opts.animOut.left&&!opts.animOut.top){opts.animOut={left:w*2,top:-h/2,opacity:0};}else{opts.animOut.opacity=0;}});opts.cssBefore={left:0,top:0};opts.animIn={left:0};};$.fn.cycle.transitions.wipe=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.cssBefore=opts.cssBefore||{};var clip;if(opts.clip){if(/l2r/.test(opts.clip)){clip="rect(0px 0px "+h+"px 0px)";}else{if(/r2l/.test(opts.clip)){clip="rect(0px "+w+"px "+h+"px "+w+"px)";}else{if(/t2b/.test(opts.clip)){clip="rect(0px "+w+"px 0px 0px)";}else{if(/b2t/.test(opts.clip)){clip="rect("+h+"px "+w+"px "+h+"px 0px)";}else{if(/zoom/.test(opts.clip)){var top=parseInt(h/2);var left=parseInt(w/2);clip="rect("+top+"px "+left+"px "+top+"px "+left+"px)";}}}}}}opts.cssBefore.clip=opts.cssBefore.clip||clip||"rect(0px 0px 0px 0px)";var d=opts.cssBefore.clip.match(/(\d+)/g);var t=parseInt(d[0]),r=parseInt(d[1]),b=parseInt(d[2]),l=parseInt(d[3]);opts.before.push(function(curr,next,opts){if(curr==next){return;}var $curr=$(curr),$next=$(next);$.fn.cycle.commonReset(curr,next,opts,true,true,false);opts.cssAfter.display="block";var step=1,count=parseInt((opts.speedIn/13))-1;(function f(){var tt=t?t-parseInt(step*(t/count)):0;var ll=l?l-parseInt(step*(l/count)):0;var bb=b<h?b+parseInt(step*((h-b)/count||1)):h;var rr=r<w?r+parseInt(step*((w-r)/count||1)):w;$next.css({clip:"rect("+tt+"px "+rr+"px "+bb+"px "+ll+"px)"});(step++<=count)?setTimeout(f,13):$curr.css("display","none");})();});opts.cssBefore={display:"block",opacity:1,top:0,left:0};opts.animIn={left:0};opts.animOut={left:0};};})(jQuery);





/*                                                                                                                                                                              
	ClearBox JS by pyro
	
	script home:		http://www.clearbox.hu
	developer's e-mail:	pyrex(at)chello(dot)hu
	developer's msn:	pyro(at)radiomax(dot)hu
	support forum:		http://www.sg.hu/listazas.php3?id=1172325655

	LICESE:

	Using of the script is free for any non-commercial webpages without any commercial activities,
	without advertising or selling anything. If you want to use it on a commercial page, please contact the developer.
	The source code of the script (except of user variable settings) can be changed only with the developer's written permission.

*/


//
// 	User variable settings:
//

var

	CB_HideColor='#000', 
	CB_WinPadd=10,
	CB_RoundPix=12,
	CB_Animation='double',
	CB_ImgBorder=0,
	CB_ImgBorderColor='#000',
	CB_Padd=4,
	CB_ShowImgURL='on',
	CB_ImgNum='on',
	CB_ImgNumBracket='()',
	CB_SlShowTime=3,
	CB_TextH=40,
	CB_Font='arial',
	CB_FontSize=12,
	CB_FontColor='#777',
	CB_FontWeight='normal',
	CB_Font2='arial',
	CB_FontSize2=11,
	CB_FontColor2='#999',
	CB_FontWeight2='normal',
	CB_PicDir='/script/images/clearbox',
	CB_BodyMarginLeft=0,
	CB_BodyMarginRight=0,
	CB_BodyMarginTop=0,
	CB_BodyMarginBottom=0,
	CB_Preload='on',
	CB_TextNav='on',
	CB_NavTextPrv='previous',
	CB_NavTextNxt='next',
	CB_NavTextFull='download full size',
	CB_NavTextDL='download',
	CB_NavTextClose='close',
	CB_NavTextStart='start slidehow',
	CB_NavTextStop='stop slideshow',
	CB_NavTextImgPrv='on',
	CB_NavTextImgNxt='on',
	CB_NavTextImgFull='on',
	CB_NavTextImgDL='on',
	CB_PictureStart='start.png',
	CB_PicturePause='pause.png',
	CB_PictureClose='close.png',
	CB_PictureLoading='loading.gif',
	CB_PictureNext='next.png',
	CB_PicturePrev='prev.png',

//
//	NEW in ClearBox since 2.5:
//

	CB_HideOpacitySpeed=400,
	CB_ImgOpacitySpeed=450,
	CB_TextOpacitySpeed=350,
	CB_HideOpacity=.85,
	CB_AnimSpeed=600,
	CB_ImgTextFade='on',
	CB_FlashHide='off',
	CB_SelectsHide='on',
	CB_NoThumbnails='off', 
	CB_SimpleDesign='off',
	CB_ImgMinWidth=200,
	CB_ImgMinHeight=160,
	CB_CloseOnH='on',
	CB_ShowGalName='on',
	CB_AllowedToRun='on',
	CB_AllowExtFunct='off',
	CB_FullSize='on'

;

//
//	Do not change the following code!
//

eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2 $6(){d(4.j==1)3 7$6(4[0]);5 b=[];$c(4).h(2(a){b.x(7$6(a))});3 b;2 7$6(a){d(s a==\'r\')a=p.n(a);3 a}};m.l.k=2(a){5 b=8;3 2(){3 b.e(a,4)}};i=2(a,b){o(9 q b)a[9]=b[9];3 a};d(!g.f)5 f=u t();5 v={w:2(){3 2(){8.y.e(8,4)}}};',35,35,'||function|return|arguments|var|CB|get|this|kifejezes||||if|apply|CBEE|window|each|Kiterjeszt|length|lancol|prototype|Function|getElementById|for|document|in|string|typeof|Object|new|Osztaly|letrehoz|push|azonnallefut'.split('|'),0,{}));eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('s i=t 1i();i.F=3(){};i.F.1z={1r:3(a){1.7=14({z:3(){},y:3(){},Y:i.1v.1p,n:1h,N:\'k\',S:18,E:C},a||{})},B:3(){s a=t A().T();4(a<1.m+1.7.n){4(1.8.f(\'d\')==\'1t\'&&1o==\'1n\'){1.9=1.j;1.g();6}4((1.8.f(\'d\')==\'u\'||1.8.f(\'d\')==\'1g\'||1.8.f(\'d\')==\'1e\')&&1b==\'1a\'){1.g();6}1.H=a-1.m;1.V()}r{D(1.7.y.w(1,1.8),10);1.g();1.9=1.j}1.O()},V:3(){1.9=1.P(1.Q,1.j)},P:3(a,b){s c=b-a;6 1.7.Y(1.H,a,c,1.7.n)},g:3(){13(1.l);1.l=12;6 1},x:3(a,b){4(!1.7.S)1.g();4(1.l)6;D(1.7.z.w(1,1.8),10);1.Q=a;1.j=b;1.m=t A().T();1.l=11(1.B.w(1),Z.1y(1x/1.7.E));6 1},1w:3(a,b){6 1.x(a,b)},X:3(a){1.9=a;1.O();6 1},1u:3(){6 1.X(0)},1s:3(e,p,v){4(1.8.f(\'d\')==\'u\'&&p==\'R\'){I=M(1l-(1k+1.9+1j+(2*(L+o+K)))/2);J.5.1f=(I-(1m/2))+\'k\';1d.5.R=1.9+(2*o)+\'k\'}4(1.8.f(\'d\')==\'u\'&&p==\'1c\'){U=M(1q-(1.9+(2*(L+o+K)))/2);J.5.19=U+\'k\'}4(p==\'q\'){4(v==0&&e.5.h!="W")e.5.h="W";r 4(e.5.h!="G")e.5.h="G";4(17.16)e.5.15="1A(q="+v*C+")";e.5.q=v}r e.5[p]=v+1.7.N}};',62,99,'|this||function|if|style|return|params|CBe|most||||id||getAttribute|clearTimer|visibility|CB_effektek|hova|px|timer|time|idotartam|CB_ImgBorder||opacity|else|var|new|CB_Image||lancol|_start|halefutott|haelindul|Date|effekt_lepes|100|setTimeout|fps|alap|visible|cTime|CB_MarginT|CB_Win|CB_Padd|CB_RoundPix|parseInt|egyseg|noveles|compute|honnan|height|varakozas|getTime|CB_MarginL|setNow|hidden|set|effekt|Math||setInterval|null|clearInterval|Kiterjeszt|filter|ActiveXObject|window|true|marginLeft|on|CB_Break|width|CB_ImgCont|CB_iFrame|marginTop|CB_TL|500|Object|CB_TextH|CB_ieRPBug|DocScrY|FF_ScrollbarBug|off|CB_SSTimer|evlassitva|DocScrX|parameterek|setStyle|CB_SlideShowBar|elrejt|Effektek|sajat|1000|round|prototype|alpha'.split('|'),0,{}));eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7.z=r.j();7.z.i=f(w 7.n(),{m:5(a,b){3.4=$u(a);3.g(b);3.4.E.D=\'B\'},l:5(){k(3.4.A>0)6 3.8(3.4.A,0);h 6 3.8(0,3.4.x)},q:5(){6 3.e(3.4.x)},s:5(){3.v(3.4,\'M\',3.9)}});7.F=r.j();7.F.i=f(w 7.n(),{m:5(a,b){3.4=$u(a);3.g(b);3.4.E.D=\'B\';3.p=3.4.o},l:5(){k(3.4.o>0)6 3.8(3.4.o,0);h 6 3.8(0,3.p)},q:5(){6 3.e(3.p)},s:5(){3.v(3.4,\'L\',3.9)}});7.C=r.j();7.C.i=f(w 7.n(),{m:5(a,b){3.4=$u(a);3.g(b);3.9=1},l:5(){k(3.9>0)6 3.8(1,0);h 6 3.8(0,1)},q:5(){6 3.e(1)},s:5(){3.v(3.4,\'K\',3.9)}});7.J={I:5(t,b,c,d){6 c*t/d+b},H:5(t,b,c,d){6-c/2*(y.G(y.N*t/d)-1)+b}};',50,50,'|||this|CBe|function|return|CB_effektek|sajat|most|||||set|Kiterjeszt|parameterek|else|prototype|letrehoz|if|toggle|azonnallefut|alap|offsetWidth|iniWidth|show|Osztaly|noveles||CB|setStyle|new|scrollHeight|Math|magassag|offsetHeight|hidden|Atlatszosag|overflow|style|szelesseg|cos|evlassitva|egyenletes|Effektek|opacity|width|height|PI'.split('|'),0,{}));eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('F 7E=\'2.6\',3i=1;2a=-50,1R=5,3G=\'G\';l(1B==\'G\'){1B=\'46\';29=1}p 6O(a){F b;l(!a)F a=Q.4K;F b=(a.6h)?a.6h:a.7B;F c=7u.7o(b);l(2d==\'o\'){l(x>1&&(c=="%"||b==37||b==52)){l(1l==\'o\'){1y()}1n(x-1);v M}l(x<u.C-1&&(c=="\'"||b==39||b==54)){l(1l==\'o\'){1y()}1n(x+1);v M}l((c==" "||b==32)&&2P==0){l(u.C<3){v M}l(2g==\'2M\'){4A();v M}t{58();v M}}l(c==""||b==27){42();v M}l(b==13){v M}}t{l(2P==1&&(c==" "||b==32||b==13)){v M}}}p 4A(){1O.k.y=\'K\';1W.k.y=\'16\';2g=\'4L\';1M.k.y=\'16\';5e()}p 58(){1W.k.y=\'K\';1O.k.y=\'16\';5g()}3u=P(3u);l(3u<0){3u=0}3r=P(3r);l(3r<0){3r=0}3q=P(3q);l(3q<0){3q=0}3p=P(3p);l(3p<0){3p=0}l(2V<0||2V>1){2V=0.75}2n=P(2n);l(2n<1||2n>57){2n=56}2k=P(2k);l(2k<1||2k>57){2k=6R}2R=P(2R);l(2R<1||2R>57){2R=83}1F=P(1F);l(1F<0){1F=1}l(1B!=\'G\'&&1B!=\'6I\'&&1B!=\'46\'&&1B!=\'3Q\'){1B=\'46\'}J=P(J);l(J<0){J=1}1o=P(1o);l(1o<0){1o=2}l(3h!=\'o\'&&3h!=\'G\'){3h=\'G\'}1R=P(1R);l(1R<0){1R=0}V=P(V);l(V<0){V=12}1j=P(1j);l(1j<25){1j=25}l(3d==\'o\'){1j=0;1R=0}2N=P(2N);l(2N<6){2N=12}3c=P(3c);l(3c<6){3c=11}l(3b!=\'o\'&&3b!=\'G\'){3b=\'o\'}2K=P(2K);l(2K<1){2K=5}2K*=6j;l(3G!=\'o\'&&3G!=\'G\'){3G=\'G\'}l(38!=\'o\'&&38!=\'G\'){38=\'o\'}l(2e!=\'o\'&&2e!=\'G\'){2e=\'o\'}l(2I!=\'o\'&&2I!=\'G\'){2I=\'G\'}l(2Q!=\'o\'&&2Q!=\'G\'){2Q=\'o\'}l(3O!=\'o\'&&3O!=\'G\'){3O=\'G\'}l(3d!=\'o\'&&3d!=\'G\'){3d=\'G\'}l(3F!=\'o\'&&3F!=\'G\'){3F=\'o\'}l(3j!=\'o\'&&3j!=\'G\'){3j=\'o\'}l(2x!=\'o\'&&2x!=\'G\'){2x=\'o\'}l(34!=\'o\'&&34!=\'G\'){34=\'G\'}l(3Y!=\'o\'&&3Y!=\'G\'){3Y=\'o\'}l(45!=\'o\'&&45!=\'G\'){45=\'o\'}l(48!=\'o\'&&48!=\'G\'){48=\'o\'}l(3v!=\'o\'&&3v!=\'G\'){3v=\'o\'}l(3w!=\'o\'&&3w!=\'G\'){3w=\'o\'}29=P(29);l(29<1){29=6R}2E=P(2E);l(2E<50){2E=50}2F=P(2F);l(2F<50){2F=50}F 3A,2G=3B,5V=2a,3C,7j,3f,3I=\'\',7g=0,2f,7c,2P,2q,2X,4T=0,4Z=\'\',2d,3Z=3u+3r,47=3q+3p,44,N,43=0,1l,2g=\'2M\',20,5f,5d,71,A,H,41,2w,1N,D,1S,1U,2h,2m,x,u,3X,2T,3V,3n,3m,2y,2z;O+=\'/\';F 4X=m.82?3B:M;l(!4X)m.81(80.7Z);l(3Y==\'o\'){F 1H=4R;4R=\'<1w 1u="3P" B="\'+O+\'6E.1b" 1f="\'+1H+\'" 1D="\'+1H+\'" />\'}l(45==\'o\'){F 1H=4P;4P=\'<1w 1u="3P" B="\'+O+\'6w.1b" 1f="\'+1H+\'" 1D="\'+1H+\'" />\'}l(48==\'o\'){F 1H=3N;3N=\'<1w 1u="3P" B="\'+O+\'6v.1b" 1f="\'+1H+\'" 1D="\'+1H+\'" />\'}l(3v==\'o\'){F 1H=4N;4N=\'<1w 1u="3P" B="\'+O+\'6t.1b" 1f="\'+1H+\'" 1D="\'+1H+\'" />\'}p 6r(a,b){l(3g Q.2O!=\'3e\'){Q.2O(a,b,M)}t l(3g m.2O!=\'3e\'){m.2O(a,b,M)}t l(3g Q.6o!=\'3e\'){Q.6o("o"+a,b)}}6r(\'7V\',6m);p 6m(){m.7Q=6O;m.X.k.7O="7M";F a=\'<I 1u="7I" k="E: \'+V+\'q; R: \'+V+\'q;"></I>\';l(14.17.Z("2H")!=-1){3I=\'<1w z="4O" 1f="" B="\'+O+\'2s.1b" />\'}t{3I=\'<I z="4O"></I>\'}l(!m.r(\'4w\')&&3i!=0){F b=m.2b("X").7z(0);F c=m.4Q("I");c.68(\'z\',\'67\');b.1v(c);F d=m.4Q("I");d.68(\'z\',\'4w\');b.1v(d)}m.r(\'4w\').T=\'<I z="64"></I><I z="63"></I><60 7w="0" 7v="0" z="5Y"><2D z="3n"><1c z="4a">\'+a+\'</1c><1c z="4n"></1c><1c z="4d">\'+a+\'</1c></2D><2D z="7s"><1c z="2y"></1c><1c z="71" 7r="33" 7p="2c"><I z="5M"><I z="5L"><1w z="4j" 1f="\'+5K+\'" 1D="\'+5K+\'" B="\'+O+5J+\'" /><I z="5R"></I>\'+3I+\'<I z="4r"><I z="5H"></I></I><1w z="6c" 1f="7i" B="\'+O+5F+\'" /><1w z="5E" 1f="" B="\'+O+\'2s.1b" /><I z="3H"><1w z="4g" 1f="" B="\'+O+5B+\'" /><1w z="4f" 1f="" B="\'+O+6k+\'" /><I z="5y"></I><1w z="4e" 1f="\'+5x+\'" 1D="\'+5x+\'" B="\'+O+5w+\'" /><1w z="4c" 1f="\'+5v+\'" 1D="\'+5v+\'" B="\'+O+5u+\'" /><a z="5t"></a><a z="5r"></a></I></I><I z="5p"><I z="6P"></I><I z="5n"></I><I z="6Y"></I></I></I></1c><1c z="2z"></1c></2D><2D z="3m"><1c z="5l">\'+a+\'</1c><1c z="5j"></1c><1c z="5i">\'+a+\'</1c></2D></60>\';l(14.17.Z("2H 6")!=-1&&V==0){4Z=1}l(14.17.Z("2H")!=-1&&V<2){4T=6}m.r(\'5M\').k.8d=1o+\'q\';2Y=m.r(\'4O\');1p=m.r(\'5y\');1p.k.73=\'#8c\';1p.k.1g=0.75;1p.k.1d=\'2o(1g=75)\';2w=m.r(\'5Y\');2C=m.r(\'4r\');3t=m.r(\'5H\');l(3O==\'o\'){2Y.k.y=\'K\'}1a=m.r(\'64\');1a.k.73=8b;1a.k.1g=0;1a.k.1d=\'2o(1g=0)\';5c=U 1I.2B(1a,{1G:2n,1V:p(){5b(\'3o\')}});5c.2W();5a=U 1I.2B(1a,{1G:2n,1V:p(){1n()}});5a.2W();59=U 1I.2B(1a,{1G:2n,1V:p(){1a.k.E=\'1k\';1a.k.R=\'1k\';20.k.w=\'S\'}});59.2W();D=m.r(\'5E\');20=m.r(\'6c\');2U=m.r(\'5L\');D.k.8a=J+\'q 89 \'+88;2A=m.r(\'4j\');2A.1r=p(){42()};1O=m.r(\'4c\');1W=m.r(\'4e\');1O.1r=p(){4A();v M};1W.1r=p(){58();v M};1M=m.r(\'63\');1M.k.1g=0.5;1M.k.1d=\'2o(1g=50)\';2j=m.r(\'4g\');2j.28=p(){2j.k.w=\'19\'};2j.1r=p(){l(1l==\'o\'){1y()}1n(x-1);v M};2l=m.r(\'4f\');2l.28=p(){2l.k.w=\'19\'};2l.1r=p(){l(1l==\'o\'){1y()}1n(x+1);v M};1S=m.r(\'5t\');1S.k.1T=\'6W(\'+O+\'2s.1b)\';1S.28=p(){2j.k.w=\'19\'};1S.6V=p(){2j.k.w=\'S\'};1U=m.r(\'5r\');1U.k.1T=\'6W(\'+O+\'2s.1b)\';1U.28=p(){2l.k.w=\'19\'};1U.6V=p(){2l.k.w=\'S\'};1t=m.r(\'6Y\');1N=m.r(\'5p\');1N.k.R=(1j-1R)+\'q\';1t.k.33=\'-\'+(1j-1R)+\'q\';1t.k.R=(1j-1R+3)+\'q\';1N.k.6U=1R+\'q\';l(3d==\'o\'){1N.k.y=\'K\';1j=0}t{1N.k.y=\'16\'}W=m.r(\'6P\');W.k.53=6T;W.k.51=6S;W.k.6Q=87;W.k.4Y=2N+\'q\';1i=m.r(\'67\');1i.k.53=6T;1i.k.51=6S;1i.k.4Y=2N+\'q\';1h=m.r(\'5n\');1h.k.53=86;1h.k.51=85;1h.k.6Q=84;1h.k.4Y=3c+\'q\';3n=m.r(\'3n\').k;3n.R=V+\'q\';3m=m.r(\'3m\').k;3m.R=V+\'q\';2y=m.r(\'2y\').k;2y.E=V+4Z+\'q\';2z=m.r(\'2z\').k;2z.E=V+\'q\';4W=m.r(\'5R\');l(2e==\'o\'){4V=U 1I.2B(1t,{1G:2R,1V:p(){3s()}});5h=U 1I.2B(D,{1G:2k,1V:p(){3T()}});5h.2W();6M=U 1I.2B(D,{1G:2k});6M.2W()}5k=m.r(\'3H\').k;2Y.28=p(){6K();v};1p.28=p(){3S();v};1N.28=p(){3S();v};1a.28=p(){3S();v};l(14.17.Z("3k")!=-1){3Z=0;47=0}l(14.17.Z("3R")!=-1){47=0}m.r(\'4r\').7Y=6H;F e=0;F f=0;F g=U 2v("2s.1b","6G.1b","6F.1e","6D.1e","6C.1e","6B.1e","6A.1e","6z.1e","6y.1e","6x.1e","7X.1b",5u,5w,5J,5F,6k,5B,"6E.1b","6w.1b","6v.1b","6t.1b");F h=U 2v();N=m.2b(\'a\');1x(i=0;i<N.C;i++){L=N[i].1A;7W=N[i].15(\'2i\');l(L.6u(\'1s\')!=1Y&&3i!=0){l(L==\'1s\'){N[i].1r=p(){l(2x==\'o\'){4M(Y.1A+\'+\\\\+\'+Y.15(\'2i\')+\'+\\\\+\'+Y.15(\'1D\'));v M}}}t{l(L.1E(0,8)==\'1s\'&&L.3M(8)==\'[\'&&L.3M(L.C-1)==\']\'){l(N[i].1A.1E(9,N[i].1A.C-1).21(\',,\')[0]!=\'1s\'){N[i].1r=p(){l(2x==\'o\'){4M(Y.1A.1E(9,Y.1A.C-1)+\'+\\\\+\'+Y.15(\'2i\')+\'+\\\\+\'+Y.15(\'1D\'));v M}}}t{6q(\'6p 6n#1:\\n\\7U 7T 7S 7R 7P "1s[1s]"!\\n(6l: m, \'+i+\'. <a>.)\')}l(N[i].15(\'2t\')!=1Y&&N[i].15(\'2t\')!=\'1Y\'){g.1Z(N[i].15(\'2t\'));F j=m.4Q(\'1w\');j.B=N[i].15(\'2t\');j.1f=\'\';j.7N=\'7L\';N[i].1v(j)}}t l(L.1E(0,8)==\'1s\'&&L.3M(8)==\'(\'&&L.3M(L.C-1)==\')\'){l(L.1E(9,L.C-1).21(\',,\')[2]==\'7K\'){N[i].1r=p(){l(2x==\'o\'){4J(Y.1A.1E(9,Y.1A.C-1)+\'+\\\\+\'+Y.15(\'2i\')+\'+\\\\+\'+Y.15(\'1D\'));v M}}}t{N[i].28=p(){l(2x==\'o\'){4J(Y.1A.1E(9,Y.1A.C-1)+\'+\\\\+\'+Y.15(\'2i\')+\'+\\\\+\'+Y.15(\'1D\'));v M}}}}t{6q(\'6p 6n#2:\\n\\n: 7J 7H 7G: "\'+N[i].1A+\'"!\\n(6l: m, \'+i+\'. <a>.)\')}}}}1x(i=0;i<g.C;i++){h[i]=U 2J();h[i].B=O+g[i]}2h=A=56;2m=H=56-1j;l(14.17.Z("2H")!=-1&&14.17.Z("7F")!=-1&&14.17.Z("2H 7")==-1){6i()}}p 4M(a){l(3i==0){v M}2G=M;3A=\'G\';1m=a.21(\'+\\\\+\');L=1m[0].21(\',,\');l(L[1]>0){4H=P(L[1])*6j}t{4H=2K}l(L[2]==\'2M\'){2g=\'4L\'}l(u&&L[0]==u[0][0]&&u[0][0]!=\'1s\'){}t{u=U 2v;u.1Z(U 2v(L[0],L[1],L[2]));l(1m[0]==\'1s\'){u.1Z(U 2v(1m[1],1m[2]))}t{1x(i=0;i<N.C;i++){l(N[i].1A.1E(9,N[i].1A.C-1).21(\',,\')[0]==u[0][0]){3f=O+\'6G.1b\';l(N[i].15(\'2t\')==1Y||N[i].15(\'2t\')==\'1Y\'){1x(j=0;j<N[i].4G.C;j++){l(N[i].4G[j].B!=3e){3f=N[i].4G[j].B}}}t{3f=N[i].15(\'2t\')}u.1Z(U 2v(N[i].15(\'2i\'),N[i].15(\'1D\'),3f))}}}}x=0;7C(u[x][0]!=1m[1]){x++}4F();l(2Q==\'o\'){4E()}l(2I==\'o\'){4D()}4C()}p 4F(){6g();6f();6e();l(1q>1Q){1Q=1q}l((14.17.Z("6d")!=-1||14.17.Z("3R")!=-1)&&1z!=1P){44=Q.4z+Q.4y-1Q}t{44=0}4x();l(3Z==0){l(1P>7A.E){1a.k.E=1P+\'q\'}t{1a.k.E=\'35%\'}}t{1a.k.E=1P+3Z+\'q\'}1a.k.R=1q+2u+\'q\';1a.k.w=\'19\';v}p 4J(a){l(3i==0){v M}3A=\'G\';4W.T=\'<6a 7y="0" z="69" B=""></6a>\';1L=m.r(\'69\');1L.k.1g=0;1L.k.1d=\'2o(1g=0)\';l(2e==\'o\'){4v=U 1I.2B(1L,{1G:2k,1V:p(){2A.k.y=\'16\';D.k.w=\'S\';4V.1C(1,0)}});4v.2W()}2G=M;1N.k.E=\'1k\';1t.k.E=\'1k\';49();2d=\'G\';1m=a.21(\'+\\\\+\');1L.B=1m[1];5k.y=\'K\';L=1m[0].21(\',,\');4F();A=P(L[0]);H=P(L[1]);l(A>1z-(2*(V+J+1o+1F))){A=1z-(2*(V+J+1o+1F))}l(H>1q-(2*(V+J+1o+1F))-1j){H=1q-(2*(V+J+1o+1F))-1j}D.k.E=2h+\'q\';D.k.R=2m+\'q\';D.k.y=\'16\';D.k.w=\'S\';2w.k.w=\'19\';2A.k.y=\'K\';1O.k.y=\'K\';1W.k.y=\'K\';l(2Q==\'o\'){4E()}l(2I==\'o\'){4D()}4C(\'3o\')}p 4C(a){l(a==\'3o\'){20.k.w=\'19\';5c.1C(0,2V)}t{66();5a.1C(0,2V)}1a.k.R=1Q+47+\'q\'}p 66(){4u();D.k.E=2h+\'q\';D.k.R=2m+\'q\';D.k.y=\'16\';D.k.w=\'S\';2w.k.w=\'19\'}p 4u(){1O.k.y=\'K\';1W.k.y=\'K\';2A.k.y=\'K\';1S.k.y=\'K\';1U.k.y=\'K\'}p 1n(a){2d=\'G\';4t();4u();2j.k.w=\'S\';2l.k.w=\'S\';1N.k.E=\'1k\';1t.k.E=\'1k\';2C.k.E=\'1k\';1p.k.E=\'1k\';1p.k.R=\'1k\';2Y.k.w=\'S\';2C.k.y=\'K\';1p.k.w=\'S\';49();l(a){l(A>2q){D.k.E=A+\'q\'}l(H>2X){D.k.R=H+\'q\'}}l(a){x=P(a)}l(1B!=\'3Q\'){D.k.w=\'S\';20.k.w=\'19\'}W.T=\'\';1h.T=\'\';3X=0;2T=U 2J();2T.B=u[x][0];3V=M;3s();4s()}p 4s(){l(3X==1){4S();3V=3B;4q(3U);65();v}l(3V==M&&2T.7x){3X++}3U=62("4s()",5);v}p 65(){A=2T.E;H=2T.R;2q=A;2X=H;41=A/H;l(A<2E){A=2E}l(H<2F){H=2F}61();D.B=u[x][0];5b();v}p 5b(a){2P=1;l(1B==\'46\'){55(a)}t l(1B==\'3Q\'){l(!a){20.k.w=\'S\';D.k.w=\'19\';D.k.1g=1;D.k.1d=\'2o(1g=35)\'}55(a)}t l(1B==\'G\'){4x();2U.k.R=H+(2*J)+\'q\';D.k.E=A+\'q\';D.k.R=H+\'q\'}t l(1B==\'6I\'){6X(a)}v}p 6X(a){3D=U 1I.4p(D,{1G:29,1V:p(){5Z(a)}});3D.1C(2h,A)}p 5Z(a){40=U 1I.5X(D,{1G:29,1V:p(){l(a==\'3o\'){4B()}t{4l()}}});40.1C(2m,H)}p 55(a){3D=U 1I.4p(D,{1G:29,1V:p(){l(a==\'3o\'){4B()}t{4l()}}});3D.1C(2h,A);40=U 1I.5X(D,{1G:29});40.1C(2m,H)}p 4B(){5W()}p 5W(){l(34==\'o\'){5U()}u=\'\';4o();D.k.w=\'19\';D.k.1g=1;D.k.1d=\'2o(1g=35)\';20.k.w=\'S\';1L.k.33=J+\'q\';1L.k.2c=J+\'q\';1L.k.E=A+\'q\';1L.k.R=H+\'q\';W.k.5T=\'7t\';l(1m[2]&&1m[2]!=\'1Y\'&&1m[2]!=1Y){1i.T=\'\';1i.1v(m.1K(1m[2]));l(1i.2Z>A+(2*J)){4m(1m[2])}t{W.1v(m.1K(1m[2]))}}t{l(3h==\'o\'){W.T=1m[1]}}2d=\'o\';2P=0;l(2e==\'o\'){4v.1C(0,1)}t{1t.k.w=\'S\';1L.k.1g=1;1L.k.1d=\'2o(1g=35)\';2A.k.y=\'16\';3s()}v}p 3s(){l(3F==\'o\'){1a.1r=p(){42();v M}}}p 4S(){1a.1r=\'\'}p 4l(){l(A>2q){2U.k.E=A+(2*J)+\'q\';D.k.E=2q+\'q\'}l(H>2X){2U.k.R=H+(2*J)+\'q\';D.k.R=2X+\'q\'}l(1B!=\'3Q\'){W.T=\'\';1h.T=\'\';20.k.w=\'S\';D.B=u[x][0];l(2e==\'o\'){5S()}t{D.k.w=\'19\';3T()}}t{3T()}}p 3T(){l(34==\'o\'){5U()}W.k.5T=\'2c\';4o();l(u.C<3){1O.k.y=\'K\';1W.k.y=\'K\'}t{l(2g==\'2M\'){1O.k.y=\'16\';1W.k.y=\'K\'}t{1W.k.y=\'16\';1O.k.y=\'K\'}}5k.y=\'16\';2A.k.y=\'16\';1S.k.R=H+\'q\';1U.k.R=H+\'q\';l(u[x][1]&&u[x][1]!=\'1Y\'&&u[x][1]!=1Y){1i.T=\'\';1i.1v(m.1K(u[x][1]));l(1i.2Z>A+(2*J)){4m(u[x][1])}t{W.1v(m.1K(u[x][1]))}}t{l(3h==\'o\'){W.1v(m.1K((u[x][0].21(\'/\'))[(u[x][0].21(\'/\').C)-1]))}}l(3j==\'o\'&&L[0]!="1s"){1h.1v(m.1K(L[0]))}l(3b==\'o\'&&u.C>2){1h.1v(m.1K(\' \'+5Q.1E(0,1)+x+\'/\'+(u.C-1)+5Q.1E(1,2)+\' \'))}l(3w==\'o\'){l((3j==\'o\'||3b==\'o\')&&L[0]!="1s"){1h.T+=\'<2p 1u="3y"> | </2p>\'}F a=4N;l(2q>A||2X>H){a=3N}l(u[x][0].1E(u[x][0].C-4,u[x][0].C)==\'7q\'){a=3N;1h.T+=\'<a 1u="2r" 5P="5O" 2i="\'+u[x][0].1E(0,u[x][0].C-4)+\'">\'+a+\'</a>\'}t{1h.T+=\'<a 1u="2r" 5P="5O" 2i="\'+u[x][0]+\'">\'+a+\'</a>\'}}l(2r==\'o\'&&L[0]!="1s"){1h.T+=\'<2p 1u="3y"> | </2p>\'}3H();l(u.C>0){l(A>2q){2U.k.E=\'\'}2h=A;2m=H}l(u.C>2){l(2g==\'4L\'){1W.k.y=\'16\';1M.k.y=\'16\';5e()}t{1O.k.y=\'16\'}}t{2g=\'2M\'}2d=\'o\';2P=0;1p.k.E=A+(2*J)+\'q\';1p.k.R=H+(2*J)+\'q\';5N();l(2e==\'o\'){4V.1C(1,0)}t{1t.k.w=\'S\';3s()}v}p 4m(a){1i.T=\'\';1i.1v(m.1K(a));1i.T+=\' | \';1i.1v(m.1K(a));1i.T+=\' | \';W.T=\'\';W.1v(m.1K(a));W.T+=\'<2p 1u="3y"> | </2p>\';W.1v(m.1K(a));W.T+=\'<2p 1u="3y"> | </2p>\';4k()}p 4k(){l(2a<0){2a++}t{l(2a<1i.2Z/2){W.k.2c=-2a+\'q\';2a++}t{W.k.2c=\'1k\';2a=0}}3C=62("4k()",30)}p 5N(){l(L[0]!="1s"){2Y.k.w=\'19\';2C.k.E=A+(2*J)+\'q\';2C.k.33=H-70+\'q\';F a=\'\';F b=10;F c=0;F d=0;2f=0;3z=U 2J();3K=U 2J();1x(i=1;i<u.C;i++){3z.B=u[i][2];c=3W.3x(3z.E/3z.R*50);l(c>0){}t{c=50}2f+=c}2f+=(u.C-2)*b;1x(i=1;i<u.C;i++){3K.B=u[i][2];a+=\'<a 1r="l(1l==\\\'o\\\'){1y();}1n(\'+i+\')"><1w k="2c: \'+d+\'q;" B="\'+u[i][2]+\'" R="50" 1u="7n" 1f="" /></a>\';d+=3W.3x(3K.E/3K.R*50)+b}3t.k.E=2f+\'q\';3t.T=a;3t.k.4i=(A-2f)/2+\'q\'}v}p 4o(){1t.k.E=A+(2*J)+\'q\';1N.k.E=A+(2*J)+\'q\'}p 49(){1t.k.1g=1;1t.k.1d=\'2o(1g=35)\';1t.k.y=\'16\';1t.k.w=\'19\'}p 5S(){5h.1C(0,1)}p 6K(){1p.k.w=\'19\';2C.k.y=\'16\';v}p 3S(){1p.k.w=\'S\';2C.k.y=\'K\';v}p 6H(e){l(2f>A){l(4X){31=4K.7m}t{31=e.7l}l(31<0){31=0}3t.k.4i=((1z-A)/2-31)/(A/(2f-A-(2*J)))+\'q\'}}p 4t(){l(3C){4q(3C)}W.k.2c=\'1k\';2a=5V}p 5g(){1l=\'G\';2g=\'2M\';1y()}p 1y(){1M.k.E=\'1k\';1l=\'G\';43=0;1M.k.y=\'K\'}p 5e(){1l=\'o\';1M.k.2c=(P((1z-A)/2)+18+2S-J)+\'q\';1M.k.33=(P((1q-H-1j)/2)+4+2u-J)+\'q\';5I=U 1I.4p(1M,{1G:4H,1V:p(){43=0;1M.k.E=43+\'q\';l(1l==\'o\'){l(x==u.C-1){1n(1)}t{1n(x+1)}}}});5I.1C(0,A+(2*J)-36)}p 61(){l(A>1z-(2*(V+J+1o+1F))){A=1z-(2*(V+J+1o+1F));H=3W.3x(A/41)}l(H>1q-(2*(V+J+1o+1F))-1j){H=1q-(2*(V+J+1o+1F))-1j;A=3W.3x(41*H)}v}p 4x(){5f=P(2S-(A+(2*(V+J+1o)))/2);5d=P(2u-(4T+H+1j+(2*(V+J+1o)))/2);2w.k.4i=5f+\'q\';2w.k.6U=(5d-(44/2))+\'q\';v}p 3H(){l(x>1){l(38==\'o\'){5G=U 2J();5G.B=u[x-1][0]}l(2r==\'o\'){1h.T+=\'<a 1u="2r" 1r="l(1l==\\\'o\\\'){1y();}1n(\'+(x-1)+\')" 1f="&7k;">\'+4R+\'</a>\'}1S.k.y=\'16\';1S.1r=p(){l(1l==\'o\'){1y()}1n(x-1);v M}}l(x<u.C-1){l(38==\'o\'){6b=U 2J();6b.B=u[x+1][0]}l(2r==\'o\'){1h.T+=\'<a 1u="2r" 1r="l(1l==\\\'o\\\'){1y();}1n(\'+(x+1)+\')" 1f="&7D;">\'+4P+\'</a>\'}1U.k.y=\'16\';1U.1r=p(){l(1l==\'o\'){1y()}1n(x+1);v M}}v}p 42(){l(L[0]==\'1s\'||u.C>2){l(3U){4q(3U)}}3A=\'o\';2G=3B;4t();1N.k.E=\'1k\';1t.k.E=\'1k\';1p.k.E=\'1k\';1p.k.R=\'1k\';1p.k.w=\'S\';2Y.k.w=\'S\';5g();W.T=\'\';1h.T=\'\';D.B=O+\'2s.1b\';2h=A;2m=H;2U.k.R=H+(2*J)+\'q\';D.k.y=\'K\';2w.k.w=\'S\';4W.T=\'\';49();74();2j.k.w=\'S\';2l.k.w=\'S\';1S.k.y=\'K\';1U.k.y=\'K\';20.k.w=\'S\';4S();v}p 74(){59.1C(2V,0);2d=\'G\';l(2Q==\'o\'){6J()}l(2I==\'o\'){5D()}v}p 6f(){Y.1P=0;Y.1Q=0;l(Q.3J&&Q.4h){1P=Q.3J+Q.4h;1Q=Q.4y+Q.4z}t l(m.X.4I>m.X.2Z){1P=m.X.4I;1Q=m.X.5C}t{1P=m.X.2Z;1Q=m.X.7h}l(14.17.Z("2H")!=-1||14.17.Z("3k")!=-1){1P=m.X.4I;1Q=m.X.5C}l(14.17.Z("3R")!=-1||14.17.Z("6d")!=-1){1P=1z+Q.4h;1Q=1q+Q.4z}v}p 6g(){Y.1z=0;Y.1q=0;l(m.1J&&(m.1J.3a||m.1J.2L)){1z=m.1J.3a;1q=m.1J.2L}t l(3g(Q.3J)==\'5A\'){1z=Q.3J;1q=Q.4y}t l(m.X&&(m.X.3a||m.X.2L)){1z=m.X.3a;1q=m.X.2L;v}l(14.17.Z("3k")!=-1){1z=m.1J.3a;1q=m.1J.2L}l(m.5z!=3e){l(m.5z.6u(\'7f\')&&(14.17.Z("3R")!=-1||14.17.Z("3k")!=-1||14.17.Z("7e")!=-1)){1q=m.X.2L}}v}p 6e(){Y.2S=0;Y.2u=0;l(3g(Q.6s)==\'5A\'){2u=Q.6s;2S=Q.7d}t l(m.X&&(m.X.3L||m.X.3E)){2u=m.X.3E;2S=m.X.3L}t l(m.1J&&(m.1J.3L||m.1J.3E)){2u=m.1J.3E;2S=m.1J.3L}v}p 6i(){F s,i,j;F a=U 2v();a.1Z(m.r(\'4j\'));a.1Z(m.r(\'4c\'));a.1Z(m.r(\'4e\'));a.1Z(m.r(\'4g\'));a.1Z(m.r(\'4f\'));1x(i=0;i<a.C;i++){s=a[i].15(\'B\');l(s.7b().Z(".1e")!=-1){a[i].B=O+\'2s.1b\';a[i].k.1d+="1X:23.22.24(B=\'"+s+"\', 26=7a);"}}m.r(\'4n\').k.1d="1X:23.22.24(B=\'"+O+"/6z.1e\', 26=\'4b\');";m.r(\'4a\').k.1d="1X:23.22.24(B=\'"+O+"/6y.1e\', 26=\'3l\');";m.r(\'4d\').k.1d="1X:23.22.24(B=\'"+O+"/6x.1e\', 26=\'3l\');";m.r(\'2z\').k.1d="1X:23.22.24(B=\'"+O+"/6A.1e\', 26=\'4b\');";m.r(\'2y\').k.1d="1X:23.22.24(B=\'"+O+"/6B.1e\', 26=\'4b\');";m.r(\'5j\').k.1d="1X:23.22.24(B=\'"+O+"/6F.1e\', 26=\'3l\');";m.r(\'5l\').k.1d="1X:23.22.24(B=\'"+O+"/6D.1e\', 26=\'3l\');";m.r(\'5i\').k.1d="1X:23.22.24(B=\'"+O+"/6C.1e\', 26=\'3l\');";m.r(\'4n\').k.1T="K";m.r(\'4a\').k.1T="K";m.r(\'4d\').k.1T="K";m.r(\'2z\').k.1T="K";m.r(\'2y\').k.1T="K";m.r(\'5j\').k.1T="K";m.r(\'5l\').k.1T="K";m.r(\'5i\').k.1T="K"}p 4E(){F a=m.2b("5s");1x(i=0;i!=a.C;i++){a[i].k.w="S"}}p 6J(){F a=m.2b("5s");1x(i=0;i!=a.C;i++){a[i].k.w="19"}}p 4D(){F a=m.2b("5q");1x(i=0;i<a.C;i++){a[i].k.w="S"}F b=m.2b("6L");1x(i=0;i<b.C;i++){b[i].k.w="S"}}p 5D(){F a=m.2b("5q");1x(i=0;i<a.C;i++){a[i].k.w="19"}F b=m.2b("6L");1x(i=0;i<b.C;i++){b[i].k.w="19"}}p 6N(a){l(14.17.Z("3k")!=-1){a=-a}l(u.C>2){l(a>0&&x>1){l(1l==\'o\'){1y()}1n(x-1)}l(a<0&&x<u.C-1){l(1l==\'o\'){1y()}1n(x+1)}}}p 4U(a){F b=2d=="o";F c=0;l(!a)a=Q.4K;l(a.5o){c=a.5o/79;l(Q.78)c=-c}t l(a.6Z){c=-a.6Z/3}l(c&&b)6N(c);l(a.5m&&!2G)a.5m();a.77=2G}l(Q.2O)Q.2O(\'76\',4U,M);Q.72=m.72=4U;',62,510,'||||||||||||||||||||style|if|document||on|function|px|getElementById||else|CB_Gallery|return|visibility|CB_ActImgId|display|id|CB_ImgWidth|src|length|CB_Img|width|var|off|CB_ImgHeight|div|CB_ImgBorder|none|CB_Rel|false|CB_Links|CB_PicDir|parseInt|window|height|hidden|innerHTML|new|CB_RoundPix|CB_Txt1|body|this|indexOf|||||navigator|getAttribute|block|userAgent||visible|CB_HideContent|gif|td|filter|png|alt|opacity|CB_Txt2|CB_HTxt|CB_TextH|0px|CB_SSTimer|CB_Clicked|CB_LoadImage|CB_Padd|CB_ImgHd|BrSizeY|onclick|clearbox|CB_TxtL|class|appendChild|img|for|CB_SlideShowJump|BrSizeX|rel|CB_Animation|sajat|title|substring|CB_WinPadd|idotartam|temp|CB_effektek|documentElement|createTextNode|CB_iFr|CB_SlideB|CB_Txt|CB_SlideS|DocSizeX|DocSizeY|CB_PadT|CB_Prv|backgroundImage|CB_Nxt|halefutott|CB_SlideP|progid|null|push|CB_LoadingImg|split|Microsoft|DXImageTransform|AlphaImageLoader||sizingMethod||onmouseover|CB_AnimSpeed|CB_STi|getElementsByTagName|left|CB_ClearBox|CB_ImgTextFade|CB_AllThumbsWidth|CB_SS|CB_ImgWidthOld|href|CB_NavP|CB_ImgOpacitySpeed|CB_NavN|CB_ImgHeightOld|CB_HideOpacitySpeed|alpha|span|CB_ImgWidthOrig|CB_TextNav|blank|tnhref|DocScrY|Array|CB_Win|CB_AllowedToRun|CB_Left|CB_Right|CB_Cls|Atlatszosag|CB_Thm|tr|CB_ImgMinWidth|CB_ImgMinHeight|CB_ScrollEnabled|MSIE|CB_FlashHide|Image|CB_SlShowTime|clientHeight|start|CB_FontSize|addEventListener|CB_IsAnimating|CB_SelectsHide|CB_TextOpacitySpeed|DocScrX|CB_preImages|CB_ImgCont|CB_HideOpacity|elrejt|CB_ImgHeightOrig|CB_ShTh|offsetWidth||tempX||top|CB_AllowExtFunct|100|||CB_Preload||clientWidth|CB_ImgNum|CB_FontSize2|CB_SimpleDesign|undefined|CB_ActThumbSrc|typeof|CB_ShowImgURL|CB_Show|CB_ShowGalName|Opera|crop|CB_Footer|CB_Header|HTML|CB_BodyMarginBottom|CB_BodyMarginTop|CB_BodyMarginRight|CB_CloseOnHON|CB_Thm2|CB_BodyMarginLeft|CB_NavTextImgDL|CB_FullSize|round|CB_Sep|CB_preThumbs|CB_Break|true|CB_ScrollTimer|CB_animWidth|scrollTop|CB_CloseOnH|CB_CheckDuplicates|CB_PrevNext|CB_IEShowBug|innerWidth|CB_preThumbs2|scrollLeft|charAt|CB_NavTextFull|CB_NoThumbnails|CB_BtmNav|warp|Firefox|CB_HideThumbs|CB_ShowImage|CB_ImgLoadTimer|CB_Loaded|Math|CB_Count|CB_NavTextImgPrv|CB_BodyMarginX|CB_animHeight|CB_ImgRate|CB_Close|CB_SlideBW|FF_ScrollbarBug|CB_NavTextImgNxt|double|CB_BodyMarginY|CB_NavTextImgFull|CB_TxtLShow|CB_TopLeft|scale|CB_SlideShowS|CB_TopRight|CB_SlideShowP|CB_NavNext|CB_NavPrev|scrollMaxX|marginLeft|CB_CloseWindow|CB_ScrollText|CB_ImageFade|CB_ScrollT|CB_Top|CB_TxtLPos|szelesseg|clearTimeout|CB_Thumbs|CB_CheckLoaded|CB_ScrollTextStop|CB_NewAndLoad|iFrFadeEffect|CB_All|CB_SetMargins|innerHeight|scrollMaxY|CB_SSStart|CB_AfterResizeHTML|CB_HideDocument|CB_HideFlash|CB_HideSelect|CB_SetAllPositions|childNodes|CB_SlShowTimer|scrollWidth|CB_ClickURL|event|pause|CB_ClickIMG|CB_NavTextDL|CB_ShowTh|CB_NavTextNxt|createElement|CB_NavTextPrv|CB_CloseOnHOFF|CB_ieRPBug|scroll_wheel|TxtFadeEffect|CB_iFrC|IE|fontSize|CB_ie6RPBug||fontWeight||fontFamily||CB_WindowResizeXY|300|10000|CB_SSPause|HideDocumentFadeEffect2|HideDocumentFadeEffect|CB_AnimatePlease|HideDocumentFadeEffectiFr|CB_MarginT|CB_SlideShow|CB_MarginL|CB_SlideShowStop|ImgFadeEffect|CB_BtmRight|CB_Btm|CB_PrvNxt|CB_BtmLeft|preventDefault|CB_T2|wheelDelta|CB_Text|object|CB_Next|select|CB_Prev|CB_PictureStart|CB_NavTextStart|CB_PicturePause|CB_NavTextStop|CB_ImgHide|compatMode|number|CB_PicturePrev|scrollHeight|CB_ShowFlash|CB_Image|CB_PictureLoading|PreloadPrv|CB_Thumbs2|CB_ssbarWidth|CB_PictureClose|CB_NavTextClose|CB_ImgContainer|CB_Padding|CB_CheckThumbs|_blank|target|CB_ImgNumBracket|CB_iFrCont|CB_ImgFadeIn|textAlign|CB_ExternalFunction|CB_STii|CB_AfterLoadedHTML|magassag|CB_Window|CB_WindowResizeY|table|CB_FitToBrowser|setTimeout|CB_SlideShowBar|CB_ContentHide|CB_GetImageSize|CB_NewWindow|CB_HiddenText|setAttribute|CB_iFrame|iframe|PreloadNxt|CB_LoadingImage|Netscape|getScrollPosition|getDocumentSize|getBrowserSize|which|CB_pngFixIE|1000|CB_PictureNext|in|CB_Init|ERROR|attachEvent|ClearBox|alert|OnLoad|pageYOffset|btm_dl|match|btm_max|btm_next|s_topright|s_topleft|s_top|s_right|s_left|s_btmright|s_btmleft|btm_prev|s_btm|noprv|getMouseXY|normal|CB_ShowSelect|CB_ShowThumbs|embed|ImgFadeEffect2|scroll_handle|CB_KeyPress|CB_T1|color|600|CB_FontWeight|CB_Font|marginTop|onmouseout|url|CB_WindowResizeX|CB_TL|detail||CB_Content|onmousewheel|backgroundColor|CB_ShowDocument||DOMMouseScroll|returnValue|opera|120|image|toLowerCase|CB_ResizeTimer|pageXOffset|Safari|Back|CB_pngie|offsetHeight|loading|CB_ImgFadeNum|lt|pageX|clientX|CB_ThumbsImg|fromCharCode|align|_box|valign|CB_Body|center|String|cellpadding|cellspacing|complete|frameborder|item|screen|keyCode|while|gt|CB_version|Windows|attribute|REL|CB_RoundPixBugFix|Bad|click|CB_TnThumbs|static|className|position|be|onkeypress|cannot|name|gallery|nClearBox|load|CB_URL|white|onmousemove|MOUSEMOVE|Event|captureEvents|all|250|CB_FontColor2|CB_FontWeight2|CB_Font2|CB_FontColor|CB_ImgBorderColor|solid|border|CB_HideColor|fff|padding'.split('|'),0,{}));




$(window).load(function() {
	
	// homepage slideshow
	$('#rotator').cycle({ 
		fx:     'fade', 
		speed:  'slow',
		pager:  '#portfolio-paginator', 
		timeout: 5000,
		pause: 1,
		random: 1,
		cleartype:  true,
		cleartypeNoBg:  true
	});
	
	// goodies slider
	$('#goodies-slider').cycle({ 
		fx:     'scrollHorz', 
		speed:  'slow',
		prev: '#goodies .prev',
		next: '#goodies .next',
		timeout: 5000,
		pause: 1,
		cleartype:  true,
		cleartypeNoBg:  true
	});	
	
	$("#portfolio-paginator a").html("");
	
	$('#contactForm').ketchup();
	
	$(".clearValue").focus(function(){
		var value = jQuery.trim($(this).get(0).value);
		var defaultValue = jQuery.trim($(this).get(0).defaultValue);
		if(value === defaultValue){
			$(this).get(0).value = "";
		}
	});
	
	$(".clearValue").blur(function(){
		var value = jQuery.trim($(this).get(0).value);
		var defaultValue = jQuery.trim($(this).get(0).defaultValue);
		if(value !== defaultValue && value === ""){
			$(this).get(0).value = defaultValue;
		}
	});

});