
if (document.getElementById) {
	visible = 'visible';
	hidden = 'hidden';
} else if (document.layers) {
	visible = 'show';
	hidden = 'hide';
} else if (document.all) {
	visible = 'visible';
	hidden = 'hidden';
}

function reveal(menu) {
	if (document.getElementById) {
		theMenu = document.getElementById(menu).style;	 
 } else if (document.layers) {
		var theMenu = document.layers[menu];		
	} else if (document.all) {
		var theMenu = document.all[menu].style;	 
}
	if (theMenu.visibility == visible) {
		theMenu.visibility = visible;
	} else {
		theMenu.visibility = visible;
	}
}

function hide(menu) {
	if (document.getElementById) {
		theMenu = document.getElementById(menu).style;
		
	} else if (document.layers) {
		theMenu = document.layers[menu];
		
	} else if (document.all) {
		theMenu = document.all(menu).style;
}
	if (theMenu.visibility == hidden) {
		theMenu.visibility = hidden;
	} else {
		theMenu.visibility = hidden;
	}
}

function Position() {
if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = window.innerWidth;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  winW = document.body.offsetWidth;
 }
}

var totalW=winW-750;
var halfW=totalW/2;
var rightW=Math.round(halfW);
document.getElementById("Content").style.left=rightW+"px";
document.getElementById("Heading").style.left=rightW+"px";
document.getElementById("MenuResources").style.left=rightW+330+"px";
document.getElementById("MenuPhoto").style.left=rightW+140+"px";
document.getElementById("MainMenu").style.left=rightW+30+"px";
document.getElementById("MenuBoat").style.left=rightW+291+"px";
document.getElementById("MenuVehicle").style.left=rightW+291+"px";
reveal('Content');
reveal('Heading');
reveal('MainMenu');
}

function newWindow(PhotoFile, PhotoWidth, PhotoHeight, PhotoDesc) {
      PhotoWindow = window.open("", "Architectural", "width="+PhotoWidth+",height="+PhotoHeight+",scrollbars=no,status=no,menubar=no,marginwidth=0,marginheight=0,leftmargin=0,topmargin=0,rightmargin=0")
      PhotoWindow.focus()
      PhotoWindow.document.write("<html><head><title>"+PhotoDesc+"</title></head><body bgcolor='FFFFFF' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' rightmargin='0'><img src='"+PhotoFile+"'></body></html>")
}

function WindowClose() {
   PhotoWindow.close(); 
}
