<!--
if (document.getElementById) {
    layerRef="document.getElementById(";
    styleSwitch=").style";
} else if (document.all) {
    layerRef="document.all[";
    styleSwitch="].style";
} else if (document.layers) {
    layerRef="document.layers[";
    styleSwitch="]";
}

function init() {
	//onload="init();
	buildBodyDOMArray();
	//doPreload(); 					// ERRORING OUT FOR SOME REASON. NOT DEFINED.
	mouseHandler("out", "home");	// WONT WORK UNLESS MENU BITS ARE IN.
    ndeSetTextSize();
    adjustFormElements();
}

var win=null;
function popUp(linkpage,w,h) {
	LeftPosition=(screen.width)?(screen.width-w)/2:100;
	TopPosition=(screen.height)?(screen.height-h)/2:100;
	win=window.open(linkpage, 'Content', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=yes, 	width='+w+', height='+h+', left = '+LeftPosition+', top = '+TopPosition+'');
	if(win.focus){win.focus();}
}



function CloseNewWin(){if(win!=null && win.open)win.close()}
window.onfocus=CloseNewWin;



function doSetStyle(hideOrShow, dropdownObj, displayOnStr) {
	if (!dropdownObj) { return; }
	if (!dropdownObj.style) { return; }
	if (hideOrShow == "show") {
		//dropdownObj.style.display = displayOnStr;
		dropdownObj.style.visibility = "visible";
	} else if (hideOrShow == "hide") {
		//dropdownObj.style.display = "none";
		dropdownObj.style.visibility = "hidden";
	}
}

function doHideShowDropDown(hideOrShow) {
	var dropdownObj;
	var displayOnStr;
	var objCollection;
	var i;
	//all dropdown list needs to have <DIV ID="dropdownlist"></DIV> wrapped around in order
	//to make this hide/show work.
	var dropdownObjName = "dropdownlist";
	if (document.getElementById) {
		objCollection = document.getElementsByName(dropdownObjName);
		if (objCollection) {
		   for (i=0; i<objCollection.length; i++) {
		      dropdownObj = objCollection[i];
		      displayOnStr = "block";
		      //alert("document.getElementById: " + dropdownObj.id);
		      doSetStyle(hideOrShow, dropdownObj, displayOnStr);
		   }
		}
	} else if (document.all && document.all.item) {
		alert("document.all...");
		objCollection = document.all.item(dropdownObjName);
		if (objCollection) {
		   alert("document.all...Got all elements");
		   for (i=0; i<objCollection.length; i++) {
		      dropdownObj = objCollection.item(i);
		      //alert("document.all: " + dropdownObj.id);
		      displayOnStr = "";
		      doSetStyle(hideOrShow, dropdownObj, displayOnStr);
		   }
		}
	} else {
		return;
	}
}


// -->