/* 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/' // 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('Logohrt','Web_Collage','Lordco Logo','ETR copy','eagleTrackRaceWay_PowderPuffWi','eagleTrackRaceWay_ParadeLap','eagleTrackRaceWay_KidsDay','Web_IMGP2552','Web_IMGP2565','Web_IMGP2566','Web_IMGP2572','Web_IMGP2617','Web_IMGP2663','Web_IMGP2689','Web_IMGP2698','Web_IMGP2714','Web_IMGP2716','Web_IMGP2718','Web_IMGP2874','Thumb_IMGP2552','Thumb_IMGP2565','Thumb_IMGP2566','Thumb_IMGP2572','Thumb_IMGP2617','THUMB_IMGP2663','Thumb_IMGP2689','Thumb_IMGP2698','Thumb_IMGP2714','Thumb_IMGP2716','Thumb_IMGP2718','Thumb_IMGP2874');
});