 jQuery(function ($) {
            var r = $('#pic_box'),
      lis = r.find('li'),
      ie6 = window.ActiveXObject && !window.XMLHttpRequest;

            //鼠标滑过出标题的小图
            lis.not(':first').each(function (_, li) {
                var s = $('span', li);

                if (s.length <= 0) return;

                var h = s[0].offsetHeight;

                ie6 && s.find('i').css({ height: h });

                $(li).hover(function () {
                    s.stop(true).animate({ bottom: 0 }, 300);
                },
      function () {
          s.stop(true).animate({ bottom: -h }, 300);
      });

                s.css({ bottom: -h });
            });

            //焦点图
            (function (r) {
                var w = 310,
        on = null,
        s = r.find('a'),
        sc = r.find('div:first'),
        tmr;

                var btnW = $('<b/>').prependTo(r);
                s.each(function (idx, btn) {
                    btn = $('<i>' + (idx + 1) + '</i>').mouseenter(function (ev) {
                        ev.stopPropagation();

                        if (on === btn) return;

                        on && on.removeClass('on');
                        (on = btn).addClass('on');

                        sc.stop(true).animate({ left: -w * idx }, 500);
                    }).appendTo(btnW);
                });

                var btns = btnW.find('i');
                btns.eq(0).mouseenter();

                r.hover(function () {
                    if (tmr) {
                        clearInterval(tmr);
                        tmr = null;
                    }
                }, function () {
                    tmr = setInterval(function () {
                        var idx = btns.index(on[0]);
                        idx += 1;
                        (idx >= btns.length) && (idx = 0);

                        btns.eq(idx).mouseenter();
                    }, 5000); //轮播延迟，单位毫秒
                }).mouseleave();

            })(lis.filter(':first'));
        });
