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