﻿function AutoScroll1(obj) {
    if ($("#Hidden1").val() == "0" && $(obj + " > .list-box > .list-item").length >= 6) {
        $("#Hidden1").val("1");
        $(obj + " > .list-box").append($(obj + " > .list-box > .list-item:first").clone());
        $(obj + " > .list-box").animate({
            marginLeft: "-150px"
        }, 1000, function() {
            $(obj + " > .list-box > .list-item").eq(0).replaceWith("");
            $(obj + " > .list-box").css({ marginLeft: "0px" });
            $("#Hidden1").val("0");
        });
    }
}
function AutoScroll2(obj) {
    if ($("#Hidden1").val() == "0" && $(obj + " > .list-box > .list-item").length >= 6) {
        $("#Hidden1").val("1");
        $(obj + " > .list-box").prepend($(obj + " > .list-box > .list-item:last").clone());
        $(obj + " > .list-box").animate({
            marginLeft: "0px"
        }, 1000, function() {
            $(obj + " > .list-box > .list-item").eq(0).replaceWith("");
            $(obj + " > .list-box").css({ marginLeft: "-150px" });
            $("#Hidden1").val("0");
        });
    }
}

var si1;
function Autoscroll1Stop() {
    clearInterval(si1);
}
function Autoscroll1Start() {
    si1 = setInterval('AutoScroll1(".lun_z")', 3000);
}

