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