/*
 * jQuery Plugins Container
 * 
 * Including (in order): 
 *    jdMenu 1.4.1		(2008-MAR-31)
 *    positionBy 1.0.7	(2008-JAN-29)
 *    bgiframe 2.1.1	(2007-JUL-21)
 *    dimensions 1.2	(2007-DEC-20)
 *    available 1.5.1	(2010-MAY-07)
 *    color (animations)(2007)
 *    tooltip 1.1		(2010-NOV-05)
 *    cycle  2.99		(2011-MAR-12)
 */

jqueryPluginsLoaded = true;

/*
 * jdMenu 1.4.1 (2008-03-31)
 *
 * Copyright (c) 2006,2007 Jonathan Sharp (http://jdsharp.us)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://jdsharp.us/
 *
 * Built upon jQuery 1.2.1 (http://jquery.com)
 * This also requires the jQuery dimensions >= 1.2 plugin
 */
jQuery(document).ready(function($) {$('ul.jd_menu').jdMenu();});
(function(b){function e(a){var d=b.data(b(a).parents().andSelf().filter("ul.jd_menu")[0],"jdMenuSettings");b("> li",a).bind("mouseenter.jdmenu mouseleave.jdmenu",function(a){b(this).toggleClass("jdm_hover");var c=b("> ul",this);if(c.length==1){clearTimeout(this.$jdTimer);var e=(a=a.type=="mouseenter")?f:g;this.$jdTimer=setTimeout(function(){e(c[0],d.onAnimate,d.isVertical)},a?d.showDelay:d.hideDelay)}}).bind("click.jdmenu",function(a){var c=b("> ul",this);if(c.length==1&&(d.disableLinks==!0||b(this).hasClass("accessible")))return f(c, d.onAnimate,d.isVertical),!1;a.target==this&&(c=b("> a",a.target).not(".accessible"),c.length>0&&(c=c[0],c.onclick?b(c).trigger("click"):window.open(c.href,c.target||"_self")));if(d.disableLinks||!d.disableLinks&&!b(this).parent().hasClass("jd_menu"))b(this).parent().jdMenuHide(),a.stopPropagation()}).find("> a").bind("focus.jdmenu blur.jdmenu",function(a){var c=b(this).parents("li:eq(0)");a.type=="focus"?c.addClass("jdm_hover"):c.removeClass("jdm_hover")}).filter(".accessible").bind("click.jdmenu", function(a){a.preventDefault()})}function f(a,d,f){a=b(a);if(!a.is(":visible")){a.bgiframe();var c=a.parent();a.trigger("jdMenuShow").positionBy({target:c[0],targetPos:f===!0||!c.parent().hasClass("jd_menu")?1:3,elementPos:0,hideAfterPosition:!0});a.hasClass("jdm_events")||(a.addClass("jdm_events"),e(a));c.addClass("jdm_active").siblings("li").find("> ul:eq(0):visible").each(function(){g(this)});d===void 0?a.show():d.apply(a[0],[!0])}}function g(a,d){a=b(a);b(".bgiframe",a).remove();a.filter(":not(.jd_menu)").find("> li > ul:eq(0):visible").each(function(){g(this)}).end(); d===void 0?a.hide():d.apply(a[0],[!1]);a.trigger("jdMenuHide").parents("li:eq(0)").removeClass("jdm_active jdm_hover").end().find("> li").removeClass("jdm_active jdm_hover")}b.fn.jdMenu=function(a){a=b.extend({showDelay:0,hideDelay:500,disableLinks:!1},a);if(!b.isFunction(a.onAnimate))a.onAnimate=void 0;return this.filter("ul.jd_menu").each(function(){b.data(this,"jdMenuSettings",b.extend({isVertical:b(this).hasClass("jd_menu_vertical")},a));e(this)})};b.fn.jdMenuUnbind=function(){b("ul.jdm_events", this).unbind(".jdmenu").find("> a").unbind(".jdmenu")};b.fn.jdMenuHide=function(){return this.filter("ul").each(function(){g(this)})};b(window).bind("click.jdmenu",function(){b("ul.jd_menu ul:visible").jdMenuHide()})})(jQuery);


/*
 * positionBy 1.0.7 (2008-01-29)
 *
 * Copyright (c) 2006,2007 Jonathan Sharp (http://jdsharp.us)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://jdsharp.us/
 *
 * Built upon jQuery 1.2.2 (http://jquery.com)
 * This also requires the jQuery dimensions plugin
 */
(function(m){var d=function(b,c,d,m){this.x1=b;this.x2=d;this.y1=c;this.y2=m};d.prototype.contains=function(b){return this.x1<=b.x1&&b.x2<=this.x2&&this.y1<=b.y1&&b.y2<=this.y2};d.prototype.transform=function(b,c){return new d(this.x1+b,this.y1+c,this.x2+b,this.y2+c)};m.fn.positionBy=function(b){if(this.length==0)return this;b=m.extend({target:null,targetPos:null,elementPos:null,x:null,y:null,positions:null,addClass:!1,force:!1,container:window,hideAfterPosition:!1},b);if(b.x!=null)var c=b.x,h=b.y, p=0,q=0;else var l=m(m(b.target)[0]),p=l.outerWidth(),q=l.outerHeight(),l=l.offset(),c=l.left,h=l.top;var j=c+p,k=h+q;return this.each(function(){var n=m(this);n.is(":visible")||n.css({left:-3E3,top:-3E3}).show();var g=n.outerWidth(),e=n.outerHeight(),f=[],i=[];f[0]=new d(j,h,j+g,h+e);i[0]=[1,7,4];f[1]=new d(j,k-e,j+g,k);i[1]=[0,6,4];f[2]=new d(j,k,j+g,k+e);i[2]=[1,3,10];f[3]=new d(j-g,k,j,k+e);i[3]=[1,6,10];f[4]=new d(c,k,c+g,k+e);i[4]=[1,6,9];f[5]=new d(c-g,k,c,k+e);i[5]=[6,4,9];f[6]=new d(c-g, k-e,c,k);i[6]=[7,1,4];f[7]=new d(c-g,h,c,h+e);i[7]=[6,0,4];f[8]=new d(c-g,h-e,c,h);i[8]=[7,9,4];f[9]=new d(c,h-e,c+g,h);i[9]=[0,7,4];f[10]=new d(j-g,h-e,j,h);i[10]=[0,7,3];f[11]=new d(j,h-e,j+g,h);i[11]=[0,10,3];f[12]=new d(j-g,h,j,h+e);i[12]=[13,7,10];f[13]=new d(j-g,k-e,j,k);i[13]=[12,6,3];f[14]=new d(c,k-e,c+g,k);i[14]=[15,1,4];f[15]=new d(c,h,c+g,h+e);i[15]=[14,0,9];if(b.positions!==null)var a=b.positions[0];else b.targetPos!=null&&b.elementPos!=null&&(a=[],a[0]=[],a[0][0]=15,a[0][1]=7,a[0][2]= 8,a[0][3]=9,a[1]=[],a[1][0]=0,a[1][1]=12,a[1][2]=10,a[1][3]=11,a[2]=[],a[2][0]=2,a[2][1]=3,a[2][2]=13,a[2][3]=1,a[3]=[],a[3][0]=4,a[3][1]=5,a[3][2]=6,a[3][3]=14,a=a[b.targetPos][b.elementPos]);var l=f[a];if(!b.force){$window=m(window);g=$window.scrollLeft();e=$window.scrollTop();g=new d(g,e,g+$window.width(),e+$window.height());a=b.positions?b.positions:[a];for(e=[];a.length>0;){var o=a.shift();if(!e[o])if(e[o]=!0,g.contains(f[o])){l=f[o];break}else b.positions===null&&(a=jQuery.merge(a,i[o]))}}n.parents().each(function(){var a= m(this);if(a.css("position")!="static")return a=a.offset(),l=l.transform(-a.left,-a.top),!1});f={left:l.x1,top:l.y1};b.hideAfterPosition&&(f.display="none");n.css(f);b.addClass&&n.removeClass("positionBy0 positionBy1 positionBy2 positionBy3 positionBy4 positionBy5 positionBy6 positionBy7 positionBy8 positionBy9 positionBy10 positionBy11 positionBy12 positionBy13 positionBy14 positionBy15").addClass("positionBy"+o)})}})(jQuery);


/* 
 * bgiframe, version 2.1.1
 * 
 * Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-07-21 18:44:59 -0500 (Sat, 21 Jul 2007) $
 * $Rev: 2446 $

 * @author Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 */
(function(b){b.fn.bgIframe=b.fn.bgiframe=function(a){if(b.browser.msie&&parseInt(b.browser.version)===6){var a=b.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:!0,src:"javascript:false;"},a||{}),c=function(a){return a&&a.constructor==Number?a+"px":a},d='<iframe class="bgiframe" frameborder="0" tabindex="-1" src="'+a.src+'"style="display:block;position:absolute;z-index:-1;'+(a.opacity!==!1?"filter:Alpha(Opacity='0');":"")+"top:"+(a.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')": c(a.top))+";left:"+(a.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":c(a.left))+";width:"+(a.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":c(a.width))+";height:"+(a.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":c(a.height))+';"/>';return this.each(function(){b("> iframe.bgiframe",this).length==0&&this.insertBefore(document.createElement(d),this.firstChild)})}return this}})(jQuery);


/* 
 * Dimensions, version 1.2
 * 
 * Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-12-20 08:46:55 -0600 (Thu, 20 Dec 2007) $
 * $Rev: 4259 $
 *
 * Requires: jQuery 1.2+
 */
(function(c){function d(b,a){return parseInt(c.curCSS(b.jquery?b[0]:b,a,!0))||0}c.dimensions={version:"1.2"};c.each(["Height","Width"],function(b,a){c.fn["inner"+a]=function(){if(this[0]){var b=a=="Height"?"Top":"Left",c=a=="Height"?"Bottom":"Right";return this.is(":visible")?this[0]["client"+a]:d(this,a.toLowerCase())+d(this,"padding"+b)+d(this,"padding"+c)}};c.fn["outer"+a]=function(b){if(this[0]){var e=a=="Height"?"Top":"Left",f=a=="Height"?"Bottom":"Right",b=c.extend({margin:!1},b||{});return(this.is(":visible")? this[0]["offset"+a]:d(this,a.toLowerCase())+d(this,"border"+e+"Width")+d(this,"border"+f+"Width")+d(this,"padding"+e)+d(this,"padding"+f))+(b.margin?d(this,"margin"+e)+d(this,"margin"+f):0)}}});c.each(["Left","Top"],function(b,a){c.fn["scroll"+a]=function(b){if(this[0])return b!=void 0?this.each(function(){this==window||this==document?window.scrollTo(a=="Left"?b:c(window).scrollLeft(),a=="Top"?b:c(window).scrollTop()):this["scroll"+a]=b}):this[0]==window||this[0]==document?self[a=="Left"?"pageXOffset": "pageYOffset"]||c.boxModel&&document.documentElement["scroll"+a]||document.body["scroll"+a]:this[0]["scroll"+a]}});c.fn.extend({position:function(){var b=this[0],a,c,e;b&&(e=this.offsetParent(),a=this.offset(),c=e.offset(),a.top-=d(b,"marginTop"),a.left-=d(b,"marginLeft"),c.top+=d(e,"borderTopWidth"),c.left+=d(e,"borderLeftWidth"),a={top:a.top-c.top,left:a.left-c.left});return a},offsetParent:function(){for(var b=this[0].offsetParent;b&&!/^body|html$/i.test(b.tagName)&&c.css(b,"position")=="static";)b= b.offsetParent;return c(b)}})})(jQuery);


/* jQuery available Plugin 1.5.1 (20100507)
 * By John Terenzio | http://plugins.jquery.com/project/available | MIT License
 */ 
(function($){$.available={list:[],interval:null,poll:function(){for(var i=0;i<$.available.list.length;i++){if($($.available.list[i][0]).length&&($.available.list[i][2]||$($.available.list[i][0]).next().length||$.isReady)){try{$.available.list[i][1].apply($($.available.list[i][0]).eq(0));}catch(e){if(typeof console!='undefined'){console.log(e);}}$.available.list=$.available.list.slice(0,i).concat($.available.list.slice(i+1));i--;}}if(!$.available.list.length||$.isReady){$.available.interval=clearInterval($.available.interval);}}};$.fn.available=function(fn,turbo){turbo=turbo||false;$.available.list.push([this.selector,fn,turbo]);if(!$.available.interval){$.available.interval=setInterval($.available.poll,1);}return this;};})(jQuery);


/*
 * jQuery Color Animations
 * Copyright 2007 John Resig
 * Released under the MIT and GPL licenses.
 */
(function(d){function f(b){var a;if(b&&b.constructor==Array&&b.length==3)return b;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b))return[parseInt(a[1],16),parseInt(a[2], 16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];return h[d.trim(b).toLowerCase()]}if(!d.fx.step)d.fx.step={};d.each(["backgroundColor","borderColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(b,a){d.fx.step[a]=function(c){var b;b=c.elem;var g=a,e;do{e=d.curCSS(b,g);if(e!=""&&e!="transparent"||d.nodeName(b,"body"))break;g="backgroundColor"}while(b= b.parentNode);b=f(e);c.start=b;c.end=f(c.end);c.elem.style[a]="rgb("+[Math.max(Math.min(parseInt(c.pos*(c.end[0]-c.start[0])+c.start[0]),255),0),Math.max(Math.min(parseInt(c.pos*(c.end[1]-c.start[1])+c.start[1]),255),0),Math.max(Math.min(parseInt(c.pos*(c.end[2]-c.start[2])+c.start[2]),255),0)].join(",")+")"}});var h={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169], darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0, 0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery);


/*
 * jQuery Tooltip plugin 1.2
 *
 * http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
 * http://docs.jquery.com/Plugins/Tooltip
 *
 * Copyright (c) 2006 - 2008 Jörn Zaefferer
 *
 * $Id: jquery.plugins.js,v 1.4.2.1 2011/07/05 19:23:41 robrien Exp $
 * 
 * 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){function d(a){return b.data(a,"tooltip-settings")}function p(a){d(this).delay?j=setTimeout(l,d(this).delay):l();m=!!d(this).track;b(document.body).bind("mousemove",i);i(a)}function q(){if(!b.tooltip.blocked&&!(this==e||!this.tooltipText&&!d(this).bodyHandler)){e=this;k=this.tooltipText;if(d(this).bodyHandler){a.title.hide();var c=d(this).bodyHandler.call(this);c.nodeType||c.jquery?a.body.empty().append(c):a.body.html(c);a.body.show()}else if(d(this).showBody){c=k.split(d(this).showBody); a.title.html(c.shift()).show();a.body.empty();for(var f=0,g;g=c[f];f++)f>0&&a.body.append("<br/>"),a.body.append(g);a.body.hideWhenEmpty()}else a.title.html(k).show(),a.body.hide();d(this).showURL&&b(this).url()?a.url.html(b(this).url().replace("http://","")).show():a.url.hide();a.parent.addClass(d(this).extraClass);d(this).fixPNG&&a.parent.fixPNG();p.apply(this,arguments)}}function l(){j=null;a.parent.show();i()}function i(c){if(!b.tooltip.blocked)if(!m&&a.parent.is(":visible")&&b(document.body).unbind("mousemove", i),e==null)b(document.body).unbind("mousemove",i);else{a.parent.removeClass("viewport-right").removeClass("viewport-bottom");var f=a.parent[0].offsetLeft,g=a.parent[0].offsetTop;c&&(f=c.pageX+d(e).left,g=c.pageY+d(e).top,a.parent.css({left:f+"px",top:g+"px"}));var c={x:b(window).scrollLeft(),y:b(window).scrollTop(),cx:b(window).width(),cy:b(window).height()},h=a.parent[0];c.x+c.cx<h.offsetLeft+h.offsetWidth&&(f-=h.offsetWidth+20+d(e).left,a.parent.css({left:f+"px"}).addClass("viewport-right"));c.y+ c.cy<h.offsetTop+h.offsetHeight&&(g-=h.offsetHeight+20+d(e).top,a.parent.css({top:g+"px"}).addClass("viewport-bottom"))}}function n(){b.tooltip.blocked||(j&&clearTimeout(j),e=null,a.parent.hide().removeClass(d(this).extraClass),d(this).fixPNG&&a.parent.unfixPNG())}var a={},e,k,j,o=b.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),m=!1;b.tooltip={blocked:!1,defaults:{delay:200,showURL:!0,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){b.tooltip.blocked=!b.tooltip.blocked}};b.fn.extend({tooltip:function(c){c= b.extend({},b.tooltip.defaults,c);if(!a.parent)a.parent=b('<div id="'+c.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide(),b.fn.bgiframe&&a.parent.bgiframe(),a.title=b("h3",a.parent),a.body=b("div.body",a.parent),a.url=b("div.url",a.parent);return this.each(function(){b.data(this,"tooltip-settings",c);this.tooltipText=this.title;b(this).removeAttr("title");this.alt=""}).hover(q,n).click(n)},fixPNG:o?function(){return this.each(function(){var a=b(this).css("backgroundImage"); if(a.match(/^url\(["']?(.*\.png)["']?\)$/i))a=RegExp.$1,b(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+a+"')"}).each(function(){var a=b(this).css("position");a!="absolute"&&a!="relative"&&b(this).css("position","relative")})})}:function(){return this},unfixPNG:o?function(){return this.each(function(){b(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){b(this)[b(this).html()? "show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});b.fn.Tooltip=b.fn.tooltip})(jQuery);

/*
 * jQuery Cycle Plugin (core engine only)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.99 (12-MAR-2011)
 * Dual licensed under the MIT and GPL licenses.
 * http://jquery.malsup.com/license.html
 * Requires: jQuery v1.3.2 or later
 */
(function($){var ver="2.99";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){$.fn.cycle.debug&&log(s);}function log(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "));}$.expr[":"].paused=function(el){return el.cyclePause;};$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(els[opts2.currSlide],els[opts2.nextSlide],opts2,!opts2.backwards);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts.backwards);},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");if(!opts){return false;}cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");if(options=="destroy"){destroy(opts);}return false;case"toggle":cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;checkInstantResume(false,arg2,cont);return false;case"prev":case"next":var opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,!options.backwards);}}}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function destroy(opts){if(opts.next){$(opts.next).unbind(opts.prevNextEvent);}if(opts.prev){$(opts.prev).unbind(opts.prevNextEvent);}if(opts.pager||opts.pagerAnchorBuilder){$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});}opts.pagerAnchors=null;if(opts.destroy){opts.destroy(opts);}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,!opts.backwards);});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}else{if(opts.backwards){opts.startingSlide=els.length-1;}}if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++){opts.randomMap.push(i);}opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=1;opts.startingSlide=opts.randomMap[1];}else{if(opts.startingSlide>=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z;if(opts.backwards){z=first?i<=first?els.length+(i-first):first-i:els.length-i;}else{z=first?i>=first?els.length-(i-first):first-i:els.length-i;}$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth||e.width||$e.attr("width");}if(!h){h=e.offsetHeight||e.height||$e.attr("height");}maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(supportMultiTransitions(opts)===false){return false;}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr("height")||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr("width")||0);if($el.is("img")){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.cssAfter=opts.cssAfter||{};opts.cssFirst=opts.cssFirst||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);$($slides[first]).css(opts.cssFirst);if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}var buffer=opts.fx=="none"?0:opts.fx=="shuffle"?500:250;while((opts.timeout-opts.speed)<buffer){opts.timeout+=opts.speed;}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing;}if(!opts.speedIn){opts.speedIn=opts.speed;}if(!opts.speedOut){opts.speedOut=opts.speed;}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.backwards){opts.nextSlide=opts.startingSlide==0?(els.length-1):opts.startingSlide-1;}else{opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;}}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length){opts.after[0].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,1);});}if(opts.prev){$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,0);});}if(opts.pager||opts.pagerAnchorBuilder){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknown transition: ",fx);opts.fxs.splice(i,1);i--;}}if(!opts.fxs.length){log("No valid transitions named; slideshow terminating.");return false;}}else{if(opts.fx=="all"){opts.multiFx=true;opts.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){opts.fxs.push(p);}}}}if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}debug("randomized fx sequence: ",opts.fxs);}return true;}function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount){opts.countdown++;}els[prepend?"unshift":"push"](s);if(opts.els){opts.els[prepend?"unshift":"push"](s);}opts.slideCount=els.length;$s.css("position","absolute");$s[prepend?"prependTo":"appendTo"](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($s);}if(opts.fit&&opts.width){$s.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$s.height(opts.height);}s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager||opts.pagerAnchorBuilder){$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);}if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s);}else{$s.hide();}};}$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init)){init(opts.$cont,$(opts.elements),opts);}};function go(els,opts,manual,fwd){if(manual&&opts.busy&&opts.manualTrump){debug("manualTrump in go(), stopping active transition");$(els).stop(true,true);opts.busy=0;}if(opts.busy){debug("transition active, ignoring new tx request");return;}var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual){return;}if(!manual&&!p.cyclePause&&!opts.bounce&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end){opts.end(opts);}return;}var changed=false;if((manual||!p.cyclePause)&&(opts.nextSlide!=opts.currSlide)){changed=true;var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){opts.busy=0;$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};debug("tx firing("+fx+"); currSlide: "+opts.currSlide+"; nextSlide: "+opts.nextSlide);opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}}}if(changed||opts.nextSlide==opts.currSlide){opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide){opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1;}}else{if(opts.backwards){var roll=(opts.nextSlide-1)<0;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=1;opts.currSlide=0;}else{opts.nextSlide=roll?(els.length-1):opts.nextSlide-1;opts.currSlide=roll?0:opts.nextSlide+1;}}else{var roll=(opts.nextSlide+1)==els.length;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=els.length-2;opts.currSlide=els.length-1;}else{opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}}}}if(changed&&opts.pager){opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass);}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(els[opts.currSlide],els[opts.nextSlide],opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.backwards);},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);});};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn.call(curr,curr,next,opts,fwd);while(opts.fx!="none"&&(t-opts.speed)<250){t+=opts.speed;}debug("calculated timeout: "+t+"; speed: "+opts.speed);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,1);};$.fn.cycle.prev=function(opts){advance(opts,0);};function advance(opts,moveForward){var val=moveForward?1:-1;var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb)){cb(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,moveForward);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug("pagerAnchorBuilder("+i+", el) returned: "+a);}else{a='<a href="#">'+(i+1)+"</a>";}if(!a){return;}var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0]);});$a=$(arr);}else{$a.appendTo($p);}}opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);$a.bind(opts.pagerEvent,function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb)){cb(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlide<i);});if(!/^click/.test(opts.pagerEvent)&&!opts.allowPagerClickBubble){$a.bind("click.cycle",function(){return false;});}if(opts.pauseOnPagerHover){$a.hover(function(){opts.$cont[0].cyclePause++;},function(){opts.$cont[0].cyclePause--;});}};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd){hops=c>l?c-l:opts.slideCount-l;}else{hops=c<l?l-c:l+opts.slideCount-c;}return hops;};function clearTypeFix($slides){debug("applying clearType background-color hack");function hex(s){s=parseInt(s).toString(16);return s.length<2?"0"+s:s;}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v&&v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();if(typeof opts.cssBefore.opacity=="undefined"){opts.cssBefore.opacity=1;}opts.cssBefore.display="block";if(opts.slideResize&&w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(opts.slideResize&&h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,function(){cb();});};$l.animate(opts.animOut,speedOut,easeOut,function(){$l.css(opts.cssAfter);if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:false,animIn:null,animOut:null,autostop:0,autostopCount:0,backwards:false,before:null,cleartype:!$.support.opacity,cleartypeNoBg:false,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:true,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,slideExpr:null,slideResize:1,speed:1000,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4000,timeoutFn:null,updateActivePagerLink: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-2008 M. Alsup
 * Version:	 2.72
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function(d){d.fn.cycle.transitions.none=function(b,e,a){a.fxFn=function(a,b,c,e){d(b).show();d(a).hide();e()}};d.fn.cycle.transitions.scrollUp=function(b,e,a){b.css("overflow","hidden");a.before.push(d.fn.cycle.commonReset);b=b.height();a.cssBefore={top:b,left:0};a.cssFirst={top:0};a.animIn={top:0};a.animOut={top:-b}};d.fn.cycle.transitions.scrollDown=function(b,e,a){b.css("overflow","hidden");a.before.push(d.fn.cycle.commonReset);b=b.height();a.cssFirst={top:0};a.cssBefore={top:-b,left:0};a.animIn= {top:0};a.animOut={top:b}};d.fn.cycle.transitions.scrollLeft=function(b,e,a){b.css("overflow","hidden");a.before.push(d.fn.cycle.commonReset);b=b.width();a.cssFirst={left:0};a.cssBefore={left:b,top:0};a.animIn={left:0};a.animOut={left:0-b}};d.fn.cycle.transitions.scrollRight=function(b,e,a){b.css("overflow","hidden");a.before.push(d.fn.cycle.commonReset);b=b.width();a.cssFirst={left:0};a.cssBefore={left:-b,top:0};a.animIn={left:0};a.animOut={left:b}};d.fn.cycle.transitions.scrollHorz=function(b,e, a){b.css("overflow","hidden").width();a.before.push(function(a,b,c,e){d.fn.cycle.commonReset(a,b,c);c.cssBefore.left=e?b.cycleW-1:1-b.cycleW;c.animOut.left=e?-a.cycleW:a.cycleW});a.cssFirst={left:0};a.cssBefore={top:0};a.animIn={left:0};a.animOut={top:0}};d.fn.cycle.transitions.scrollVert=function(b,e,a){b.css("overflow","hidden");a.before.push(function(a,b,c,e){d.fn.cycle.commonReset(a,b,c);c.cssBefore.top=e?1-b.cycleH:b.cycleH-1;c.animOut.top=e?a.cycleH:-a.cycleH});a.cssFirst={top:0};a.cssBefore= {left:0};a.animIn={top:0};a.animOut={left:0}};d.fn.cycle.transitions.slideX=function(b,e,a){a.before.push(function(a,b,c){d(c.elements).not(a).hide();d.fn.cycle.commonReset(a,b,c,!1,!0);c.animIn.width=b.cycleW});a.cssBefore={left:0,top:0,width:0};a.animIn={width:"show"};a.animOut={width:0}};d.fn.cycle.transitions.slideY=function(b,e,a){a.before.push(function(a,b,c){d(c.elements).not(a).hide();d.fn.cycle.commonReset(a,b,c,!0,!1);c.animIn.height=b.cycleH});a.cssBefore={left:0,top:0,height:0};a.animIn= {height:"show"};a.animOut={height:0}};d.fn.cycle.transitions.shuffle=function(b,e,a){b=b.css("overflow","visible").width();e.css({left:0,top:0});a.before.push(function(a,b,c){d.fn.cycle.commonReset(a,b,c,!0,!0,!0)});if(!a.speedAdjusted)a.speed/=2,a.speedAdjusted=!0;a.random=0;a.shuffle=a.shuffle||{left:-b,top:15};a.els=[];for(b=0;b<e.length;b++)a.els.push(e[b]);for(b=0;b<a.currSlide;b++)a.els.push(a.els.shift());a.fxFn=function(a,b,c,e,h){var i=h?d(a):d(b);d(b).css(c.cssBefore);var j=c.slideCount; i.animate(c.shuffle,c.speedIn,c.easeIn,function(){for(var b=d.fn.cycle.hopsFromLast(c,h),f=0;f<b;f++)h?c.els.push(c.els.shift()):c.els.unshift(c.els.pop());if(h){b=0;for(f=c.els.length;b<f;b++)d(c.els[b]).css("z-index",f-b+j)}else b=d(a).css("z-index"),i.css("z-index",parseInt(b)+1+j);i.animate({left:0,top:0},c.speedOut,c.easeOut,function(){d(h?this:a).hide();e&&e()})})};a.cssBefore={display:"block",opacity:1,top:0,left:0}};d.fn.cycle.transitions.turnUp=function(b,e,a){a.before.push(function(a,b, c){d.fn.cycle.commonReset(a,b,c,!0,!1);c.cssBefore.top=b.cycleH;c.animIn.height=b.cycleH});a.cssFirst={top:0};a.cssBefore={left:0,height:0};a.animIn={top:0};a.animOut={height:0}};d.fn.cycle.transitions.turnDown=function(b,e,a){a.before.push(function(a,b,c){d.fn.cycle.commonReset(a,b,c,!0,!1);c.animIn.height=b.cycleH;c.animOut.top=a.cycleH});a.cssFirst={top:0};a.cssBefore={left:0,top:0,height:0};a.animOut={height:0}};d.fn.cycle.transitions.turnLeft=function(b,e,a){a.before.push(function(a,b,c){d.fn.cycle.commonReset(a, b,c,!1,!0);c.cssBefore.left=b.cycleW;c.animIn.width=b.cycleW});a.cssBefore={top:0,width:0};a.animIn={left:0};a.animOut={width:0}};d.fn.cycle.transitions.turnRight=function(b,e,a){a.before.push(function(a,b,c){d.fn.cycle.commonReset(a,b,c,!1,!0);c.animIn.width=b.cycleW;c.animOut.left=a.cycleW});a.cssBefore={top:0,left:0,width:0};a.animIn={left:0};a.animOut={width:0}};d.fn.cycle.transitions.zoom=function(b,e,a){a.before.push(function(a,b,c){d.fn.cycle.commonReset(a,b,c,!1,!1,!0);c.cssBefore.top=b.cycleH/ 2;c.cssBefore.left=b.cycleW/2;c.animIn={top:0,left:0,width:b.cycleW,height:b.cycleH};c.animOut={width:0,height:0,top:a.cycleH/2,left:a.cycleW/2}});a.cssFirst={top:0,left:0};a.cssBefore={width:0,height:0}};d.fn.cycle.transitions.fadeZoom=function(b,e,a){a.before.push(function(a,b,c){d.fn.cycle.commonReset(a,b,c,!1,!1);c.cssBefore.left=b.cycleW/2;c.cssBefore.top=b.cycleH/2;c.animIn={top:0,left:0,width:b.cycleW,height:b.cycleH}});a.cssBefore={width:0,height:0};a.animOut={opacity:0}};d.fn.cycle.transitions.blindX= function(b,e,a){b=b.css("overflow","hidden").width();a.before.push(function(a,b,c){d.fn.cycle.commonReset(a,b,c);c.animIn.width=b.cycleW;c.animOut.left=a.cycleW});a.cssBefore={left:b,top:0};a.animIn={left:0};a.animOut={left:b}};d.fn.cycle.transitions.blindY=function(b,e,a){b=b.css("overflow","hidden").height();a.before.push(function(a,b,c){d.fn.cycle.commonReset(a,b,c);c.animIn.height=b.cycleH;c.animOut.top=a.cycleH});a.cssBefore={top:b,left:0};a.animIn={top:0};a.animOut={top:b}};d.fn.cycle.transitions.blindZ= function(b,e,a){e=b.css("overflow","hidden").height();b=b.width();a.before.push(function(a,b,c){d.fn.cycle.commonReset(a,b,c);c.animIn.height=b.cycleH;c.animOut.top=a.cycleH});a.cssBefore={top:e,left:b};a.animIn={top:0,left:0};a.animOut={top:e,left:b}};d.fn.cycle.transitions.growX=function(b,e,a){a.before.push(function(a,b,c){d.fn.cycle.commonReset(a,b,c,!1,!0);c.cssBefore.left=this.cycleW/2;c.animIn={left:0,width:this.cycleW};c.animOut={left:0}});a.cssBefore={width:0,top:0}};d.fn.cycle.transitions.growY= function(b,e,a){a.before.push(function(a,b,c){d.fn.cycle.commonReset(a,b,c,!0,!1);c.cssBefore.top=this.cycleH/2;c.animIn={top:0,height:this.cycleH};c.animOut={top:0}});a.cssBefore={height:0,left:0}};d.fn.cycle.transitions.curtainX=function(b,e,a){a.before.push(function(a,b,c){d.fn.cycle.commonReset(a,b,c,!1,!0,!0);c.cssBefore.left=b.cycleW/2;c.animIn={left:0,width:this.cycleW};c.animOut={left:a.cycleW/2,width:0}});a.cssBefore={top:0,width:0}};d.fn.cycle.transitions.curtainY=function(b,e,a){a.before.push(function(a, b,c){d.fn.cycle.commonReset(a,b,c,!0,!1,!0);c.cssBefore.top=b.cycleH/2;c.animIn={top:0,height:b.cycleH};c.animOut={top:a.cycleH/2,height:0}});a.cssBefore={left:0,height:0}};d.fn.cycle.transitions.cover=function(b,e,a){var g=a.direction||"left",f=b.css("overflow","hidden").width(),c=b.height();a.before.push(function(a,b,e){d.fn.cycle.commonReset(a,b,e);g=="right"?e.cssBefore.left=-f:g=="up"?e.cssBefore.top=c:g=="down"?e.cssBefore.top=-c:e.cssBefore.left=f});a.animIn={left:0,top:0};a.animOut={opacity:1}; a.cssBefore={top:0,left:0}};d.fn.cycle.transitions.uncover=function(b,e,a){var g=a.direction||"left",f=b.css("overflow","hidden").width(),c=b.height();a.before.push(function(a,b,e){d.fn.cycle.commonReset(a,b,e,!0,!0,!0);g=="right"?e.animOut.left=f:g=="up"?e.animOut.top=-c:g=="down"?e.animOut.top=c:e.animOut.left=-f});a.animIn={left:0,top:0};a.animOut={opacity:1};a.cssBefore={top:0,left:0}};d.fn.cycle.transitions.toss=function(b,e,a){var g=b.css("overflow","visible").width(),f=b.height();a.before.push(function(a, b,e){d.fn.cycle.commonReset(a,b,e,!0,!0,!0);!e.animOut.left&&!e.animOut.top?e.animOut={left:g*2,top:-f/2,opacity:0}:e.animOut.opacity=0});a.cssBefore={left:0,top:0};a.animIn={left:0}};d.fn.cycle.transitions.wipe=function(b,e,a){var g=b.css("overflow","hidden").width(),f=b.height();a.cssBefore=a.cssBefore||{};var c;a.clip&&(/l2r/.test(a.clip)?c="rect(0px 0px "+f+"px 0px)":/r2l/.test(a.clip)?c="rect(0px "+g+"px "+f+"px "+g+"px)":/t2b/.test(a.clip)?c="rect(0px "+g+"px 0px 0px)":/b2t/.test(a.clip)?c= "rect("+f+"px "+g+"px "+f+"px 0px)":/zoom/.test(a.clip)&&(b=parseInt(f/2),e=parseInt(g/2),c="rect("+b+"px "+e+"px "+b+"px "+e+"px)"));a.cssBefore.clip=a.cssBefore.clip||c||"rect(0px 0px 0px 0px)";var b=a.cssBefore.clip.match(/(\d+)/g),m=parseInt(b[0]),h=parseInt(b[1]),i=parseInt(b[2]),j=parseInt(b[3]);a.before.push(function(a,b,c){if(a!=b){var e=d(a),n=d(b);d.fn.cycle.commonReset(a,b,c,!0,!0,!1);c.cssAfter.display="block";var k=1,l=parseInt(c.speedIn/13)-1;(function o(){var a=m?m-parseInt(k*(m/l)): 0,b=j?j-parseInt(k*(j/l)):0,c=i<f?i+parseInt(k*((f-i)/l||1)):f,d=h<g?h+parseInt(k*((g-h)/l||1)):g;n.css({clip:"rect("+a+"px "+d+"px "+c+"px "+b+"px)"});k++<=l?setTimeout(o,13):e.css("display","none")})()}});a.cssBefore={display:"block",opacity:1,top:0,left:0};a.animIn={left:0};a.animOut={left:0}}})(jQuery);

