// JavaScript Document


function writeEmail() {
	var a = new Array('o','c','uda.','ong','ls','ne','o@','nf','i','m');
	document.getElementById("mail").innerHTML = a[8]+a[7]+a[6]+a[5]+a[4]+a[3]+a[2]+a[1]+a[0]+a[9];
}


function mail_me() {
	var locationString = new String(location.href);
	var locationArr = locationString.split('?');
	locationString = locationArr[0];
		var a = new Array('o','c','uda.','ong','ls','ne','o@','nf','i','m');
	var wildwood_mail = a[8]+a[7]+a[6]+a[5]+a[4]+a[3]+a[2]+a[1]+a[0]+a[9];

  mail_str = "mailto:" + wildwood_mail; 
  mail_str += "?subject=Questions, comments for Nelson";
  location.href = mail_str;
}



function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
	elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
	  elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
	elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
	vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}
