defaultStatus = "";

function rollOver(normal, hover, text) {
	if (document.images) {
		this.normal = new Image();
		this.normal.src = normal;
		this.hover = new Image();
		this.hover.src = hover;
		this.text = text;
	}
}

function on(target, swap) {
	if (arguments.length == 1) swap = target;
	if (document.images) {
		eval("document.images['"+target+"'].src="+swap+".hover.src;");
		eval("window.status = "+swap+".text;");
	}
}

function off(target, restore) {
	if (arguments.length == 1) restore = target;
	if (document.images)
		eval("document.images['"+target+"'].src="+restore+".normal.src;");
}