var searchBoxClicked=0;

function initInterface(){
	var bordo = RUZEE.ShadedBorder.create({ corner:10,edges:"tlr"});
	var bordo3 = RUZEE.ShadedBorder.create({ corner:10,edges:"btlr"});
	bordo.render('MenuContainer');
	bordo3.render('ContactContainer');

	if (document.getElementById('BodyTop')==null) {
		if (NiftyCheck()) {
			Rounded("div#BodyTopBorder", "#547000", "#FFFFFF", 10, 10, "bottom",true);
		}
	} else {
		var bordo2 = RUZEE.ShadedBorder.create({ corner:10,edges:"blr"});
		bordo2.render('BodyTop');
	}
	searchBox=document.getElementById("Search");
	searchBox.onclick=function(){
		if(!searchBoxClicked){
			searchBox.value="";
			searchBoxClicked=1;
		}
	}
}

function applyShadow(targetElement, shadowColor, shadowOffset) {
  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 = shadowOffset + 'px';
  newEl.style.top = shadowOffset + 'px';
  newEl.style.zIndex = -1;

  targetElement.appendChild(newEl);
}

function goToUrl (u) { document.location = u; }

window.onload =initInterface;


