/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com

/* -----------------------------------------------
 Image Preloader - v.1.1
 (c) 2007 http://www.haan.net
 You may use this script but please leave the credits on top intact.
 Please inform us of any improvements made.
 When useful, we will add your credits.
------------------------------------------------ */

function preload() {
       var brochure = new Array();
       var pics = preload.arguments;
       var dir = '../images-blankpngs/' // path to images
       for (i=0;i<pics.length;i++) {
               brochure[i] = new Image();
               brochure[i].src = dir + pics[i] + '.png';
               brochure[i].src = dir + pics[i] + '.PNG'; // 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('book-background','contact-bg','front-bg475','links-1st4i','links-1st4i-ro','links-1st-1stp','links-1st-ro','links-2nd4i','links-2nd4i-ro','links-2nd-1stp','links-2nd-2ndp','links-2nd-ro','links-2nd-ro','links-3rd4i','links-3rd4i-ro','links-3rd-1stp','links-3rd-3rdp','links-3rd-ro','links-4th4i','links-4th4i-ro','links-4th-1stp','links-4th-4thp','links-4th-ro','links-5th4i','links-5th4i-ro','links-5th-1stp','links-5th-5thp','links-5th-ro','links-6th4i','links-6th4i-ro','links-6th-1stp','links-6thp-1st','links-6thp-1st-ro','links-6thp-2nd','links-6thp-2nd-ro','links-6thp-3rd','links-6thp-3rd-ro','links-6thp-4th','links-6thp-4th-ro','links-6thp-5th','links-6thp-5th-ro','links-6thp-6th','links-6thp-6th-ro','links-6thp-home','links-6th-ro','links-back4i','links-home','strip-0p','strip-1stp','strip-2ndp','strip-3rdp','strip-4thp','strip-5thp');
});
