(function($) {
    $.fn.extend({
        ImagesScroll: function(opt, callback) {
            if (!opt) var opt = {};
            Ispeed = opt.speed ? parseInt(opt.speed, 10) : 500;
            Itimer = opt.timer ? parseInt(opt.timer, 10) : 3000;
            var _Ithis, _thisparent = this.eq(0).find("ul:first");
            ImagesscrollLeft = function() {
                _Ithis = _thisparent.find("li:first");
                _Ithis.animate({ marginLeft: "-" + _Ithis.width().toString() + "px" }, Ispeed, function() {
                    _thisparent.append(_Ithis); _Ithis.css("marginLeft", "0");
                })
            };
            this.eq(0).find("ul:first").hover(function() {
                clearInterval(ItimerID);
            }, function() {
                ItimerID = setInterval("ImagesscrollLeft()", Itimer);
            }).mouseout();
        }
    })
})(jQuery);
(function($) {
    $.fn.extend({
        LogoImagesScroll: function(opt, callback) {
            if (!opt) var opt = {};
            LogoIspeed = opt.speed ? parseInt(opt.speed, 10) : 500;
            LogoItimer = opt.timer ? parseInt(opt.timer, 10) : 3000;
            var _Ithis, _thisparent = this.eq(0).find("ul:first"),_this=this;
            LogoImagesscrollLeft = function() {var tw=0;_thisparent.find("li").each(function(){tw+=$(this).width()});if(tw<=$(_this).width()){clearInterval(LogoItimerID);}
                _Ithis = _thisparent.find("li:first");
                _Ithis.animate({ marginLeft: "-" + _Ithis.width().toString() + "px" }, LogoIspeed, function() {
                    _thisparent.append(_Ithis); _Ithis.css("marginLeft", "0");
                })
            };
            this.eq(0).find("ul:first").hover(function() {
                clearInterval(LogoItimerID);
            }, function() {
                LogoItimerID = setInterval("LogoImagesscrollLeft()", LogoItimer);
            }).mouseout();
        }
    })
})(jQuery);
