var tmpID = 0;

function showContent(id, hide) {

	var e = document.getElementById(id);
	if (e.style.display == "none") {
		if (tmpID != 0) {
			document.getElementById(tmpID).style.display = "none";
			if (hide == true) {
				document.getElementById("h" + tmpID).style.display = "";
			}
		}
		if (hide == true) {
			document.getElementById("h" + id).style.display = "none";
		}
		tmpID = id;
		e.style.display = "";
	} else {
		if (hide == true) {
			document.getElementById("h" + tmpID).style.display = "";
		}
		e.style.display = "none";
	}
}


if (status != null) {
	for(a in status) {
		if (status[a] != "") {
			showContentEasy(status[a]);
		}
	}
}

function showContentEasy(id) {
	var e = document.getElementById('ul' + id);
	if (e != null) {
		if (e.style.display == "none") {
			document.getElementById('img' + id).src = '/images/admin/icons/minus.gif';
			e.style.display = "";
		} else {
			document.getElementById('img' + id).src = '/images/admin/icons/plus.gif';
			e.style.display = "none";
		}
	}

}

