function externalLinks() { 

	if (!document.getElementsByTagName) return; 

	var anchors = document.getElementsByTagName("a"); 
	for (var i=0; i<anchors.length; i++) { 
		var anchor = anchors[i]; 
		var relvalue = anchor.getAttribute("rel");

		if (anchor.getAttribute("href")) {
			var external = /external/;
			var relvalue = anchor.getAttribute("rel");
			if (external.test(relvalue)) { anchor.target = "_blank"; }
		} 
	}
} 
window.onload = externalLinks;

function ShowEmail(user, domain, anchor) {
	var OutText = '';
	OutText += '<a href="mailto:' + user + '@' + domain + '">';
	if (anchor != '') OutText += anchor;
	else OutText += user + '@' + domain;
	OutText  += '</a>';
	document.write(OutText);
}


/*function delete_cookie(cookie_name)
{
  var cookie_date = new Date ( );  // current date & time
  cookie_date.setTime ( cookie_date.getTime() - 1 );
  document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString();
}*/

function popVideo(url) {
	newwindow=window.open(url,'Video','height=361,width=482');
	if (window.focus) {newwindow.focus()}
	return false;
}

function popMap() {
	newwindow=window.open('map.htm','map','height=574,width=900');
	if (window.focus) {newwindow.focus()}
	return false;
}

function doShowMap() {
    popdiv=document.getElementById("flashMapHolder")
    if (popdiv != null)
	{
	    popdiv.style.display="block"
	}
	
}

function doHideMap() {
    popdiv=document.getElementById("flashMapHolder")
    if (popdiv != null)
	{
	    popdiv.style.display="none"
	}
	
}

