<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/**
* smallslider1 JQuery plugin
* http://lib.kindcent.com/smallslider1
* JQuery plugin for switch images, Please Open me with UTF-8 encoding
* Created under Ubuntu 9.10 OS , if you open it with notepad.exe , some black squares will appear !
* è¿™æ˜¯ä¸€ä¸ªæºç&nbsp;å¼€æ”¾ç¨‹åºï¼Œæœ¬äººç‰¹æ„åŠ&nbsp;ä¸Šæ³¨é‡Šä»¥æ–¹ä¾¿å¤§å®¶ä¿®æ”¹ï¼Œä½&nbsp;å¯ä»¥è‡ªè¡Œä¿®æ”¹ï¼Œå†å‘å¸ƒï¼Œæ¬¢è¿Žå’Œæˆ‘äº¤æµã€‚
* 0.5ç‰ˆæœ¬æ–°å¢žåŠ&nbsp;actionGapå»¶æ—¶é€‰é¡¹ï¼Œéƒ¨åˆ†è§£å†³å¿«é€Ÿæ»‘åŠ¨æ—¶çš„é—ªçƒé—®é¢˜ã€‚
* å³é¼&nbsp;æ&nbsp;‡æ”¾ä¸Šé¢åŽï¼Œéœ€è¦ç­‰å¾…ä¸€æ®µæ—¶é—´æ‰å¼€å§‹åˆ‡æ¢ï¼Œé»˜è®¤ä¸º200æ¯«ç§’ã€‚
* ä¸çŸ¥ä½•å¹´ä½•æœˆæ‰èƒ½ç®—1.0ç‰ˆå‘¢ï¼Ÿå›&nbsp;ä¸ºæˆ‘ä¸€ç›´è§‰å¾—åˆ‡æ¢çš„è¿‡æ¸¡æ•ˆæžœè¿˜æ²¡æœ‰å®Œå…¨è¾¾åˆ°æˆ‘çš„æ„å¿—ï¼
*
* Licensed under The MIT License
*
* @version    0.5
* @since        2009-7-3, 11:56:24
* @last           2010-12-6, 01:25:56
* @author     Jesse &lt;microji@163.com&gt;
*/

/**
* Usage:  $('#slider').smallslider1({ onImageStop:true, switchEase: 'easeOutSine',switchPath: 'left'});
*
* @param elm ä½&nbsp;æƒ³è¦ä½¿ç”¨çš„æœ€å¤–å±‚
* @param options ä¸€äº›é™„åŠ&nbsp;å‚æ•°
*
* Valid options:
* ---------------------------------------
*  time:3000,                                  // åˆ‡æ¢æ—¶é—´é—´éš”ï¼Œå•ä½æ¯«ç§’ï¼Œ1ç§’=1000æ¯«ç§’
*  autoStart:true,                         // æ˜¯å¦è‡ªåŠ¨å¼€å§‹æ’­æ”¾
*  onImageStop : false ,             // é¼&nbsp;æ&nbsp;‡æ”¾åœ¨å›¾ç‰‡ä¸Šæ—¶ï¼Œæ˜¯å¦åœæ­¢æ’­æ”¾
*  switchMode:'hover',             // å›¾ç‰‡åˆ‡æ¢çš„æ–¹å¼ï¼Œclickä¸ºå•å‡»åˆ‡æ¢ï¼Œhoverä¸ºé¼&nbsp;æ&nbsp;‡ç§»åŠ¨åˆ°æŒ‰é’®ä¸Šæ—¶åˆ‡æ¢
*  switchEffect:'fadeOut',         // åˆ‡æ¢ç‰¹æ•ˆ,fadeOut, ease, none,
*  switchPath: 'left' ,                 // åˆ‡æ¢çš„æ–¹å‘ï¼Œå¯é€‰å€¼ä¸ºï¼šup ï¼Œ left ï¼Œå³å‘ä¸Šï¼Œå‘å·¦
*  switchEase : 'easeOutQuart' , // å¯é€‰å€¼åˆ—è¡¨å¦‚ä¸‹
*  switchTime: 600,                    // åˆ‡æ¢æ—¶é—´ï¼Œå•ä½æ¯«ç§’ï¼Œ1ç§’=1000æ¯«ç§’
*  actionGap: 200,                     //[0.5ç‰ˆæœ¬æ–°å¢ž]é¼&nbsp;æ&nbsp;‡å•å‡»æˆ–ç§»åŠ¨è§¦å‘åˆ‡æ¢ï¼Œåˆ‡æ¢å“åº”çš„æ—¶é—´é—´éš”ï¼Œ0ä¸ºç«‹å³å“åº”ï¼Œæ—¶é—´è¶Šå¤§ï¼Œå“åº”è¶Šæ…¢
*  buttonPosition: 'rightBottom', // æŒ‰é’®ä½ç½®è¡¨ç¤ºï¼Œå…±æœ‰å››ä¸ªå€¼ï¼šleftTopï¼ŒleftBottom, rightTop, rightBottom
*  buttonOffsetX:10,               // æ°´å¹³æ–¹å‘ä¸Šçš„æŒ‰é’®åç§»ä½ç½®ï¼ŒæŒ‡å‘ä¸­å¿ƒéƒ¨ç§»åŠ¨å¤šå°‘ï¼Œè¿™é‡Œæ˜¯æ•°å€¼ï¼Œä¸åŠ&nbsp;px
*  buttonOffsetY:4,                // ç«–ç›´æ–¹å‘ä¸Šçš„æŒ‰é’®åç§»ä½ç½®ï¼ŒæŒ‡å‘ä¸­å¿ƒéƒ¨ç§»åŠ¨å¤šå°‘ï¼Œè¿™é‡Œæ˜¯æ•°å€¼ï¼Œä¸åŠ&nbsp;px
*  buttonSpace:4,                  // æŒ‰é’®ä¹‹é—´çš„é—´éš” å•ä½ä¸ºåƒç´&nbsp;ï¼Œä½†ä¸è¦åŠ&nbsp;px
*  showText: true,                 // æ˜¯å¦æ˜¾ç¤ºæ&nbsp;‡é¢˜ï¼Œå¦‚æžœä¸æ˜¾ç¤ºï¼Œåˆ™åªæ˜¾ç¤ºæŒ‰é’®
*  showButtons : true,         // æ˜¯å¦æ˜¾ç¤ºæŒ‰é’®ï¼Œé»˜è®¤æ˜¾ç¤º
*  textLink : true,                // æ˜¯å¦ç»™æ˜¾ç¤ºçš„æ&nbsp;‡é¢˜åŠ&nbsp;ä¸Šé“¾æŽ¥ï¼Œå¦‚æžœä¸ºfalseï¼Œåˆ™ï¼Œåªæ˜¾ç¤ºæ&nbsp;‡é¢˜ï¼Œæ&nbsp;‡é¢˜ä¸å¯å•å‡»ï¼Œé“¾æŽ¥çš„åœ°å€è‡ªåŠ¨å’Œå½“å‰æ’­æ”¾åˆ°çš„å›¾ç‰‡åœ°å€ä¸€è‡´
*  textSwitch : 0 ,            // æ&nbsp;‡é¢˜æ˜¯å¦è¿åŠ¨æ˜¾ç¤ºï¼Œå¦‚æžœä¸º0åˆ™ä¸åŠ¨ï¼Œ1 æ&nbsp;‡é¢˜åŠ¨ï¼Œ2 æ&nbsp;‡é¢˜å’ŒèƒŒæ™¯ä¸€èµ·åŠ¨ã€‚
*  textPosition: '',		// æ&nbsp;‡é¢˜æ&nbsp;çš„ä½ç½®ï¼Œé»˜è®¤ä¸ºç©ºï¼Œå³å’ŒæŒ‰é’®çš„ä½ç½®ä¸€è‡´ï¼Œå–å€¼ top ,  bottom
*  textAlign: ''		// å¦‚æžœç•™ç©ºï¼Œåˆ™ä¼šé»˜è®¤å’ŒæŒ‰é’®ä½ç½®çš„ç›¸åæ–¹å‘æŽ’åˆ—ï¼Œå–å€¼ï¼šleft, center, right
*/
(function ($) {

    $.smallslider1 = function (elm, options) {

        // this ä¸ºå½“å‰çš„smallslider1å¯¹è±¡ï¼Œä¸ºäº†åŒºåˆ«ï¼Œä½¿ç”¨ _this æ›¿æ¢
        var _this = this;
        _this.elm = elm;     // elm ä¸ºå½“å‰çš„ DOMå¯¹è±¡ ï¼Œå³ä½¿ç”¨class="smallslider1" çš„é‚£ä¸ªdivå¯¹è±¡ã€‚
        _this.$elm = $(elm);  // $elm ä¸ºelmå¯¹è±¡çš„jqueryå½¢å¼ 
        _this.opts = $.extend({}, $.smallslider1.defaults, options);
        _this.sliderTimer = null;
        _this.actionGapTimer = null;
        _this.slideProcessing = false;
        // åˆå§‹åŒ–å¯¹è±¡
        _this.init = function () {
            _this.$ul = _this.$elm.find('&gt;ul');  // ä¸ºå­å…ƒç´&nbsp;ul
            _this.$lis = _this.$elm.find('li');  // ä¸ºæ‰€æœ‰ulä¸‹å­å…ƒç´&nbsp;li æ•°ç»„
            _this.$ims = _this.$elm.find('img');  // ä¸ºæ‰€æœ‰liä¸‹å­å…ƒç´&nbsp;img æ•°ç»„
            _this.itemNums = _this.$lis.length;
            _this.width = _this.$elm.width();
            _this.height = _this.$elm.height();
            _this.current = 0; 		// å½“å‰çš„indexç´¢å¼•

            if (_this.itemNums &gt; 0) {
                texTitle = '&lt;a target="_blank" href="' + _this.$ims.eq(0).parent('a').attr('href') + '"&gt;' + _this.$ims.eq(0).attr('title') + '&lt;/a&gt;';
                $("#newstitle").html(texTitle);

                texpara = _this.$ims.eq(0).attr('para') + "&lt;span&gt;[" + _this.$ims.eq(0).attr('date') + "]&lt;/span&gt;";
                $("#newspara").html(texpara);
            }

            if (_this.itemNums &gt; 1) {
                if (_this.opts.switchEffect == 'ease') {
                    _this.$ul.css({
                        position: 'absolute',
                        left: 0,
                        top: 0
                    });
                    if (_this.opts.switchPath == 'left') {
                        var width = _this.itemNums * _this.width;
                        _this.$lis.css({
                            'float': 'left'
                        });
                        _this.$ul.css({
                            'width': width
                        });
                    }
                    else if (_this.opts.switchPath == 'up') {
                        var height = _this.itemNums * _this.height;
                        _this.$ul.css({
                            'height': height
                        });
                    }
                }
                else if (_this.opts.switchEffect == 'fadeOut') {
                    _this.$ul.css({
                        position: 'relative'
                    });
                    _this.$lis.css({
                        position: 'absolute',
                        zIndex: 1
                    }).eq(0).css({
                        zIndex: 2
                    });
                }
                if (_this.opts.showButtons) {
                    _this.createButtons(); // åˆ›å»ºæŒ‰é’®ã€‚
                }
                if (_this.opts.showText) {
                    _this.createText(); // åˆ›å»ºæ–‡å­—æ˜¾ç¤ºã€‚
                }
                if (_this.opts.autoStart) {
                    _this.startSlider(1);
                }
                if (_this.opts.onImageStop) {
                    _this.onImage();
                }
            }
        };
        _this.createButtons = function () {
            var buttons = '';
            for (var i = 1; i &lt;= _this.itemNums; i++) {
                buttons += '&lt;span&gt;' + i + '&lt;/span&gt;';
            }
            buttons = '&lt;div class="' + _this.elm.className + '-btns"&gt;' + buttons + '&lt;/div&gt;';
            var left = 0, right = 0, top = 0, bottom = 0;
            var style_btns = {};
            switch (_this.opts.buttonPosition) {
                case 'leftTop':
                    left = _this.opts.buttonOffsetX;
                    top = _this.opts.buttonOffsetY;
                    style_btns = { left: left + 'px', top: top + 'px' };
                    break;
                case 'rightTop':
                    right = _this.opts.buttonOffsetX;
                    top = _this.opts.buttonOffsetY;
                    style_btns = { right: right + 'px', top: top + 'px' };
                    break;
                case 'rightBottom':
                    right = _this.opts.buttonOffsetX;
                    bottom = _this.opts.buttonOffsetY;
                    style_btns = { right: right + 'px', bottom: bottom + 'px' };
                    break;
                case 'leftBottom':
                    left = _this.opts.buttonOffsetX;
                    bottom = _this.opts.buttonOffsetY;
                    style_btns = { left: left + 'px', bottom: bottom + 'px' };
                    break;
            }
            $(buttons).css(style_btns).appendTo(_this.$elm);
            _this.$btns = _this.$elm.find('span');
            _this.$elm.find('span:not(:first)').css({ marginLeft: _this.opts.buttonSpace + 'px' });
            _this.$btns.removeClass('current-btn');
            _this.$btns.eq(0).addClass('current-btn');
            if (_this.opts.switchMode == 'click') {
                _this.$btns.click(function () {
                    var ix = _this.$btns.index($(this));
                    //_this.slideTo(ix); // è¡¨ç¤ºéœ€è¦åˆ‡æ¢åˆ°å“ªä¸€å¼&nbsp;
                    _this.actionSlide(ix);
                });
            } else if (_this.opts.switchMode == 'hover') {
                _this.$btns.hover(function () {
                    var ix = _this.$btns.index($(this));
                    //_this.slideTo(ix);
                    _this.actionSlide(ix);
                });
            }
        };

        _this.actionSlide = function (ix) {
            // console.log(_this.actionGapTimer);
            if (_this.actionGapTimer) {
                clearTimeout(_this.actionGapTimer);
                _this.actionGapTimer = null;
            }
            _this.actionGapTimer = setTimeout(function () { _this.slideTo(ix); }, _this.opts.actionGap);

        };
        // åˆ›å»ºæ&nbsp;‡é¢˜æ&nbsp;‡ç­¾
        _this.createText = function () {
            var style_tex = {};
            switch (_this.opts.buttonPosition) {
                case 'leftTop':
                    style_tex = { left: 0, top: 0, textAlign: 'right' };
                    _this.textPosition = 'top';
                    break;
                case 'rightTop':
                    style_tex = { left: 0, top: 0, textAlign: 'left' };
                    _this.textPosition = 'top';
                    break;
                case 'rightBottom':
                    style_tex = { left: 0, bottom: 0, textAlign: 'left' };
                    _this.textPosition = 'bottom';
                    break;
                case 'leftBottom':
                    style_tex = { left: 0, bottom: 0, textAlign: 'right' };
                    _this.textPosition = 'bottom';
                    break;
            }
            if (_this.opts.textPosition) {
                switch (_this.opts.textPosition) {
                    case 'top':
                        style_tex.left = 0; style_tex.top = 0;
                        break;
                    case 'bottom':
                        style_tex.left = 0; style_tex.bottom = 0;
                        break;
                }
                _this.textPosition = _this.opts.textPosition;
            }
            if (_this.opts.textAlign) {
                style_tex.textAlign = _this.opts.textAlign;
            }
            $('&lt;div class="' + _this.elm.className + '-tex smallslider1-lay"&gt;&lt;/div&gt;').css(style_tex).css({
                opacity: 0.39
            }).appendTo(_this.$elm);

            var tex0 = _this.$ims.eq(0).attr('alt');
            if (_this.opts.textLink) {
                tex0 = '&lt;a href="' + _this.$ims.eq(0).parent('a').attr('href') + '"&gt;' + tex0 + '&lt;/a&gt;';
            }
            $('&lt;h3 class="' + _this.elm.className + '-tex"&gt;&lt;/h3&gt;').css(style_tex).html(tex0).appendTo(_this.$elm);
            _this.$h3 = _this.$elm.find('h3');
            _this.$lay = _this.$elm.find('div.smallslider1-lay');
            _this.$tex = _this.$elm.find('.smallslider1-tex');
        };
        _this.onImage = function () {
            _this.$ims.hover(function () {
                _this.stopSlider();
            }, function () {
                _this.slideTo(_this.current + 1);
            });
        };

        _this.slideTo = function (index) {
            _this.stopSlider(); // å…ˆæ¸…æŽ‰ä»¥å‰çš„setTimeout;
            if (index &gt; _this.itemNums - 1) index = 0;
            if (index &lt; 0) index = _this.itemNums - 1;
            // åˆ‡æ¢è¡¨ç¤ºå½“å‰å…ƒç´&nbsp;
            _this.$lis.removeClass('current-li').eq(index).addClass('current-li');
            if (_this.opts.showButtons) {
                _this.$btns.removeClass('current-btn');
                _this.$btns.eq(index).addClass('current-btn');
            }
            _this.slideText(index);
            var chAttr = '';
            var iC = 0;
            switch (_this.opts.switchPath) {
                case 'left':
                    chAttr = 'left';
                    iC = _this.width;
                    break;
                case 'up':
                default:
                    chAttr = 'top';
                    iC = _this.height;
                    break;
            }
            var iCx = -1 * index * iC; // Topæˆ–Left å˜åŒ–é‡
            var switchEase = _this.opts.switchEase;
            switch (_this.opts.switchEffect) {
                case 'fadeOut':
                    if (_this.current != index) {
                        _this.slideProcessing = true;
                        _this.$lis.stop(true, false);
                        _this.$lis.css({ zIndex: 1, opacity: 1 }).hide();
                        _this.$lis.eq(_this.current).css({ zIndex: 3 }).show();
                        _this.$lis.eq(index).css({ zIndex: 2 }).show();
                        _this.$lis.eq(_this.current).fadeOut(_this.opts.switchTime, function () {
                            _this.$lis.css({ zIndex: 1 });
                            _this.$lis.eq(index).css({ zIndex: 3, opacity: 1 }).show();
                            _this.slideProcessing = false;
                        });
                    }
                    break;
                case 'ease':
                    _this.$ul.stop(true, false);
                    if (chAttr == 'top')
                        _this.$ul.animate({ top: iCx }, { duration: _this.opts.switchTime, easing: switchEase, complete: function () {
                        }
                        });
                    else if (chAttr == 'left')
                        _this.$ul.animate({ left: iCx }, { duration: _this.opts.switchTime, easing: switchEase, complete: function () {
                        }
                        });
                    break;
                case 'none':
                default:
                    _this.$lis.eq(_this.current).hide();
                    _this.$lis.eq(index).show();
                    break;
            }
            _this.current = index;
            _this.startSlider(index + 1);
        };

        // åˆ‡æ¢æ–‡å­—
        _this.slideText = function (index) {
            //            $(".jqzoom img").attr("jqimg", $(".items li img").eq(0).attr("bimg"));
            //            $("#newstitle a").attr("href", _this.$ims.eq(index).parent('a').attr('href'));
            texTitle = '&lt;a target="_blank" href="' + _this.$ims.eq(index).parent('a').attr('href') + '"&gt;' + _this.$ims.eq(index).attr('title') + '&lt;/a&gt;';
            $("#newstitle").html(texTitle);

            texpara = _this.$ims.eq(index).attr('para') + "&lt;span&gt;[" + _this.$ims.eq(index).attr('date') + "]&lt;/span&gt;";
//            texpara = '&lt;a target="_blank" href="' + _this.$ims.eq(index).parent('a').attr('href') + '"&gt;' + _this.$ims.eq(index).attr('para') + '&lt;/a&gt;';
            $("#newspara").html(texpara);

            //            if (_this.opts.showText) {
            //                var tex = _this.$ims.eq(index).attr('alt');
            //                if (_this.opts.textLink) {
            //                    tex = '&lt;a href="' + _this.$ims.eq(index).parent('a').attr('href') + '"&gt;' + tex + '&lt;/a&gt;';
            //                }
            //                _this.$h3.html(tex);
            //                if (_this.opts.textSwitch &gt; 0) {
            //                    var t_path = _this.$h3.height();
            //                    var t_ani1 = {}, t_ani2 = {};
            //                    if (_this.textPosition == 'top') {
            //                        t_ani1 = { top: -1 * t_path };
            //                        t_ani2 = { top: 0 };
            //                    }
            //                    else if (_this.textPosition == 'bottom') {
            //                        t_ani1 = { bottom: -1 * t_path };
            //                        t_ani2 = { bottom: 0 };
            //                    }
            //                    if (_this.opts.textSwitch == 1) {
            //                        _this.$h3.stop(true, false).animate(t_ani1, { duration: 200, easing: 'easeOutQuad' }).animate(t_ani2, { duration: 200, easing: 'easeOutQuad' });
            //                    } else if (_this.opts.textSwitch == 2) {
            //                        _this.$tex.stop(true, false).animate(t_ani1, { duration: 200, easing: 'easeOutQuad' }).animate(t_ani2, { duration: 200, easing: 'easeOutQuad' });
            //                        //_this.$lay.animate(t_ani1, {duration: 200, easing: 'easeOutQuad'}).animate(t_ani2, {duration: 200, easing: 'easeOutQuad'});
            //                    }
            //                }
            //            }
        };

        // å¼€å§‹åˆ‡æ¢
        _this.startSlider = function (index) {
            // ç”±ç¬¬å‡&nbsp;ä¸ªåºå·å¼€å§‹ åˆå§‹ä¸º1
            var st = setTimeout(function () {
                _this.slideTo(index);
            }, _this.opts.time);
            _this.sliderTimer = st;
        };
        // åœæ­¢åˆ‡æ¢
        _this.stopSlider = function () {
            //if(_this.opts.switchEffect=='fadeOut') _this.$lis.stop();
            //  else if(_this.opts.switchEffect=='ease') _this.$ul.stop();
            if (_this.sliderTimer) {
                clearTimeout(_this.sliderTimer);
            }
            _this.sliderTimer = null;
        };

        _this.init();
        _this.$lis.removeClass('current-li').eq(0).addClass('current-li');

    };

    $.smallslider1.defaults = {
        time: 3000,
        autoStart: true,
        onImageStop: false,
        switchMode: 'hover',
        switchEffect: 'fadeOut',
        switchPath: 'left',
        switchEase: 'easeOutQuart',
        switchTime: 600,
        actionGap: 200,
        buttonPosition: 'rightBottom',
        buttonOffsetX: 10,
        buttonOffsetY: 4,
        buttonSpace: 4,
        showText: true,
        showButtons: true,
        textLink: true,
        textSwitch: 0,
        textPosition: '',
        textAlign: ''
    };

    $.fn.smallslider1 = function (options) {
        // éåŽ†ç”±$.smallslider1ç±»åˆ›å»ºç”Ÿæˆçš„smallslider1å¯¹è±¡ã€‚
        return this.each(function (i) {
            (new $.smallslider1(this, options));
        });
    };

})(jQuery);

$.smallslider1.switchEases = ["easeInQuad", "easeOutQuad", "easeInOutQuad", "easeInCubic", "easeOutCubic",
 "easeInOutCubic", "easeInQuart", "easeOutQuart", "easeInOutQuart", "easeInQuint", "easeOutQuint", "easeInOutQuint",
 "easeInSine", "easeOutSine", "easeInOutSine", "easeInExpo", "easeOutExpo", "easeInOutExpo", "easeInCirc", "easeOutCirc", "easeInOutCirc", "easeInElastic",
 "easeOutElastic", "easeInOutElastic", "easeInBack", "easeOutBack", "easeInOutBack",
 "easeInBounce", "easeOutBounce", "easeInOutBounce"];

// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend(jQuery.easing,
{
    def: 'easeOutQuad',
    swing: function (x, t, b, c, d) {
        //alert(jQuery.easing.default);
        return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
    },
    easeInQuad: function (x, t, b, c, d) {
        return c * (t /= d) * t + b;
    },
    easeOutQuad: function (x, t, b, c, d) {
        return -c * (t /= d) * (t - 2) + b;
    },
    easeInOutQuad: function (x, t, b, c, d) {
        if ((t /= d / 2) &lt; 1) return c / 2 * t * t + b;
        return -c / 2 * ((--t) * (t - 2) - 1) + b;
    },
    easeInCubic: function (x, t, b, c, d) {
        return c * (t /= d) * t * t + b;
    },
    easeOutCubic: function (x, t, b, c, d) {
        return c * ((t = t / d - 1) * t * t + 1) + b;
    },
    easeInOutCubic: function (x, t, b, c, d) {
        if ((t /= d / 2) &lt; 1) return c / 2 * t * t * t + b;
        return c / 2 * ((t -= 2) * t * t + 2) + b;
    },
    easeInQuart: function (x, t, b, c, d) {
        return c * (t /= d) * t * t * t + b;
    },
    easeOutQuart: function (x, t, b, c, d) {
        return -c * ((t = t / d - 1) * t * t * t - 1) + b;
    },
    easeInOutQuart: function (x, t, b, c, d) {
        if ((t /= d / 2) &lt; 1) return c / 2 * t * t * t * t + b;
        return -c / 2 * ((t -= 2) * t * t * t - 2) + b;
    },
    easeInQuint: function (x, t, b, c, d) {
        return c * (t /= d) * t * t * t * t + b;
    },
    easeOutQuint: function (x, t, b, c, d) {
        return c * ((t = t / d - 1) * t * t * t * t + 1) + b;
    },
    easeInOutQuint: function (x, t, b, c, d) {
        if ((t /= d / 2) &lt; 1) return c / 2 * t * t * t * t * t + b;
        return c / 2 * ((t -= 2) * t * t * t * t + 2) + b;
    },
    easeInSine: function (x, t, b, c, d) {
        return -c * Math.cos(t / d * (Math.PI / 2)) + c + b;
    },
    easeOutSine: function (x, t, b, c, d) {
        return c * Math.sin(t / d * (Math.PI / 2)) + b;
    },
    easeInOutSine: function (x, t, b, c, d) {
        return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b;
    },
    easeInExpo: function (x, t, b, c, d) {
        return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b;
    },
    easeOutExpo: function (x, t, b, c, d) {
        return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b;
    },
    easeInOutExpo: function (x, t, b, c, d) {
        if (t == 0) return b;
        if (t == d) return b + c;
        if ((t /= d / 2) &lt; 1) return c / 2 * Math.pow(2, 10 * (t - 1)) + b;
        return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b;
    },
    easeInCirc: function (x, t, b, c, d) {
        return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b;
    },
    easeOutCirc: function (x, t, b, c, d) {
        return c * Math.sqrt(1 - (t = t / d - 1) * t) + b;
    },
    easeInOutCirc: function (x, t, b, c, d) {
        if ((t /= d / 2) &lt; 1) return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b;
        return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b;
    },
    easeInElastic: function (x, t, b, c, d) {
        var s = 1.70158; var p = 0; var a = c;
        if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3;
        if (a &lt; Math.abs(c)) { a = c; s = p / 4; }
        else s = p / (2 * Math.PI) * Math.asin(c / a);
        return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
    },
    easeOutElastic: function (x, t, b, c, d) {
        var s = 1.70158; var p = 0; var a = c;
        if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3;
        if (a &lt; Math.abs(c)) { a = c; s = p / 4; }
        else s = p / (2 * Math.PI) * Math.asin(c / a);
        return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b;
    },
    easeInOutElastic: function (x, t, b, c, d) {
        var s = 1.70158; var p = 0; var a = c;
        if (t == 0) return b; if ((t /= d / 2) == 2) return b + c; if (!p) p = d * (.3 * 1.5);
        if (a &lt; Math.abs(c)) { a = c; s = p / 4; }
        else s = p / (2 * Math.PI) * Math.asin(c / a);
        if (t &lt; 1) return -.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
        return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * .5 + c + b;
    },
    easeInBack: function (x, t, b, c, d, s) {
        if (s == undefined) s = 1.70158;
        return c * (t /= d) * t * ((s + 1) * t - s) + b;
    },
    easeOutBack: function (x, t, b, c, d, s) {
        if (s == undefined) s = 1.70158;
        return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
    },
    easeInOutBack: function (x, t, b, c, d, s) {
        if (s == undefined) s = 1.70158;
        if ((t /= d / 2) &lt; 1) return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b;
        return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b;
    },
    easeInBounce: function (x, t, b, c, d) {
        return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b;
    },
    easeOutBounce: function (x, t, b, c, d) {
        if ((t /= d) &lt; (1 / 2.75)) {
            return c * (7.5625 * t * t) + b;
        } else if (t &lt; (2 / 2.75)) {
            return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b;
        } else if (t &lt; (2.5 / 2.75)) {
            return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b;
        } else {
            return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b;
        }
    },
    easeInOutBounce: function (x, t, b, c, d) {
        if (t &lt; d / 2) return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * .5 + b;
        return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * .5 + c * .5 + b;
    }
});
</pre></body></html>