var isDHTML = 0;
var isID = 0;
var isAll = 0;
var isLayers = 0;

if(document.getElementById) {isID = 1; isDHTML = 1;}
else {
	if (document.all) {
		isAll = 1;
		isDHTML = 1;}
	else {
		browserVersion = parseInt(navigator.appVersion);
	if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {isLayers = 1;
	    isDHTML = 1;}
  }}
function finddom(objectID,withStyle) {
	if (withStyle == 1) {
		if (isID) { return (document.getElementById(objectID).style) ; }
		else {
			if (isAll) { return (document.all[objectID].style); }
		else {
			if (isLayers) { return (document.layers[objectID]); }
		};}
	}
	else {
		if (isID) { return (documetn.getElementById(objectID)) ; }
		else {
			if (isAll) { return (document.all[objectID]); }
		else {
			if (isLayers) { return (document.layers[objectID]);
			}
	};}
}
}


	function setVisibility(objectID,state){
		var dom = finddom(objectID,1);
		dom.visibility = state;
	}
////heather, i added in dom.display='block'('none') because it will collapse layers in ff//
	function toggleVisibility(objectID) {
		var dom = finddom(objectID,1);
		state= dom.visibility;
		if (state =='hidden' || state =='hide' ){
			  dom.visibility = 'visible' ; dom.display='block';}
		else {
			if (state == 'visible' || state =='show'){
			  dom.visibility = 'hidden';dom.display='none'}
			  else {dom.visibility = 'visible';dom.display='block' ;}
			 }
	}

	function findVisibility(objectID) {
	  var dom = finddom(objectID,1);
		if ((dom.visibility == 'show') || (dom.visibility == 'visible')) {
			return 'visible'; }
		return 'hidden';
	 }
	 	function showVisibility(objectID) {
			var thisVis = findVisibility(objectID);
			alert('Visibility status: ' + thisVis);
		}
//heather, i added this in off of recentmurals2.php3.
var newWindow = null;
	function openWindow(contentURL,windowname,windowWidth,windowHeight) {
	WidthHeight = 'height=' + windowHeight + ', width=' + windowWidth ;
	newWindow=window.open(contentURL,windowname,WidthHeight) ;
	newWindow.focus()
	}  //popup for picture

	function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}
	function closeWindow()	{
	if (newWindow !=null) {
	newWindow.close();
	newWindow = null;
	}
    }
//END      heather, i added this in off of recentmurals2.php3. 