var von = 'b1';

function img_act(imgName) {
	imgOn = eval(imgName + "on.src");
	if(imgName != von) document[imgName].src = imgOn;
}

function img_inact(imgName) {
	imgOff = eval(imgName + "off.src");
	if(imgName != von) document[imgName].src = imgOff;
}


function swp_slide(v,x) {
	document.slide.src = eval(v + ".src");
	document[von].src = eval(von + "off.src");
	von = x;
}

function go(page, w, h, name) {
	specs = "toolbar=no,location=no,directories=no,status=no,resizable=yes,scrollbars=yes,width=" + w + ",height=" + h + ",menubar=no";
	z = window.open(page, name, specs);
	z.focus();
}
function goscr(page, w, h, name) {
	specs = "toolbar=no,location=no,directories=no,status=no,scrollbars=yes,width=" + w + ",height=" + h + ",menubar=no";
	newWin = window.open(page, name, specs)
	newWin.focus();
}
changeable = false;
function colorswap(item, color) {
	if (changeable) {
		if (typeof(document.getElementsByTagName) != 'undefined') {
			theCells = item.getElementsByTagName('td');
		}
		else if (typeof(item.cells) != 'undefined') {
			theCells = item.cells;
		}
		theCells[0].style.backgroundColor = color;
	}
}
