var isStop = false;
function customerslideLeft() {
    obj = document.getElementById("content");
    if (!isStop) {
        if (!isMoving && position > 0) {
            position--;
            isMoving = true;
            new Effect.Move(obj, { duration: 0.5, x: 157, y: 0, afterFinish: function() { isMoving = false; setTimeout("customerslideLeft()", 500); } });
        }
    }
    /*if(position == 0){
    document.getElementById("leftOn").style.display = "none";
    document.getElementById("leftOff").style.display = "";
    }
    if(position != right){
    document.getElementById("rightOn").style.display = "";
    document.getElementById("rightOff").style.display = "none";
    }*/

}
function customerslideRight() {
    obj = document.getElementById("content");
    if (!isStop) {
        if (!isMoving && position < right) {
            position++;
            isMoving = true;
            new Effect.Move(obj, { duration: 0.5, x: -157, y: 0, afterFinish: function() { isMoving = false; setTimeout("customerslideRight()", 500); } });
        }
    }
    /*if(position == right){
    document.getElementById("rightOn").style.display = "none";
    document.getElementById("rightOff").style.display = "";
    }
    if(position != 0){
    document.getElementById("leftOn").style.display = "";
    document.getElementById("leftOff").style.display = "none";
    }*/

}

