;(function($){var ver='2.9994';if($.support==undefined){$.support={opacity:!($.browser.msie)};}
function debug(s){$.fn.cycle.debug&&log(s);}
function log(){window.console&&console.log&&console.log('[cycle] '+Array.prototype.join.call(arguments,' '));}
$.expr[':'].paused=function(el){return el.cyclePause;}
$.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();var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false)
return;if(els.length<2){log('terminating; too few slides: '+els.length);return;}
var startTime=opts2.continuous?10:getTimeout(els[opts2.currSlide],els[opts2.nextSlide],opts2,!opts2.backwards);if(startTime){startTime+=(opts2.delay||0);if(startTime<10)
startTime=10;debug('first timeout: '+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts.backwards)},startTime);}});};function triggerPause(cont,byHover,onPager){var opts=$(cont).data('cycle.opts');var paused=!!cont.cyclePause;if(paused&&opts.paused)
opts.paused(cont,opts,byHover,onPager);else if(!paused&&opts.resumed)
opts.resumed(cont,opts,byHover,onPager);}
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;opts.elements&&$(opts.elements).stop();$(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);triggerPause(cont);return false;case'pause':cont.cyclePause=1;triggerPause(cont);return false;case'resume':cont.cyclePause=0;checkInstantResume(false,arg2,cont);triggerPause(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,!options.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():{});var meta=$.isFunction($cont.data)?$cont.data(opts.metaAttr):null;if(meta)
opts=$.extend(opts,meta);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]:[];if(!$.support.opacity&&opts.cleartype)
opts.after.push(function(){removeFilter(this,opts);});if(opts.continuous)
opts.after.push(function(){go(els,opts,0,!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,10);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){if(!opts.aspect){if(opts.width)
$slides.width(opts.width);if(opts.height&&opts.height!='auto')
$slides.height(opts.height);}else{$slides.each(function(){var $slide=$(this);var ratio=(opts.aspect===true)?$slide.width()/$slide.height():opts.aspect;if(opts.width&&$slide.width()!=opts.width){$slide.width(opts.width);$slide.height(opts.width/ratio);}
if(opts.height&&$slide.height()<opts.height){$slide.height(opts.height);$slide.width(opts.height*ratio);}});}}
if(opts.center&&((!opts.fit)||opts.aspect)){$slides.each(function(){var $slide=$(this);$slide.css({"margin-left":opts.width?((opts.width-$slide.width())/2)+"px":0,"margin-top":opts.height?((opts.height-$slide.height())/2)+"px":0});});}
if(opts.center&&!opts.fit&&!opts.slideResize){$slides.each(function(){var $slide=$(this);$slide.css({"margin-left":opts.width?((opts.width-$slide.width())/2)+"px":0,"margin-top":opts.height?((opts.height-$slide.height())/2)+"px":0});});}
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'});}
var pauseFlag=false;if(opts.pause)
$cont.hover(function(){pauseFlag=true;this.cyclePause++;triggerPause(cont,true);},function(){pauseFlag&&this.cyclePause--;triggerPause(cont,true);});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.cssAfter=opts.cssAfter||{};opts.cssFirst=opts.cssFirst||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(':eq('+first+')').css(opts.cssBefore);$($slides[first]).css(opts.cssFirst);if(opts.timeout){opts.timeout=parseInt(opts.timeout,10);if(opts.speed.constructor==String)
opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed,10);if(!opts.sync)
opts.speed=opts.speed/2;var buffer=opts.fx=='none'?0: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.skipInitializationCallbacks){if(opts.before.length)
opts.before[0].apply(e0,[e0,e0,opts,true]);if(opts.after.length)
opts.after[0].apply(e0,[e0,e0,opts,true]);}
if(opts.next)
$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,1)});if(opts.prev)
$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,0)});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')
$s.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=0;}
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(fwd&&(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length))
opts.lastFx=0;else if(!fwd&&(opts.lastFx==undefined||--opts.lastFx<0))
opts.lastFx=opts.fxs.length-1;fx=opts.fxs[opts.lastFx];}
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(){opts.busy=0;$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount)return;o.apply(next,[curr,next,opts,fwd]);});};debug('tx firing('+fx+'); 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.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(opts.fx!='none'&&(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,1);};$.fn.cycle.prev=function(opts){advance(opts,0);};function advance(opts,moveForward){var val=moveForward?1:-1;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,moveForward);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;});var cont=opts.$cont[0];var pauseFlag=false;if(opts.pauseOnPagerHover){$a.hover(function(){pauseFlag=true;cont.cyclePause++;triggerPause(cont,true,true);},function(){pauseFlag&&cont.cyclePause--;triggerPause(cont,true,true);});}};$.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,10).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&&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();if(typeof opts.cssBefore.opacity=='undefined')
opts.cssBefore.opacity=1;opts.cssBefore.display='block';if(opts.slideResize&&w!==false&&next.cycleW>0)
opts.cssBefore.width=next.cycleW;if(opts.slideResize&&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,function(){cb();});};$l.animate(opts.animOut,speedOut,easeOut,function(){$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={activePagerClass:'activeSlide',after:null,allowPagerClickBubble:false,animIn:null,animOut:null,aspect:false,autostop:0,autostopCount:0,backwards:false,before:null,center:null,cleartype:!$.support.opacity,cleartypeNoBg:false,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:'fade',fxFn:null,height:'auto',manualTrump:true,metaAttr:'cycle',next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:'click.cycle',pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:'click.cycle',random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:false,slideExpr:null,slideResize:1,speed:1000,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4000,timeoutFn:null,updateActivePagerLink:null,width:null};})(jQuery);(function($){$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show();$(curr).hide();after();};};$.fn.cycle.transitions.fadeout=function($cont,$slides,opts){$slides.not(':eq('+opts.currSlide+')').css({display:'block','opacity':1});opts.before.push(function(curr,next,opts,w,h,rev){$(curr).css('zIndex',opts.slideCount+(!rev===true?1:0));$(next).css('zIndex',opts.slideCount+(!rev===true?0:1));});opts.animIn.opacity=1;opts.animOut.opacity=0;opts.cssBefore.opacity=1;opts.cssBefore.display='block';opts.cssAfter.zIndex=0;};$.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;opts.cssBefore.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;opts.cssBefore.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;opts.cssBefore.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;opts.cssBefore.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){if(opts.rev)
fwd=!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){if(opts.rev)
fwd=!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;opts.cssBefore.top=0;opts.cssBefore.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;opts.cssBefore.top=0;opts.cssBefore.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){if(opts.rev)
fwd=!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,10)+1+count);}
$el.animate({left:0,top:0},opts.speedOut,opts.easeOut,function(){$(fwd?this:curr).hide();if(cb)cb();});});};$.extend(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.animOut.width=next.cycleW;});opts.cssFirst.top=0;opts.cssBefore.left=0;opts.cssBefore.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;opts.cssBefore.top=0;opts.cssBefore.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;opts.cssBefore.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;});$.extend(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;$.extend(opts.animIn,{top:0,left:0,width:next.cycleW,height:next.cycleH});$.extend(opts.animOut,{width:0,height:0,top:curr.cycleH/2,left:curr.cycleW/2});});opts.cssFirst.top=0;opts.cssFirst.left=0;opts.cssBefore.width=0;opts.cssBefore.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;$.extend(opts.animIn,{top:0,left:0,width:next.cycleW,height:next.cycleH});});opts.cssBefore.width=0;opts.cssBefore.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;opts.cssBefore.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;opts.cssBefore.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;opts.cssBefore.left=w;opts.animIn.top=0;opts.animIn.left=0;opts.animOut.top=h;opts.animOut.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;opts.animIn.width=this.cycleW;opts.animOut.left=0;});opts.cssBefore.top=0;opts.cssBefore.width=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;opts.animIn.height=this.cycleH;opts.animOut.top=0;});opts.cssBefore.height=0;opts.cssBefore.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;opts.animIn.width=this.cycleW;opts.animOut.left=curr.cycleW/2;opts.animOut.width=0;});opts.cssBefore.top=0;opts.cssBefore.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;opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH/2;opts.animOut.height=0;});opts.cssBefore.height=0;opts.cssBefore.left=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;opts.animIn.top=0;opts.cssBefore.top=0;opts.cssBefore.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;opts.animIn.top=0;opts.cssBefore.top=0;opts.cssBefore.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)
$.extend(opts.animOut,{left:w*2,top:-h/2,opacity:0});else
opts.animOut.opacity=0;});opts.cssBefore.left=0;opts.cssBefore.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,10);var left=parseInt(w/2,10);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],10),r=parseInt(d[1],10),b=parseInt(d[2],10),l=parseInt(d[3],10);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),10)-1;(function f(){var tt=t?t-parseInt(step*(t/count),10):0;var ll=l?l-parseInt(step*(l/count),10):0;var bb=b<h?b+parseInt(step*((h-b)/count||1),10):h;var rr=r<w?r+parseInt(step*((w-r)/count||1),10):w;$next.css({clip:'rect('+tt+'px '+rr+'px '+bb+'px '+ll+'px)'});(step++<=count)?setTimeout(f,13):$curr.css('display','none');})();});$.extend(opts.cssBefore,{display:'block',opacity:1,top:0,left:0});opts.animIn={left:0};opts.animOut={left:0};};})(jQuery);
jQuery.fn.extend({selectbox:function(options){return this.each(function(){new jQuery.SelectBox(this,options);});}});if(!window.console){var console={log:function(msg){}}}
jQuery.SelectBox=function(selectobj,options){var opt=options||{};opt.inputClass=opt.inputClass||"selectbox";opt.containerClass=opt.containerClass||"selectbox-wrapper";opt.hoverClass=opt.hoverClass||"current";opt.currentClass=opt.selectedClass||"selected"
opt.debug=opt.debug||false;var elm_id=selectobj.id;var active=-1;var inFocus=false;var hasfocus=0;var $select=$(selectobj);var $container=setupContainer(opt);var $input=setupInput(opt);$select.hide().before($input).before($container);init();$input.click(function(){if(!inFocus){$container.toggle();}}).focus(function(){if($container.not(':visible')){inFocus=true;$container.show();}}).keydown(function(event){switch(event.keyCode){case 38:event.preventDefault();moveSelect(-1);break;case 40:event.preventDefault();moveSelect(1);break;case 13:event.preventDefault();$('li.'+opt.hoverClass).trigger('click');break;case 27:hideMe();break;}}).blur(function(){if($container.is(':visible')&&hasfocus>0){if(opt.debug)console.log('container visible and has focus')}else{hideMe();}});function hideMe(){hasfocus=0;$container.hide();}
function init(){$container.append(getSelectOptions($input.attr('id'))).hide();var width=$input.css('width');$container.width(width);}
function setupContainer(options){var container=document.createElement("div");$container=$(container);$container.attr('id',elm_id+'_container');$container.addClass(options.containerClass);return $container;}
function setupInput(options){var input=document.createElement("input");var $input=$(input);$input.attr("id",elm_id+"_input");$input.attr("type","text");$input.addClass(options.inputClass);$input.attr("autocomplete","off");$input.attr("readonly","readonly");$input.attr("tabIndex",$select.attr("tabindex"));return $input;}
function moveSelect(step){var lis=$("li",$container);if(!lis)return;active+=step;if(active<0){active=0;}else if(active>=lis.size()){active=lis.size()-1;}
lis.removeClass(opt.hoverClass);$(lis[active]).addClass(opt.hoverClass);}
function setCurrent(){var li=$("li."+opt.currentClass,$container).get(0);var ar=(''+li.id).split('_');var el=ar[ar.length-1];$select.val(el);$input.val($(li).html());return true;}
function getCurrentSelected(){return $select.val();}
function getCurrentValue(){return $input.val();}
function getSelectOptions(parentid){var select_options=new Array();var ul=document.createElement('ul');$select.children('option').each(function(){var li=document.createElement('li');li.setAttribute('id',parentid+'_'+$(this).val());li.innerHTML=$(this).html();if($(this).is(':selected')){$input.val($(this).html());$(li).addClass(opt.currentClass);}
ul.appendChild(li);$(li).mouseover(function(event){hasfocus=1;if(opt.debug)console.log('over on : '+this.id);jQuery(event.target,$container).addClass(opt.hoverClass);}).mouseout(function(event){hasfocus=-1;if(opt.debug)console.log('out on : '+this.id);jQuery(event.target,$container).removeClass(opt.hoverClass);}).click(function(event){var fl=$('li.'+opt.hoverClass,$container).get(0);if(opt.debug)console.log('click on :'+this.id);$('li.'+opt.currentClass).removeClass(opt.currentClass);$(this).addClass(opt.currentClass);setCurrent();hideMe();});});return ul;}};;(function($){$.fn.ajaxSubmit=function(options){if(!this.length){log('ajaxSubmit: skipping submit process - no element selected');return this;}
var method,action,url,$form=this;if(typeof options=='function'){options={success:options};}
method=this.attr('method');action=this.attr('action');url=(typeof action==='string')?$.trim(action):'';url=url||window.location.href||'';if(url){url=(url.match(/^([^#]+)/)||[])[1];}
options=$.extend(true,{url:url,success:$.ajaxSettings.success,type:method||'GET',iframeSrc:/^https/i.test(window.location.href||'')?'javascript:false':'about:blank'},options);var veto={};this.trigger('form-pre-serialize',[this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');return this;}
if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this;}
var n,v,a=this.formToArray(options.semantic);if(options.data){options.extraData=options.data;for(n in options.data){if($.isArray(options.data[n])){for(var k in options.data[n]){a.push({name:n,value:options.data[n][k]});}}
else{v=options.data[n];v=$.isFunction(v)?v():v;a.push({name:n,value:v});}}}
if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this;}
this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this;}
var q=$.param(a);if(options.type.toUpperCase()=='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null;}
else{options.data=q;}
var callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm();});}
if(options.clearForm){callbacks.push(function(){$form.clearForm();});}
if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data){var fn=options.replaceTarget?'replaceWith':'html';$(options.target)[fn](data).each(oldSuccess,arguments);});}
else if(options.success){callbacks.push(options.success);}
options.success=function(data,status,xhr){var context=options.context||options;for(var i=0,max=callbacks.length;i<max;i++){callbacks[i].apply(context,[data,status,xhr||$form,$form]);}};var fileInputs=$('input:file',this).length>0;var mp='multipart/form-data';var multipart=($form.attr('enctype')==mp||$form.attr('encoding')==mp);if(options.iframe!==false&&(fileInputs||options.iframe||multipart)){if(options.closeKeepAlive){$.get(options.closeKeepAlive,function(){fileUpload(a);});}
else{fileUpload(a);}}
else{if($.browser.msie&&method=='get'){var ieMeth=$form[0].getAttribute('method');if(typeof ieMeth==='string')
options.type=ieMeth;}
$.ajax(options);}
this.trigger('form-submit-notify',[this,options]);return this;function fileUpload(a){var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle;var useProp=!!$.fn.prop;if(a){for(i=0;i<a.length;i++){el=$(form[a[i].name]);el[useProp?'prop':'attr']('disabled',false);}}
if($(':input[name=submit],:input[id=submit]',form).length){alert('Error: Form elements must not have name or id of "submit".');return;}
s=$.extend(true,{},$.ajaxSettings,options);s.context=s.context||s;id='jqFormIO'+(new Date().getTime());if(s.iframeTarget){$io=$(s.iframeTarget);n=$io.attr('name');if(n==null)
$io.attr('name',id);else
id=n;}
else{$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'" />');$io.css({position:'absolute',top:'-1000px',left:'-1000px'});}
io=$io[0];xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:'n/a',getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(status){var e=(status==='timeout'?'timeout':'aborted');log('aborting upload... '+e);this.aborted=1;$io.attr('src',s.iframeSrc);xhr.error=e;s.error&&s.error.call(s.context,xhr,e,status);g&&$.event.trigger("ajaxError",[xhr,s,e]);s.complete&&s.complete.call(s.context,xhr,e);}};g=s.global;if(g&&!$.active++){$.event.trigger("ajaxStart");}
if(g){$.event.trigger("ajaxSend",[xhr,s]);}
if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){if(s.global){$.active--;}
return;}
if(xhr.aborted){return;}
sub=form.clk;if(sub){n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type=="image"){s.extraData[n+'.x']=form.clk_x;s.extraData[n+'.y']=form.clk_y;}}}
var CLIENT_TIMEOUT_ABORT=1;var SERVER_ABORT=2;function getDoc(frame){var doc=frame.contentWindow?frame.contentWindow.document:frame.contentDocument?frame.contentDocument:frame.document;return doc;}
function doSubmit(){var t=$form.attr('target'),a=$form.attr('action');form.setAttribute('target',id);if(!method){form.setAttribute('method','POST');}
if(a!=s.url){form.setAttribute('action',s.url);}
if(!s.skipEncodingOverride&&(!method||/post/i.test(method))){$form.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'});}
if(s.timeout){timeoutHandle=setTimeout(function(){timedOut=true;cb(CLIENT_TIMEOUT_ABORT);},s.timeout);}
function checkState(){try{var state=getDoc(io).readyState;log('state = '+state);if(state.toLowerCase()=='uninitialized')
setTimeout(checkState,50);}
catch(e){log('Server abort: ',e,' (',e.name,')');cb(SERVER_ABORT);timeoutHandle&&clearTimeout(timeoutHandle);timeoutHandle=undefined;}}
var extraInputs=[];try{if(s.extraData){for(var n in s.extraData){extraInputs.push($('<input type="hidden" name="'+n+'" />').attr('value',s.extraData[n]).appendTo(form)[0]);}}
if(!s.iframeTarget){$io.appendTo('body');io.attachEvent?io.attachEvent('onload',cb):io.addEventListener('load',cb,false);}
setTimeout(checkState,15);form.submit();}
finally{form.setAttribute('action',a);if(t){form.setAttribute('target',t);}else{$form.removeAttr('target');}
$(extraInputs).remove();}}
if(s.forceSync){doSubmit();}
else{setTimeout(doSubmit,10);}
var data,doc,domCheckCount=50,callbackProcessed;function cb(e){if(xhr.aborted||callbackProcessed){return;}
try{doc=getDoc(io);}
catch(ex){log('cannot access response document: ',ex);e=SERVER_ABORT;}
if(e===CLIENT_TIMEOUT_ABORT&&xhr){xhr.abort('timeout');return;}
else if(e==SERVER_ABORT&&xhr){xhr.abort('server abort');return;}
if(!doc||doc.location.href==s.iframeSrc){if(!timedOut)
return;}
io.detachEvent?io.detachEvent('onload',cb):io.removeEventListener('load',cb,false);var status='success',errMsg;try{if(timedOut){throw'timeout';}
var isXml=s.dataType=='xml'||doc.XMLDocument||$.isXMLDoc(doc);log('isXml='+isXml);if(!isXml&&window.opera&&(doc.body==null||doc.body.innerHTML=='')){if(--domCheckCount){log('requeing onLoad callback, DOM not available');setTimeout(cb,250);return;}}
var docRoot=doc.body?doc.body:doc.documentElement;xhr.responseText=docRoot?docRoot.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(isXml)
s.dataType='xml';xhr.getResponseHeader=function(header){var headers={'content-type':s.dataType};return headers[header];};if(docRoot){xhr.status=Number(docRoot.getAttribute('status'))||xhr.status;xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText;}
var dt=s.dataType||'';var scr=/(json|script|text)/.test(dt.toLowerCase());if(scr||s.textarea){var ta=doc.getElementsByTagName('textarea')[0];if(ta){xhr.responseText=ta.value;xhr.status=Number(ta.getAttribute('status'))||xhr.status;xhr.statusText=ta.getAttribute('statusText')||xhr.statusText;}
else if(scr){var pre=doc.getElementsByTagName('pre')[0];var b=doc.getElementsByTagName('body')[0];if(pre){xhr.responseText=pre.textContent?pre.textContent:pre.innerHTML;}
else if(b){xhr.responseText=b.innerHTML;}}}
else if(s.dataType=='xml'&&!xhr.responseXML&&xhr.responseText!=null){xhr.responseXML=toXml(xhr.responseText);}
try{data=httpData(xhr,s.dataType,s);}
catch(e){status='parsererror';xhr.error=errMsg=(e||status);}}
catch(e){log('error caught: ',e);status='error';xhr.error=errMsg=(e||status);}
if(xhr.aborted){log('upload aborted');status=null;}
if(xhr.status){status=(xhr.status>=200&&xhr.status<300||xhr.status===304)?'success':'error';}
if(status==='success'){s.success&&s.success.call(s.context,data,'success',xhr);g&&$.event.trigger("ajaxSuccess",[xhr,s]);}
else if(status){if(errMsg==undefined)
errMsg=xhr.statusText;s.error&&s.error.call(s.context,xhr,status,errMsg);g&&$.event.trigger("ajaxError",[xhr,s,errMsg]);}
g&&$.event.trigger("ajaxComplete",[xhr,s]);if(g&&!--$.active){$.event.trigger("ajaxStop");}
s.complete&&s.complete.call(s.context,xhr,status);callbackProcessed=true;if(s.timeout)
clearTimeout(timeoutHandle);setTimeout(function(){if(!s.iframeTarget)
$io.remove();xhr.responseXML=null;},100);}
var toXml=$.parseXML||function(s,doc){if(window.ActiveXObject){doc=new ActiveXObject('Microsoft.XMLDOM');doc.async='false';doc.loadXML(s);}
else{doc=(new DOMParser()).parseFromString(s,'text/xml');}
return(doc&&doc.documentElement&&doc.documentElement.nodeName!='parsererror')?doc:null;};var parseJSON=$.parseJSON||function(s){return window['eval']('('+s+')');};var httpData=function(xhr,type,s){var ct=xhr.getResponseHeader('content-type')||'',xml=type==='xml'||!type&&ct.indexOf('xml')>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==='parsererror'){$.error&&$.error('parsererror');}
if(s&&s.dataFilter){data=s.dataFilter(data,type);}
if(typeof data==='string'){if(type==='json'||!type&&ct.indexOf('json')>=0){data=parseJSON(data);}else if(type==="script"||!type&&ct.indexOf("javascript")>=0){$.globalEval(data);}}
return data;};}};$.fn.ajaxForm=function(options){if(this.length===0){var o={s:this.selector,c:this.context};if(!$.isReady&&o.s){log('DOM not ready, queuing ajaxForm');$(function(){$(o.s,o.c).ajaxForm(options);});return this;}
log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this;}
return this.ajaxFormUnbind().bind('submit.form-plugin',function(e){if(!e.isDefaultPrevented()){e.preventDefault();$(this).ajaxSubmit(options);}}).bind('click.form-plugin',function(e){var target=e.target;var $el=$(target);if(!($el.is(":submit,input:image"))){var t=$el.closest(':submit');if(t.length==0){return;}
target=t[0];}
var form=this;form.clk=target;if(target.type=='image'){if(e.offsetX!=undefined){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else if(typeof $.fn.offset=='function'){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop;}}
setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},100);});};$.fn.ajaxFormUnbind=function(){return this.unbind('submit.form-plugin click.form-plugin');};$.fn.formToArray=function(semantic){var a=[];if(this.length===0){return a;}
var form=this[0];var els=semantic?form.getElementsByTagName('*'):form.elements;if(!els){return a;}
var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i<max;i++){el=els[i];n=el.name;if(!n){continue;}
if(semantic&&form.clk&&el.type=="image"){if(!el.disabled&&form.clk==el){a.push({name:n,value:$(el).val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}
continue;}
v=$.fieldValue(el,true);if(v&&v.constructor==Array){for(j=0,jmax=v.length;j<jmax;j++){a.push({name:n,value:v[j]});}}
else if(v!==null&&typeof v!='undefined'){a.push({name:n,value:v});}}
if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0];n=input.name;if(n&&!input.disabled&&input.type=='image'){a.push({name:n,value:$input.val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}}
return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n){return;}
var v=$.fieldValue(this,successful);if(v&&v.constructor==Array){for(var i=0,max=v.length;i<max;i++){a.push({name:n,value:v[i]});}}
else if(v!==null&&typeof v!='undefined'){a.push({name:this.name,value:v});}});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v=='undefined'||(v.constructor==Array&&!v.length)){continue;}
v.constructor==Array?$.merge(val,v):val.push(v);}
return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(successful===undefined){successful=true;}
if(successful&&(!n||el.disabled||t=='reset'||t=='button'||(t=='checkbox'||t=='radio')&&!el.checked||(t=='submit'||t=='image')&&el.form&&el.form.clk!=el||tag=='select'&&el.selectedIndex==-1)){return null;}
if(tag=='select'){var index=el.selectedIndex;if(index<0){return null;}
var a=[],ops=el.options;var one=(t=='select-one');var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected){var v=op.value;if(!v){v=(op.attributes&&op.attributes['value']&&!(op.attributes['value'].specified))?op.text:op.value;}
if(one){return v;}
a.push(v);}}
return a;}
return $(el).val();};$.fn.clearForm=function(){return this.each(function(){$('input,select,textarea',this).clearFields();});};$.fn.clearFields=$.fn.clearInputs=function(){var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(re.test(t)||tag=='textarea'){this.value='';}
else if(t=='checkbox'||t=='radio'){this.checked=false;}
else if(tag=='select'){this.selectedIndex=-1;}});};$.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=='function'||(typeof this.reset=='object'&&!this.reset.nodeType)){this.reset();}});};$.fn.enable=function(b){if(b===undefined){b=true;}
return this.each(function(){this.disabled=!b;});};$.fn.selected=function(select){if(select===undefined){select=true;}
return this.each(function(){var t=this.type;if(t=='checkbox'||t=='radio'){this.checked=select;}
else if(this.tagName.toLowerCase()=='option'){var $sel=$(this).parent('select');if(select&&$sel[0]&&$sel[0].type=='select-one'){$sel.find('option').selected(false);}
this.selected=select;}});};function log(){var msg='[jquery.form] '+Array.prototype.join.call(arguments,'');if(window.console&&window.console.log){window.console.log(msg);}
else if(window.opera&&window.opera.postError){window.opera.postError(msg);}};})(jQuery);
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}('(9($){7($.1t.1u)A;$.1t.1u=9(o){7(Z.W==0){P(B,\'4k 5p 5q 1v "\'+Z.5r+\'".\');A Z}7(Z.W>1){A Z.1M(9(){$(Z).1u(o)})}y q=Z,$12=Z[0];q.3G=9(o,b,c){y e=[\'8\',\'13\',\'N\',\'R\',\'S\',\'Y\'];o=2Z($12,o);1v(y a=0,l=e.W;a<l;a++){o[e[a]]=2Z($12,o[e[a]])}7(z o.13==\'T\'){7(o.13<=50)o.13={\'8\':o.13};D o.13={\'1c\':o.13}}D{7(z o.13==\'1e\')o.13={\'1l\':o.13}}7(z o.8==\'T\')o.8={\'C\':o.8};D 7(o.8==\'18\')o.8={\'C\':o.8,\'G\':o.8,\'17\':o.8};7(b)27=$.1R(B,{},$.1t.1u.3H,o);6=$.1R(B,{},$.1t.1u.3H,o);6.d={};6.2z=H;6.31=H;7(6.8.1N==0&&z c==\'T\'){6.8.1N=c}1D=(6.1D==\'3I\'||6.1D==\'1a\')?\'S\':\'R\';y f=[[\'G\',\'32\',\'1S\',\'17\',\'4l\',\'28\',\'1a\',\'2k\',\'1f\',0,1,2,3],[\'17\',\'4l\',\'28\',\'G\',\'32\',\'1S\',\'2k\',\'1a\',\'33\',3,2,1,0]];y g=f[0].W,4m=(6.1D==\'29\'||6.1D==\'1a\')?0:1;1v(y d=0;d<g;d++){6.d[f[0][d]]=f[4m][d]}y h=J(q),3J=3K(h,6,\'28\',H);7(6.X==\'N\'){P(B,\'2a 5s "X: N" 1q 1T, 1U "1g: 2A".\');6.X=H;6.1g=\'2A\'}7(6[6.d[\'17\']]==\'N\'){6[6.d[\'17\']]=3J;6.8[6.d[\'17\']]=3J}7(!6.8[6.d[\'G\']]){6.8[6.d[\'G\']]=(3L(h,6,\'1S\'))?\'18\':h[6.d[\'1S\']](B)}7(!6.8[6.d[\'17\']]){6.8[6.d[\'17\']]=(3L(h,6,\'28\'))?\'18\':h[6.d[\'28\']](B)}7(!6[6.d[\'17\']]){6[6.d[\'17\']]=6.8[6.d[\'17\']]}1i(6.8.C){E\'+1\':E\'-1\':E\'34\':E\'34+\':E\'35\':E\'35+\':6.31=6.8.C;6.8.C=H;U}7(!6.8.C){7(6.8[6.d[\'G\']]==\'18\'){6.8.C=\'18\'}D{7(z 6[6.d[\'G\']]==\'T\'){6.8.C=1y.36(6[6.d[\'G\']]/6.8[6.d[\'G\']])}D{y i=3M(u.2B(),6,\'32\');6.8.C=1y.36(i/6.8[6.d[\'G\']]);6[6.d[\'G\']]=6.8.C*6.8[6.d[\'G\']];7(!6.31)6.1g=H}7(6.8.C==\'5t\'||6.8.C<0){P(B,\'2b a 3a T 2C C 8: 5u 4n "1".\');6.8.C=1}6.8.C=3b(6.8.C,6)}}7(!6[6.d[\'G\']]){7(6.8.C!=\'18\'&&6.8[6.d[\'G\']]!=\'18\'){6[6.d[\'G\']]=6.8.C*6.8[6.d[\'G\']];6.1g=H}D{6[6.d[\'G\']]=\'18\'}}7(6.8.C==\'18\'){6.2z=B;6.3c=(6[6.d[\'G\']]==\'18\')?3M(u.2B(),6,\'32\'):6[6.d[\'G\']];7(6.1g===H){6[6.d[\'G\']]=\'18\'}6.8.C=2D(h,6,0);7(6.8.C>I){6.8.C=I}}7(z 6.X==\'1m\'){6.X=0}7(z 6.1g==\'1m\'){6.1g=(6[6.d[\'G\']]==\'18\')?H:\'2A\'}6.8.1z=6.8.C;6.14=H;6.X=4o(6.X);7(6.1g==\'2k\')6.1g=\'1a\';7(6.1g==\'3N\')6.1g=\'29\';1i(6.1g){E\'2A\':E\'1a\':E\'29\':7(6[6.d[\'G\']]!=\'18\'){y p=3d(2l(h,6),6);6.14=B;6.X[6.d[1]]=p[1];6.X[6.d[3]]=p[0]}U;2m:6.1g=H;6.14=(6.X[0]==0&&6.X[1]==0&&6.X[2]==0&&6.X[3]==0)?H:B;U}7(z 6.8.2n!=\'T\')6.8.2n=6.8.C;7(z 6.13.8!=\'T\')6.13.8=(6.2z)?\'18\':6.8.C;7(z 6.13.1c!=\'T\')6.13.1c=5v;6.N=2E($12,6.N,H,B);6.R=2E($12,6.R);6.S=2E($12,6.S);6.Y=2E($12,6.Y,B);6.N=$.1R(B,{},6.13,6.N);6.R=$.1R(B,{},6.13,6.R);6.S=$.1R(B,{},6.13,6.S);6.Y=$.1R(B,{},6.13,6.Y);7(z 6.Y.3e!=\'15\')6.Y.3e=H;7(z 6.Y.3O!=\'9\')6.Y.3O=$.1t.1u.4p;7(z 6.N.1h!=\'15\')6.N.1h=B;7(z 6.N.2F!=\'15\')6.N.2F=B;7(z 6.N.3P!=\'T\')6.N.3P=0;7(z 6.N.2c!=\'T\')6.N.2c=(6.N.1c<10)?5w:6.N.1c*5;7(6.1E){6.1E=3Q(6.1E)}7(6.P){P(B,\'4q G: \'+6.G);P(B,\'4q 17: \'+6.17);7(6[6.d[\'G\']]==\'18\')P(B,\'5x \'+6.d[\'G\']+\': \'+6.3c);P(B,\'4r 5y: \'+6.8.G);P(B,\'4r 5z: \'+6.8.17);P(B,\'3f 2C 8 C: \'+6.8.C);7(6.N.1h)P(B,\'3f 2C 8 3R 5A: \'+6.N.8);7(6.R.11)P(B,\'3f 2C 8 3R 5B: \'+6.R.8);7(6.S.11)P(B,\'3f 2C 8 3R 5C: \'+6.S.8)}};q.4s=9(){7(q.K(\'1V\')==\'3g\'||q.K(\'1V\')==\'5D\'){P(6.P,\'5E 5F-5G "1V" 5H 5I "5J" 5K "4t".\')}y a={\'3S\':q.K(\'3S\'),\'2k\':q.K(\'2k\'),\'29\':q.K(\'29\'),\'3N\':q.K(\'3N\'),\'1a\':q.K(\'1a\'),\'3T\':q.K(\'3T\'),\'1f\':q.K(\'1f\'),\'33\':q.K(\'33\'),\'3U\':q.K(\'3U\')};u.K(a).K({\'5L\':\'4u\',\'1V\':(q.K(\'1V\')==\'3g\')?\'3g\':\'4t\'});a.G=q.K(\'G\');a.17=q.K(\'17\');a.1V=q.K(\'1V\');q.1j(\'4v\',a).K({\'3S\':\'3V\',\'3T\':0,\'1f\':0,\'33\':0,\'3U\':0,\'1V\':\'3g\'});7(6.14){J(q).1M(9(){y m=1W($(Z).K(6.d[\'1f\']));7(2d(m))m=0;$(Z).1j(\'1w\',m)})}};q.4w=9(){q.3W();q.V(\'1F.O\'+L,9(e){e.1d();q.F(\'1O\');6.N.1h=H;1X=\'4x\'});q.V(\'1O.O\'+L,9(e,g){e.1d();7(z g==\'15\'){P(B,\'5M a 3X 5N 1q 1T, 1U 2G "1F" 2e 1A.\');q.F(\'1F\');A}1X=B;7(3h!=1C)5O(3h);7(3i!=1C)4y(3i);7(3j!=1C)4y(3j);y a=6.N.2c-2o,2f=2H-1y.2p(a*2H/6.N.2c);7(2f!=0){7(6.N.4z)6.N.4z.19($12,2f,a)}});q.V(\'1h.O\'+L,9(e,b,c,d){e.1d();q.F(\'1O\');y v=[b,c,d],t=[\'1e\',\'T\',\'15\'],a=2q(v,t);y b=a[0],c=a[1],d=a[2];7(b!=\'R\'&&b!=\'S\')b=1D;7(z c!=\'T\')c=0;7(d)6.N.1h=B;7(!6.N.1h){e.4A();A}1X=H;y f=6.N.2c-2o,4B=f+c;2f=2H-1y.2p(f*2H/6.N.2c);3h=2I(9(){7(q.1q(\':2J\')){q.F(\'1h\',b)}D{2o=0;q.F(b,6.N)}},4B);7(6.N.2r===\'5P\'){3i=5Q(9(){2o+=50},50)}7(6.N.4C&&2f==0){6.N.4C.19($12,2f,f)}7(6.N.4D){3j=2I(9(){6.N.4D.19($12,2f,f)},c)}});q.V(\'R.O\'+L+\' S.O\'+L,9(e,b,f,g){e.1d();7(z 4E!=\'15\')4E=H;7(1X==\'4x\'||q.1q(\':4u\')){A}y v=[b,f,g],t=[\'1n\',\'T\',\'9\'],a=2q(v,t);y b=a[0],f=a[1],g=a[2];7(z b!=\'1n\'||b==1C)b=6[e.2g];7(z g==\'9\')b.2K=g;7(z f!=\'T\'){7(z b.8==\'T\')f=b.8;D 7(z 6[e.2g].8==\'T\')f=6[e.2g].8;D f=6.8.C}7(b.1c>0){7(q.1q(\':2J\')){7(b.1k)q.F(\'1k\',[e.2g,[b,f,g]]);A}7(6.8.2n>=I){P(6.P,\'2b 4F 8: 5R 4G (\'+I+\' 8, \'+6.8.2n+\' 4H).\');A}}2o=0;7(z f!=\'T\')A P(6.P,\'2b a 3a T: \'+f+\'. 2b 4G\');7(b.3Y&&!b.3Y.19($12))A P(6.P,\'5S "3Y" 5T H.\');q.F(\'4I\'+e.2g,[b,f]);7(6.1E){y s=6.1E,c=[b,f];1v(y j=0,l=s.W;j<l;j++){y d=e.2g;7(!s[j][1])c[0]=s[j][0].3k(\'1Y\',e.2g);7(!s[j][2])d=(d==\'R\')?\'S\':\'R\';c[1]=f+s[j][3];s[j][0].F(\'4I\'+d,c)}}});q.V(\'3Z.O\'+L,9(e,d,f){e.1d();7(6.2z){2L=f;6.8.1z=6.8.C;y g=J(q);7(6.14)1r(g,6);6.8.C=4J(g,6,2L);f=6.8.C-6.8.1z+2L;7(f<=0){6.8.C=2D(g,6,I-2L);f=2L}7(6.14)1r(g,6,B)}7(!6.1Z){y h=I-M;7(h-f<0){f=h}7(M==0){f=0}}M+=f;7(M>=I)M-=I;7(!6.1Z){7(M==0&&f!=0&&d.3l)d.3l.19($12);7(6.3m){7(f==0){q.F(\'S\',I-6.8.C);A}}D 2h(6,M)}7(f==0){e.4A();A}J(q).16(I-f).5U(q);7(I<6.8.C+f){J(q).16(0,(6.8.C+f)-I).3n(B).2M(q)}y g=J(q),1B=4K(g,6,f),1o=4L(g,6),2i=g.1G(f-1),1H=1B.2j(),20=1o.2j();7(6.14){1r(1H,6);1r(1o,6)}7(6.1g)y p=3d(1o,6);7(d.1p==\'4M\'&&6.8.1z<f){y i=g.16(6.8.1z,f).2N(),3o=6.8[6.d[\'G\']];6.8[6.d[\'G\']]=\'18\'}D{y i=H}y j=2s(g.16(0,f),6,\'G\'),1I=3p(21(1o,6,B),6,!6.14);7(i){6.8[6.d[\'G\']]=3o}7(6.14){1r(1H,6,6.X[6.d[1]]);1r(2i,6,6.X[6.d[3]])}7(6.1g){6.X[6.d[1]]=p[1];6.X[6.d[3]]=p[0]}y k={},41={},2t={},2u={},Q=d.1c;7(d.1p==\'3V\')Q=0;D 7(Q==\'N\')Q=6.13.1c/6.13.8*f;D 7(Q<=0)Q=0;D 7(Q<10)Q=j/Q;y l={1c:Q,1l:d.1l};7(d.3q)d.3q.19($12,1B,1o,1I,Q);7(6.14){y m=6.X[6.d[3]];2t[6.d[\'1f\']]=2i.1j(\'1w\');41[6.d[\'1f\']]=20.1j(\'1w\')+6.X[6.d[1]];2u[6.d[\'1f\']]=1H.1j(\'1w\');2i.1F().1x(2t,l);20.1F().1x(41,l);1H.1F().1x(2u,l)}D{y m=0}k[6.d[\'1a\']]=m;7(6[6.d[\'G\']]==\'18\'||6[6.d[\'17\']]==\'18\'){u.1F().1x(1I,l)}1i(d.1p){E\'1J\':E\'22\':E\'1K\':y n=q.3n().2M(u);U}1i(d.1p){E\'1K\':J(n).16(0,f).1s();E\'1J\':E\'22\':J(n).16(6.8.C).1s();U}1i(d.1p){E\'23\':1P(d,q,0,Q);U;E\'1J\':n.K({\'3r\':0});1P(d,n,1,Q);1P(d,q,1,Q,9(){n.1s()});U;E\'22\':42(d,q,n,6,Q,B);U;E\'1K\':43(d,q,n,6,Q,B,f);U}1i(d.1p){E\'23\':E\'1J\':E\'22\':E\'1K\':3s=Q;Q=0;U}y o=f;q.K(6.d[\'1a\'],-j);q.1x(k,{1c:Q,1l:d.1l,2O:9(){y a=6.8.C+o-I;7(a>0){J(q).16(I).1s();1B=J(q).16(I-(o-a)).4N().5V(J(q).16(0,a).4N())}7(i)i.3t();7(6.14){y b=J(q).1G(6.8.C+o-1);b.K(6.d[\'1f\'],b.1j(\'1w\'))}y c=9(){7(d.2K){d.2K.19($12,1B,1o,1I)}1i(d.1p){E\'23\':E\'1J\':1B.K(\'3u\',\'\');1o.K(\'3u\',\'\');U}7(1k.W){2I(9(){q.F(1k[0][0],1k[0][1]);1k.4O()},1)}};1i(d.1p){E\'23\':E\'1K\':1P(d,q,1,3s,c);U;2m:c();U}}});q.F(\'2v\',[H,1I]).F(\'1h\',Q)});q.V(\'44.O\'+L,9(e,f,g){e.1d();7(6.2z){6.8.1z=6.8.C;y h=J(q);7(6.14)1r(h,6);6.8.C=2D(h,6,g);7(6.8.1z-g>=6.8.C)6.8.C=2D(h,6,++g);7(6.14)1r(h,6,B)}7(!6.1Z){7(M==0){7(g>I-6.8.C){g=I-6.8.C}}D{7(M-g<6.8.C){g=M-6.8.C}}}M-=g;7(M<0)M+=I;7(!6.1Z){7(M==6.8.C&&g!=0&&f.3l)f.3l.19($12);7(6.3m){7(g==0){q.F(\'R\',I-6.8.C);A}}D 2h(6,M)}7(g==0)A;7(I<6.8.C+g)J(q).16(0,(6.8.C+g)-I).3n(B).2M(q);y h=J(q),1B=45(h,6),1o=46(h,6,g),2i=1B.1G(g-1),1H=1B.2j(),20=1o.2j();7(6.14){1r(1H,6);1r(20,6)}7(6.1g)y p=3d(1o,6);7(f.1p==\'4M\'&&6.8.1z<g){y i=h.16(6.8.1z,g).2N(),3o=6.8[6.d[\'G\']];6.8[6.d[\'G\']]=\'18\'}D{y i=H}y j=2s(h.16(0,g),6,\'G\'),1I=3p(21(1o,6,B),6,!6.14);7(i){6.8[6.d[\'G\']]=3o}7(6.14){1r(1H,6,6.X[6.d[1]]);1r(20,6,6.X[6.d[1]])}7(6.1g){6.X[6.d[1]]=p[1];6.X[6.d[3]]=p[0]}y k={},2u={},2t={},Q=f.1c;7(f.1p==\'3V\')Q=0;D 7(Q==\'N\')Q=6.13.1c/6.13.8*g;D 7(Q<=0)Q=0;D 7(Q<10)Q=j/Q;y l={1c:Q,1l:f.1l};7(f.3q)f.3q.19($12,1B,1o,1I,Q);7(6.14){2u[6.d[\'1f\']]=1H.1j(\'1w\');2t[6.d[\'1f\']]=2i.1j(\'1w\')+6.X[6.d[3]];20.K(6.d[\'1f\'],20.1j(\'1w\')+6.X[6.d[1]]);1H.1F().1x(2u,l);2i.1F().1x(2t,l)}k[6.d[\'1a\']]=-j;7(6[6.d[\'G\']]==\'18\'||6[6.d[\'17\']]==\'18\'){u.1F().1x(1I,l)}1i(f.1p){E\'1J\':E\'22\':E\'1K\':y m=q.3n().2M(u);U}1i(f.1p){E\'1J\':E\'22\':J(m).16(0,g).1s();J(m).16(6.8.C).1s();U;E\'1K\':J(m).16(6.8.1z).1s();U}1i(f.1p){E\'23\':1P(f,q,0,Q);U;E\'1J\':m.K({\'3r\':0});1P(f,m,1,Q);1P(f,q,1,Q,9(){m.1s()});U;E\'22\':42(f,q,m,6,Q,H);U;E\'1K\':43(f,q,m,6,Q,H,g);U}1i(f.1p){E\'23\':E\'1J\':E\'22\':E\'1K\':3s=Q;Q=0;U}y n=g;q.1x(k,{1c:Q,1l:f.1l,2O:9(){y a=6.8.C+n-I,4P=(6.14)?6.X[6.d[3]]:0;q.K(6.d[\'1a\'],4P);7(a>0){J(q).16(I).1s()}y b=J(q).16(0,n).2M(q).2j();7(a>0){1o=2l(J(q),6)}7(i)i.3t();7(6.14){7(I<6.8.C+n){y c=J(q).1G(6.8.C-1);c.K(6.d[\'1f\'],c.1j(\'1w\')+6.X[6.d[3]])}b.K(6.d[\'1f\'],b.1j(\'1w\'))}y d=9(){7(f.2K){f.2K.19($12,1B,1o,1I)}1i(f.1p){E\'23\':E\'1J\':1B.K(\'3u\',\'\');1o.K(\'3u\',\'\');U}7(1k.W){2I(9(){q.F(1k[0][0],1k[0][1]);1k.4O()},1)}};1i(f.1p){E\'23\':E\'1K\':1P(f,q,1,3s,d);U;2m:d();U}}});q.F(\'2v\',[H,1I]).F(\'1h\',Q)});q.V(\'2w.O\'+L,9(e,b,c,d,f,g){e.1d();y v=[b,c,d,f,g],t=[\'1e/T/1n\',\'T\',\'15\',\'1n\',\'1e\'],a=2q(v,t);y f=a[3],g=a[4];b=2P(a[0],a[1],a[2],M,I,q);7(b==0)A;7(z f!=\'1n\')f=H;7(q.1q(\':2J\')&&f.1c>0)A;7(g!=\'R\'&&g!=\'S\'){7(6.1Z){7(b<=I/2)g=\'S\';D g=\'R\'}D{7(M==0||M>b)g=\'S\';D g=\'R\'}}7(g==\'R\')q.F(\'R\',[f,I-b]);D q.F(\'S\',[f,b])});q.V(\'4Q.O\'+L,9(e){7(M>0){q.5W(J(q).16(M))}});q.V(\'1E.O\'+L,9(e,s){7(s)s=3Q(s);D 7(6.1E)s=6.1E;D A P(6.P,\'4k 3X 4n 1E.\');y n=q.3k(\'2Q\');1v(y j=0,l=s.W;j<l;j++){s[j][0].F(\'2w\',[n,s[j][3],B])}});q.V(\'1k.O\'+L,9(e,a,b){7(z a==\'1m\'){A 1k}D 7(z a==\'9\'){a.19($12,1k)}D 7(2R(a)){1k=a}D{1k.5X([a,b])}});q.V(\'5Y.O\'+L,9(e,b,c,d,f){e.1d();y v=[b,c,d,f],t=[\'1e/1n\',\'1e/T/1n\',\'15\',\'T\'],a=2q(v,t);y b=a[0],c=a[1],d=a[2],f=a[3];7(z b==\'1n\'&&z b.2S==\'1m\')b=$(b);7(z b==\'1e\')b=$(b);7(z b!=\'1n\'||z b.2S==\'1m\'||b.W==0)A P(6.P,\'2b a 3a 1n.\');7(z c==\'1m\')c=\'3v\';7(6.14){b.1M(9(){y m=1W($(Z).K(6.d[\'1f\']));7(2d(m))m=0;$(Z).1j(\'1w\',m)})}y g=c,2T=\'2T\';7(c==\'3v\'){7(d){7(M==0){c=I-1;2T=\'4R\'}D{c=M;M+=b.W}7(c<0)c=0}D{c=I-1;2T=\'4R\'}}D{c=2P(c,f,d,M,I,q)}7(g!=\'3v\'&&!d){7(c<M)M+=b.W}7(M>=I)M-=I;y h=J(q).1G(c);7(h.W){h[2T](b)}D{q.4S(b)}I=J(q).W;q.F(\'2U\');y i=2V(q,6);2W(6,I);2h(6,M);q.F(\'2v\',[B,i])});q.V(\'5Z.O\'+L,9(e,b,c,d){e.1d();y v=[b,c,d],t=[\'1e/T/1n\',\'15\',\'T\'],a=2q(v,t);y b=a[0],c=a[1],d=a[2];7(z b==\'1m\'||b==\'3v\'){J(q).2j().1s()}D{b=2P(b,d,c,M,I,q);y f=J(q).1G(b);7(f.W){7(b<M)M-=f.W;f.1s()}}I=J(q).W;y g=2V(q,6);2W(6,I);2h(6,M);q.F(\'2v\',[B,g])});q.V(\'2Q.O\'+L,9(e,a){e.1d();7(M==0)y b=0;D y b=I-M;7(z a==\'9\')a.19($12,b);A b});q.V(\'4T.O\'+L,9(e,a){e.1d();y b=1y.2p(I/6.8.C-1);7(M==0)y c=0;D 7(M<I%6.8.C)y c=0;D 7(M==6.8.C&&!6.1Z)y c=b;D y c=1y.60((I-M)/6.8.C);7(c<0)c=0;7(c>b)c=b;7(z a==\'9\')a.19($12,c);A c});q.V(\'61.O\'+L,9(e,a){e.1d();$i=2l(J(q),6);7(z a==\'9\')a.19($12,$i);A $i});q.V(\'1X.O\'+L,9(e,a){e.1d();7(z a==\'9\')a.19($12,1X);A 1X});q.V(\'1Y.O\'+L,9(e,a,b,c){e.1d();y d=H;7(z a==\'9\'){a.19($12,6)}D 7(z a==\'1n\'){27=$.1R(B,{},27,a);7(b!==H)d=B;D 6=$.1R(B,{},6,a)}D 7(z a!=\'1m\'){7(z b==\'9\'){y f=3w(\'6.\'+a);7(z f==\'1m\')f=\'\';b.19($12,f)}D 7(z b!=\'1m\'){7(z c!==\'15\')c=B;7(q.1q(\':2J\')){2I(9(){q.F(\'1Y\',[a,b,c])},2H);A P(6.P,\'3X 2J, 1Y 62.\')}3w(\'27.\'+a+\' = b\');7(c!==H)d=B;D 3w(\'6.\'+a+\' = b\')}D{A 3w(\'6.\'+a)}}7(d){1r(J(q),6);q.3G(27);2V(q,6)}A 6});q.V(\'2U.O\'+L,9(e,a,b){e.1d();7(z a==\'1m\'||a.W==0)a=$(\'63\');D 7(z a==\'1e\')a=$(a);7(z a!=\'1n\')A P(6.P,\'2b a 3a 1n.\');7(z b!=\'1e\'||b.W==0)b=\'a.4U\';a.64(b).1M(9(){y h=Z.4V||\'\';7(h.W>0&&J(q).4W($(h))!=-1){$(Z).24(\'47\').47(9(e){e.1Q();q.F(\'2w\',h)})}})});q.V(\'2v.O\'+L,9(e,b,c){e.1d();7(!6.Y.1b)A;7(z b==\'15\'&&b){J(6.Y.1b).1s();1v(y a=0,l=1y.2p(I/6.8.C);a<l;a++){y i=J(q).1G(2P(a*6.8.C,0,B,M,I,q));6.Y.1b.4S(6.Y.3O(a+1,i))}J(6.Y.1b).24(6.Y.1A).1M(9(a){$(Z).V(6.Y.1A,9(e){e.1Q();q.F(\'2w\',[a*6.8.C,0,B,6.Y])})})}y d=q.3k(\'4T\');J(6.Y.1b).2X(\'4X\').1G(d).3x(\'4X\')});q.V(\'2x.O\'+L,9(e,a){e.1d();7(a){q.F(\'4Q\')}7(6.14){1r(J(q),6)}q.F(\'1O\').K(q.1j(\'4v\'));q.3W();q.48();u.65(q)});q.V(\'4Y.O\'+L,9(e,a,b){e.1d();P(B,\'2a 2e 1A "4Y" 1q 1T, 1U "3Z".\');q.F(\'3Z\',[a,b])});q.V(\'4Z.O\'+L,9(e,a,b){e.1d();P(B,\'2a 2e 1A "4Z" 1q 1T, 1U "44".\');q.F(\'44\',[a,b])})};q.3W=9(){q.24(\'.O\'+L)};q.51=9(){q.48();2W(6,I);2h(6,M);7(6.N.2r){u.V(\'3y.O\'+L,9(){q.F(\'1O\')}).V(\'3z.O\'+L,9(){q.F(\'1h\')})}7(6.R.11){6.R.11.V(6.R.1A+\'.O\'+L,9(e){e.1Q();q.F(\'R\')});7(6.R.2r){6.R.11.V(\'3y.O\'+L,9(){q.F(\'1O\')}).V(\'3z.O\'+L,9(){q.F(\'1h\')})}}7(6.S.11){6.S.11.V(6.S.1A+\'.O\'+L,9(e){e.1Q();q.F(\'S\')});7(6.S.2r){6.S.11.V(\'3y.O\'+L,9(){q.F(\'1O\')}).V(\'3z.O\'+L,9(){q.F(\'1h\')})}}7($.1t.1L){7(6.R.1L){u.1L(9(e,a){7(a>0){e.1Q();3A=(z 6.R.1L==\'T\')?6.R.1L:1C;q.F(\'R\',3A)}})}7(6.S.1L){u.1L(9(e,a){7(a<0){e.1Q();3A=(z 6.S.1L==\'T\')?6.S.1L:1C;q.F(\'S\',3A)}})}}7($.1t.52){y b=(6.R.4a)?9(){q.F(\'R\')}:1C,2Y=(6.S.4a)?9(){q.F(\'S\')}:1C;7(2Y||2Y){y c={\'66\':30,\'67\':30,\'68\':B};7(6.1D==\'3I\'||6.1D==\'53\'){c.69=2Y;c.6a=b}D{c.6b=2Y;c.6c=b}u.52(c)}}7(6.Y.1b){7(6.Y.2r){6.Y.1b.V(\'3y.O\'+L,9(){q.F(\'1O\')}).V(\'3z.O\'+L,9(){q.F(\'1h\')})}}7(6.R.25||6.S.25){$(4b).V(\'54.O\'+L,9(e){y k=e.55;7(k==6.S.25){e.1Q();q.F(\'S\')}7(k==6.R.25){e.1Q();q.F(\'R\')}})}7(6.Y.3e){$(4b).V(\'54.O\'+L,9(e){y k=e.55;7(k>=49&&k<58){k=(k-49)*6.8.C;7(k<=I){e.1Q();q.F(\'2w\',[k,0,B,6.Y])}}})}7(6.N.1h){q.F(\'1h\',6.N.3P);7($.1t.2F&&6.N.2F){q.2F(\'1O\',\'1h\')}}};q.48=9(){$(4b).24(\'.O\'+L);u.24(\'.O\'+L);7(6.R.11)6.R.11.24(\'.O\'+L);7(6.S.11)6.S.11.24(\'.O\'+L);7(6.Y.1b)6.Y.1b.24(\'.O\'+L);2W(6,\'2N\');2h(6,\'2X\');7(6.Y.1b){J(6.Y.1b).1s()}};q.1Y=9(a,b){P(B,\'2a "1Y" 3B 3C 1q 1T, 1U 2G "1Y" 2e 1A.\');y c=H;y d=9(a){c=a};7(!a)a=d;7(!b)b=d;q.F(\'1Y\',[a,b]);A c};q.56=9(){P(B,\'2a "56" 3B 3C 1q 1T, 1U 2G "2Q" 2e 1A.\');y b=H;q.F(\'2Q\',9(a){b=a});A b};q.2x=9(){P(B,\'2a "2x" 3B 3C 1q 1T, 1U 2G "2x" 2e 1A.\');q.F(\'2x\');A q};q.57=9(a,b){P(B,\'2a "57" 3B 3C 1q 1T, 1U 2G "2U" 2e 1A.\');q.F(\'2U\',[a,b]);A q};7(q.2B().1q(\'.59\')){y r=q.3k(\'2Q\');q.F(\'2x\',B)}D{y r=H}y u=q.6d(\'<6e 6f="59" />\').2B(),6={},27=o,I=J(q).W,M=0,3h=1C,3i=1C,3j=1C,2o=0,1X=B,1D=\'S\',1k=[],L=$.1t.1u.L++;q.3G(27,B,r);q.4s();q.4w();q.51();7(6.8.1N!=0){y s=6.8.1N;7(s===B){s=3D.6g.4V;7(!s.W)s=0}D 7(s===\'5a\'){s=1y.36(1y.5a()*I)}q.F(\'2w\',[s,0,B,{1c:0},\'S\'])}y w=2V(q,6,H),5b=2l(J(q),6);7(6.5c){6.5c.19($12,5b,w)}q.F(\'2v\',[B,w]);q.F(\'2U\');A Z};$.1t.1u.L=0;$.1t.1u.3H={\'P\':H,\'1E\':H,\'3m\':B,\'1Z\':B,\'1D\':\'1a\',\'8\':{\'1N\':0},\'13\':{\'1l\':\'6h\',\'2r\':H,\'1L\':H,\'4a\':H,\'1A\':\'47\',\'1k\':H}};$.1t.1u.4p=9(a,b){A\'<a 6i="#"><5d>\'+a+\'</5d></a>\'};9 1P(a,c,x,d,f){y o={\'1c\':d,\'1l\':a.1l};7(z f==\'9\')o.2O=f;c.1x({3r:x},o)}9 42(a,b,c,o,d,e){y f=21(45(J(b),o),o,B)[0],4c=21(J(c),o,B)[0],3E=(e)?-4c:f,26={},2y={};26[o.d[\'G\']]=4c;26[o.d[\'1a\']]=3E;2y[o.d[\'1a\']]=0;b.1x({3r:\'+=0\'},d);c.K(26).1x(2y,{1c:d,1l:a.1l,2O:9(){$(Z).1s()}})}9 43(a,b,c,o,d,e,n){y f=21(46(J(b),o,n),o,B)[0],4d=21(J(c),o,B)[0],3E=(e)?-4d:f,26={},2y={};26[o.d[\'G\']]=4d;26[o.d[\'1a\']]=0;2y[o.d[\'1a\']]=3E;c.K(26).1x(2y,{1c:d,1l:a.1l,2O:9(){$(Z).1s()}})}9 2W(o,t){7(t==\'3t\'||t==\'2N\'){y f=t}D 7(o.8.2n>=t){P(o.P,\'2b 4F 8: 6j 6k (\'+t+\' 8, \'+o.8.2n+\' 4H).\');y f=\'2N\'}D{y f=\'3t\'}7(o.R.11)o.R.11[f]();7(o.S.11)o.S.11[f]();7(o.Y.1b)o.Y.1b[f]()}9 2h(o,f){7(o.1Z||o.3m)A;y a=(f==\'2X\'||f==\'3x\')?f:H;7(o.S.11){y b=a||(f==o.8.C)?\'3x\':\'2X\';o.S.11[b](\'5e\')}7(o.R.11){y b=a||(f==0)?\'3x\':\'2X\';o.R.11[b](\'5e\')}}9 2q(c,d){y e=[];1v(y a=0,5f=c.W;a<5f;a++){1v(y b=0,5g=d.W;b<5g;b++){7(d[b].3F(z c[a])>-1&&!e[b]){e[b]=c[a];U}}}A e}9 3Q(s){7(!2R(s))s=[[s]];7(!2R(s[0]))s=[s];1v(y j=0,l=s.W;j<l;j++){7(z s[j][0]==\'1e\')s[j][0]=$(s[j][0]);7(z s[j][1]!=\'15\')s[j][1]=B;7(z s[j][2]!=\'15\')s[j][2]=B;7(z s[j][3]!=\'T\')s[j][3]=0}A s}9 4e(k){7(k==\'29\')A 39;7(k==\'1a\')A 37;7(k==\'3I\')A 38;7(k==\'53\')A 40;A-1}9 2Z(a,b){7(z b==\'9\')b=b.19(a);7(z b==\'1m\')b={};A b}9 2E(a,b,c,d){7(z c!=\'15\')c=H;7(z d!=\'15\')d=H;b=2Z(a,b);7(z b==\'1e\'){y e=4e(b);7(e==-1)b=$(b);D b=e}7(c){7(z b==\'15\')b={\'3e\':b};7(z b.2S!=\'1m\')b={\'1b\':b};7(z b.1b==\'9\')b.1b=b.1b.19(a);7(z b.1b==\'1e\')b.1b=$(b.1b)}D 7(d){7(z b==\'15\')b={\'1h\':b};7(z b==\'T\')b={\'2c\':b}}D{7(z b.2S!=\'1m\')b={\'11\':b};7(z b==\'T\')b={\'25\':b};7(z b.11==\'9\')b.11=b.11.19(a);7(z b.11==\'1e\')b.11=$(b.11);7(z b.25==\'1e\')b.25=4e(b.25)}A b}9 2P(a,b,c,d,e,f){7(z a==\'1e\'){7(2d(a))a=$(a);D a=1W(a)}7(z a==\'1n\'){7(z a.2S==\'1m\')a=$(a);a=J(f).4W(a);7(a==-1)a=0;7(z c!=\'15\')c=H}D{7(z c!=\'15\')c=B}7(2d(a))a=0;D a=1W(a);7(2d(b))b=0;D b=1W(b);7(c){a+=d}a+=b;7(e>0){5h(a>=e){a-=e}5h(a<0){a+=e}}A a}9 J(c){A c.6l()}9 2l(i,o){A i.16(0,o.8.C)}9 4K(i,o,n){A i.16(n,o.8.1z+n)}9 4L(i,o){A i.16(0,o.8.C)}9 45(i,o){A i.16(0,o.8.1z)}9 46(i,o,n){A i.16(n,o.8.C+n)}9 1r(i,o,m){y x=(z m==\'15\')?m:H;7(z m!=\'T\')m=0;i.1M(9(){y t=1W($(Z).K(o.d[\'1f\']));7(2d(t))t=0;$(Z).1j(\'5i\',t);$(Z).K(o.d[\'1f\'],((x)?$(Z).1j(\'5i\'):m+$(Z).1j(\'1w\')))})}9 21(i,o,a){5j=2s(i,o,\'G\',a);5k=4f(i,o,\'17\',a);A[5j,5k]}9 4f(i,o,a,b){7(z b!=\'15\')b=H;7(z o[o.d[a]]==\'T\'&&b)A o[o.d[a]];7(z o.8[o.d[a]]==\'T\')A o.8[o.d[a]];y c=(a.4g().3F(\'G\')>-1)?\'1S\':\'28\';A 3K(i,o,c)}9 3K(i,o,a){y s=0;i.1M(9(){y m=$(Z)[o.d[a]](B);7(s<m)s=m});A s}9 3M(b,o,c){y d=b[o.d[c]](),4h=(o.d[c].4g().3F(\'G\')>-1)?[\'6m\',\'6n\']:[\'6o\',\'6p\'];1v(a=0,l=4h.W;a<l;a++){y m=1W(b.K(4h[a]));7(2d(m))m=0;d-=m}A d}9 2s(i,o,a,b){7(z b!=\'15\')b=H;7(z o[o.d[a]]==\'T\'&&b)A o[o.d[a]];7(z o.8[o.d[a]]==\'T\')A o.8[o.d[a]]*i.W;y c=(a.4g().3F(\'G\')>-1)?\'1S\':\'28\';A 5l(i,o,c)}9 5l(i,o,a){y s=0;i.1M(9(){y j=$(Z);7(j.1q(\':C\')){s+=j[o.d[a]](B)}});A s}9 3L(i,o,a){y s=H,v=H;i.1M(9(){c=$(Z)[o.d[a]](B);7(s===H)s=c;D 7(s!=c)v=B;7(s==0)v=B});A v}9 3p(a,o,p){7(z p!=\'15\')p=B;y b=(o.14&&p)?o.X:[0,0,0,0];y c={};c[o.d[\'G\']]=a[0]+b[1]+b[3];c[o.d[\'17\']]=a[1]+b[0]+b[2];A c}9 2V(a,o,p){y b=a.2B(),$i=J(a),$v=2l($i,o),4i=3p(21($v,o,B),o,p);b.K(4i);7(o.14){y c=$v.2j();c.K(o.d[\'1f\'],c.1j(\'1w\')+o.X[o.d[1]]);a.K(o.d[\'2k\'],o.X[o.d[0]]);a.K(o.d[\'1a\'],o.X[o.d[3]])}a.K(o.d[\'G\'],2s($i,o,\'G\')*2);a.K(o.d[\'17\'],4f($i,o,\'17\'));A 4i}9 4o(p){7(z p==\'1m\')A[0,0,0,0];7(z p==\'T\')A[p,p,p,p];D 7(z p==\'1e\')p=p.5m(\'6q\').6r(\'\').5m(\' \');7(!2R(p)){A[0,0,0,0]}1v(y i=0;i<4;i++){p[i]=1W(p[i])}1i(p.W){E 0:A[0,0,0,0];E 1:A[p[0],p[0],p[0],p[0]];E 2:A[p[0],p[1],p[0],p[1]];E 3:A[p[0],p[1],p[2],p[1]];2m:A[p[0],p[1],p[2],p[3]]}}9 3d(a,o){y x=(z o[o.d[\'G\']]==\'T\')?1y.2p(o[o.d[\'G\']]-2s(a,o,\'G\')):0;1i(o.1g){E\'1a\':A[0,x];U;E\'29\':A[x,0];U;E\'2A\':2m:y b=1y.2p(x/2),5n=1y.36(x/2);A[b,5n];U}}9 4J(b,o,c){y d=0,1N=o.8.C-c-1,x=0;7(1N<0)1N=b.W-1;1v(y a=1N;a>=0;a--){d+=b.1G(a)[o.d[\'1S\']](B);7(d>o.3c)A 3b(x,o);7(a==0)a=b.W;x++}}9 2D(b,o,c){y d=0,x=0;1v(y a=c,l=b.W-1;a<=l;a++){d+=b.1G(a)[o.d[\'1S\']](B);7(d>o.3c)A 3b(x,o);7(a==b.W-1)a=-1;x++}}9 3b(x,o){1i(o.31){E\'+1\':A x+1;U;E\'-1\':A x-1;U;E\'34\':7(x%2==0)A x-1;U;E\'34+\':7(x%2==0)A x+1;U;E\'35\':7(x%2==1)A x-1;U;E\'35+\':7(x%2==1)A x+1;U;2m:A x;U}}9 2R(a){A z(a)==\'1n\'&&(a 6s 6t)}9 P(d,m){7(!d)A H;7(z m==\'1e\')m=\'1u: \'+m;D m=[\'1u:\',m];7(3D.4j&&3D.4j.5o)3D.4j.5o(m);A H}$.1t.4U=9(o){A Z.1u(o)}})(6u);',62,403,'||||||opts|if|items|function|||||||||||||||||||||||||var|typeof|return|true|visible|else|case|trigger|width|false|totalItems|getItems|css|serial|firstItem|auto|cfs|debug|a_dur|prev|next|number|break|bind|length|padding|pagination|this||button|tt0|scroll|usePadding|boolean|slice|height|variable|call|left|container|duration|stopPropagation|string|marginRight|align|play|switch|data|queue|easing|undefined|object|c_new|fx|is|resetMargin|remove|fn|carouFredSel|for|cfs_origCssMargin|animate|Math|oldVisible|event|c_old|null|direction|synchronise|stop|eq|l_old|w_siz|crossfade|uncover|mousewheel|each|start|pause|fx_fade|preventDefault|extend|outerWidth|deprecated|use|position|parseInt|isPaused|configuration|circular|l_new|getSizes|cover|fade|unbind|key|css_o|opts_orig|outerHeight|right|The|Not|pauseDuration|isNaN|custom|perc|type|enableNavi|l_cur|last|top|getCurrentItems|default|minimum|pauseTimePassed|ceil|sortParams|pauseOnHover|getTotalSize|a_cur|a_old|updatePageStatus|slideTo|destroy|ani_o|variableVisible|center|parent|of|getVisibleItemsNext|getNaviObject|nap|the|100|setTimeout|animated|onAfter|oI|appendTo|hide|complete|getItemIndex|currentPosition|is_array|jquery|before|linkAnchors|setSizes|showNavi|removeClass|wN|getObject||visibleAdjust|innerWidth|marginBottom|odd|even|floor||||valid|getVisibleItemsAdjust|maxDimention|getAlignPadding|keys|Number|absolute|autoTimeout|autoInterval|timerInterval|triggerHandler|onEnd|infinite|clone|orgW|mapWrapperSizes|onBefore|opacity|f_dur|show|filter|end|eval|addClass|mouseenter|mouseleave|num|public|method|window|cur_l|indexOf|init|defaults|up|lrgst_b|getTrueLargestSize|hasVariableSizes|getTrueInnerSize|bottom|anchorBuilder|delay|getSynchArr|scrolled|float|marginTop|marginLeft|none|unbind_events|carousel|conditions|slide_prev||a_new|fx_cover|fx_uncover|slide_next|getOldItemsNext|getNewItemsNext|click|unbind_buttons||wipe|document|new_w|old_w|getKeyCode|getLargestSize|toLowerCase|arr|sz|console|No|innerHeight|dx|to|getPadding|pageAnchorBuilder|Carousel|Item|build|relative|hidden|cfs_origCss|bind_events|stopped|clearInterval|onPausePause|stopImmediatePropagation|dur2|onPauseEnd|onPauseStart|force|enough|scrolling|needed|slide_|getVisibleItemsPrev|getOldItemsPrev|getNewItemsPrev|directscroll|get|shift|new_m|jumpToStart|after|append|currentPage|caroufredsel|hash|index|selected|slidePrev|slideNext||bind_buttons|touchwipe|down|keyup|keyCode|current_position|link_anchors||caroufredsel_wrapper|random|itm|onCreate|span|disabled|l1|l2|while|cfs_tempCssMargin|s1|s2|getTotalSizeVariable|split|x2|log|element|found|selector|option|Infinity|Set|500|2500|Available|widths|heights|automatically|backward|forward|fixed|Carousels|CSS|attribute|should|be|static|or|overflow|Pause|globally|clearTimeout|resume|setInterval|not|Callback|returned|prependTo|concat|prepend|push|insertItem|removeItem|round|currentVisible|timeout|body|find|replaceWith|min_move_x|min_move_y|preventDefaultEvents|wipeUp|wipeDown|wipeLeft|wipeRight|wrap|div|class|location|swing|href|hiding|navigation|children|paddingLeft|paddingRight|paddingTop|paddingBottom|px|join|instanceof|Array|jQuery'.split('|'),0,{}))
$(document).ready(function(){if($('#search-form form').length>0)
{$('#search-form form').css({opacity:1,visibility:"visible"})
$('.search-select').hide();$('.search-select').selectbox();}
if($('#contact_form').length>0)
{$('#contact_form input.textbox, #contact_form textarea').each(function()
{if($(this).val()===''){$(this).val($(this).attr('title'));}
$(this).focus(function(){if($(this).val()==$(this).attr('title')){$(this).val('').addClass('focused');}});$(this).blur(function(){if($(this).val()===''){$(this).val($(this).attr('title')).removeClass('focused');}});});$('#contact_form').ajaxForm({beforeSubmit:function(data,form,options)
{var error='';$.each($("#contact_form .val"),function(i,v){var title=$(v).attr('title');var value=$(v).val();if(title==value)
{error+="Please complete your "+value+'<br/>';}});if(error)
{$('#form-message').html('<span class="error">'+error+'</span>');return false;}
data[11].value='Name: '+data[11].value;data[12].value='Number: '+data[12].value;},success:function(data)
{if(data.match(/The form you submitted contained the following errors/)||data.match(/The following errors were encountered/))
{var error=$(data).find('ul li:first').text().replace('Freeform ','');$('#form-message').html('<span class="error">'+error+'</span>');}
else
{$('#contact_form').hide();$('#form-message').html('Thank you for your interest.<br/>Your email has been sent.');}},dataType:'html'});}
$('#testimonial_slideshow').removeClass('minheight');$('#testimonial_slideshow').carouFredSel({items:1,direction:"up",scroll:{items:1,pauseDuration:6000,duration:2500,pauseOnHover:true}});$('#home-job-slideshow ul').carouFredSel({items:3,direction:"up",scroll:{items:1,pauseDuration:3000,duration:1000,pauseOnHover:true}});$('.testimonial_slideshow').removeClass('minheight');$('.testimonial_slideshow ul').carouFredSel({items:2,direction:"up",scroll:{items:1,pauseDuration:6000,duration:2500,pauseOnHover:true}});if($('#apply-job-form-wrapper').length>0)
{$('#apply-job-header a').click(function(){$('#apply-job-form-wrapper').slideToggle(300,function(){});return false;});}});
