function preload(img) {
   var img1 = new Image;
   for(i=0; i < img.length; i++) {
      img1.src = img[i];
   }
}
