(function ($) {
    $.fn.hoverForIE6 = function (option) {
        var s = $.extend({ current: "hover", delay: 1 }, option || {});
        $.each(this, function () {
            var timer1 = null, timer2 = null, flag = false;
            $(this).bind("mouseover", function () {
                if (flag) {
                    clearTimeout(timer2);
                }
                else {
                    var _this = $(this);
                     var a = _this.find(".i-mc");
                    var top = 0;
                    var count = _this.index();
                    if (_this.index() != 0) {
                        top = top + (_this.index() * 30) + "px";
                    } else {
                        top = top + "px";
                    }
                    document.getElementById("mc" + count).style.top = top;
                    timer1 = setTimeout(function () { _this.addClass(s.current); flag = true; }, s.delay);
                }
            }).bind("mouseout", function () {
                if (flag) { var _this = $(this); timer2 = setTimeout(function () { _this.removeClass(s.current); flag = false; }, s.delay); }
                else { clearTimeout(timer1); }
            })
        })
    }
})(jQuery);

(function ($) {
    $.fn.hoverForIE6To = function (option) {
        var s = $.extend({ current: "hover", delay: 1 }, option || {});
        $.each(this, function () {
            var timer1 = null, timer2 = null, flag = false;
            $(this).bind("mouseover", function () {
                if (flag) {
                    clearTimeout(timer2);
                }
                else {
                    var _this = $(this);
                    var top = 0;
                    var count = _this.index();
                    var a = _this.find(".i-mc"); 
                    if (_this.index() != 0) {
                        top = top + (_this.index() * 29) + "px";
                    } else {
                        top = top + "px";
                    }
                    document.getElementById("md" + count).style.top = top;
                    timer1 = setTimeout(function () { _this.addClass(s.current); flag = true; }, s.delay);
                }
            }).bind("mouseout", function () {
                if (flag) { var _this = $(this); timer2 = setTimeout(function () { _this.removeClass(s.current); flag = false; }, s.delay); }
                else { clearTimeout(timer1); }
            })
        })
    }
})(jQuery);

/*
@ModificationDate:2011/09/08
*/
