var timerShowRoom;
var tiemposShowroom= new Array("10","3000","3000","3000");
var i_sr=0;
var nMaxItems_sr=3;

function init(){
        cargado = 1;
    timerShowRoom = setTimeout("cambiarShowRoom()",tiemposShowroom[0]);
}

function cambiarShowRoom(){

        if (cargado==0) return;

    i_sr++;
    if (i_sr>nMaxItems_sr)i_sr=1;

    var show1=document.getElementById('show1');
    var show2=document.getElementById('show2');
    var show3=document.getElementById('show3');

    switch (i_sr) {
        case 1:
            show1.style.display="";
            show2.style.display=show3.style.display="none";
            break;
        case 2:
            show2.style.display="";
            show3.style.display=show1.style.display="none";
            break;
        case 3:
            show3.style.display="";
           	show1.style.display=show2.style.display="none";
            break;
       
    }

        clearTimeout(timerShowRoom);
        numSegundos= tiemposShowroom[i_sr];
        timerShowRoom = setTimeout("cambiarShowRoom()",numSegundos);
}
