var numero2=0;
var conta=-1;
var miArray=Array(numero2);
var im="images/fondo.jpg";


function pruebaCarga() {
  eval ("imagen" + " = new Image();");
  eval ("imagen" + ".src = " + "'" + im + "';");
  if (eval("imagen").complete == true) pruebaC(); 
  setTimeout("pruebaCarga()", 1000);
}

function iresto() {
//alert(document.images.length);
miArray=document.images;
numero2=document.images.length;
for (var cont=0;cont<numero2;cont++) {
   eval ("imagen" + cont + " = new Image();");
   eval ("imagen" + cont + ".src = " + "'" + miArray[cont].src + "';");
   }
 
}
function pruebaC() {
  iresto(); 
  conta=conta + 1;
  if (eval("imagen"+conta).complete == true) conta++;
  if (conta==numero2) setTimeout('pruebaC()',500);
  else  $('.degradado').fadeOut(1500); 
	  
    
 }
