banners = new Array();
banners[0] = "anestesiologia.swf";
banners[1] = "cirugias.swf";
banners[2] = "reproduccion.swf";
banners[3] = "exoticos.swf";
banners[4] = "laboratorio.swf";
banners[5] = "medinterna.swf";
banners[6] = "oftalmologia.swf";
banners[7] = "radiologia.swf";
banners[8] = "rehabilitacion.swf";

totalbanners = banners.length;

function rotador(entero){

var ahora = new Date() 
var segundos = ahora.getSeconds()
var ad = segundos % totalbanners;
//alert (ad);
//alert (totalbanners);

if (entero=='1')
	{
		if (ad<8)
		{ad=ad+1;
			}
		
		else
			{ad=ad-1;
			
				} 
		//alert(totalbanners);
		}
	seleccionado = banners[ad]
return(seleccionado);
}
