function toggleLayer(whichLayer) {
	if (document.getElementById) {
	// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
	} else if (document.all) {
	// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = style2.display? "":"block";
	} else if (document.layers) {
	// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = style2.display? "":"block";
	}
}

function changepic(imgfile) {
	document.theimg.src = imgfile;
}

function changepic2(imgfile) {
	document.theimg2.src = imgfile;
}

function changepic3(imgfile) {
	document.theimg3.src = imgfile;
}

function changepic4(imgfile) {
	document.theimg4.src = imgfile;
}

function changepic5(imgfile) {
	document.theimg5.src = imgfile;
}

function openmap(file) {
	window.open(file, "", "menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no, width=490, height=420, left=50, top=50");
}

function inherit(objidParent,objidChild,objidGrandchild) {
	if (document.layers) {
		alert('sorry, no pretty layouts for netscape 4');
	} else if (document.getElementById) {
		Parent = document.getElementById(objidParent);
		Child = document.getElementById(objidChild);
		Grandchild = document.getElementById(objidGrandchild);
		
		Parent.style.height = Child.offsetHeight + 'px';
		Grandchild.style.display = 'block';
		return true
	}
} 
