while(true){
aleatorio = Math.random();
numero = Math.round(aleatorio * 10);

if (numero == 0){
imagen = "http://i255.photobucket.com/albums/hh148/Madrigueras/LaMadri-1.png";
break;}

if (numero == 1){
imagen = "http://i255.photobucket.com/albums/hh148/Madrigueras/LaMadri04.png";
break;}

if (numero == 2){
imagen = "http://i255.photobucket.com/albums/hh148/Madrigueras/LaMadri002.png";
break;}

if (numero == 3){
imagen = "http://i255.photobucket.com/albums/hh148/Madrigueras/LaMadri004.png";
break;}

if (numero == 4){
imagen = "http://i255.photobucket.com/albums/hh148/Madrigueras/LaMadri003.png";
break;}

}
document.write('<a href="http://lamadrigueradelanime.foro-gratis.net/index.htm" target="_self" ><img src="' + imagen + '" border=0 style="width: 800px; height: 280px"></a>');