<!--  /* add calls to window.onload */
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
 } } }

startList = function() {
if (document.getElementById) {
navRoot = document.getElementById("global-navigation");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
	node.onmouseover=function() {
		this.className+="over";
		if (document.getElementById('beauty')){
			document.getElementById('beauty').style.visibility = 'hidden';}
		if (document.getElementById('section-header')){
			document.getElementById('section-header').style.visibility = 'hidden';}
		if (document.getElementById('search')){
			document.getElementById('search').style.visibility = 'hidden';}
	}
	node.onmouseout=function() {
		this.className=this.className.replace("over", "");
		if (document.getElementById('beauty')){
			document.getElementById('beauty').style.visibility = 'visible';}
		if (document.getElementById('section-header')){
			document.getElementById('section-header').style.visibility = 'visible';}
		if (document.getElementById('search')){
			document.getElementById('search').style.visibility = 'visible';}
	}
}
}
}
}
startGate = function() {
	if (document.getElementById) {
		navRoot = document.getElementById("global-destinations");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
				this.className+="over";
				if (document.getElementById('beauty')){
					document.getElementById('beauty').style.visibility = 'hidden';}
				if (document.getElementById('section-header')){
					document.getElementById('section-header').style.visibility = 'hidden';}
				if (document.getElementById('search')){
					document.getElementById('search').style.visibility = 'hidden';}
//				if (document.getElementById('foundation')){
//					document.getElementById('foundation').style.visibility = 'visible';}
				}
				node.onmouseout=function() {
					this.className=this.className.replace("over", "");
					if (document.getElementById('beauty')){
						document.getElementById('beauty').style.visibility = 'visible';}
					if (document.getElementById('section-header')){
						document.getElementById('section-header').style.visibility = 'visible';}
					if (document.getElementById('search')){
						document.getElementById('search').style.visibility = 'visible';}
//					if (document.getElementById('foundation')){
//						document.getElementById('foundation').style.visibility = 'hidden';}
				}
			}
		}
	}
}



addLoadEvent(startList);
addLoadEvent(startGate);
// addLoadEvent( function(){ add_print_link( 'nav' ) } );


function clearfield(boo) {
var focus = 0;
var cleared = '';
var defaultValue = "Enter search words...";

var theTerms = document.getElementById("terms").value ;
// alert('theTerms = ' + theTerms);

	if (boo.defaultValue==boo.value) {
	boo.value="";
	boo.style.cssText="";
	}
//	if (boo.style) boo.style.cssText="";
//  theTerms.value="";
	cleared=1;
	focus=1;

//	}

if (cleared && (!focus)){
alert('blur');
return;
if (boo.defaultValue !== boo.value){
	boo.value="BoOoooOO!";
//	if (boo.style) boo.style.cssText="";
	}
}

}

-->


