function isGecko() {
   if ( navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 5 ) {
   return 1;
   } else {
   return 0;
   }
}

function openWin(URL) {
   if(document.all) {
   infoWindow = window.open(URL,"mapWin","width=300,height=165,scrollbars=no,resizable=no,left=300,top=100");
   } else if (isGecko()) {
   infoWindow = window.open(URL,"mapWin","width=300,height=165,scrollbars=no,resizable=no,left=300,top=100");
   } else {
   infoWindow = window.open(URL,"mapWin","width=300,height=165,scrollbars=no,resizable=no,screenX=300,screenY=100");
   }  
}


function newOpenWin(URL) {
   var args;   
   var infoWindow;
   if(document.all) {
   infoWindow = window.open(URL,"mapWin","width=610,height=329,scrollbars=no,resizable=no,left=150,top=150");
   } else if (isGecko()) {
   infoWindow = window.open(URL,"mapWin","width=610,height=329,scrollbars=no,resizable=no,left=150,top=150");
   } else {
   infoWindow = window.open(URL,"mapWin","width=610,height=329,scrollbars=no,resizable=no,screenX=150,screenY=150");
   }  
}

function closeit(URL) {
  infoWindow.close(URL)
}

function showWords() {
  if(document.all) {
    document.all.flagnote.style.visibility = "visible";
    document.all.leftmenu.style.visibility = "hidden";
  } else if (document.layers) { 			//NS 4.x
    //document.flagnote.top -= 85;
    //document.flagnote.left += 121;
    document.flagnote.bgColor = "white";
    document.flagnote.border = "1px";
    document.flagnote.visibility = "visible";
    document.leftmenu.zIndex += 544;
    document.leftmenu.visibility = "hidden";
    //alert("z-index for flagnote is " + document.flagnote.zIndex + " and z-index for leftmenu is " + document.leftmenu.zIndex);
        
  } else {  				//and for ns6 and everthing else...   
    myLeftmenu.style.visibility = "hidden"; 
    myFlagnote.style.visibility = "visible"; 
  }

}

function hideWords() {
  if(document.all) {
    document.all.flagnote.style.visibility = "hidden";
    document.all.leftmenu.style.visibility = "visible";
  } else if (document.layers) { 			//NS 4.x
    document.flagnote.visibility = "hidden";
    //document.flagnote.top += 85;
    //document.flagnote.left -= 121;
    if (document.leftmenu) {
    document.leftmenu.zIndex -= 544;
    document.leftmenu.visibility = "visible";
    }
  } else {  				//and for ns6 etc.   
    myLeftmenu.style.visibility = "visible"; 
    myFlagnote.style.visibility = "hidden"; 
  }
}

function statusMessage(themessage) {
	if (document.layers) {
	alert( themessage );
	return;
	} else {
	window.status= themessage;
	themessage="";
	return;
	}
}

