 TRA01=new Image();
TRA01.src='../img/cascos_01/gran/img_01.gif';  

 TRA02=new Image();
TRA02.src='../img/cascos_01/gran/img_02.gif';  

 TRA03=new Image();
TRA03.src='../img/cascos_01/gran/img_03.gif';  

 TRA04=new Image();
TRA04.src='../img/cascos_01/gran/img_04.gif'; 

 TRA05=new Image();
TRA05.src='../img/cascos_01/gran/img_05.gif';  

 TRA06=new Image();
TRA06.src='../img/cascos_01/gran/img_06.gif'; 

 TRA07=new Image();
TRA07.src='../img/cascos_01/gran/img_07.gif'; 

 TRA08=new Image();
TRA08.src='../img/cascos_01/gran/img_08.gif';  

 TRA09=new Image();
TRA09.src='../img/cascos_01/gran/img_09.gif';  

 TRA10=new Image();
TRA10.src='../img/cascos_01/gran/img_10.gif';  

 TRA11=new Image();
TRA11.src='../img/cascos_01/gran/img_11.gif'; 

 TRA12=new Image();
TRA12.src='../img/cascos_01/gran/img_12.gif';  

 TRA13=new Image();
TRA13.src='../img/cascos_01/gran/img_13.gif'; 

 TRA14=new Image();
TRA14.src='../img/cascos_01/gran/img_14.gif'; 

 TRA15=new Image();
TRA15.src='../img/cascos_01/gran/img_15.gif'; 

 TRA16=new Image();					  
TRA16.src='../img/cascos_01/gran/img_16.gif'; 

 TRA17=new Image();
TRA17.src='../img/cascos_01/gran/img_17.gif'; 

 TRA18=new Image();
TRA18.src='../img/cascos_01/gran/img_18.gif'; 	

 T05=new Image();
 T05.src='../img/pix_azul.gif';

   function empieza() {
    total=0;

         if (TRA01.complete) total++; document.form1.total.value=total+"%";
         if (TRA02.complete) total++; document.form1.total.value=total+"%";
         if (TRA03.complete) total++; document.form1.total.value=total+"%";
         if (TRA04.complete) total++; document.form1.total.value=total+"%";
         if (TRA05.complete) total++; document.form1.total.value=total+"%";
         if (TRA06.complete) total++; document.form1.total.value=total+"%";
         if (TRA07.complete) total++; document.form1.total.value=total+"%";
         if (TRA08.complete) total++; document.form1.total.value=total+"%";
         if (TRA09.complete) total++; document.form1.total.value=total+"%";
         if (TRA10.complete) total++; document.form1.total.value=total+"%";
		 if (TRA11.complete) total++; document.form1.total.value=total+"%";
         if (TRA12.complete) total++; document.form1.total.value=total+"%";
         if (TRA13.complete) total++; document.form1.total.value=total+"%";
         if (TRA14.complete) total++; document.form1.total.value=total+"%";
         if (TRA15.complete) total++; document.form1.total.value=total+"%";
         if (TRA16.complete) total++; document.form1.total.value=total+"%";
         if (TRA17.complete) total++; document.form1.total.value=total+"%";
         if (TRA18.complete) total++; document.form1.total.value=total+"%";

         document.T05.width=total;

       

            if (total==18) {

                document.form1.carga.value="La carga se ha completado"

                document.form1.total.value="100%"

                  document.T05.width="100";

                clearTimeout(tiempo);

                setTimeout("document.location.replace('ampliacion_cascos_01.php')",1000);

            }

            else tiempo=setTimeout('empieza()',10);

   }

