// JavaScript Document
function view_addresses() {
	// loop through all email references that have 
	// a class of 'email-hide' and replaces them with
	// a real email link
	// This is a modified version of the script found at
	// http://htmldog.com/ptg/archives/000063.php
	// Here, I am using the prototype javascript library to
	// do this to EVERY email address rather than one at a time,
	// which can be tedious.
	
	//  To implement this, just create a mail link like this:
	// <a class="email-hide">email[at]address.com</a>
	// That's it. As long as this file is included, it will be
	// changed on the page. You can add as many of these email
	// addresses as you want.
	$$(".email-hide").each(function(email_element){
		var email_node = email_element.firstChild;
		var real_address = email_node.nodeValue.replace("[at]", "@");	
		email_node.nodeValue = real_address; 	
		email_node.parentNode.setAttribute("href", "mailto:"+real_address); 	
	});
	
}

Event.observe( window, 'load', function() {
	view_addresses(); 
});
