function newWindow(url, w, h)
{
cmdPic = window.open(url, 'picWin', 'width='+w+',height='+h+',toolbar=no,location=no,scrollbars=yes,resizable=yes');
cmdPic.focus();
}

function openIMS(url)
{
var str = "left=0,screenX=0,top=0,screenY=0";
	if (window.screen) {
		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;
		str += ",height=" + ah;
		str += ",innerHeight=" + ah;
		str += ",width=" + aw;
		str += ",innerWidth=" + aw;
	}
cmdIMS = window.open(url, 'imsWin', str+',toolbar=no,location=no,scrollbars=yes,resizable=yes');
cmdIMS.focus();
}

function switchImage (imgSrc, imgAlt)
{
	if (document.getElementById)
  {
		document.getElementById('map').src = imgSrc;
		document.getElementById('map').alt = imgAlt;
  } else if (document.all) {
  	document.images['map'].src = imgSrc;
	  document.images['map'].alt = imgAlt;
  }
}

var oldSpecies
function showBox(species)
{
	if (document.getElementById) {
		document.getElementById(species).style.visibility = 'visible';
	} else if (document.all) {
		document.all[species].style.visibility = 'visible';
	}
	if ((oldSpecies) && (oldSpecies != species)) 
	{
		if (document.getElementById) {
			document.getElementById(oldSpecies).style.visibility = 'hidden';
		} else if (document.all) {
			document.all[oldSpecies].style.visibility = 'hidden';
		}
	}
	oldSpecies = species;
}

function hideBox()
{
	if (oldSpecies) 
	{
		if (document.getElementById) {
			document.getElementById(oldSpecies).style.visibility = 'hidden';
		} else if (document.all) {
			document.all[oldSpecies].style.visibility = 'hidden';
		}
	}
}
function preloadImages()
{
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}