function emailLink() {
	var argv = emailLink.arguments;
	return '<a href="mailto:'+argv[0]+'@'+argv[1]+'.'+argv[2]+'">'+((argv[3]) ? argv[3] : argv[0]+'@'+argv[1]+'.'+argv[2])+'</a>';
}

function $(id) {
	return document.getElementById(id);
}

/*
window.onload = function() {
	ul = $('nav');
	list_items = ul.getElementsByTagName('li');
	page_id = document.getElementsByTagName('body')[0].id;
	
	for(x=0; x<list_items.length; x++) {
		list_items[x].childNodes[0].onfocus = function() { if(this.blur) this.blur(); }		
		if(list_items[x].childNodes.length > 2) {
			list_items[x].childNodes[0].onclick = function() {
				// If its already been clicked, just go to that URL
				if(this.className == 'current' && this.parentNode.childNodes[2].style.display != 'none') {
					return;	
				}
						
				// Hide all other sub-menus
				subs = this.parentNode.parentNode.getElementsByTagName('ul');
				for(y=0; y<subs.length; y++) {
					subs[y].style.display = 'none';
					subs[y].parentNode.childNodes[0].className = (subs[y].parentNode.id != 'nav_'+page_id ? '' : 'current');
				}				
				
				// Show/Hide the clicked menu, set to hover style
				subnav = this.parentNode.childNodes[2];				
				subnav.style.display = (subnav.style.display) ? '' : 'none';
				this.className = (!subnav.style.display) ? 'current' : '';
				return false;
			}
		}	
	}	
}
*/