function slideMoveRight() {
    var currentRight = parseInt($(".why_us2_logos_slider").css('left'));
    var maxRight = parseInt($(".why_us2_logos_slider").css('width'));
    //alert("currentRight=" + currentRight + "; maxRight=" + maxRight);
    if (currentRight <= 0)
    {
        currentRight = currentRight + 10;
        $(".why_us2_logos_slider").css('left', currentRight + "px");
        $(".why_us2_left").css('opacity', "1");
    }
    else
    {
        $(".why_us2_right").css('opacity', "0.4");
    }
    return false;
}

function slideMoveLeft() {
    var currentRight = parseInt($(".why_us2_logos_slider").css('left'));
    var maxRight = parseInt($(".why_us2_logos_slider").css('width'));
    //alert("currentRight=" + currentRight + "; maxRight=" + maxRight);
    if (currentRight >= -maxRight + 335)
    {
        currentRight = currentRight - 10;
        $(".why_us2_logos_slider").css('left', currentRight + "px");
        $(".why_us2_right").css('opacity', "1");
    }   
    else
    {
        $(".why_us2_left").css('opacity', "0.4");
    }
    return false;
}

$(function() {
    $(".why_us2_right").mouseover(function() {
    stop_interval_slideMoveRight = setInterval("slideMoveRight()", 100);
    return false;
    });

    $(".why_us2_right").mouseout(function() {
    clearInterval(stop_interval_slideMoveRight);
    return false;
    });

    $(".why_us2_right").click(function() {
    return false;
    });

    $(".why_us2_left").mouseover(function() {
    stop_interval_slideMoveLeft = setInterval("slideMoveLeft()", 100);
    return false;
    });

    $(".why_us2_left").mouseout(function() {
    clearInterval(stop_interval_slideMoveLeft);
    return false;
    });

    $(".why_us2_left").click(function() {
    return false;
    }); 
});

