imagenes = new armarvector ("images/1.jpg" ,"images/2.jpg" ,"images/3.jpg" ,"images/4.jpg","images/5.jpg","images/6.jpg","images/7.jpg","images/8.jpg","images/9.jpg","images/10.jpg");

function random() {
 hoy= new Date();
 maximo=10;
 segundos=hoy.getSeconds();
 if (segundos==0) {segundos=1}

 while (segundos>maximo) {segundos=segundos-maximo}
 document.write ('<IMG SRC="'+imagenes[segundos]+'" border="0">');
}

function armarvector (v1, v2, v3 , v4 , v5, v6, v7, v8, v9, v10 ) 
{ this[1]=v1;
 this[2]=v2;
this[3]=v3;
this[4]=v4;
this[5]=v5;
this[6]=v6;
this[7]=v7;
this[8]=v8;
this[9]=v9;
this[10]=v10

}
