
 var i=1;
function animacja (){
if (++i>2){
i=1;}

document.images["dom"].src="images/baner"+i+".jpg";
 setTimeout('animacja();',1000);
}

