function changeBackground(id) {
	liElement = document.getElementById(id);

	if (liElement) {
		liElement.bgColor = '#036';
	}
} //changeBackground

function toggle(id) {
	ul = "ul_" + id;
	ulElement = document.getElementById(ul);
	//img = "img_" + id;
	//imgElement = document.getElementById(img);

	if (ulElement) {
		if (ulElement.className == 'closed') {
			//closeAllOpened();
			ulElement.className = "open";
			//imgElement.src = "opened.gif";
		} else {
			closeAllOpened();
			//imgElement.src = "closed.gif";
		}
	}
} // toggle()


//Create an array
var allPageTags = new Array();

function closeAllOpened() {
	//Populate the array with all the page tags
	var allPageTags = document.getElementsByTagName("*");

	//Cycle through the tags
	for (i = 0; i < allPageTags.length; i++) {
		//Pick out the opened elements
		if (allPageTags[i].className == 'open') {
			//Manipulate this in whatever way you want
			allPageTags[i].className = "closed";
		}
	}
} //closeAllOpened()


closeAllOpened();
