var total = 0;
var graphic = new Array();

function rollovergrap(width, height, 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) {
	graphic[total] = new rollovergrap(width,height,name);
	total++;
}

function swap(name,num) {
	document.images[name].src = graphic[num].on.src;
}

function undoswap(name,num) {
	document.images[name].src = graphic[num].off.src;
}


function swapButton(name,num) {
	//document.images[name].src = graphic[num].on.src;
}

function undoswapButton(name,num) {
	//document.images[name].src = graphic[num].off.src;
}


