var DOMsupport = document.getElementById && document.getElementsByTagName && document.createElement;

function applyShadow(targetElement, shadowColor, shadowOffsetX, shadowOffsetY) {
 	if (typeof(targetElement) != 'object') {
 		targetElement = document.getElementById(targetElement);
 	}
 	var value = targetElement.firstChild.nodeValue;
 	targetElement.style.position = 'relative';
 	targetElement.style.zIndex = 1;

 	var newEl = document.createElement('span');
 	newEl.appendChild(document.createTextNode(value));
 	newEl.className = 'shadowed';
 	newEl.style.color = shadowColor;
 	newEl.style.position = 'absolute';
 	newEl.style.left = shadowOffsetX + 'px';
 	newEl.style.top = shadowOffsetY + 'px';
 	newEl.style.zIndex = -1;

 	targetElement.appendChild(newEl);
}

if (DOMsupport) {
	window.onload = function() {
	  applyShadow('headtext', '#758292', 2, 5);
 	  applyShadow('headsubtext', '#758292', 2, 5);
 	}
}