function addLoadEvent(func) {
	var old_onload = window.onload;
	
	if(typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			old_onload();
			func();
		}
	}
}

// this function sends any child objects back into the 'wwwContentHolding' div
function wwwWriteContent(contentObject)	{
	// Here we will define our Containers
	// this is the display container
	var ContentContainer = document.getElementById("showDiv");
	// this is a repository for divs not currently in the display
	var ContentHolding = document.getElementById("hideDiv");
	// send any children objects currently in the display to the holding div
	while(ContentContainer.firstChild) {
		ContentHolding.appendChild(ContentContainer.firstChild);
	}
	// put the active content in thd display div
	ContentContainer.appendChild(contentObject);
}

function googleMap(){
	if(!document.getElementById) return false;
	
	if(document.getElementById("mapLink")) {
		var content = document.getElementById("content");
		var map_link = document.getElementById("mapLink");
		var map = document.createElement("iframe");
		var map_text = document.createTextNode(" ");
		var map_embed_link = "http://maps.google.com/maps?f=q&hl=en&geocode=&q=2301+Calvert+St+NW,+Washington,+DC+20008&sll=43.072916,-76.139054&sspn=0.010518,0.020084&ie=UTF8&s=AARTsJryx9NM9-_7050O2Py0rBNt18y42Q&ll=38.931439,-77.046261&spn=0.023369,0.036478&z=14&iwloc=addr&output=embed";
		
		map.setAttribute("width","425");
		map.setAttribute("height","350");
		map.setAttribute("frameborder","0");
		map.setAttribute("scrolling","no");
		map.setAttribute("marginheight","0");
		map.setAttribute("marginwidth","0");
		map.setAttribute("src",map_embed_link);
		
		map.appendChild(map_text);
		content.insertBefore(map,map_link);
	} else {
		return false;
	}
}

addLoadEvent(googleMap);