(function(a){a.dropShadow=function(f,c){if(a(".shadow",f.parent()).is(".shadow")){return}c={width:c.width||3,opacity:c.opacity||0.06};offset=a(f).offset();css={position:"absolute",top:parseFloat(a(f).get(0).offsetTop)||parseFloat(a(f).css("top"))||0,left:parseFloat(a(f).get(0).offsetLeft)||parseFloat(a(f).css("left"))||0,width:parseFloat(a(f).get(0).offsetWidth)||0,height:parseFloat(a(f).get(0).offsetHeight)||0,zIndex:(a(f).css("zIndex")||50)-1};css.width+=(c.width)*2;css.left-=c.width;css.height+=1;var b="";for(var e=c.width;e>0;e--){b+='<div style="position:'+css.position+";top:"+css.top+"px;left:"+css.left+"px;width:"+css.width+"px;height:"+css.height+"px;opacity :"+c.opacity+";filter: alpha(opacity='"+(c.opacity*100)+"');background-color:#000000;\"></div>\n";css.width-=2;css.height+=1;css.left+=1;css.zIndex-=1}a(f).after("<div class='shadow' style='z-index:"+css.zIndex+"'>"+b+"</div>");return};a.removeShadow=function(c,b){a(".shadow",c.parent()).remove()};a.fn.dropShadow=function(c){var b=0,e;while((e=this.eq(b++))[0]){a.dropShadow(e,a.extend({},c))}return this};a.fn.removeShadow=function(c){var b=0,e;while((e=this.eq(b++))[0]){a.removeShadow(e,a.extend({},c))}return this}}(jQuery));
/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.94 (20-DEC-2010)
 * Dual licensed under the MIT and GPL licenses.
 * http://jquery.malsup.com/license.html
 * Requires: jQuery v1.2.6 or later
 */
(function(m){var q="2.94";if(m.support==undefined){m.support={opacity:!(m.browser.msie)}}function a(x){if(m.fn.cycle.debug){g(x)}}function g(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}m.fn.cycle=function(y,x){var z={s:this.selector,c:this.context};if(this.length===0&&y!="stop"){if(!m.isReady&&z.s){g("DOM not ready, queuing slideshow");m(function(){m(z.s,z.c).cycle(y,x)});return this}g("terminating; zero elements found by selector"+(m.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var D=r(this,y,x);if(D===false){return}D.updateActivePagerLink=D.updateActivePagerLink||m.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var E=m(this);var F=D.slideExpr?m(D.slideExpr,this):E.children();var B=F.get();if(B.length<2){g("terminating; too few slides: "+B.length);return}var A=o(E,F,B,D,z);if(A===false){return}var C=A.continuous?10:k(B[A.currSlide],B[A.nextSlide],A,!A.backwards);if(C){C+=(A.delay||0);if(C<10){C=10}a("first timeout: "+C);this.cycleTimeout=setTimeout(function(){f(B,A,0,!D.backwards)},C)}})};function r(x,A,y){if(x.cycleStop==undefined){x.cycleStop=0}if(A===undefined||A===null){A={}}if(A.constructor==String){switch(A){case"destroy":case"stop":var C=m(x).data("cycle.opts");if(!C){return false}x.cycleStop++;if(x.cycleTimeout){clearTimeout(x.cycleTimeout)}x.cycleTimeout=0;m(x).removeData("cycle.opts");if(A=="destroy"){v(C)}return false;case"toggle":x.cyclePause=(x.cyclePause===1)?0:1;B(x.cyclePause,y,x);return false;case"pause":x.cyclePause=1;return false;case"resume":x.cyclePause=0;B(false,y,x);return false;case"prev":case"next":var C=m(x).data("cycle.opts");if(!C){g('options not found, "prev/next" ignored');return false}m.fn.cycle[A](C);return false;default:A={fx:A}}return A}else{if(A.constructor==Number){var z=A;A=m(x).data("cycle.opts");if(!A){g("options not found, can not advance slide");return false}if(z<0||z>=A.elements.length){g("invalid slide index: "+z);return false}A.nextSlide=z;if(x.cycleTimeout){clearTimeout(x.cycleTimeout);x.cycleTimeout=0}if(typeof y=="string"){A.oneTimeFx=y}f(A.elements,A,1,z>=A.currSlide);return false}}return A;function B(E,F,D){if(!E&&F===true){var G=m(D).data("cycle.opts");if(!G){g("options not found, can not resume");return false}if(D.cycleTimeout){clearTimeout(D.cycleTimeout);D.cycleTimeout=0}f(G.elements,G,1,!G.backwards)}}}function b(x,y){if(!m.support.opacity&&y.cleartype&&x.style.filter){try{x.style.removeAttribute("filter")}catch(z){}}}function v(x){if(x.next){m(x.next).unbind(x.prevNextEvent)}if(x.prev){m(x.prev).unbind(x.prevNextEvent)}if(x.pager||x.pagerAnchorBuilder){m.each(x.pagerAnchors||[],function(){this.unbind().remove()})}x.pagerAnchors=null;if(x.destroy){x.destroy(x)}}function o(E,Q,B,A,K){var I=m.extend({},m.fn.cycle.defaults,A||{},m.metadata?E.metadata():m.meta?E.data():{});if(I.autostop){I.countdown=I.autostopCount||B.length}var y=E[0];E.data("cycle.opts",I);I.$cont=E;I.stopCount=y.cycleStop;I.elements=B;I.before=I.before?[I.before]:[];I.after=I.after?[I.after]:[];I.after.unshift(function(){I.busy=0});if(!m.support.opacity&&I.cleartype){I.after.push(function(){b(this,I)})}if(I.continuous){I.after.push(function(){f(B,I,0,!I.backwards)})}s(I);if(!m.support.opacity&&I.cleartype&&!I.cleartypeNoBg){j(Q)}if(E.css("position")=="static"){E.css("position","relative")}if(I.width){E.width(I.width)}if(I.height&&I.height!="auto"){E.height(I.height)}if(I.startingSlide){I.startingSlide=parseInt(I.startingSlide)}else{if(I.backwards){I.startingSlide=B.length-1}}if(I.random){I.randomMap=[];for(var O=0;O<B.length;O++){I.randomMap.push(O)}I.randomMap.sort(function(T,S){return Math.random()-0.5});I.randomIndex=1;I.startingSlide=I.randomMap[1]}else{if(I.startingSlide>=B.length){I.startingSlide=0}}I.currSlide=I.startingSlide||0;var D=I.startingSlide;Q.css({position:"absolute",top:0,left:0}).hide().each(function(S){var T;if(I.backwards){T=D?S<=D?B.length+(S-D):D-S:B.length-S}else{T=D?S>=D?B.length-(S-D):D-S:B.length-S}m(this).css("z-index",T)});m(B[D]).css("opacity",1).show();b(B[D],I);if(I.fit&&I.width){Q.width(I.width)}if(I.fit&&I.height&&I.height!="auto"){Q.height(I.height)}var J=I.containerResize&&!E.innerHeight();if(J){var C=0,H=0;for(var M=0;M<B.length;M++){var x=m(B[M]),R=x[0],G=x.outerWidth(),P=x.outerHeight();if(!G){G=R.offsetWidth||R.width||x.attr("width")}if(!P){P=R.offsetHeight||R.height||x.attr("height")}C=G>C?G:C;H=P>H?P:H}if(C>0&&H>0){E.css({width:C+"px",height:H+"px"})}}if(I.pause){E.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(c(I)===false){return false}var z=false;A.requeueAttempts=A.requeueAttempts||0;Q.each(function(){var V=m(this);this.cycleH=(I.fit&&I.height)?I.height:(V.height()||this.offsetHeight||this.height||V.attr("height")||0);this.cycleW=(I.fit&&I.width)?I.width:(V.width()||this.offsetWidth||this.width||V.attr("width")||0);if(V.is("img")){var T=(m.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var W=(m.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var U=(m.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var S=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(T||W||U||S){if(K.s&&I.requeueOnImageNotLoaded&&++A.requeueAttempts<100){g(A.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){m(K.s,K.c).cycle(A)},I.requeueTimeout);z=true;return false}else{g("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(z){return false}I.cssBefore=I.cssBefore||{};I.animIn=I.animIn||{};I.animOut=I.animOut||{};Q.not(":eq("+D+")").css(I.cssBefore);if(I.cssFirst){m(Q[D]).css(I.cssFirst)}if(I.timeout){I.timeout=parseInt(I.timeout);if(I.speed.constructor==String){I.speed=m.fx.speeds[I.speed]||parseInt(I.speed)}if(!I.sync){I.speed=I.speed/2}var L=I.fx=="shuffle"?500:250;while((I.timeout-I.speed)<L){I.timeout+=I.speed}}if(I.easing){I.easeIn=I.easeOut=I.easing}if(!I.speedIn){I.speedIn=I.speed}if(!I.speedOut){I.speedOut=I.speed}I.slideCount=B.length;I.currSlide=I.lastSlide=D;if(I.random){if(++I.randomIndex==B.length){I.randomIndex=0}I.nextSlide=I.randomMap[I.randomIndex]}else{if(I.backwards){I.nextSlide=I.startingSlide==0?(B.length-1):I.startingSlide-1}else{I.nextSlide=I.startingSlide>=(B.length-1)?0:I.startingSlide+1}}if(!I.multiFx){var N=m.fn.cycle.transitions[I.fx];if(m.isFunction(N)){N(E,Q,I)}else{if(I.fx!="custom"&&!I.multiFx){g("unknown transition: "+I.fx,"; slideshow terminating");return false}}}var F=Q[D];if(I.before.length){I.before[0].apply(F,[F,F,I,true])}if(I.after.length>1){I.after[1].apply(F,[F,F,I,true])}if(I.next){m(I.next).bind(I.prevNextEvent,function(){return u(I,1)})}if(I.prev){m(I.prev).bind(I.prevNextEvent,function(){return u(I,0)})}if(I.pager||I.pagerAnchorBuilder){e(B,I)}n(I,B);return I}function s(x){x.original={before:[],after:[]};x.original.cssBefore=m.extend({},x.cssBefore);x.original.cssAfter=m.extend({},x.cssAfter);x.original.animIn=m.extend({},x.animIn);x.original.animOut=m.extend({},x.animOut);m.each(x.before,function(){x.original.before.push(this)});m.each(x.after,function(){x.original.after.push(this)})}function c(D){var B,z,y=m.fn.cycle.transitions;if(D.fx.indexOf(",")>0){D.multiFx=true;D.fxs=D.fx.replace(/\s*/g,"").split(",");for(B=0;B<D.fxs.length;B++){var C=D.fxs[B];z=y[C];if(!z||!y.hasOwnProperty(C)||!m.isFunction(z)){g("discarding unknown transition: ",C);D.fxs.splice(B,1);B--}}if(!D.fxs.length){g("No valid transitions named; slideshow terminating.");return false}}else{if(D.fx=="all"){D.multiFx=true;D.fxs=[];for(p in y){z=y[p];if(y.hasOwnProperty(p)&&m.isFunction(z)){D.fxs.push(p)}}}}if(D.multiFx&&D.randomizeEffects){var A=Math.floor(Math.random()*20)+30;for(B=0;B<A;B++){var x=Math.floor(Math.random()*D.fxs.length);D.fxs.push(D.fxs.splice(x,1)[0])}a("randomized fx sequence: ",D.fxs)}return true}function n(y,x){y.addSlide=function(A,B){var z=m(A),C=z[0];if(!y.autostopCount){y.countdown++}x[B?"unshift":"push"](C);if(y.els){y.els[B?"unshift":"push"](C)}y.slideCount=x.length;z.css("position","absolute");z[B?"prependTo":"appendTo"](y.$cont);if(B){y.currSlide++;y.nextSlide++}if(!m.support.opacity&&y.cleartype&&!y.cleartypeNoBg){j(z)}if(y.fit&&y.width){z.width(y.width)}if(y.fit&&y.height&&y.height!="auto"){z.height(y.height)}C.cycleH=(y.fit&&y.height)?y.height:z.height();C.cycleW=(y.fit&&y.width)?y.width:z.width();z.css(y.cssBefore);if(y.pager||y.pagerAnchorBuilder){m.fn.cycle.createPagerAnchor(x.length-1,C,m(y.pager),x,y)}if(m.isFunction(y.onAddSlide)){y.onAddSlide(z)}else{z.hide()}}}m.fn.cycle.resetState=function(y,x){x=x||y.fx;y.before=[];y.after=[];y.cssBefore=m.extend({},y.original.cssBefore);y.cssAfter=m.extend({},y.original.cssAfter);y.animIn=m.extend({},y.original.animIn);y.animOut=m.extend({},y.original.animOut);y.fxFn=null;m.each(y.original.before,function(){y.before.push(this)});m.each(y.original.after,function(){y.after.push(this)});var z=m.fn.cycle.transitions[x];if(m.isFunction(z)){z(y.$cont,m(y.elements),y)}};function f(E,x,D,G){if(D&&x.busy&&x.manualTrump){a("manualTrump in go(), stopping active transition");m(E).stop(true,true);x.busy=false}if(x.busy){a("transition active, ignoring new tx request");return}var B=x.$cont[0],I=E[x.currSlide],H=E[x.nextSlide];if(B.cycleStop!=x.stopCount||B.cycleTimeout===0&&!D){return}if(!D&&!B.cyclePause&&!x.bounce&&((x.autostop&&(--x.countdown<=0))||(x.nowrap&&!x.random&&x.nextSlide<x.currSlide))){if(x.end){x.end(x)}return}var F=false;if((D||!B.cyclePause)&&(x.nextSlide!=x.currSlide)){F=true;var C=x.fx;I.cycleH=I.cycleH||m(I).height();I.cycleW=I.cycleW||m(I).width();H.cycleH=H.cycleH||m(H).height();H.cycleW=H.cycleW||m(H).width();if(x.multiFx){if(x.lastFx==undefined||++x.lastFx>=x.fxs.length){x.lastFx=0}C=x.fxs[x.lastFx];x.currFx=C}if(x.oneTimeFx){C=x.oneTimeFx;x.oneTimeFx=null}m.fn.cycle.resetState(x,C);if(x.before.length){m.each(x.before,function(J,K){if(B.cycleStop!=x.stopCount){return}K.apply(H,[I,H,x,G])})}var z=function(){m.each(x.after,function(J,K){if(B.cycleStop!=x.stopCount){return}K.apply(H,[I,H,x,G])})};a("tx firing; currSlide: "+x.currSlide+"; nextSlide: "+x.nextSlide);x.busy=1;if(x.fxFn){x.fxFn(I,H,x,z,G,D&&x.fastOnEvent)}else{if(m.isFunction(m.fn.cycle[x.fx])){m.fn.cycle[x.fx](I,H,x,z,G,D&&x.fastOnEvent)}else{m.fn.cycle.custom(I,H,x,z,G,D&&x.fastOnEvent)}}}if(F||x.nextSlide==x.currSlide){x.lastSlide=x.currSlide;if(x.random){x.currSlide=x.nextSlide;if(++x.randomIndex==E.length){x.randomIndex=0}x.nextSlide=x.randomMap[x.randomIndex];if(x.nextSlide==x.currSlide){x.nextSlide=(x.currSlide==x.slideCount-1)?0:x.currSlide+1}}else{if(x.backwards){var A=(x.nextSlide-1)<0;if(A&&x.bounce){x.backwards=!x.backwards;x.nextSlide=1;x.currSlide=0}else{x.nextSlide=A?(E.length-1):x.nextSlide-1;x.currSlide=A?0:x.nextSlide+1}}else{var A=(x.nextSlide+1)==E.length;if(A&&x.bounce){x.backwards=!x.backwards;x.nextSlide=E.length-2;x.currSlide=E.length-1}else{x.nextSlide=A?0:x.nextSlide+1;x.currSlide=A?E.length-1:x.nextSlide-1}}}}if(F&&x.pager){x.updateActivePagerLink(x.pager,x.currSlide,x.activePagerClass)}var y=0;if(x.timeout&&!x.continuous){y=k(E[x.currSlide],E[x.nextSlide],x,G)}else{if(x.continuous&&B.cyclePause){y=10}}if(y>0){B.cycleTimeout=setTimeout(function(){f(E,x,0,!x.backwards)},y)}}m.fn.cycle.updateActivePagerLink=function(x,z,y){m(x).each(function(){m(this).children().removeClass(y).eq(z).addClass(y)})};function k(B,z,A,y){if(A.timeoutFn){var x=A.timeoutFn.call(B,B,z,A,y);while((x-A.speed)<250){x+=A.speed}a("calculated timeout: "+x+"; speed: "+A.speed);if(x!==false){return x}}return A.timeout}m.fn.cycle.next=function(x){u(x,1)};m.fn.cycle.prev=function(x){u(x,0)};function u(A,z){var D=z?1:-1;var y=A.elements;var C=A.$cont[0],B=C.cycleTimeout;if(B){clearTimeout(B);C.cycleTimeout=0}if(A.random&&D<0){A.randomIndex--;if(--A.randomIndex==-2){A.randomIndex=y.length-2}else{if(A.randomIndex==-1){A.randomIndex=y.length-1}}A.nextSlide=A.randomMap[A.randomIndex]}else{if(A.random){A.nextSlide=A.randomMap[A.randomIndex]}else{A.nextSlide=A.currSlide+D;if(A.nextSlide<0){if(A.nowrap){return false}A.nextSlide=y.length-1}else{if(A.nextSlide>=y.length){if(A.nowrap){return false}A.nextSlide=0}}}}var x=A.onPrevNextEvent||A.prevNextClick;if(m.isFunction(x)){x(D>0,A.nextSlide,y[A.nextSlide])}f(y,A,1,z);return false}function e(y,z){var x=m(z.pager);m.each(y,function(A,B){m.fn.cycle.createPagerAnchor(A,B,x,y,z)});z.updateActivePagerLink(z.pager,z.startingSlide,z.activePagerClass)}m.fn.cycle.createPagerAnchor=function(B,C,z,A,D){var y;if(m.isFunction(D.pagerAnchorBuilder)){y=D.pagerAnchorBuilder(B,C);a("pagerAnchorBuilder("+B+", el) returned: "+y)}else{y='<a href="#">'+(B+1)+"</a>"}if(!y){return}var E=m(y);if(E.parents("body").length===0){var x=[];if(z.length>1){z.each(function(){var F=E.clone(true);m(this).append(F);x.push(F[0])});E=m(x)}else{E.appendTo(z)}}D.pagerAnchors=D.pagerAnchors||[];D.pagerAnchors.push(E);E.bind(D.pagerEvent,function(I){I.preventDefault();D.nextSlide=B;var H=D.$cont[0],G=H.cycleTimeout;if(G){clearTimeout(G);H.cycleTimeout=0}var F=D.onPagerEvent||D.pagerClick;if(m.isFunction(F)){F(D.nextSlide,A[D.nextSlide])}f(A,D,1,D.currSlide<B)});if(!/^click/.test(D.pagerEvent)&&!D.allowPagerClickBubble){E.bind("click.cycle",function(){return false})}if(D.pauseOnPagerHover){E.hover(function(){D.$cont[0].cyclePause++},function(){D.$cont[0].cyclePause--})}};m.fn.cycle.hopsFromLast=function(A,z){var y,x=A.lastSlide,B=A.currSlide;if(z){y=B>x?B-x:A.slideCount-x}else{y=B<x?x-B:x+A.slideCount-B}return y};function j(z){a("applying clearType background-color hack");function y(A){A=parseInt(A).toString(16);return A.length<2?"0"+A:A}function x(C){for(;C&&C.nodeName.toLowerCase()!="html";C=C.parentNode){var A=m.css(C,"background-color");if(A.indexOf("rgb")>=0){var B=A.match(/\d+/g);return"#"+y(B[0])+y(B[1])+y(B[2])}if(A&&A!="transparent"){return A}}return"#ffffff"}z.each(function(){m(this).css("background-color",x(this))})}m.fn.cycle.commonReset=function(C,A,B,y,z,x){m(B.elements).not(C).hide();B.cssBefore.opacity=1;B.cssBefore.display="block";if(B.slideResize&&y!==false&&A.cycleW>0){B.cssBefore.width=A.cycleW}if(B.slideResize&&z!==false&&A.cycleH>0){B.cssBefore.height=A.cycleH}B.cssAfter=B.cssAfter||{};B.cssAfter.display="none";m(C).css("zIndex",B.slideCount+(x===true?1:0));m(A).css("zIndex",B.slideCount+(x===true?0:1))};m.fn.cycle.custom=function(J,D,x,A,C,y){var I=m(J),E=m(D);var z=x.speedIn,H=x.speedOut,B=x.easeIn,G=x.easeOut;E.css(x.cssBefore);if(y){if(typeof y=="number"){z=H=y}else{z=H=1}B=G=null}var F=function(){E.animate(x.animIn,z,B,A)};I.animate(x.animOut,H,G,function(){if(x.cssAfter){I.css(x.cssAfter)}if(!x.sync){F()}});if(x.sync){F()}};m.fn.cycle.transitions={fade:function(y,z,x){z.not(":eq("+x.currSlide+")").css("opacity",0);x.before.push(function(C,A,B){m.fn.cycle.commonReset(C,A,B);B.cssBefore.opacity=0});x.animIn={opacity:1};x.animOut={opacity:0};x.cssBefore={top:0,left:0}}};m.fn.cycle.ver=function(){return q};m.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,slideResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!m.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null,backwards:false}})(jQuery);
/*
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version:	 2.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(a){a.fn.cycle.transitions.none=function(c,e,b){b.fxFn=function(j,f,g,k){a(f).show();a(j).hide();k()}};a.fn.cycle.transitions.fadeout=function(c,e,b){e.not(":eq("+b.currSlide+")").css({display:"block",opacity:1});b.before.push(function(n,k,m,g,j,f){a(n).css("zIndex",m.slideCount+(!f===true?1:0));a(k).css("zIndex",m.slideCount+(!f===true?0:1))});b.animIn={opacity:1};b.animOut={opacity:0};b.cssBefore={opacity:1,display:"block"};b.cssAfter={zIndex:0}};a.fn.cycle.transitions.scrollUp=function(e,f,c){e.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=e.height();c.cssBefore={top:b,left:0};c.cssFirst={top:0};c.animIn={top:0};c.animOut={top:-b}};a.fn.cycle.transitions.scrollDown=function(e,f,c){e.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=e.height();c.cssFirst={top:0};c.cssBefore={top:-b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.scrollLeft=function(e,f,c){e.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=e.width();c.cssFirst={left:0};c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:0-b}};a.fn.cycle.transitions.scrollRight=function(e,f,c){e.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=e.width();c.cssFirst={left:0};c.cssBefore={left:-b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.scrollHorz=function(c,e,b){c.css("overflow","hidden").width();b.before.push(function(k,g,j,f){if(j.rev){f=!f}a.fn.cycle.commonReset(k,g,j);j.cssBefore.left=f?(g.cycleW-1):(1-g.cycleW);j.animOut.left=f?-k.cycleW:k.cycleW});b.cssFirst={left:0};b.cssBefore={top:0};b.animIn={left:0};b.animOut={top:0}};a.fn.cycle.transitions.scrollVert=function(c,e,b){c.css("overflow","hidden");b.before.push(function(k,g,j,f){if(j.rev){f=!f}a.fn.cycle.commonReset(k,g,j);j.cssBefore.top=f?(1-g.cycleH):(g.cycleH-1);j.animOut.top=f?k.cycleH:-k.cycleH});b.cssFirst={top:0};b.cssBefore={left:0};b.animIn={top:0};b.animOut={left:0}};a.fn.cycle.transitions.slideX=function(c,e,b){b.before.push(function(j,f,g){a(g.elements).not(j).hide();a.fn.cycle.commonReset(j,f,g,false,true);g.animIn.width=f.cycleW});b.cssBefore={left:0,top:0,width:0};b.animIn={width:"show"};b.animOut={width:0}};a.fn.cycle.transitions.slideY=function(c,e,b){b.before.push(function(j,f,g){a(g.elements).not(j).hide();a.fn.cycle.commonReset(j,f,g,true,false);g.animIn.height=f.cycleH});b.cssBefore={left:0,top:0,height:0};b.animIn={height:"show"};b.animOut={height:0}};a.fn.cycle.transitions.shuffle=function(f,g,e){var c,b=f.css("overflow","visible").width();g.css({left:0,top:0});e.before.push(function(m,j,k){a.fn.cycle.commonReset(m,j,k,true,true,true)});if(!e.speedAdjusted){e.speed=e.speed/2;e.speedAdjusted=true}e.random=0;e.shuffle=e.shuffle||{left:-b,top:15};e.els=[];for(c=0;c<g.length;c++){e.els.push(g[c])}for(c=0;c<e.currSlide;c++){e.els.push(e.els.shift())}e.fxFn=function(r,n,q,j,m){if(q.rev){m=!m}var k=m?a(r):a(n);a(n).css(q.cssBefore);var o=q.slideCount;k.animate(q.shuffle,q.speedIn,q.easeIn,function(){var u=a.fn.cycle.hopsFromLast(q,m);for(var v=0;v<u;v++){m?q.els.push(q.els.shift()):q.els.unshift(q.els.pop())}if(m){for(var x=0,s=q.els.length;x<s;x++){a(q.els[x]).css("z-index",s-x+o)}}else{var y=a(r).css("z-index");k.css("z-index",parseInt(y)+1+o)}k.animate({left:0,top:0},q.speedOut,q.easeOut,function(){a(m?this:r).hide();if(j){j()}})})};e.cssBefore={display:"block",opacity:1,top:0,left:0}};a.fn.cycle.transitions.turnUp=function(c,e,b){b.before.push(function(j,f,g){a.fn.cycle.commonReset(j,f,g,true,false);g.cssBefore.top=f.cycleH;g.animIn.height=f.cycleH;g.animOut.width=f.cycleW});b.cssFirst={top:0};b.cssBefore={left:0,height:0};b.animIn={top:0};b.animOut={height:0}};a.fn.cycle.transitions.turnDown=function(c,e,b){b.before.push(function(j,f,g){a.fn.cycle.commonReset(j,f,g,true,false);g.animIn.height=f.cycleH;g.animOut.top=j.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,top:0,height:0};b.animOut={height:0}};a.fn.cycle.transitions.turnLeft=function(c,e,b){b.before.push(function(j,f,g){a.fn.cycle.commonReset(j,f,g,false,true);g.cssBefore.left=f.cycleW;g.animIn.width=f.cycleW});b.cssBefore={top:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.turnRight=function(c,e,b){b.before.push(function(j,f,g){a.fn.cycle.commonReset(j,f,g,false,true);g.animIn.width=f.cycleW;g.animOut.left=j.cycleW});b.cssBefore={top:0,left:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.zoom=function(c,e,b){b.before.push(function(j,f,g){a.fn.cycle.commonReset(j,f,g,false,false,true);g.cssBefore.top=f.cycleH/2;g.cssBefore.left=f.cycleW/2;g.animIn={top:0,left:0,width:f.cycleW,height:f.cycleH};g.animOut={width:0,height:0,top:j.cycleH/2,left:j.cycleW/2}});b.cssFirst={top:0,left:0};b.cssBefore={width:0,height:0}};a.fn.cycle.transitions.fadeZoom=function(c,e,b){b.before.push(function(j,f,g){a.fn.cycle.commonReset(j,f,g,false,false);g.cssBefore.left=f.cycleW/2;g.cssBefore.top=f.cycleH/2;g.animIn={top:0,left:0,width:f.cycleW,height:f.cycleH}});b.cssBefore={width:0,height:0};b.animOut={opacity:0}};a.fn.cycle.transitions.blindX=function(e,f,c){var b=e.css("overflow","hidden").width();c.before.push(function(k,g,j){a.fn.cycle.commonReset(k,g,j);j.animIn.width=g.cycleW;j.animOut.left=k.cycleW});c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.blindY=function(e,f,c){var b=e.css("overflow","hidden").height();c.before.push(function(k,g,j){a.fn.cycle.commonReset(k,g,j);j.animIn.height=g.cycleH;j.animOut.top=k.cycleH});c.cssBefore={top:b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.blindZ=function(f,g,e){var c=f.css("overflow","hidden").height();var b=f.width();e.before.push(function(m,j,k){a.fn.cycle.commonReset(m,j,k);k.animIn.height=j.cycleH;k.animOut.top=m.cycleH});e.cssBefore={top:c,left:b};e.animIn={top:0,left:0};e.animOut={top:c,left:b}};a.fn.cycle.transitions.growX=function(c,e,b){b.before.push(function(j,f,g){a.fn.cycle.commonReset(j,f,g,false,true);g.cssBefore.left=this.cycleW/2;g.animIn={left:0,width:this.cycleW};g.animOut={left:0}});b.cssBefore={width:0,top:0}};a.fn.cycle.transitions.growY=function(c,e,b){b.before.push(function(j,f,g){a.fn.cycle.commonReset(j,f,g,true,false);g.cssBefore.top=this.cycleH/2;g.animIn={top:0,height:this.cycleH};g.animOut={top:0}});b.cssBefore={height:0,left:0}};a.fn.cycle.transitions.curtainX=function(c,e,b){b.before.push(function(j,f,g){a.fn.cycle.commonReset(j,f,g,false,true,true);g.cssBefore.left=f.cycleW/2;g.animIn={left:0,width:this.cycleW};g.animOut={left:j.cycleW/2,width:0}});b.cssBefore={top:0,width:0}};a.fn.cycle.transitions.curtainY=function(c,e,b){b.before.push(function(j,f,g){a.fn.cycle.commonReset(j,f,g,true,false,true);g.cssBefore.top=f.cycleH/2;g.animIn={top:0,height:f.cycleH};g.animOut={top:j.cycleH/2,height:0}});b.cssBefore={left:0,height:0}};a.fn.cycle.transitions.cover=function(f,g,e){var j=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(n,k,m){a.fn.cycle.commonReset(n,k,m);if(j=="right"){m.cssBefore.left=-b}else{if(j=="up"){m.cssBefore.top=c}else{if(j=="down"){m.cssBefore.top=-c}else{m.cssBefore.left=b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.uncover=function(f,g,e){var j=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(n,k,m){a.fn.cycle.commonReset(n,k,m,true,true,true);if(j=="right"){m.animOut.left=b}else{if(j=="up"){m.animOut.top=-c}else{if(j=="down"){m.animOut.top=c}else{m.animOut.left=-b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.toss=function(f,g,e){var b=f.css("overflow","visible").width();var c=f.height();e.before.push(function(m,j,k){a.fn.cycle.commonReset(m,j,k,true,true,true);if(!k.animOut.left&&!k.animOut.top){k.animOut={left:b*2,top:-c/2,opacity:0}}else{k.animOut.opacity=0}});e.cssBefore={left:0,top:0};e.animIn={left:0}};a.fn.cycle.transitions.wipe=function(u,n,e){var s=u.css("overflow","hidden").width();var k=u.height();e.cssBefore=e.cssBefore||{};var g;if(e.clip){if(/l2r/.test(e.clip)){g="rect(0px 0px "+k+"px 0px)"}else{if(/r2l/.test(e.clip)){g="rect(0px "+s+"px "+k+"px "+s+"px)"}else{if(/t2b/.test(e.clip)){g="rect(0px "+s+"px 0px 0px)"}else{if(/b2t/.test(e.clip)){g="rect("+k+"px "+s+"px "+k+"px 0px)"}else{if(/zoom/.test(e.clip)){var q=parseInt(k/2);var f=parseInt(s/2);g="rect("+q+"px "+f+"px "+q+"px "+f+"px)"}}}}}}e.cssBefore.clip=e.cssBefore.clip||g||"rect(0px 0px 0px 0px)";var m=e.cssBefore.clip.match(/(\d+)/g);var v=parseInt(m[0]),c=parseInt(m[1]),o=parseInt(m[2]),j=parseInt(m[3]);e.before.push(function(C,x,A){if(C==x){return}var r=a(C),b=a(x);a.fn.cycle.commonReset(C,x,A,true,true,false);A.cssAfter.display="block";var z=1,y=parseInt((A.speedIn/13))-1;(function B(){var E=v?v-parseInt(z*(v/y)):0;var F=j?j-parseInt(z*(j/y)):0;var G=o<k?o+parseInt(z*((k-o)/y||1)):k;var D=c<s?c+parseInt(z*((s-c)/y||1)):s;b.css({clip:"rect("+E+"px "+D+"px "+G+"px "+F+"px)"});(z++<=y)?setTimeout(B,13):r.css("display","none")})()});e.cssBefore={display:"block",opacity:1,top:0,left:0};e.animIn={left:0};e.animOut={left:0}}})(jQuery);(function(I){var S,aa,X,T,e,r,Q,H,V,G,J=0,O={},n=[],f=0,N={},F=[],g=null,u=new Image(),m=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,o=/[^\.]\.(swf)\s*$/i,v,U=1,k=0,A="",b,c,W=false,z=I.extend(I("<div/>")[0],{prop:0}),Z=I.browser.msie&&I.browser.version<7&&!window.XMLHttpRequest,y=function(){aa.hide();u.onerror=u.onload=null;if(g){g.abort()}S.empty()},E=function(){if(false===O.onError(n,J,O)){aa.hide();W=false;return}O.titleShow=false;O.width="auto";O.height="auto";S.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');s()},D=function(){var ag=n[J],ad,af,ai,ah,ac,ae;y();O=I.extend({},I.fn.fancybox.defaults,(typeof I(ag).data("fancybox")=="undefined"?O:I(ag).data("fancybox")));ae=O.onStart(n,J,O);if(ae===false){W=false;return}else{if(typeof ae=="object"){O=I.extend(O,ae)}}ai=O.title||(ag.nodeName?I(ag).attr("title"):ag.title)||"";if(ag.nodeName&&!O.orig){O.orig=I(ag).children("img:first").length?I(ag).children("img:first"):I(ag)}if(ai===""&&O.orig&&O.titleFromAlt){ai=O.orig.attr("alt")}ad=O.href||(ag.nodeName?I(ag).attr("href"):ag.href)||null;if((/^(?:javascript)/i).test(ad)||ad=="#"){ad=null}if(O.type){af=O.type;if(!ad){ad=O.content}}else{if(O.content){af="html"}else{if(ad){if(ad.match(m)){af="image"}else{if(ad.match(o)){af="swf"}else{if(I(ag).hasClass("iframe")){af="iframe"}else{if(ad.indexOf("#")===0){af="inline"}else{af="ajax"}}}}}}}if(!af){E();return}if(af=="inline"){ag=ad.substr(ad.indexOf("#"));af=I(ag).length>0?"inline":"ajax"}O.type=af;O.href=ad;O.title=ai;if(O.autoDimensions){if(O.type=="html"||O.type=="inline"||O.type=="ajax"){O.width="auto";O.height="auto"}else{O.autoDimensions=false}}if(O.modal){O.overlayShow=true;O.hideOnOverlayClick=false;O.hideOnContentClick=false;O.enableEscapeButton=false;O.showCloseButton=false}O.padding=parseInt(O.padding,10);O.margin=parseInt(O.margin,10);S.css("padding",(O.padding+O.margin));I(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){I(this).replaceWith(r.children())});switch(af){case"html":S.html(O.content);s();break;case"inline":if(I(ag).parent().is("#fancybox-content")===true){W=false;return}I('<div class="fancybox-inline-tmp" />').hide().insertBefore(I(ag)).bind("fancybox-cleanup",function(){I(this).replaceWith(r.children())}).bind("fancybox-cancel",function(){I(this).replaceWith(S.children())});I(ag).appendTo(S);s();break;case"image":W=false;I.fancybox.showActivity();u=new Image();u.onerror=function(){E()};u.onload=function(){W=true;u.onerror=u.onload=null;M()};u.src=ad;break;case"swf":O.scrolling="no";ah='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+O.width+'" height="'+O.height+'"><param name="movie" value="'+ad+'"></param>';ac="";I.each(O.swf,function(aj,ak){ah+='<param name="'+aj+'" value="'+ak+'"></param>';ac+=" "+aj+'="'+ak+'"'});ah+='<embed src="'+ad+'" type="application/x-shockwave-flash" width="'+O.width+'" height="'+O.height+'"'+ac+"></embed></object>";S.html(ah);s();break;case"ajax":W=false;I.fancybox.showActivity();O.ajax.win=O.ajax.success;g=I.ajax(I.extend({},O.ajax,{url:ad,data:O.ajax.data||{},error:function(aj,al,ak){if(aj.status>0){E()}},success:function(ak,am,aj){var al=typeof aj=="object"?aj:g;if(al.status==200){if(typeof O.ajax.win=="function"){ae=O.ajax.win(ad,ak,am,aj);if(ae===false){aa.hide();return}else{if(typeof ae=="string"||typeof ae=="object"){ak=ae}}}S.html(ak);s()}}}));break;case"iframe":L();break}},s=function(){var ac=O.width,ad=O.height;if(ac.toString().indexOf("%")>-1){ac=parseInt((I(window).width()-(O.margin*2))*parseFloat(ac)/100,10)+"px"}else{ac=ac=="auto"?"auto":ac+"px"}if(ad.toString().indexOf("%")>-1){ad=parseInt((I(window).height()-(O.margin*2))*parseFloat(ad)/100,10)+"px"}else{ad=ad=="auto"?"auto":ad+"px"}S.wrapInner('<div style="width:'+ac+";height:"+ad+";overflow: "+(O.scrolling=="auto"?"auto":(O.scrolling=="yes"?"scroll":"hidden"))+';position:relative;"></div>');O.width=S.width();O.height=S.height();L()},M=function(){O.width=u.width;O.height=u.height;I("<img />").attr({id:"fancybox-img",src:u.src,alt:O.title}).appendTo(S);L()},L=function(){var ad,ac;aa.hide();if(T.is(":visible")&&false===N.onCleanup(F,f,N)){I.event.trigger("fancybox-cancel");W=false;return}W=true;I(r.add(X)).unbind();I(window).unbind("resize.fb scroll.fb");I(document).unbind("keydown.fb");if(T.is(":visible")&&N.titlePosition!=="outside"){T.css("height",T.height())}F=n;f=J;N=O;if(N.overlayShow){X.css({"background-color":N.overlayColor,opacity:N.overlayOpacity,cursor:N.hideOnOverlayClick?"pointer":"auto",height:I(document).height()});if(!X.is(":visible")){if(Z){I("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"})}X.show()}}else{X.hide()}c=Y();q();if(T.is(":visible")){I(Q.add(V).add(G)).hide();ad=T.position(),b={top:ad.top,left:ad.left,width:T.width(),height:T.height()};ac=(b.width==c.width&&b.height==c.height);r.fadeTo(N.changeFade,0.3,function(){var ae=function(){r.html(S.contents()).fadeTo(N.changeFade,1,C)};I.event.trigger("fancybox-change");r.empty().removeAttr("filter").css({"border-width":N.padding,width:c.width-N.padding*2,height:O.autoDimensions?"auto":c.height-k-N.padding*2});if(ac){ae()}else{z.prop=0;I(z).animate({prop:1},{duration:N.changeSpeed,easing:N.easingChange,step:ab,complete:ae})}});return}T.removeAttr("style");r.css("border-width",N.padding);if(N.transitionIn=="elastic"){b=P();r.html(S.contents());T.show();if(N.opacity){c.opacity=0}z.prop=0;I(z).animate({prop:1},{duration:N.speedIn,easing:N.easingIn,step:ab,complete:C});return}if(N.titlePosition=="inside"&&k>0){H.show()}r.css({width:c.width-N.padding*2,height:O.autoDimensions?"auto":c.height-k-N.padding*2}).html(S.contents());T.css(c).fadeIn(N.transitionIn=="none"?0:N.speedIn,C)},K=function(ac){if(ac&&ac.length){if(N.titlePosition=="float"){return'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+ac+'</td><td id="fancybox-title-float-right"></td></tr></table>'}return'<div id="fancybox-title-'+N.titlePosition+'">'+ac+"</div>"}return false},q=function(){A=N.title||"";k=0;H.empty().removeAttr("style").removeClass();if(N.titleShow===false){H.hide();return}A=I.isFunction(N.titleFormat)?N.titleFormat(A,F,f,N):K(A);if(!A||A===""){H.hide();return}H.addClass("fancybox-title-"+N.titlePosition).html(A).appendTo("body").show();switch(N.titlePosition){case"inside":H.css({width:c.width-(N.padding*2),marginLeft:N.padding,marginRight:N.padding});k=H.outerHeight(true);H.appendTo(e);c.height+=k;break;case"over":H.css({marginLeft:N.padding,width:c.width-(N.padding*2),bottom:N.padding}).appendTo(e);break;case"float":H.css("left",parseInt((H.width()-c.width-40)/2,10)*-1).appendTo(T);break;default:H.css({width:c.width-(N.padding*2),paddingLeft:N.padding,paddingRight:N.padding}).appendTo(T);break}H.hide()},j=function(){if(N.enableEscapeButton||N.enableKeyboardNav){I(document).bind("keydown.fb",function(ac){if(ac.keyCode==27&&N.enableEscapeButton){ac.preventDefault();I.fancybox.close()}else{if((ac.keyCode==37||ac.keyCode==39)&&N.enableKeyboardNav&&ac.target.tagName!=="INPUT"&&ac.target.tagName!=="TEXTAREA"&&ac.target.tagName!=="SELECT"){ac.preventDefault();I.fancybox[ac.keyCode==37?"prev":"next"]()}}})}if(!N.showNavArrows){V.hide();G.hide();return}if((N.cyclic&&F.length>1)||f!==0){V.show()}if((N.cyclic&&F.length>1)||f!=(F.length-1)){G.show()}},C=function(){if(!I.support.opacity){r.get(0).style.removeAttribute("filter");T.get(0).style.removeAttribute("filter")}if(O.autoDimensions){r.css("height","auto")}T.css("height","auto");if(A&&A.length){H.show()}if(N.showCloseButton){Q.show()}j();if(N.hideOnContentClick){r.bind("click",I.fancybox.close)}if(N.hideOnOverlayClick){X.bind("click",I.fancybox.close)}I(window).bind("resize.fb",I.fancybox.resize);if(N.centerOnScroll){I(window).bind("scroll.fb",I.fancybox.center)}if(N.type=="iframe"){I('<iframe id="fancybox-frame" name="fancybox-frame'+new Date().getTime()+'" frameborder="0" hspace="0" '+(I.browser.msie?'allowtransparency="true""':"")+' scrolling="'+O.scrolling+'" src="'+N.href+'"></iframe>').appendTo(r)}T.show();W=false;I.fancybox.center();N.onComplete(F,f,N);R()},R=function(){var ac,ad;if((F.length-1)>f){ac=F[f+1].href;if(typeof ac!=="undefined"&&ac.match(m)){ad=new Image();ad.src=ac}}if(f>0){ac=F[f-1].href;if(typeof ac!=="undefined"&&ac.match(m)){ad=new Image();ad.src=ac}}},ab=function(ad){var ac={width:parseInt(b.width+(c.width-b.width)*ad,10),height:parseInt(b.height+(c.height-b.height)*ad,10),top:parseInt(b.top+(c.top-b.top)*ad,10),left:parseInt(b.left+(c.left-b.left)*ad,10)};if(typeof c.opacity!=="undefined"){ac.opacity=ad<0.5?0.5:ad}T.css(ac);r.css({width:ac.width-N.padding*2,height:ac.height-(k*ad)-N.padding*2})},B=function(){return[I(window).width()-(N.margin*2),I(window).height()-(N.margin*2),I(document).scrollLeft()+N.margin,I(document).scrollTop()+N.margin]},Y=function(){var ac=B(),ag={},ad=N.autoScale,ae=N.padding*2,af;if(N.width.toString().indexOf("%")>-1){ag.width=parseInt((ac[0]*parseFloat(N.width))/100,10)}else{ag.width=N.width+ae}if(N.height.toString().indexOf("%")>-1){ag.height=parseInt((ac[1]*parseFloat(N.height))/100,10)}else{ag.height=N.height+ae}if(ad&&(ag.width>ac[0]||ag.height>ac[1])){if(O.type=="image"||O.type=="swf"){af=(N.width)/(N.height);if((ag.width)>ac[0]){ag.width=ac[0];ag.height=parseInt(((ag.width-ae)/af)+ae,10)}if((ag.height)>ac[1]){ag.height=ac[1];ag.width=parseInt(((ag.height-ae)*af)+ae,10)}}else{ag.width=Math.min(ag.width,ac[0]);ag.height=Math.min(ag.height,ac[1])}}ag.top=parseInt(Math.max(ac[3]-20,ac[3]+((ac[1]-ag.height-40)*0.5)),10);ag.left=parseInt(Math.max(ac[2]-20,ac[2]+((ac[0]-ag.width-40)*0.5)),10);return ag},x=function(ac){var ad=ac.offset();ad.top+=parseInt(ac.css("paddingTop"),10)||0;ad.left+=parseInt(ac.css("paddingLeft"),10)||0;ad.top+=parseInt(ac.css("border-top-width"),10)||0;ad.left+=parseInt(ac.css("border-left-width"),10)||0;ad.width=ac.width();ad.height=ac.height();return ad},P=function(){var af=O.orig?I(O.orig):false,ae={},ad,ac;if(af&&af.length){ad=x(af);ae={width:ad.width+(N.padding*2),height:ad.height+(N.padding*2),top:ad.top-N.padding-20,left:ad.left-N.padding-20}}else{ac=B();ae={width:N.padding*2,height:N.padding*2,top:parseInt(ac[3]+ac[1]*0.5,10),left:parseInt(ac[2]+ac[0]*0.5,10)}}return ae},a=function(){if(!aa.is(":visible")){clearInterval(v);return}I("div",aa).css("top",(U*-40)+"px");U=(U+1)%12};I.fn.fancybox=function(ac){if(!I(this).length){return this}I(this).data("fancybox",I.extend({},ac,(I.metadata?I(this).metadata():{}))).unbind("click.fb").bind("click.fb",function(ae){ae.preventDefault();if(W){return}W=true;I(this).blur();n=[];J=0;var ad=I(this).attr("rel")||"";if(!ad||ad==""||ad==="nofollow"){n.push(this)}else{n=I("a[rel="+ad+"], area[rel="+ad+"]");J=n.index(this)}D();return});return this};I.fancybox=function(af){var ae;if(W){return}W=true;ae=typeof arguments[1]!=="undefined"?arguments[1]:{};n=[];J=parseInt(ae.index,10)||0;if(I.isArray(af)){for(var ad=0,ac=af.length;ad<ac;ad++){if(typeof af[ad]=="object"){I(af[ad]).data("fancybox",I.extend({},ae,af[ad]))}else{af[ad]=I({}).data("fancybox",I.extend({content:af[ad]},ae))}}n=jQuery.merge(n,af)}else{if(typeof af=="object"){I(af).data("fancybox",I.extend({},ae,af))}else{af=I({}).data("fancybox",I.extend({content:af},ae))}n.push(af)}if(J>n.length||J<0){J=0}D()};I.fancybox.showActivity=function(){clearInterval(v);aa.show();v=setInterval(a,66)};I.fancybox.hideActivity=function(){aa.hide()};I.fancybox.next=function(){return I.fancybox.pos(f+1)};I.fancybox.prev=function(){return I.fancybox.pos(f-1)};I.fancybox.pos=function(ac){if(W){return}ac=parseInt(ac);n=F;if(ac>-1&&ac<F.length){J=ac;D()}else{if(N.cyclic&&F.length>1){J=ac>=F.length?0:F.length-1;D()}}return};I.fancybox.cancel=function(){if(W){return}W=true;I.event.trigger("fancybox-cancel");y();O.onCancel(n,J,O);W=false};I.fancybox.close=function(){if(W||T.is(":hidden")){return}W=true;if(N&&false===N.onCleanup(F,f,N)){W=false;return}y();I(Q.add(V).add(G)).hide();I(r.add(X)).unbind();I(window).unbind("resize.fb scroll.fb");I(document).unbind("keydown.fb");r.find("iframe").attr("src",Z&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");if(N.titlePosition!=="inside"){H.empty()}T.stop();function ac(){X.fadeOut("fast");H.empty().hide();T.hide();I.event.trigger("fancybox-cleanup");r.empty();N.onClosed(F,f,N);F=O=[];f=J=0;N=O={};W=false}if(N.transitionOut=="elastic"){b=P();var ad=T.position();c={top:ad.top,left:ad.left,width:T.width(),height:T.height()};if(N.opacity){c.opacity=1}H.empty().hide();z.prop=1;I(z).animate({prop:0},{duration:N.speedOut,easing:N.easingOut,step:ab,complete:ac})}else{T.fadeOut(N.transitionOut=="none"?0:N.speedOut,ac)}};I.fancybox.resize=function(){if(X.is(":visible")){X.css("height",I(document).height())}I.fancybox.center(true)};I.fancybox.center=function(){var ac,ad;if(W){return}ad=arguments[0]===true?1:0;ac=B();if(!ad&&(T.width()>ac[0]||T.height()>ac[1])){return}T.stop().animate({top:parseInt(Math.max(ac[3]-20,ac[3]+((ac[1]-r.height()-40)*0.5)-N.padding)),left:parseInt(Math.max(ac[2]-20,ac[2]+((ac[0]-r.width()-40)*0.5)-N.padding))},typeof arguments[0]=="number"?arguments[0]:200)};I.fancybox.init=function(){if(I("#fancybox-wrap").length){return}I("body").append(S=I('<div id="fancybox-tmp"></div>'),aa=I('<div id="fancybox-loading"><div></div></div>'),X=I('<div id="fancybox-overlay"></div>'),T=I('<div id="fancybox-wrap"></div>'));e=I('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(T);e.append(r=I('<div id="fancybox-content"></div>'),Q=I('<a id="fancybox-close"></a>'),H=I('<div id="fancybox-title"></div>'),V=I('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),G=I('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));Q.click(I.fancybox.close);aa.click(I.fancybox.cancel);V.click(function(ac){ac.preventDefault();I.fancybox.prev()});G.click(function(ac){ac.preventDefault();I.fancybox.next()});if(I.fn.mousewheel){T.bind("mousewheel.fb",function(ac,ad){if(W){ac.preventDefault()}else{if(I(ac.target).get(0).clientHeight==0||I(ac.target).get(0).scrollHeight===I(ac.target).get(0).clientHeight){ac.preventDefault();I.fancybox[ad>0?"prev":"next"]()}}})}if(!I.support.opacity){T.addClass("fancybox-ie")}if(Z){aa.addClass("fancybox-ie6");T.addClass("fancybox-ie6");I('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(e)}};I.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};I(document).ready(function(){I.fancybox.init()})})(jQuery);(function(e){var g={put:function(k,j){(j||window).location.hash=this.encoder(k)},get:function(m){var k=((m||window).location.hash).replace(/^#/,"");try{return e.browser.mozilla?k:decodeURIComponent(k)}catch(j){return k}},encoder:encodeURIComponent};var c={id:"__jQuery_history",init:function(){var j='<iframe id="'+this.id+'" style="display:none" src="javascript:false;" />';e("body").prepend(j);return this},_document:function(){return e("#"+this.id)[0].contentWindow.document},put:function(k){var j=this._document();j.open();j.close();g.put(k,j)},get:function(){return g.get(this._document())}};function f(k){k=e.extend({unescape:false},k||{});g.encoder=m(k.unescape);function m(n){if(n===true){return function(o){return o}}if(typeof n=="string"&&(n=j(n.split("")))||typeof n=="function"){return function(o){return n(encodeURIComponent(o))}}return encodeURIComponent}function j(o){var n=new RegExp(e.map(o,encodeURIComponent).join("|"),"ig");return function(q){return q.replace(n,decodeURIComponent)}}}var b={};b.base={callback:undefined,type:undefined,check:function(){},load:function(j){},init:function(k,j){f(j);a.callback=k;a._options=j;a._init()},_init:function(){},_options:{}};b.timer={_appState:undefined,_init:function(){var j=g.get();a._appState=j;a.callback(j);setInterval(a.check,100)},check:function(){var j=g.get();if(j!=a._appState){a._appState=j;a.callback(j)}},load:function(j){if(j!=a._appState){g.put(j);a._appState=j;a.callback(j)}}};b.iframeTimer={_appState:undefined,_init:function(){var j=g.get();a._appState=j;c.init().put(j);a.callback(j);setInterval(a.check,100)},check:function(){var k=c.get(),j=g.get();if(j!=k){if(j==a._appState){a._appState=k;g.put(k);a.callback(k)}else{a._appState=j;c.put(j);a.callback(j)}}},load:function(j){if(j!=a._appState){g.put(j);c.put(j);a._appState=j;a.callback(j)}}};b.hashchangeEvent={_init:function(){a.callback(g.get());e(window).bind("hashchange",a.check)},check:function(){a.callback(g.get())},load:function(j){g.put(j)}};var a=e.extend({},b.base);if(e.browser.msie&&(e.browser.version<8||document.documentMode<8)){a.type="iframeTimer"}else{if("onhashchange" in window){a.type="hashchangeEvent"}else{a.type="timer"}}e.extend(a,b[a.type]);e.history=a})(jQuery);(function(a){jQuery.fn.pngFix=function(e){e=jQuery.extend({blankgif:"blank.gif"},e);var c=(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 5.5")!=-1);var b=(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 6.0")!=-1);if(jQuery.browser.msie&&(c||b)){jQuery(this).find("img[src$=.png]").each(function(){jQuery(this).attr("width",jQuery(this).width());jQuery(this).attr("height",jQuery(this).height());var q="";var j="";var g=(jQuery(this).attr("id"))?'id="'+jQuery(this).attr("id")+'" ':"";var r=(jQuery(this).attr("class"))?'class="'+jQuery(this).attr("class")+'" ':"";var m=(jQuery(this).attr("title"))?'title="'+jQuery(this).attr("title")+'" ':"";var n=(jQuery(this).attr("alt"))?'alt="'+jQuery(this).attr("alt")+'" ':"";var k=(jQuery(this).attr("align"))?"float:"+jQuery(this).attr("align")+";":"";var f=(jQuery(this).parent().attr("href"))?"cursor:hand;":"";if(this.style.border){q+="border:"+this.style.border+";";this.style.border=""}if(this.style.padding){q+="padding:"+this.style.padding+";";this.style.padding=""}if(this.style.margin){q+="margin:"+this.style.margin+";";this.style.margin=""}var o=(this.style.cssText);j+="<span "+g+r+m+n;j+='style="position:relative;white-space:pre-line;display:inline-block;background:transparent;'+k+f;j+="width:"+jQuery(this).width()+"px;height:"+jQuery(this).height()+"px;";j+="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+jQuery(this).attr("src")+"', sizingMethod='scale');";j+=o+'"></span>';if(q!=""){j='<span style="position:relative;display:inline-block;'+q+f+"width:"+jQuery(this).width()+"px;height:"+jQuery(this).height()+'px;">'+j+"</span>"}jQuery(this).hide();jQuery(this).after(j)});jQuery(this).find("*").each(function(){var g=jQuery(this).css("background-image");if(g.indexOf(".png")!=-1){var f=g.split('url("')[1].split('")')[0];jQuery(this).css("background-image","none");jQuery(this).get(0).runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+f+"',sizingMethod='scale')"}});jQuery(this).find("input[src$=.png]").each(function(){var f=jQuery(this).attr("src");jQuery(this).get(0).runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+f+"', sizingMethod='scale');";jQuery(this).attr("src",e.blankgif)})}return jQuery}})(jQuery);(function(c){var a=c.scrollTo=function(g,f,e){c(window).scrollTo(g,f,e)};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};a.window=function(e){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){var f=this,e=!f.nodeName||c.inArray(f.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!e){return f}var g=(f.contentWindow||f).document||f.ownerDocument||f;return c.browser.safari||g.compatMode=="BackCompat"?g.body:g.documentElement})};c.fn.scrollTo=function(g,f,e){if(typeof f=="object"){e=f;f=0}if(typeof e=="function"){e={onAfter:e}}if(g=="max"){g=9000000000}e=c.extend({},a.defaults,e);f=f||e.speed||e.duration;e.queue=e.queue&&e.axis.length>1;if(e.queue){f/=2}e.offset=b(e.offset);e.over=b(e.over);return this._scrollable().each(function(){var q=this,n=c(q),o=g,m,j={},r=n.is("html,body");switch(typeof o){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(o)){o=b(o);break}o=c(o,this);case"object":if(o.is||o.style){m=(o=c(o)).offset()}}c.each(e.axis.split(""),function(x,y){var z=y=="x"?"Left":"Top",B=z.toLowerCase(),v="scroll"+z,u=q[v],s=a.max(q,y);if(m){j[v]=m[B]+(r?0:u-n.offset()[B]);if(e.margin){j[v]-=parseInt(o.css("margin"+z))||0;j[v]-=parseInt(o.css("border"+z+"Width"))||0}j[v]+=e.offset[B]||0;if(e.over[B]){j[v]+=o[y=="x"?"width":"height"]()*e.over[B]}}else{var A=o[B];j[v]=A.slice&&A.slice(-1)=="%"?parseFloat(A)/100*s:A}if(/^\d+$/.test(j[v])){j[v]=j[v]<=0?0:Math.min(j[v],s)}if(!x&&e.queue){if(u!=j[v]){k(e.onAfterFirst)}delete j[v]}});k(e.onAfter);function k(s){n.animate(j,f,e.easing,s&&function(){s.call(this,g,e)})}}).end()};a.max=function(n,m){var k=m=="x"?"Width":"Height",f="scroll"+k;if(!c(n).is("html,body")){return n[f]-c(n)[k.toLowerCase()]()}var j="client"+k,g=n.ownerDocument.documentElement,e=n.ownerDocument.body;return Math.max(g[f],e[f])-Math.min(g[j],e[j])};function b(e){return typeof e=="object"?e:{top:e,left:e}}})(jQuery);(function(f,b){var c=function(j){var g,k=[];for(g in j){k.push(g+'="'+j[g]+'"')}return k.join("")},e=function(k){var g,n,m=[],j;for(g in k){if(typeof k[g]=="object"){j=[];for(n in k[g]){j.push([n,"=",encodeURIComponent(k[g][n])].join(""))}k[g]=j.join("&amp;")}m.push(['<param name="',g,'" value="',k[g],'" />'].join(""))}return m.join("")},a=false;f[b]=(function(){var g="0,0,0",j=navigator.plugins["Shockwave Flash"];if(window.ActiveXObject){j=window.ActiveXObject}if(!j){j=""}g=j.description||(function(){d="noflash 0,0,0";try{var k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");d=k.GetVariable("$version")}catch(m){try{var k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");d="flashv6 6,0,21"}catch(m){try{var k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");d=k.GetVariable("$version")}catch(m){}}}return d.split(" ")[1]}());g=g.match(/^[A-Za-z\s]*?(\d+)[\.|,](\d+)(?:\s+r|,)(\d+)/);return{available:g[1]>0,activeX:!j.name,version:{major:g[1]*1,minor:g[2]*1,release:g[3]*1},hasVersion:function(m){var q=this.version,n="major",o="minor",k="release";m=(/string|number/.test(typeof m))?m.toString().split("."):m||[0,0,0];m=[m[n]||m[0]||q[n],m[o]||m[1]||q[o],m[k]||m[2]||q[k]];return(m[0]<q[n])||(m[0]==q[n]&&m[1]<q[o])||(m[0]==q[n]&&m[1]==q[o]&&m[2]<=q[k])},expressInstall:"/includes/rotator/expressInstall.swf",create:function(k){if(!f[b].available||a||!typeof k=="object"||!k.swf){return""}if(k.hasVersion&&!f[b].hasVersion(k.hasVersion)){k={swf:k.expressInstall||f[b].expressInstall,attrs:{height:Math.max(k.height||137),width:Math.max(k.width||214)},params:{wmode:k.params.wmode||"opaque",flashvars:{MMredirectURL:location.href,MMplayerType:(f[b].activeX)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}};a=true}else{k=f.extend(true,{attrs:{height:k.height||180,width:k.width||320},params:{wmode:k.wmode||"opaque",flashvars:k.flashvars}},k)}return"<object "+(c(k.attrs))+(f[b].activeX?' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="'+k.swf+'" />':' type="application/x-shockwave-flash" data="'+k.swf+'">')+(e(k.params))+"</object>"}}}());f.fn[b]=function(g){if(typeof g=="object"){this.each(function(){var j=document.createElement(b);j.innerHTML=f[b].create(g);if(j.childNodes[0]){this.appendChild(j.childNodes[0])}})}else{if(typeof g=="function"){this.find("object").andSelf().filter("object").each(function(){var k=this,j="jsInteractionTimeoutMs";k[j]=k[j]||0;if(k[j]<660){if(k.clientWidth||k.clientHeight){g.call(this)}else{setTimeout(function(){f(k)[b](g)},k[j]+66)}}})}}return this}}(jQuery,"flash"));jQuery.fn.extend({everyTime:function(b,c,e,f,a){return this.each(function(){jQuery.timer.add(this,b,c,e,f,a)})},oneTime:function(a,b,c){return this.each(function(){jQuery.timer.add(this,a,b,c,1)})},stopTime:function(a,b){return this.each(function(){jQuery.timer.remove(this,a,b)})}});jQuery.extend({timer:{global:[],guid:1,dataKey:"jQuery.timer",regex:/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,timeParse:function(c){if(c==undefined||c==null){return null}var a=this.regex.exec(jQuery.trim(c.toString()));if(a[2]){var b=parseFloat(a[1]);var e=1;return b*e}else{return c}},add:function(f,c,k,j,b,g){var a=0;if(jQuery.isFunction(k)){if(!b){b=j}j=k;k=c}c=jQuery.timer.timeParse(c);if(typeof c!="number"||isNaN(c)||c<=0){return}if(b&&b.constructor!=Number){g=!!b;b=0}b=b||0;g=g||false;var e=jQuery.data(f,this.dataKey)||jQuery.data(f,this.dataKey,{});if(!e[k]){e[k]={}}j.timerID=j.timerID||this.guid++;var m=function(){if(g&&this.inProgress){return}this.inProgress=true;if((++a>b&&b!==0)||j.call(f,a)===false){jQuery.timer.remove(f,k,j)}this.inProgress=false};m.timerID=j.timerID;if(!e[k][j.timerID]){e[k][j.timerID]=window.setInterval(m,c)}this.global.push(f)},remove:function(c,b,e){var f=jQuery.data(c,this.dataKey),a;if(f){if(!b){for(b in f){this.remove(c,b,e)}}else{if(f[b]){if(e){if(e.timerID){window.clearInterval(f[b][e.timerID]);delete f[b][e.timerID]}}else{for(var e in f[b]){window.clearInterval(f[b][e]);delete f[b][e]}}for(a in f[b]){break}if(!a){a=null;delete f[b]}}}for(a in f){break}if(!a){jQuery.removeData(c,this.dataKey)}}}}});jQuery(window).bind("unload",function(){jQuery.each(jQuery.timer.global,function(a,b){jQuery.timer.remove(b)})});$(function(){$.afterDownload=function(b,a){b.click(function(){if(a.url){url=a.url}else{url=b.attr(a.attr_url)}timeout=b.attr(a.attr_timeout);if(!timeout&&a.timeout){timeout=a.timeout}else{return}if(url){setTimeout(function(){document.location.href=url},timeout)}})};$.fn.afterDownload=function(c){var b=0,e;default_option={url:"",timeout:5000,attr_url:"after-download",attr_timeout:"after-download-timeout"};while((e=this.eq(b++))[0]){$.afterDownload(e,$.extend({},c))}return this}}(jQuery));$(document).ready(function(){$.flash.expressInstall="http://www.auslogics.com/includes/rotator/expressInstall.swf";header_menu();search_box();language_box();png_fix()});var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-9231373-1"]);_gaq.push(["_setDomainName","none"]);_gaq.push(["_setAllowLinker",true]);_gaq.push(["_setAllowHash",false]);_gaq.push(["_trackPageview"]);(function(){var b=document.createElement("script");b.type="text/javascript";b.async=true;b.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)})();function ShowSelector(){var a=document.createElement("link");a.type="text/css";a.href="/includes/product-selector/selector.css";a.rel="stylesheet";var b=document.getElementsByTagName("link")[0];b.parentNode.insertBefore(a,b);$.getScript("/includes/product-selector/selector.js.php?lang=en",function(){try{PS_Show()}catch(c){}})}function header_menu(){$("ul#header-menu li").mouseover(function(){$(this).stopTime("hide");$(this).oneTime(40,"show",function(){$(">ul",this).fadeIn(90,function(){$(this).dropShadow()})})});$("ul#header-menu li").mouseout(function(){$(this).stopTime("show");$(this).oneTime(90,"hide",function(){$(this).removeShadow();$(">ul",this).css("display","none")})})}function search_box(){$("form input[value=Искать]").focus(function(){if($(this).attr("type")=="submit"){return false}if($(this).val()=="Искать"){$(this).val("")}}).blur(function(){if($(this).val()==""){$(this).val("Искать")}});$("form input[value=Search]").focus(function(){if($(this).attr("type")=="submit"){return false}if($(this).val()=="Search"){$(this).val("")}}).blur(function(){if($(this).val()==""){$(this).val("Search")}})}function language_box(){$("#change-language").click(function(){$("#language-box ul").fadeIn(90,function(){$("#language-box ul").dropShadow()});return false});$("#language-box").mouseover(function(){$(this).stopTime("language")});$("#language-box").mouseout(function(){$(this).oneTime(90,"language",function(){$("#language-box ul").removeShadow();$("#language-box ul").hide()})})}function png_fix(){if($.fn.pngFix){$("#fancy_bg, #selector-win").pngFix()}}$(document).ready(function(){ReplaceLinkToHash();FancyHistory();FancyScreenshots();MoreVersionHistory();FaqClicks();HistoryTabs();ScrollToTabs();AddZoomIcons();AfterDownload()});function AfterDownload(){$("a[after-download]").afterDownload({attr_url:"after-download",timeout:5000})}function AddZoomIcons(){var a="/includes/software-design2/img/zoom.png";var e=[];var c=function(f){var g=$("img",f).offset();l=g.left;t=g.top;w=$("img",f).outerWidth();h=$("img",f).outerHeight();zx=l+w-31-6;zy=t+h-30-5;return[zx,zy]};var b=function(f){for(i in f){$a=f[i];pos=c($a);$(".zoom",$a).css({top:pos[1],left:pos[0]})}};$("a.fancy:has(img)").each(function(){$a=$(this);$zx=c($a)[0];$zy=c($a)[1];if($.browser.msie&&$.browser.version<7){if(zy<200){return}$zoom=$("<span class='zoom'></span>");$zoom.css({display:"block",cursor:"hand",overflow:"hidden",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+a+"', sizingMethod='scale')"})}else{$zoom=$("<img class='zoom' src='"+a+"' alt=''/>")}$zoom.css({position:"absolute",top:zy+"px",left:zx+"px",width:"31px",height:"30px",background:"none",padding:"0px"});$a.append($zoom);e.push($a)});$(window).resize(b(e))}function ScrollToTabs(){$("a.scroll-to-tabs").live("click",function(){$tabs=$("#tabs");offset=$tabs.offset();$(window).scrollTo(offset.top)})}function FaqClicks(){$("ul li a.faq").unbind("click");$("#faq a.faq").live("click",function(a){if(a.button!=0){return true}ToggleFaq($(this).attr("href").split("#")[1]);return false})}function ShowFaq(a){old_height=$(document).height();$(".faq li div.answer").each(function(){$(this).hide(300);$(this).prev().removeClass("faq_open")});$("#"+a).slideDown(300,function(){UpdateFooterPosition();new_height=$(document).height();if(old_height<new_height){$(window).scrollTo("+="+(new_height-old_height)+"px",{axis:"y",duration:300})}});$("#"+a).prev().addClass("faq_open")}function HideFaq(a){$("#"+a).prev().removeClass("faq_open");$("#"+a).hide();UpdateFooterPosition()}function ToggleFaq(a){if($("#"+a).is(":hidden")){ShowFaq(a)}else{HideFaq(a)}}function MoreVersionHistory(){$("#details a.more").live("click",function(){$("#details .hidden").removeClass("hidden");$(this).hide();UpdateFooterPosition();return false})}function HistoryTabs(){$.history.init(HistoryTabs_HashChanged)}var old_hash="";var $ajax_request;function HistoryTabs_HashChanged(a){params=null;section_id=null;if(a){if(matches=a.match(/^(.*?)\-(.*?)$/)){section_id=matches[1];params=matches[2];url="./"+section_id+"/?page="+params+"&ajax=1"}else{section_id=a;url="./"+section_id+"/?ajax=1"}}else{url="./?ajax=1"}if(a!=old_hash){LoadingStart(section_id,params);if($ajax_request){$ajax_request.abort()}$ajax_request=$.ajax({type:"GET",url:url,cache:true,success:function(b){HistoryTabs_AjaxedPageSuccess(b,section_id,params);LoadingStop(section_id,params)}});old_hash=a}}function HistoryTabs_AjaxedPageSuccess(b,a,e){var c=$("#tabs").next();$("#tabs").next().remove();$("#tabs").after(b);$("#tabs").next().css("zoom","100%");$("#tabs").next().css("overflow","hidden");if(a=="faq"&&e){ToggleFaq("faq-"+e)}UpdateFooterPosition();ReplaceLinkToHash($("#tabs").next());AddZoomIcons()}function LoadingStart(a,e){var b=$("#tabs").next();if(a){var f=$("#tabs a[href*="+a+"]").closest("li")}else{var f=$("#tabs li:first")}$("#tabs li").removeClass("current").removeClass("loading");f.addClass("loading");var c=b.offset();b.append("<div id='panel-shadow'></div>");$("#panel-shadow").css({position:"absolute",top:c.top+"px",left:c.left+"px",width:b.width()+20+"px",height:b.height()+20+"px","z-index":1000,opacity:0.5,background:"#ffffff"})}function LoadingStop(b,c){$("#tabs li.current").removeClass("current");$("#tabs li.loading").removeClass("loading");var a=$("#tabs a[href*="+b+"]");if(a.length>0){a=a.closest("li")}else{a=$("#tabs li:first")}a.addClass("current")}function UpdateFooterPosition(){if($.browser.opera||($.browser.msie&&$.browser.version<9)){footer_h=$("#site-footer").outerHeight();site_h=$("#site-container").outerHeight();h=site_h-footer_h;$("#site-footer").css("top",h+"px")}if($.browser.msie&&$.browser.version==9){$("html").css("overflow-y","hidden");$("html").css("height","100%");$("#site-container").css("height","auto");$("html").css("overflow-y","scroll")}}function FancyHistory(){$("a.history").live("click",function(a){if(a.button!=0){return true}url=$(this).attr("href")+"?ajax=1";$.fancybox(url,{type:"ajax",hideOnContentClick:false,hideOnOverlayClick:false,autoDimensions:false,width:700,height:500,centerOnScroll:true});return false})}function FancyScreenshots(){$("a.fancy").live("click",function(a){if(a.button!=0){return true}$.fancybox($(this).attr("href"),{type:"image",hideOnOverlayClick:true,hideOnContentClick:true,centerOnScroll:true});return false})}function ReplaceLinkToHash(a){links="#tabs a, a.ajax, .navigation a";if(a){$hrefs=$(links,a)}else{$hrefs=$(links)}url_regexp=/^\/(([^\/]+\/){3})([^\/]+)?\/?$/;$hrefs.each(function(){url=$(this).attr("href");if(!(/#/.test(url))){url=url.replace(/^http.*?\.com/,"");if(matches=url.match(url_regexp)){if(matches[3]){url="/"+matches[1]+"#"+matches[3]}else{url="/"+matches[1]+"#overview"}}$(this).attr("href",url)}})};
