(function(c){c.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}};function d(b){if(typeof b.data!=="string"){return}var f=b.handler,a=b.data.toLowerCase().split(" ");b.handler=function(u){if(this!==u.target&&(/textarea|select/i.test(u.target.nodeName)||u.target.type==="text")){return}var q=u.type!=="keypress"&&c.hotkeys.specialKeys[u.which],t=String.fromCharCode(u.which).toLowerCase(),i,e="",r={};if(u.altKey&&q!=="alt"){e+="alt+"}if(u.ctrlKey&&q!=="ctrl"){e+="ctrl+"}if(u.metaKey&&!u.ctrlKey&&q!=="meta"){e+="meta+"}if(u.shiftKey&&q!=="shift"){e+="shift+"}if(q){r[e+q]=true}else{r[e+t]=true;r[e+c.hotkeys.shiftNums[t]]=true;if(e==="shift+"){r[c.hotkeys.shiftNums[t]]=true}}for(var l=0,s=a.length;l<s;l++){if(r[a[l]]){return f.apply(this,arguments)}}}}c.each(["keydown","keyup","keypress"],function(){c.event.special[this]={add:d}})})(jQuery);
/*!
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.9993 (26-MAY-2011)
 * Dual licensed under the MIT and GPL licenses.
 * http://jquery.malsup.com/license.html
 * Requires: jQuery v1.3.2 or later
 */
(function(A){var x="2.9992";if(A.support==undefined){A.support={opacity:!(A.browser.msie)}}function I(a){A.fn.cycle.debug&&D(a)}function D(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}A.expr[":"].paused=function(a){return a.cyclePause};A.fn.cycle=function(b,c){var a={s:this.selector,c:this.context};if(this.length===0&&b!="stop"){if(!A.isReady&&a.s){D("DOM not ready, queuing slideshow");A(function(){A(a.s,a.c).cycle(b,c)});return this}D("terminating; zero elements found by selector"+(A.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var i=v(this,b,c);if(i===false){return}i.updateActivePagerLink=i.updateActivePagerLink||A.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var h=A(this);var e=i.slideExpr?A(i.slideExpr,this):h.children();var f=e.get();var g=y(h,e,f,i,a);if(g===false){return}if(f.length<2){D("terminating; too few slides: "+f.length);return}var d=g.continuous?10:B(f[g.currSlide],f[g.nextSlide],g,!g.backwards);if(d){d+=(g.delay||0);if(d<10){d=10}I("first timeout: "+d);this.cycleTimeout=setTimeout(function(){E(f,g,0,!i.backwards)},d)}})};function w(e,b,c){var a=A(e).data("cycle.opts");var d=!!e.cyclePause;if(d&&a.paused){a.paused(e,a,b,c)}else{if(!d&&a.resumed){a.resumed(e,a,b,c)}}}function v(f,c,e){if(f.cycleStop==undefined){f.cycleStop=0}if(c===undefined||c===null){c={}}if(c.constructor==String){switch(c){case"destroy":case"stop":var a=A(f).data("cycle.opts");if(!a){return false}f.cycleStop++;if(f.cycleTimeout){clearTimeout(f.cycleTimeout)}f.cycleTimeout=0;a.elements&&A(a.elements).stop();A(f).removeData("cycle.opts");if(c=="destroy"){s(a)}return false;case"toggle":f.cyclePause=(f.cyclePause===1)?0:1;b(f.cyclePause,e,f);w(f);return false;case"pause":f.cyclePause=1;w(f);return false;case"resume":f.cyclePause=0;b(false,e,f);w(f);return false;case"prev":case"next":var a=A(f).data("cycle.opts");if(!a){D('options not found, "prev/next" ignored');return false}A.fn.cycle[c](a);return false;default:c={fx:c}}return c}else{if(c.constructor==Number){var d=c;c=A(f).data("cycle.opts");if(!c){D("options not found, can not advance slide");return false}if(d<0||d>=c.elements.length){D("invalid slide index: "+d);return false}c.nextSlide=d;if(f.cycleTimeout){clearTimeout(f.cycleTimeout);f.cycleTimeout=0}if(typeof e=="string"){c.oneTimeFx=e}E(c.elements,c,1,d>=c.currSlide);return false}}return c;function b(h,g,j){if(!h&&g===true){var i=A(j).data("cycle.opts");if(!i){D("options not found, can not resume");return false}if(j.cycleTimeout){clearTimeout(j.cycleTimeout);j.cycleTimeout=0}E(i.elements,i,1,!i.backwards)}}}function H(c,b){if(!A.support.opacity&&b.cleartype&&c.style.filter){try{c.style.removeAttribute("filter")}catch(a){}}}function s(a){if(a.next){A(a.next).unbind(a.prevNextEvent)}if(a.prev){A(a.prev).unbind(a.prevNextEvent)}if(a.pager||a.pagerAnchorBuilder){A.each(a.pagerAnchors||[],function(){this.unbind().remove()})}a.pagerAnchors=null;if(a.destroy){a.destroy(a)}}function y(U,b,i,k,j){var n=A.extend({},A.fn.cycle.defaults,k||{},A.metadata?U.metadata():A.meta?U.data():{});var r=A.isFunction(U.data)?U.data(n.metaAttr):null;if(r){n=A.extend(n,r)}if(n.autostop){n.countdown=n.autostopCount||i.length}var Q=U[0];U.data("cycle.opts",n);n.$cont=U;n.stopCount=Q.cycleStop;n.elements=i;n.before=n.before?[n.before]:[];n.after=n.after?[n.after]:[];if(!A.support.opacity&&n.cleartype){n.after.push(function(){H(this,n)})}if(n.continuous){n.after.push(function(){E(i,n,0,!n.backwards)})}u(n);if(!A.support.opacity&&n.cleartype&&!n.cleartypeNoBg){C(b)}if(U.css("position")=="static"){U.css("position","relative")}if(n.width){U.width(n.width)}if(n.height&&n.height!="auto"){U.height(n.height)}if(n.startingSlide){n.startingSlide=parseInt(n.startingSlide,10)}else{if(n.backwards){n.startingSlide=i.length-1}}if(n.random){n.randomMap=[];for(var d=0;d<i.length;d++){n.randomMap.push(d)}n.randomMap.sort(function(K,J){return Math.random()-0.5});n.randomIndex=1;n.startingSlide=n.randomMap[1]}else{if(n.startingSlide>=i.length){n.startingSlide=0}}n.currSlide=n.startingSlide||0;var V=n.startingSlide;b.css({position:"absolute",top:0,left:0}).hide().each(function(J){var K;if(n.backwards){K=V?J<=V?i.length+(J-V):V-J:i.length-J}else{K=V?J>=V?i.length-(J-V):V-J:i.length-J}A(this).css("z-index",K)});A(i[V]).css("opacity",1).show();H(i[V],n);if(n.fit){if(!n.aspect){if(n.width){b.width(n.width)}if(n.height&&n.height!="auto"){b.height(n.height)}}else{b.each(function(){var K=A(this);var J=(n.aspect===true)?K.width()/K.height():n.aspect;if(n.width&&K.width()!=n.width){K.width(n.width);K.height(n.width/J)}if(n.height&&K.height()<n.height){K.height(n.height);K.width(n.height*J)}})}}if(n.center&&((!n.fit)||n.aspect)){b.each(function(){var J=A(this);J.css({"margin-left":n.width?((n.width-J.width())/2)+"px":0,"margin-top":n.height?((n.height-J.height())/2)+"px":0})})}if(n.center&&!n.fit&&!n.slideResize){b.each(function(){var J=A(this);J.css({"margin-left":n.width?((n.width-J.width())/2)+"px":0,"margin-top":n.height?((n.height-J.height())/2)+"px":0})})}var l=n.containerResize&&!U.innerHeight();if(l){var g=0,q=0;for(var f=0;f<i.length;f++){var R=A(i[f]),a=R[0],S=R.outerWidth(),c=R.outerHeight();if(!S){S=a.offsetWidth||a.width||R.attr("width")}if(!c){c=a.offsetHeight||a.height||R.attr("height")}g=S>g?S:g;q=c>q?c:q}if(g>0&&q>0){U.css({width:g+"px",height:q+"px"})}}var m=false;if(n.pause){U.hover(function(){m=true;this.cyclePause++;w(Q,true)},function(){m&&this.cyclePause--;w(Q,true)})}if(G(n)===false){return false}var o=false;k.requeueAttempts=k.requeueAttempts||0;b.each(function(){var L=A(this);this.cycleH=(n.fit&&n.height)?n.height:(L.height()||this.offsetHeight||this.height||L.attr("height")||0);this.cycleW=(n.fit&&n.width)?n.width:(L.width()||this.offsetWidth||this.width||L.attr("width")||0);if(L.is("img")){var N=(A.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var K=(A.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var M=(A.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var J=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(N||K||M||J){if(j.s&&n.requeueOnImageNotLoaded&&++k.requeueAttempts<100){D(k.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){A(j.s,j.c).cycle(k)},n.requeueTimeout);o=true;return false}else{D("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(o){return false}n.cssBefore=n.cssBefore||{};n.cssAfter=n.cssAfter||{};n.cssFirst=n.cssFirst||{};n.animIn=n.animIn||{};n.animOut=n.animOut||{};b.not(":eq("+V+")").css(n.cssBefore);A(b[V]).css(n.cssFirst);if(n.timeout){n.timeout=parseInt(n.timeout,10);if(n.speed.constructor==String){n.speed=A.fx.speeds[n.speed]||parseInt(n.speed,10)}if(!n.sync){n.speed=n.speed/2}var h=n.fx=="none"?0:n.fx=="shuffle"?500:250;while((n.timeout-n.speed)<h){n.timeout+=n.speed}}if(n.easing){n.easeIn=n.easeOut=n.easing}if(!n.speedIn){n.speedIn=n.speed}if(!n.speedOut){n.speedOut=n.speed}n.slideCount=i.length;n.currSlide=n.lastSlide=V;if(n.random){if(++n.randomIndex==i.length){n.randomIndex=0}n.nextSlide=n.randomMap[n.randomIndex]}else{if(n.backwards){n.nextSlide=n.startingSlide==0?(i.length-1):n.startingSlide-1}else{n.nextSlide=n.startingSlide>=(i.length-1)?0:n.startingSlide+1}}if(!n.multiFx){var e=A.fn.cycle.transitions[n.fx];if(A.isFunction(e)){e(U,b,n)}else{if(n.fx!="custom"&&!n.multiFx){D("unknown transition: "+n.fx,"; slideshow terminating");return false}}}var T=b[V];if(!n.skipInitializationCallbacks){if(n.before.length){n.before[0].apply(T,[T,T,n,true])}if(n.after.length){n.after[0].apply(T,[T,T,n,true])}}if(n.next){A(n.next).bind(n.prevNextEvent,function(){return t(n,1)})}if(n.prev){A(n.prev).bind(n.prevNextEvent,function(){return t(n,0)})}if(n.pager||n.pagerAnchorBuilder){F(i,n)}z(n,i);return n}function u(a){a.original={before:[],after:[]};a.original.cssBefore=A.extend({},a.cssBefore);a.original.cssAfter=A.extend({},a.cssAfter);a.original.animIn=A.extend({},a.animIn);a.original.animOut=A.extend({},a.animOut);A.each(a.before,function(){a.original.before.push(this)});A.each(a.after,function(){a.original.after.push(this)})}function G(g){var b,d,e=A.fn.cycle.transitions;if(g.fx.indexOf(",")>0){g.multiFx=true;g.fxs=g.fx.replace(/\s*/g,"").split(",");for(b=0;b<g.fxs.length;b++){var a=g.fxs[b];d=e[a];if(!d||!e.hasOwnProperty(a)||!A.isFunction(d)){D("discarding unknown transition: ",a);g.fxs.splice(b,1);b--}}if(!g.fxs.length){D("No valid transitions named; slideshow terminating.");return false}}else{if(g.fx=="all"){g.multiFx=true;g.fxs=[];for(p in e){d=e[p];if(e.hasOwnProperty(p)&&A.isFunction(d)){g.fxs.push(p)}}}}if(g.multiFx&&g.randomizeEffects){var c=Math.floor(Math.random()*20)+30;for(b=0;b<c;b++){var f=Math.floor(Math.random()*g.fxs.length);g.fxs.push(g.fxs.splice(f,1)[0])}I("randomized fx sequence: ",g.fxs)}return true}function z(a,b){a.addSlide=function(e,d){var f=A(e),c=f[0];if(!a.autostopCount){a.countdown++}b[d?"unshift":"push"](c);if(a.els){a.els[d?"unshift":"push"](c)}a.slideCount=b.length;f.css("position","absolute");f[d?"prependTo":"appendTo"](a.$cont);if(d){a.currSlide++;a.nextSlide++}if(!A.support.opacity&&a.cleartype&&!a.cleartypeNoBg){C(f)}if(a.fit&&a.width){f.width(a.width)}if(a.fit&&a.height&&a.height!="auto"){f.height(a.height)}c.cycleH=(a.fit&&a.height)?a.height:f.height();c.cycleW=(a.fit&&a.width)?a.width:f.width();f.css(a.cssBefore);if(a.pager||a.pagerAnchorBuilder){A.fn.cycle.createPagerAnchor(b.length-1,c,A(a.pager),b,a)}if(A.isFunction(a.onAddSlide)){a.onAddSlide(f)}else{f.hide()}}}A.fn.cycle.resetState=function(b,c){c=c||b.fx;b.before=[];b.after=[];b.cssBefore=A.extend({},b.original.cssBefore);b.cssAfter=A.extend({},b.original.cssAfter);b.animIn=A.extend({},b.original.animIn);b.animOut=A.extend({},b.original.animOut);b.fxFn=null;A.each(b.original.before,function(){b.before.push(this)});A.each(b.original.after,function(){b.after.push(this)});var a=A.fn.cycle.transitions[c];if(A.isFunction(a)){a(b.$cont,A(b.elements),b)}};function E(e,l,f,c){if(f&&l.busy&&l.manualTrump){I("manualTrump in go(), stopping active transition");A(e).stop(true,true);l.busy=0}if(l.busy){I("transition active, ignoring new tx request");return}var h=l.$cont[0],a=e[l.currSlide],b=e[l.nextSlide];if(h.cycleStop!=l.stopCount||h.cycleTimeout===0&&!f){return}if(!f&&!h.cyclePause&&!l.bounce&&((l.autostop&&(--l.countdown<=0))||(l.nowrap&&!l.random&&l.nextSlide<l.currSlide))){if(l.end){l.end(l)}return}var d=false;if((f||!h.cyclePause)&&(l.nextSlide!=l.currSlide)){d=true;var g=l.fx;a.cycleH=a.cycleH||A(a).height();a.cycleW=a.cycleW||A(a).width();b.cycleH=b.cycleH||A(b).height();b.cycleW=b.cycleW||A(b).width();if(l.multiFx){if(c&&(l.lastFx==undefined||++l.lastFx>=l.fxs.length)){l.lastFx=0}else{if(!c&&(l.lastFx==undefined||--l.lastFx<0)){l.lastFx=l.fxs.length-1}}g=l.fxs[l.lastFx]}if(l.oneTimeFx){g=l.oneTimeFx;l.oneTimeFx=null}A.fn.cycle.resetState(l,g);if(l.before.length){A.each(l.before,function(n,m){if(h.cycleStop!=l.stopCount){return}m.apply(b,[a,b,l,c])})}var j=function(){l.busy=0;A.each(l.after,function(n,m){if(h.cycleStop!=l.stopCount){return}m.apply(b,[a,b,l,c])})};I("tx firing("+g+"); currSlide: "+l.currSlide+"; nextSlide: "+l.nextSlide);l.busy=1;if(l.fxFn){l.fxFn(a,b,l,j,c,f&&l.fastOnEvent)}else{if(A.isFunction(A.fn.cycle[l.fx])){A.fn.cycle[l.fx](a,b,l,j,c,f&&l.fastOnEvent)}else{A.fn.cycle.custom(a,b,l,j,c,f&&l.fastOnEvent)}}}if(d||l.nextSlide==l.currSlide){l.lastSlide=l.currSlide;if(l.random){l.currSlide=l.nextSlide;if(++l.randomIndex==e.length){l.randomIndex=0}l.nextSlide=l.randomMap[l.randomIndex];if(l.nextSlide==l.currSlide){l.nextSlide=(l.currSlide==l.slideCount-1)?0:l.currSlide+1}}else{if(l.backwards){var i=(l.nextSlide-1)<0;if(i&&l.bounce){l.backwards=!l.backwards;l.nextSlide=1;l.currSlide=0}else{l.nextSlide=i?(e.length-1):l.nextSlide-1;l.currSlide=i?0:l.nextSlide+1}}else{var i=(l.nextSlide+1)==e.length;if(i&&l.bounce){l.backwards=!l.backwards;l.nextSlide=e.length-2;l.currSlide=e.length-1}else{l.nextSlide=i?0:l.nextSlide+1;l.currSlide=i?e.length-1:l.nextSlide-1}}}}if(d&&l.pager){l.updateActivePagerLink(l.pager,l.currSlide,l.activePagerClass)}var k=0;if(l.timeout&&!l.continuous){k=B(e[l.currSlide],e[l.nextSlide],l,c)}else{if(l.continuous&&h.cyclePause){k=10}}if(k>0){h.cycleTimeout=setTimeout(function(){E(e,l,0,!l.backwards)},k)}}A.fn.cycle.updateActivePagerLink=function(c,a,b){A(c).each(function(){A(this).children().removeClass(b).eq(a).addClass(b)})};function B(a,c,b,d){if(b.timeoutFn){var e=b.timeoutFn.call(a,a,c,b,d);while(b.fx!="none"&&(e-b.speed)<250){e+=b.speed}I("calculated timeout: "+e+"; speed: "+b.speed);if(e!==false){return e}}return b.timeout}A.fn.cycle.next=function(a){t(a,1)};A.fn.cycle.prev=function(a){t(a,0)};function t(c,d){var g=d?1:-1;var e=c.elements;var a=c.$cont[0],b=a.cycleTimeout;if(b){clearTimeout(b);a.cycleTimeout=0}if(c.random&&g<0){c.randomIndex--;if(--c.randomIndex==-2){c.randomIndex=e.length-2}else{if(c.randomIndex==-1){c.randomIndex=e.length-1}}c.nextSlide=c.randomMap[c.randomIndex]}else{if(c.random){c.nextSlide=c.randomMap[c.randomIndex]}else{c.nextSlide=c.currSlide+g;if(c.nextSlide<0){if(c.nowrap){return false}c.nextSlide=e.length-1}else{if(c.nextSlide>=e.length){if(c.nowrap){return false}c.nextSlide=0}}}}var f=c.onPrevNextEvent||c.prevNextClick;if(A.isFunction(f)){f(g>0,c.nextSlide,e[c.nextSlide])}E(e,c,1,d);return false}function F(b,a){var c=A(a.pager);A.each(b,function(e,d){A.fn.cycle.createPagerAnchor(e,d,c,b,a)});a.updateActivePagerLink(a.pager,a.startingSlide,a.activePagerClass)}A.fn.cycle.createPagerAnchor=function(d,g,b,e,h){var a;if(A.isFunction(h.pagerAnchorBuilder)){a=h.pagerAnchorBuilder(d,g);I("pagerAnchorBuilder("+d+", el) returned: "+a)}else{a='<a href="#">'+(d+1)+"</a>"}if(!a){return}var f=A(a);if(f.parents("body").length===0){var c=[];if(b.length>1){b.each(function(){var j=f.clone(true);A(this).append(j);c.push(j[0])});f=A(c)}else{f.appendTo(b)}}h.pagerAnchors=h.pagerAnchors||[];h.pagerAnchors.push(f);f.bind(h.pagerEvent,function(j){j.preventDefault();h.nextSlide=d;var k=h.$cont[0],l=k.cycleTimeout;if(l){clearTimeout(l);k.cycleTimeout=0}var m=h.onPagerEvent||h.pagerClick;if(A.isFunction(m)){m(h.nextSlide,e[h.nextSlide])}E(e,h,1,h.currSlide<d)});if(!/^click/.test(h.pagerEvent)&&!h.allowPagerClickBubble){f.bind("click.cycle",function(){return false})}var i=false;if(h.pauseOnPagerHover){f.hover(function(){i=true;h.$cont[0].cyclePause++;w(cont,true,true)},function(){i&&h.$cont[0].cyclePause--;w(cont,true,true)})}};A.fn.cycle.hopsFromLast=function(b,c){var d,e=b.lastSlide,a=b.currSlide;if(c){d=a>e?a-e:b.slideCount-e}else{d=a<e?e-a:e+b.slideCount-a}return d};function C(a){I("applying clearType background-color hack");function b(d){d=parseInt(d,10).toString(16);return d.length<2?"0"+d:d}function c(f){for(;f&&f.nodeName.toLowerCase()!="html";f=f.parentNode){var e=A.css(f,"background-color");if(e&&e.indexOf("rgb")>=0){var d=e.match(/\d+/g);return"#"+b(d[0])+b(d[1])+b(d[2])}if(e&&e!="transparent"){return e}}return"#ffffff"}a.each(function(){A(this).css("background-color",c(this))})}A.fn.cycle.commonReset=function(f,b,a,d,c,e){A(a.elements).not(f).hide();if(typeof a.cssBefore.opacity=="undefined"){a.cssBefore.opacity=1}a.cssBefore.display="block";if(a.slideResize&&d!==false&&b.cycleW>0){a.cssBefore.width=b.cycleW}if(a.slideResize&&c!==false&&b.cycleH>0){a.cssBefore.height=b.cycleH}a.cssAfter=a.cssAfter||{};a.cssAfter.display="none";A(f).css("zIndex",a.slideCount+(e===true?1:0));A(b).css("zIndex",a.slideCount+(e===true?0:1))};A.fn.cycle.custom=function(l,f,m,i,g,k){var a=A(l),e=A(f);var j=m.speedIn,b=m.speedOut,h=m.easeIn,c=m.easeOut;e.css(m.cssBefore);if(k){if(typeof k=="number"){j=b=k}else{j=b=1}h=c=null}var d=function(){e.animate(m.animIn,j,h,function(){i()})};a.animate(m.animOut,b,c,function(){a.css(m.cssAfter);if(!m.sync){d()}});if(m.sync){d()}};A.fn.cycle.transitions={fade:function(b,a,c){a.not(":eq("+c.currSlide+")").css("opacity",0);c.before.push(function(d,f,e){A.fn.cycle.commonReset(d,f,e);e.cssBefore.opacity=0});c.animIn={opacity:1};c.animOut={opacity:0};c.cssBefore={top:0,left:0}}};A.fn.cycle.ver=function(){return x};A.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:!A.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);
/*!
 * 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.73
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function(b){b.fn.cycle.transitions.none=function(f,e,a){a.fxFn=function(d,j,i,c){b(j).show();b(d).hide();c()}};b.fn.cycle.transitions.fadeout=function(f,e,a){e.not(":eq("+a.currSlide+")").css({display:"block",opacity:1});a.before.push(function(c,h,d,m,l,n){b(c).css("zIndex",d.slideCount+(!n===true?1:0));b(h).css("zIndex",d.slideCount+(!n===true?0:1))});a.animIn.opacity=1;a.animOut.opacity=0;a.cssBefore.opacity=1;a.cssBefore.display="block";a.cssAfter.zIndex=0};b.fn.cycle.transitions.scrollUp=function(g,f,h){g.css("overflow","hidden");h.before.push(b.fn.cycle.commonReset);var a=g.height();h.cssBefore.top=a;h.cssBefore.left=0;h.cssFirst.top=0;h.animIn.top=0;h.animOut.top=-a};b.fn.cycle.transitions.scrollDown=function(g,f,h){g.css("overflow","hidden");h.before.push(b.fn.cycle.commonReset);var a=g.height();h.cssFirst.top=0;h.cssBefore.top=-a;h.cssBefore.left=0;h.animIn.top=0;h.animOut.top=a};b.fn.cycle.transitions.scrollLeft=function(g,f,h){g.css("overflow","hidden");h.before.push(b.fn.cycle.commonReset);var a=g.width();h.cssFirst.left=0;h.cssBefore.left=a;h.cssBefore.top=0;h.animIn.left=0;h.animOut.left=0-a};b.fn.cycle.transitions.scrollRight=function(g,f,h){g.css("overflow","hidden");h.before.push(b.fn.cycle.commonReset);var a=g.width();h.cssFirst.left=0;h.cssBefore.left=-a;h.cssBefore.top=0;h.animIn.left=0;h.animOut.left=a};b.fn.cycle.transitions.scrollHorz=function(f,e,a){f.css("overflow","hidden").width();a.before.push(function(c,i,d,j){if(d.rev){j=!j}b.fn.cycle.commonReset(c,i,d);d.cssBefore.left=j?(i.cycleW-1):(1-i.cycleW);d.animOut.left=j?-c.cycleW:c.cycleW});a.cssFirst.left=0;a.cssBefore.top=0;a.animIn.left=0;a.animOut.top=0};b.fn.cycle.transitions.scrollVert=function(f,e,a){f.css("overflow","hidden");a.before.push(function(c,i,d,j){if(d.rev){j=!j}b.fn.cycle.commonReset(c,i,d);d.cssBefore.top=j?(1-i.cycleH):(i.cycleH-1);d.animOut.top=j?c.cycleH:-c.cycleH});a.cssFirst.top=0;a.cssBefore.left=0;a.animIn.top=0;a.animOut.left=0};b.fn.cycle.transitions.slideX=function(f,e,a){a.before.push(function(c,h,d){b(d.elements).not(c).hide();b.fn.cycle.commonReset(c,h,d,false,true);d.animIn.width=h.cycleW});a.cssBefore.left=0;a.cssBefore.top=0;a.cssBefore.width=0;a.animIn.width="show";a.animOut.width=0};b.fn.cycle.transitions.slideY=function(f,e,a){a.before.push(function(c,h,d){b(d.elements).not(c).hide();b.fn.cycle.commonReset(c,h,d,true,false);d.animIn.height=h.cycleH});a.cssBefore.left=0;a.cssBefore.top=0;a.cssBefore.height=0;a.animIn.height="show";a.animOut.height=0};b.fn.cycle.transitions.shuffle=function(h,g,i){var j,a=h.css("overflow","visible").width();g.css({left:0,top:0});i.before.push(function(c,e,d){b.fn.cycle.commonReset(c,e,d,true,true,true)});if(!i.speedAdjusted){i.speed=i.speed/2;i.speedAdjusted=true}i.random=0;i.shuffle=i.shuffle||{left:-a,top:15};i.els=[];for(j=0;j<g.length;j++){i.els.push(g[j])}for(j=0;j<i.currSlide;j++){i.els.push(i.els.shift())}i.fxFn=function(c,f,d,q,n){if(d.rev){n=!n}var o=n?b(c):b(f);b(f).css(d.cssBefore);var e=d.slideCount;o.animate(d.shuffle,d.speedIn,d.easeIn,function(){var t=b.fn.cycle.hopsFromLast(d,n);for(var m=0;m<t;m++){n?d.els.push(d.els.shift()):d.els.unshift(d.els.pop())}if(n){for(var l=0,u=d.els.length;l<u;l++){b(d.els[l]).css("z-index",u-l+e)}}else{var k=b(c).css("z-index");o.css("z-index",parseInt(k,10)+1+e)}o.animate({left:0,top:0},d.speedOut,d.easeOut,function(){b(n?this:c).hide();if(q){q()}})})};b.extend(i.cssBefore,{display:"block",opacity:1,top:0,left:0})};b.fn.cycle.transitions.turnUp=function(f,e,a){a.before.push(function(c,h,d){b.fn.cycle.commonReset(c,h,d,true,false);d.cssBefore.top=h.cycleH;d.animIn.height=h.cycleH;d.animOut.width=h.cycleW});a.cssFirst.top=0;a.cssBefore.left=0;a.cssBefore.height=0;a.animIn.top=0;a.animOut.height=0};b.fn.cycle.transitions.turnDown=function(f,e,a){a.before.push(function(c,h,d){b.fn.cycle.commonReset(c,h,d,true,false);d.animIn.height=h.cycleH;d.animOut.top=c.cycleH});a.cssFirst.top=0;a.cssBefore.left=0;a.cssBefore.top=0;a.cssBefore.height=0;a.animOut.height=0};b.fn.cycle.transitions.turnLeft=function(f,e,a){a.before.push(function(c,h,d){b.fn.cycle.commonReset(c,h,d,false,true);d.cssBefore.left=h.cycleW;d.animIn.width=h.cycleW});a.cssBefore.top=0;a.cssBefore.width=0;a.animIn.left=0;a.animOut.width=0};b.fn.cycle.transitions.turnRight=function(f,e,a){a.before.push(function(c,h,d){b.fn.cycle.commonReset(c,h,d,false,true);d.animIn.width=h.cycleW;d.animOut.left=c.cycleW});b.extend(a.cssBefore,{top:0,left:0,width:0});a.animIn.left=0;a.animOut.width=0};b.fn.cycle.transitions.zoom=function(f,e,a){a.before.push(function(c,h,d){b.fn.cycle.commonReset(c,h,d,false,false,true);d.cssBefore.top=h.cycleH/2;d.cssBefore.left=h.cycleW/2;b.extend(d.animIn,{top:0,left:0,width:h.cycleW,height:h.cycleH});b.extend(d.animOut,{width:0,height:0,top:c.cycleH/2,left:c.cycleW/2})});a.cssFirst.top=0;a.cssFirst.left=0;a.cssBefore.width=0;a.cssBefore.height=0};b.fn.cycle.transitions.fadeZoom=function(f,e,a){a.before.push(function(c,h,d){b.fn.cycle.commonReset(c,h,d,false,false);d.cssBefore.left=h.cycleW/2;d.cssBefore.top=h.cycleH/2;b.extend(d.animIn,{top:0,left:0,width:h.cycleW,height:h.cycleH})});a.cssBefore.width=0;a.cssBefore.height=0;a.animOut.opacity=0};b.fn.cycle.transitions.blindX=function(g,f,h){var a=g.css("overflow","hidden").width();h.before.push(function(c,e,d){b.fn.cycle.commonReset(c,e,d);d.animIn.width=e.cycleW;d.animOut.left=c.cycleW});h.cssBefore.left=a;h.cssBefore.top=0;h.animIn.left=0;h.animOut.left=a};b.fn.cycle.transitions.blindY=function(g,f,h){var a=g.css("overflow","hidden").height();h.before.push(function(c,e,d){b.fn.cycle.commonReset(c,e,d);d.animIn.height=e.cycleH;d.animOut.top=c.cycleH});h.cssBefore.top=a;h.cssBefore.left=0;h.animIn.top=0;h.animOut.top=a};b.fn.cycle.transitions.blindZ=function(h,g,i){var j=h.css("overflow","hidden").height();var a=h.width();i.before.push(function(c,e,d){b.fn.cycle.commonReset(c,e,d);d.animIn.height=e.cycleH;d.animOut.top=c.cycleH});i.cssBefore.top=j;i.cssBefore.left=a;i.animIn.top=0;i.animIn.left=0;i.animOut.top=j;i.animOut.left=a};b.fn.cycle.transitions.growX=function(f,e,a){a.before.push(function(c,h,d){b.fn.cycle.commonReset(c,h,d,false,true);d.cssBefore.left=this.cycleW/2;d.animIn.left=0;d.animIn.width=this.cycleW;d.animOut.left=0});a.cssBefore.top=0;a.cssBefore.width=0};b.fn.cycle.transitions.growY=function(f,e,a){a.before.push(function(c,h,d){b.fn.cycle.commonReset(c,h,d,true,false);d.cssBefore.top=this.cycleH/2;d.animIn.top=0;d.animIn.height=this.cycleH;d.animOut.top=0});a.cssBefore.height=0;a.cssBefore.left=0};b.fn.cycle.transitions.curtainX=function(f,e,a){a.before.push(function(c,h,d){b.fn.cycle.commonReset(c,h,d,false,true,true);d.cssBefore.left=h.cycleW/2;d.animIn.left=0;d.animIn.width=this.cycleW;d.animOut.left=c.cycleW/2;d.animOut.width=0});a.cssBefore.top=0;a.cssBefore.width=0};b.fn.cycle.transitions.curtainY=function(f,e,a){a.before.push(function(c,h,d){b.fn.cycle.commonReset(c,h,d,true,false,true);d.cssBefore.top=h.cycleH/2;d.animIn.top=0;d.animIn.height=h.cycleH;d.animOut.top=c.cycleH/2;d.animOut.height=0});a.cssBefore.height=0;a.cssBefore.left=0};b.fn.cycle.transitions.cover=function(j,h,k){var d=k.direction||"left";var a=j.css("overflow","hidden").width();var l=j.height();k.before.push(function(c,f,e){b.fn.cycle.commonReset(c,f,e);if(d=="right"){e.cssBefore.left=-a}else{if(d=="up"){e.cssBefore.top=l}else{if(d=="down"){e.cssBefore.top=-l}else{e.cssBefore.left=a}}}});k.animIn.left=0;k.animIn.top=0;k.cssBefore.top=0;k.cssBefore.left=0};b.fn.cycle.transitions.uncover=function(j,h,k){var d=k.direction||"left";var a=j.css("overflow","hidden").width();var l=j.height();k.before.push(function(c,f,e){b.fn.cycle.commonReset(c,f,e,true,true,true);if(d=="right"){e.animOut.left=a}else{if(d=="up"){e.animOut.top=-l}else{if(d=="down"){e.animOut.top=l}else{e.animOut.left=-a}}}});k.animIn.left=0;k.animIn.top=0;k.cssBefore.top=0;k.cssBefore.left=0};b.fn.cycle.transitions.toss=function(h,g,i){var a=h.css("overflow","visible").width();var j=h.height();i.before.push(function(c,e,d){b.fn.cycle.commonReset(c,e,d,true,true,true);if(!d.animOut.left&&!d.animOut.top){b.extend(d.animOut,{left:a*2,top:-j/2,opacity:0})}else{d.animOut.opacity=0}});i.cssBefore.left=0;i.cssBefore.top=0;i.animIn.left=0};b.fn.cycle.transitions.wipe=function(B,l,y){var a=B.css("overflow","hidden").width();var t=B.height();y.cssBefore=y.cssBefore||{};var w;if(y.clip){if(/l2r/.test(y.clip)){w="rect(0px 0px "+t+"px 0px)"}else{if(/r2l/.test(y.clip)){w="rect(0px "+a+"px "+t+"px "+a+"px)"}else{if(/t2b/.test(y.clip)){w="rect(0px "+a+"px 0px 0px)"}else{if(/b2t/.test(y.clip)){w="rect("+t+"px "+a+"px "+t+"px 0px)"}else{if(/zoom/.test(y.clip)){var d=parseInt(t/2,10);var x=parseInt(a/2,10);w="rect("+d+"px "+x+"px "+d+"px "+x+"px)"}}}}}}y.cssBefore.clip=y.cssBefore.clip||w||"rect(0px 0px 0px 0px)";var r=y.cssBefore.clip.match(/(\d+)/g);var A=parseInt(r[0],10),z=parseInt(r[1],10),h=parseInt(r[2],10),v=parseInt(r[3],10);y.before.push(function(f,j,i){if(f==j){return}var m=b(f),c=b(j);b.fn.cycle.commonReset(f,j,i,true,true,false);i.cssAfter.display="block";var k=1,e=parseInt((i.speedIn/13),10)-1;(function g(){var s=A?A-parseInt(k*(A/e),10):0;var q=v?v-parseInt(k*(v/e),10):0;var o=h<t?h+parseInt(k*((t-h)/e||1),10):t;var n=z<a?z+parseInt(k*((a-z)/e||1),10):a;c.css({clip:"rect("+s+"px "+n+"px "+o+"px "+q+"px)"});(k++<=e)?setTimeout(g,13):m.css("display","none")})()});b.extend(y.cssBefore,{display:"block",opacity:1,top:0,left:0});y.animIn={left:0};y.animOut={left:0}}})(jQuery);ieBrowser=$.browser.msie;jQuery(function(f){var e=f(".next");if(document.getElementById("slide2")){f("section").addClass("nowidth");d(f("#slide2 img"))}f("#slide2").animate({opacity:1},600);f("#slide2").cycle({timeout:0,speed:400,slideResize:false,next:e,before:b});function d(h){var i=f(h);return i.each(function(){var l=f(this);var m=l.attr("data-h")/l.attr("data-w");var o=l.width();var k=l.height();var j=f(window).width();var q=f(window).height();if(j>o){var n=((j-o)/2)-40+"px";l.css({marginLeft:n})}if(o>j){l.css({width:(j-80)+"px",height:"auto"})}if(q>k){l.css({marginTop:((q-k)/2)-40+"px"})}})}function b(){var k=f(this);var l=k.attr("data-h")/k.attr("data-w");var n=k.width();var j=k.height();var i=f(window).width();var o=f(window).height();var h=k.attr("data-cap");if(i>n){var m=((i-n)/2)-40+"px";k.css({marginLeft:m})}if(n>i){k.css({width:(i-80)+"px",height:"auto",marginTop:((o-j)/2)-40+"px"})}if(o>j){k.css({marginTop:((o-j)/2)-40+"px"})}f("#slidecap").text(h)}f(window).load(function(){d(f("#slide2 img"))});f(window).resize(function(){d(f("#slide2 img"))});f(".slide2-wrapper").click(function(){window.location.href=f(this).attr("data-url")});f(document).bind("keypress","esc",function(){f(".slide2-wrapper").trigger("click")});f(document).bind("keypress","right",function(){f("#slide2").cycle("next")});f(document).bind("keypress","left",function(){f("#slide2").cycle("prev")});f(".slide").each(function(){var l=f(this),m=f(l).next(".navigation"),h=f(m).find(".counter"),k=f(m).find(".prev"),j=f(".next");f(this).cycle({timeout:0,speed:300,next:j,prev:k,after:i});function i(r,o,q){var n=""+(q.currSlide+1)+"/"+q.slideCount;f(h).html(n)}});f(".img-overview").delegate("img","click",function(){thisImg=f(this),thisImgSrc=f(thisImg).attr("src"),imgW=f(thisImg).attr("data-width"),imgH=f(thisImg).attr("data-height"),imgOverlay=f("#imgOverlay"),imgOverlayImg=f("#the_img");f(imgOverlayImg).attr("src",thisImgSrc);f(imgOverlay).show();centerTheImage(imgW,imgH)});f(".close, #the_img").click(function(){f("#imgOverlay").hide();f("#the_img").attr("src","/site/gfx/blank.png")});f("a[href^='http://']").not("a[href^='http://pswar.org']").addClass("external");f("p").filter(function(){return f(this).css("padding-left")=="30px"}).addClass("ml4").css({"padding-left":"0px"});if(document.getElementById("entry-box")){var g=f("#entry-box"),c=f(g).height();winH=f(window).height(),entryTitle=f("#entry-title"),etH=f(entryTitle).height();var a=((c-etH)/2)-100;f(entryTitle).css({paddingTop:a+"px"})}f(".redbox").each(function(){var h=f(this).offset().left+"px";var i=f(this).offset().top+"px";f(this).attr({"data-left":h,"data-top":i})});f(".redbox").each(function(){f(this).css({left:f(this).attr("data-left"),top:f(this).attr("data-top"),position:"absolute",marginTop:"0",marginLeft:"0"})});f(".red-close").click(function(){f(this).parent(".redbox").fadeOut();var h=f(this).parent(".redbox").attr("data-id");f.ajax({type:"POST",url:"/xhr/?do=setBox",data:{id:h},success:function(i){console.log(i)}});return false})});function centerTheImage(c,g){var f=$(window).height(),b=$(window).width(),d=$("#the_box");if(c>b){var c=(b-200)}if(g>f){var g=(f-50)}var a=(b-c)/2;$(d).css({left:a});$(d).css({width:c});var e=(f-g)/2;$(d).css({top:e})};
