function preloadImage(path, id)
{
  images[id]=new Image();
  images[id].src=path; 
}

var images=new Array();

