function applyShadow(targetElement, shadowOffset) {
  if (document.getElementById && document.getElementById(targetElement)){
	  if (typeof(targetElement) != 'object') {
	    targetElement = document.getElementById(targetElement);
	  }
	  if(targetElement.firstChild)
	  {
		  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.position = 'absolute';
		  newEl.style.display = 'block';
		  newEl.style.width = '635px';
		  newEl.style.left = shadowOffset + 'px';
		  newEl.style.top = shadowOffset + 'px';
		  newEl.style.zIndex = -1;
		  
		  targetElement.appendChild(newEl);
	  }
	}
}

function init() {
	applyShadow('homelink_with_shadow', 1);
	applyShadow('slogan_with_shadow',  1);
}

addLoadEvent(init);