var con = 0;
function Mover(vlr) {
    if (vlr == 1) {
        if (con >= -150) {
            document.getElementById('MoverEfeito').style.marginLeft = con + "px";
            con = con - 5;
            setTimeout('Mover(1)', 1);
        }
    }
    if (vlr == 2) {
        if (con >= -300) {
            document.getElementById('MoverEfeito').style.marginLeft = con + "px";
            con = con - 5;
            setTimeout('Mover(2)', 1);
        }
    }
    if (vlr == 3) {
        if (con <= 0) {
            document.getElementById('MoverEfeito').style.marginLeft = con + "px";
            con = con + 5;
            setTimeout('Mover(3)', 1);
        }
    }
    if (vlr == 4) {
        if (con <= -150) {
            document.getElementById('MoverEfeito').style.marginLeft = con + "px";
            con = con + 5;
            setTimeout('Mover(4)', 1);
        }
    }
}

var con2 = 0;
function Mover2(vlr) {
    if (vlr == 1) {
        if (con2 >= -150) {
            document.getElementById('Mover2Efeito').style.marginLeft = con2 + "px";
            con2 = con2 - 5;
            setTimeout('Mover2(1)', 1);
        }
    }
    if (vlr == 2) {
        if (con2 >= -300) {
            document.getElementById('Mover2Efeito').style.marginLeft = con2 + "px";
            con2 = con2 - 5;
            setTimeout('Mover2(2)', 1);
        }
    }
    if (vlr == 3) {
        if (con2 <= 0) {
            document.getElementById('Mover2Efeito').style.marginLeft = con2 + "px";
            con2 = con2 + 5;
            setTimeout('Mover2(3)', 1);
        }
    }
    if (vlr == 4) {
        if (con2 <= -150) {
            document.getElementById('Mover2Efeito').style.marginLeft = con2 + "px";
            con2 = con2 + 5;
            setTimeout('Mover2(4)', 1);
        }
    }
}

var con3 = 0;
function Mover3(vlr) {
    if (vlr == 1) {
        if (con3 >= -150) {
            document.getElementById('Mover3Efeito').style.marginLeft = con3 + "px";
            con3 = con3 - 5;
            setTimeout('Mover3(1)', 1);
        }
    }
    if (vlr == 2) {
        if (con3 >= -300) {
            document.getElementById('Mover3Efeito').style.marginLeft = con3 + "px";
            con3 = con3 - 5;
            setTimeout('Mover3(2)', 1);
        }
    }
    if (vlr == 3) {
        if (con3 <= 0) {
            document.getElementById('Mover3Efeito').style.marginLeft = con3 + "px";
            con3 = con3 + 5;
            setTimeout('Mover3(3)', 1);
        }
    }
    if (vlr == 4) {
        if (con3 <= -150) {
            document.getElementById('Mover3Efeito').style.marginLeft = con3 + "px";
            con3 = con3 + 5;
            setTimeout('Mover3(4)', 1);
        }
    }
}

var con4 = 0;
function Mover4(vlr) {
    if (vlr == 1) {
        if (con4 >= -150) {
            document.getElementById('Mover4Efeito').style.marginLeft = con4 + "px";
            con4 = con4 - 5;
            setTimeout('Mover4(1)', 1);
        }
    }
    if (vlr == 2) {
        if (con4 >= -300) {
            document.getElementById('Mover4Efeito').style.marginLeft = con4 + "px";
            con4 = con4 - 5;
            setTimeout('Mover4(2)', 1);
        }
    }
    if (vlr == 3) {
        if (con4 <= 0) {
            document.getElementById('Mover4Efeito').style.marginLeft = con4 + "px";
            con4 = con4 + 5;
            setTimeout('Mover4(3)', 1);
        }
    }
    if (vlr == 4) {
        if (con4 <= -150) {
            document.getElementById('Mover4Efeito').style.marginLeft = con4 + "px";
            con4 = con4 + 5;
            setTimeout('Mover4(4)', 1);
        }
    }
}

var con5 = 0;
function Mover5(vlr) {
    if (vlr == 1) {
        if (con5 >= -150) {
            document.getElementById('Mover5Efeito').style.marginLeft = con5 + "px";
            con5 = con5 - 5;
            setTimeout('Mover5(1)', 1);
        }
    }
    if (vlr == 2) {
        if (con5 >= -300) {
            document.getElementById('Mover5Efeito').style.marginLeft = con5 + "px";
            con5 = con5 - 5;
            setTimeout('Mover5(2)', 1);
        }
    }
    if (vlr == 3) {
        if (con5 <= 0) {
            document.getElementById('Mover5Efeito').style.marginLeft = con5 + "px";
            con5 = con5 + 5;
            setTimeout('Mover5(3)', 1);
        }
    }
    if (vlr == 4) {
        if (con5 <= -150) {
            document.getElementById('Mover5Efeito').style.marginLeft = con5 + "px";
            con5 = con5 + 5;
            setTimeout('Mover5(4)', 1);
        }
    }
}

var con6 = 0;
function Mover6(vlr) {
    if (vlr == 1) {
        if (con6 >= -150) {
            document.getElementById('Mover6Efeito').style.marginLeft = con6 + "px";
            con6 = con6 - 5;
            setTimeout('Mover6(1)', 1);
        }
    }
    if (vlr == 2) {
        if (con6 >= -300) {
            document.getElementById('Mover6Efeito').style.marginLeft = con6 + "px";
            con6 = con6 - 5;
            setTimeout('Mover6(2)', 1);
        }
    }
    if (vlr == 3) {
        if (con6 <= 0) {
            document.getElementById('Mover6Efeito').style.marginLeft = con6 + "px";
            con6 = con6 + 5;
            setTimeout('Mover6(3)', 1);
        }
    }
    if (vlr == 4) {
        if (con6 <= -150) {
            document.getElementById('Mover6Efeito').style.marginLeft = con6 + "px";
            con6 = con6 + 5;
            setTimeout('Mover6(4)', 1);
        }
    }
}