var s_num = 0;

$.SileShow = function(a) {
    try {
        $(".s_img").css("display", "none");
        $(".s_txt").css("display", "none");
        $(".s_txt").css("height", "0px");
        $("img:eq(" + a + ").s_img").fadeIn()
        $("div:eq(" + a + ").s_txt").animate({ height: "200px" }, 1000);
    }
    finally { setTimeout(function() { $.EnableButton() }, 1000); }
};

$.DisableButton = function() {
    $("a#b_down").css("display", "none");
    $("a#b_up").css("display", "none");
};

$.EnableButton = function() {
    $("a#b_down").fadeIn();
    $("a#b_up").fadeIn();
};

$.MoveLeft = function() {
    if (s_num > 0) s_num--;
    else s_num = 4;
};

$.MoveRight = function() {
    if (s_num < 4) s_num++ ;
    else s_num = 0;
};



