var newwindow;
function popmap(url)
{
	newwindow=window.open(url,'name','top=100,left=100,width=700,height=400,resizable');
	if (window.focus) {newwindow.focus()}
}


var photoswindow;
function popphotos(url)
{
	photoswindow=window.open(url,'name','top=100');
	if (window.focus) {photoswindow.focus()}
}



//Picture Gallery
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);
function doPic(imgName) {
if (ns3up || ie4up) {
imgOn = ("" + imgName);
document.mainpic.src = imgOn;
   }
}


window.onload=ShowSubMenus;
function ShowSubMenus(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('submenu'+i)) {
		  document.getElementById('submenu'+i).style.display='none';
		}
	}
if (d) {d.style.display='block';}
}




//+ "<BR><input type=button value=' - Close - '" 
 // + "onClick='javascript:window.close();'>"
  
function display(myimage) {
 html = "<HTML><HEAD><TITLE>FOTO</TITLE>" +
  "</HEAD><BODY  LEFTMARGIN=0 " 
  + "MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER>" 
  + "<IMG SRC='" + myimage + "' BORDER=0 NAME=image " 
  + "onload='window.resizeTo(document.image.width,document.image.height)'>"
  
  + "</CENTER>" 
  + "<BR></BODY></HTML>";
 popup=
 window.open
  ('','image',
  'toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
 popup.document.open();
 popup.document.write(html);
 popup.document.focus();
 popup.document.close()
 };

