function showPage(id) {

	pageid = id.substring(0,1) + "_" + id.substring(2);
	if (id=="4.5") {
		parent.frames[0].location.href = "mm/content/einde.php";
	}
	else if (id=="5.1" || id=="5.2" || id=="5.3" || id=="5.4") {

		parent.frames[0].location.href = "mm/content/" + pageid + ".html";
	}
	else {
		//parent.frames[0].location.href = id + ".html";
		//alert("content/" + pageid + ".html");
		parent.frames[0].location.href = "mm/content/" + pageid + ".html";
		//parent.frames[0].location.href = "content/frame.php?id=" + id;
	}
	itemid = id.substring(0,1) + id.substring(2,3);
	listArray = document.getElementsByTagName('li');
	anchorArray = document.getElementsByTagName('a');

	for (i=0; i<anchorArray.length; i++) {
		anchorArray[i].style.fontWeight = "bold";
		anchorArray[i].style.color = "#ccc";

	}
	
	for (i=0; i<listArray.length; i++) {
		if (listArray[i].id.length == 6) {
		//	listArray[i].style.backgroundColor = "#CBCEFF";

		}
		//alert(anchorsArray[i].id + "-" + itemid)
		if (listArray[i].id == "item" + itemid) {
		//	listArray[i].style.backgroundColor = "gray";
		document.getElementById('link' + itemid).style.fontWeight = "bold" ;
		document.getElementById('link' + itemid).style.color = "#88bb00" ;

		}
	}
}


function toggle(id) {
	ul = "ul_item" + id;
	img = "img_" + id;
	//alert(id);
	ulElement = document.getElementById(ul);
	imgElement = document.getElementById(img);
	allElements = document.getElementsByTagName('ul');
	if (ulElement) {
		if (ulElement.className == 'closed') {
			//alert(allElements.length);
			for (i=0; i<allElements.length; i++) {
				
				//alert(allElements[i].id.substr(0, 7));
				if (allElements[i].id.substr(0, 7) == "ul_item") {
					imgid = allElements[i].id.substr(7,1);
					allElements[i].className = "closed";
					document.getElementById("img_" + imgid).src = "opened.gif";;
					//alert(i);
				}
				
			}
			ulElement.className = "open";
			imgElement.src = "closed.gif";
			
		}
		else {
			ulElement.className = "closed";
			imgElement.src = "opened.gif";
		}
	}
}
