// JavaScript Document

function preload() {
       var brochure = new Array();
       var pics = preload.arguments;
       var dir = '/Beyond_Biz/Ganpati_09/photos/' // path to images
       for (i=0;i<pics.length;i++) {
               brochure[i] = new Image();
               brochure[i].src = dir + pics[i] + '.jpg'; // change file extension, if necessary.
               // uncomment next line for testing; click OK to continue loop and cancel to break
               // if(!confirm(brochure[i].src)) break;
       }
}

// call the function with the list of images (unique part of names)

// Multiple onload function created by: Simon Willison
// http://simon.incutio.com/archive/2004/05/26/addLoadEvent
function addLoadEvent(func) {
 var oldonload = window.onload;
 if (typeof window.onload != 'function') {
   window.onload = func;
 } else {
   window.onload = function() {
     if (oldonload) {
       oldonload();
     }
     func();
   }
 }
}

addLoadEvent(function() {
       preload('img1','img2','img3','img4','img5','img6','img7','img8','img9','img10','img11','img12');
});

