function initializePage(){
	//alert(thisPage);
	makeRollover(thisPage);
}


function makeRollover(thisPage){
	navPanelId = "link_" + thisPage;
	x = getStyleObject(navPanelId);
	x.background = "url('images/nav/navbackOn.gif')";
}

function imgOn(imgName){
	if(document.images){
			document[imgName].src = eval(imgName + "_on.src");
	}
}

function imgOff(imgName){
	if(document.images){
			document[imgName].src = eval(imgName + "_off.src");
	}
}



///////////////////////////////////// GLOBAL DISPLAY FUNCTIONS

function writit(text,id){
	
	// these args are:
	// text = the new data from that xml element
	// id = the html id of the box I want to rewrite
	// guid = the xml guid of the xml element I clicked on
	
	if (document.getElementById){

		x = document.getElementById(id);
		x.innerHTML = text;
	}
	else if (document.all){
		x = document.all[id];
		x.innerHTML = text;
	}
}

function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject

function changeObjectVisibility(objectId, newVisibility) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.visibility = newVisibility;
	return true;
    } else {
	// we couldn't find the object, so we can't change its visibility
	return false;
    }
} // changeObjectVisibility




