// Copyright 2006 Professional Website Design
// For other useful scripts and tutorials see http://www.professorscodingcorner.com


function mailToOrder() {
	if (!document.getElementById) return false;
	if (!document.getElementById("orderAt")) return false;
	var findSpan = document.getElementById("orderAt");
		
		findSpan.onmouseover = function() {
			this.style.textDecoration = "underline";
		}
		findSpan.onmouseout = function() {
			this.style.textDecoration = "none";
		}
		
	var makeAnchor = document.createElement("a");
	var address = "order@urbanvoice.org";
	var mailto = "mailto:" + address + "?subject=uvSite%20DVD%20order";
	var myTitle = "email us";
	
	makeAnchor.setAttribute("href",mailto);
	findSpan.appendChild(makeAnchor);
	
	makeAnchor.setAttribute("title",myTitle);
	findSpan.appendChild(makeAnchor);
	
	var txtAddress = document.createTextNode(address);
	makeAnchor.appendChild(txtAddress);

}

addLoadEvent(mailToOrder);
