var total = 0;
var graphic = new Array();

function rollovergrap(width, height, name) {
	if (document.images){
		this.name = name;
		this.width = width;
		this.height = height;
		this.off = new Image(width,height);
		this.off.src = "images/"+name+".gif";
		this.on = new Image(width,height);
		this.on.src = "images/"+name+"R.gif";
	}
}

function createSwap(width,height,name) {
	if (document.images){
		graphic[total] = new rollovergrap(width,height,name);
		total++;
	}
}

function swap(name,num) {
	if (document.images){
		document.images[name].src = graphic[num].on.src;
	}
}

function undoswap(name,num) {
	if (document.images){
		document.images[name].src = graphic[num].off.src;
	}
}
createSwap(37,14,"ealain_06");//0
createSwap(88,14,"ealain_07");//1
createSwap(57,14,"ealain_08");//2
createSwap(84,14,"ealain_09");//3
createSwap(95,14,"ealain_10");//4
createSwap(61,14,"ealain_11");//5
createSwap(172,36,"ealain_21");//6
createSwap(172,13,"home_21");//7
createSwap(172,23,"home_22");//8

