var IE5NS6 = (document.getElementById) ? 1 : 0;     
var IE4 = (document.all) ? 1 : 0;
var clips = new Array();

function setClip (id, coords) {
	clips[id] = coords;
}

setClip (0, "131, 12, 199, 0, 296, 0, 324, 163, 176, 187, 156, 158")
setClip (1, "0, 147, 104, 79, 106, 79, 205, 229, 205, 231, 67, 321, 0, 217")
setClip (2, "550, 78, 707, 129, 649, 301, 494, 250")

function changeAttribute(id, element, value) {
	document.getElementById(id).style[element] = value;
} 
function mapout(defaultId) {
	var element = "visibility";
	var value = "hidden";
	var id, defClass;
	defClass = "overdiv";
	var elementType = "div";
	var Elements = document.getElementsByTagName(elementType);
	for (var i = 0; i < Elements.length; i++) {
		var cName = Elements[i].className;
		if (cName == defClass) {
			id = Elements[i].id;
			if (id != defaultId) {
				changeAttribute (id, element, value);
			}
		}
	}
}
function mapover2(id) {
//	mapout(id);
	var element = "visibility";
	var value = "visible";
	changeAttribute (id, element, value);
}
function mapover(which, on) {
    if (IE5NS6) { 
		whichEl = document.getElementById("topover").style;
	} else if (IE4) {
		whichEl = document.all.topover.style;
	} else { 
		whichEl = document.top.document.topover;
	}
    if (!on) { 
		whichEl.visibility = "hidden"; 
		return; 
	}
	alert (clips[0]);
	whichEl.clip = "polygon (" + clips[which] + ")";
    whichEl.visibility = "visible"
}
