/*

Image Preloader

*/

// Preload these hover images for CSS rollovers:
var images = new Array(
	'bg-navtop-a.png'
);

// Images are in this subdirectory from the script/CSS file location:
var imageSubdir = '';

// End of config.
// Get the script URL. HOWTO: http://feather.elektrum.org/book/src.html
// (scripts don't know anything about how they were called; no $0).

var scripts	= document.getElementsByTagName('script');
var index	= scripts.length - 1;
var me		= scripts[index]; // our script object URL.

// Remove everything after the last slash, because the script filename.
var imgBaseURL = me.src.substring(0, me.src.lastIndexOf('/') + 1) + imageSubdir;

// Loop over the images and preload them as Image objects.
for (var i in images) {
	var img = new Image();
	img.src = imgBaseURL + images[i];
}


