function ContactUs() {
	EmUs();
	PhUs();
}

function EmUs() {
	// Create a span tag with id="EmUs" and nothing inside it and this
	// function will fill in the email info.
	// Create an img tag with id="EmImg" and this function will include
	// the image in the email link. If the id is NOT found then this
	// function will create the text for the anchor.
	if (!document.getElementById("EmUs")) {
		return false;
	}

	var cEmail   = "ambarnish@redstreetstudio.com"; // enter the To: email address
	var cSubject = "?subject=Web Inquiry - RedStreetStudio.com"; // enter subject for e-mail
	var cBody    = "&body=Thank you for your interest in Red Street Studio"; // body text
	var cMailTo  = "mailto:" + cEmail + cSubject; // + cBody;

	var SpanObj   = document.getElementById("EmUs");
	var AnchorObj = document.createElement("a");
	AnchorObj.setAttribute("onmouseover","status='Send e-mail to Red Street Studio';return true;");
	AnchorObj.setAttribute("onmouseout","status='';return true;");
	AnchorObj.setAttribute("onclick","status='';blur();return true;");
	AnchorObj.setAttribute("onblur","status='';return true;");
	AnchorObj.setAttribute("href",cMailTo);
	SpanObj.appendChild(AnchorObj);

	// If you have an image for your email link, give it an id="EmImg" to NOT
	// create the text for the link and put it anywhere on the page. The image
	// will be moved to inside the link(PC).
	var EmImgNode = document.getElementById("EmImg");
	if (EmImgNode != null) {
		AnchorObj.appendChild(EmImgNode); // append will move an existing node
	}
	else {	// Don't have an EmImg image ID, So display the email as text in the link.
		var TxtObj = document.createTextNode(cEmail);
		AnchorObj.appendChild(TxtObj);
	}
}

function PhUs() {
	// Create a span tag with id="PhUs" and nothing inside it and this
	// function will add the phone number into the document.
	if (!document.getElementById("PhUs")) {
		return false;
	}

	var cPhone   = "708.354.3980"; // enter the phone
	var SpanObj = document.getElementById("PhUs");
	var TxtObj  = document.createTextNode(cPhone);
	SpanObj.appendChild(TxtObj);
}

window.onload = ContactUs;
