/*
	Javascript functions for the REIM public pages.
*/

function getInfoText(id)
{
	var linkText = new Array();
	linkText['0'] = ">> Return to the REIM Home Page";
	linkText['1'] = ">> Current events and news items of interest.";
	linkText['2'] = ">> Upcoming events for members and the public.";
	linkText['3'] = ">> Course information.";
	linkText['4'] = ">> History of REIM.";
	linkText['5'] = ">> Designations available from the REIC.";
	linkText['6'] = ">> Advantages of hiring people with accredited designations.";
	linkText['7'] = ">> Publications available for download and ordering.";
	linkText['8'] = ">> View our current membership.";
	linkText['9'] = ">> Meet our current board of directors.";
	linkText['10'] = ">> Related links of interest.";
	linkText['11'] = ">> Contact information for the REIM.";
	return linkText[id];
}

function changeText(id)
{
	var infoText = "";
	var ie4 = document.all;
	var ns4 = document.layers;
	var ns6 = document.getElementById && !document.all; 
	
	if (id > "") { infoText = getInfoText(id); }
	
	if (ie4) { document.all.link_info.innerHTML = infoText;
	} else if (ns4) {
	} else if (ns6) { document.getElementById("link_info").innerHTML = infoText; }
	
}

function funcExpand(obj)
{
	var aux = document.getElementById(obj);
	
	if(aux) {
		if (document.all) {
			aux.style.display = (aux.style.display == "none" ) ? "inline" : "none";
		} else {
			aux.style.display = (aux.style.display == "none" ) ? "table-row" : "none";
		}
	}
}