/* 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 = 'http://www.ppcpen.com/components/com_virtuemart/shop_image/product/' // 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('13a8bab36bab6b060d020a223de4a58d','1af5b89c5134063f4de000a94dd15f24','5e3838ee0acddeb29f97cee30f77419c','2ca1ca45b3af5a19bdcf0aeacd380586','5e3838ee0acddeb29f97cee30f77419c','7aefc96906e5b3f5ccafffed449c3c6d','a6206c42cdb531b1c3d5022cfdc8cd07','bb5dc707798eb912ed5ba13d3f5551cf','c50bbc96058a06294ccd56e4da65f522','c9ca919d1fb4c748ea8c069c81316894','dab9bb7d2460056872e0da9e33f651ae','e090755bc23125f572255f68ae5a0b49','f2b39dce0d89731160dbb8b62831bccb','db436765af7e800a4acd10675f33b786','2ca1ca45b3af5a19bdcf0aeacd380586' );
});

