function toggleVisibility(id, NNtype, IEtype, WC3type, imgName,imgID) {
  var rawpath = $('image_logo_canton').src;
  var pathend = rawpath.lastIndexOf('/');
  var rootpath = rawpath.substr(0,pathend+1);
	document[imgID].src = rootpath + imgName;
	if (document.getElementById) {
		eval("document.getElementById(id).style.visibility = \"" + WC3type + "\"");
	} else {
		if (document.layers) {
			document.layers[id].visibility = NNtype;
		} else {
			if (document.all) {
				eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
			}
		}
	}
}