var imgSfx = ".gif";
var offSfx = "-off";
var onSfx = "-on";

var list = new Array();

function preload(name, path, offSfx, onSfx, imgSfx) {
	if (document.images) {
		list[name] = new Object();
		list[name].off = new Image();
		list[name].off.src = path + name + offSfx + imgSfx;
		list[name].on = new Image();
		list[name].on.src = path + name + onSfx + imgSfx;
	}
}

function imgOn(whichImg) {
	if (document.images && list[whichImg].on) {
		document.images[whichImg].src = list[whichImg].on.src;
	}
}

function imgOff(whichImg) {
	if (document.images && list[whichImg].off) {
		document.images[whichImg].src = list[whichImg].off.src;
	}
}

function openWin(url,name,width,height) {
	window.open(url,"toh" + name,"width=" + width + ",height=" + height + ",location=0,titlebar=0,toolbar=0,menubar=0,directories=0,personalbar=0,status=0,resizable=0,scrollbars=0");
}

function openWin2(url,name,width,height) {
	window.open(url,"toh" + name,"width=" + width + ",height=" + height + ",location=0,titlebar=0,toolbar=0,menubar=0,directories=0,personalbar=0,status=0,resizable=1,scrollbars=1");
}

function openPlayer(url) {
	window.open(url,"tohPlayer","width=340,height=216,location=0,titlebar=0,toolbar=0,menubar=0,directories=0,personalbar=0,status=0,resizable=0,scrollbars=0");
}

