﻿// JScript File

function preload() {
	var args = preload.arguments;
	for (var i=0; i<args.length; i++) {
		this[args[i]] = new Image();
		this[args[i]].src = "images/" + args[i] + ".gif";
		
		this[args[i]+'_f2'] = new Image();
		this[args[i]+'_f2'].src = "images/" + args[i] + "_f2.gif";
	}
}

function SwapImage(imgToSwapIn,imgLocation) {
	imgToSwapIn = eval(imgToSwapIn + ".src");
	document [imgLocation].src = imgToSwapIn;
}

preload('b1','b2','b3','b4','b5','b6','b7','b8','b9','b10','b11');