banners = new Array ("img/banner1.jpg", "img/banner2.jpg", "img/banner3.jpg")
function comeco(){
document.getElementById('meu-banner').src = banners[0];
document.form.texto.value="0";
}
function mais(){
document.form.texto.value = Math.floor (0 + (document.form.texto.value) * 1 + 1);
if (document.form.texto.value > 2){
document.form.texto.value = 0;
}
}
function menos(){
document.form.texto.value = Math.floor (0 + (document.form.texto.value) * 1 - 1);
if (document.form.texto.value < 0){
document.form.texto.value = 2;
}
}
function regular(){
document.getElementById('meu-banner').src = banners[document.form.texto.value];
setTimeout("regular()", 1);
}
form{
display: none;
}