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



function mailToFooter() {
	if (!document.getElementById) return false;
	if (!document.getElementById("infoAtFooter")) return false;
	
	var findSpan = document.getElementById("infoAtFooter");
	
		findSpan.onmouseover = function() {
			this.style.textDecoration = "underline";
		}
		findSpan.onmouseout = function() {
			this.style.textDecoration = "none";
		}
	var makeAnchor = document.createElement("a");
	var address = "info@urbanvoice.org";
	var mailto = "mailto:" + address + "?subject=uv%20site%20msg";
	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);

}
	

// Body 1
function mailToBody() {
	if (!document.getElementById) return false;
	if (!document.getElementById("infoAtBody")) return false;

	var findSpanBody = document.getElementById("infoAtBody");
		
		findSpanBody.onmouseover = function() {
			this.style.textDecoration = "underline";
		}
		findSpanBody.onmouseout = function() {
			this.style.textDecoration = "none";
		}
		
	var makeAnchorB = document.createElement("a");
	var addressB = "info@urbanvoice.org";
	var mailtoB = "mailto:" + addressB + "?subject=uv%20site%20msg";
	var myTitleB = "email us";
	
	makeAnchorB.setAttribute("href",mailtoB);
	findSpanBody.appendChild(makeAnchorB);
	
	makeAnchorB.setAttribute("title",myTitleB);
	findSpanBody.appendChild(makeAnchorB);
	
	var txtAddressB = document.createTextNode(addressB);
	makeAnchorB.appendChild(txtAddressB);
}


// Body 2
function mailToBody2() {
	if (!document.getElementById) return false;
	if (!document.getElementById("infoAtBody2")) return false;

	var findSpanBody2 = document.getElementById("infoAtBody2");
		
		findSpanBody2.onmouseover = function() {
			this.style.textDecoration = "underline";
		}
		findSpanBody2.onmouseout = function() {
			this.style.textDecoration = "none";
		}
		
	var makeAnchorB2 = document.createElement("a");
	var addressB2 = "info@urbanvoice.org";
	var mailtoB2 = "mailto:" + addressB2 + "?subject=uv%20site%20msg";
	var myTitleB2 = "email us";
	
	makeAnchorB2.setAttribute("href",mailtoB2);
	findSpanBody2.appendChild(makeAnchorB2);
	
	makeAnchorB2.setAttribute("title",myTitleB2);
	findSpanBody2.appendChild(makeAnchorB2);
	
	var txtAddressB2 = document.createTextNode(addressB2);
	makeAnchorB2.appendChild(txtAddressB2);
}



addLoadEvent(mailToFooter);
addLoadEvent(mailToBody);
addLoadEvent(mailToBody2);
