<!-- begin hiding
// DO NOT MODIFY ANYTHING BEYOND THIS POINT!!!

var preloadbarWidth = 100 
var gap = 7 
var preloaded = 0;

var imgLen = introImages.length;
var loaded = new Array(), preImages = new Array(), currCount = 0, pending = 0;
var h = 0, hilite = new Array();
var cover = new Array();
var num = Math.floor(preloadbarWidth/gap);
function loadIntro() {
	for (i = 0; i < imgLen; i++) {
		preImages[i] = new Image();
		preImages[i].src = introImages[i];
		loaded[i] = 0;
		cover[i] = Math.floor(num/imgLen)*(i+1)
	}
	cover[cover.length-1] += num%imgLen
	checkLoad();
}
function checkLoad() {
	if (pending) { changeto(); return }
	if (currCount == imgLen) {  return }
	for (i = 0; i < imgLen; i++) {
		if (!loaded[i] && preImages[i].complete) {
			loaded[i] = 1; pending++; currCount++;
			checkLoad();
			return;
		}
	}
	setTimeout("checkLoad()",10);
}
function changeto() {
	if (h+1 > cover[currCount-1]) {
		var percent = Math.round(100/imgLen)*currCount;
		if (percent > 100) while (percent != 100) percent--;
		if (currCount == imgLen && percent < 100) percent = 100;
		defaultStatus = "Loaded " + currCount + " out of " + imgLen + " images [" + percent + "%].";
		if (percent == 100) {preloaded = 1;}
		pending--;
		if (percent != 100) checkLoad();
		return;
	}
	h++;
	if (percent != 100) setTimeout("changeto()",1);
}
defaultStatus = "Loaded 0 out of " + imgLen + " images [0%]."
// end hiding -->

