function toggle(id,elem) {
	var parent = document.getElementById("tgl");
	var e = document.getElementById(id);

	var format="font-size:12px";
	var format2="font-size: 12px";
	var format3="font-size: 12px;";
	var format4="font-size:12px;";
				 
	if (e.style.display == "") {
		e.style.display = "none";
	} else {
		for (var i=0; i < parent.childNodes.length; i++) {
			if (parent.childNodes[i].tagName == "DIV") {
				parent.childNodes[i].style.display="none";
			}
		}
		
		if (elem == 'sz1') {
			document.getElementById('sz2').setAttribute("style",format);
			document.getElementById('sz3').setAttribute("style",format);
			document.getElementById('sz4').setAttribute("style",format);
			document.getElementById('sz5').setAttribute("style",format);
			document.getElementById('sz6').setAttribute("style",format);
			document.getElementById('sz7').setAttribute("style",format);
			document.getElementById('sz8').setAttribute("style",format);
		}
		
		if (elem == 'sz2') {
			document.getElementById('sz1').setAttribute("style",format);
			document.getElementById('sz3').setAttribute("style",format);
			document.getElementById('sz4').setAttribute("style",format);
			document.getElementById('sz5').setAttribute("style",format);
			document.getElementById('sz6').setAttribute("style",format);
			document.getElementById('sz7').setAttribute("style",format);
			document.getElementById('sz8').setAttribute("style",format);
		}
		
		if (elem == 'sz3') {
			document.getElementById('sz1').setAttribute("style",format);
			document.getElementById('sz2').setAttribute("style",format);
			document.getElementById('sz4').setAttribute("style",format);
			document.getElementById('sz5').setAttribute("style",format);
			document.getElementById('sz6').setAttribute("style",format);
			document.getElementById('sz7').setAttribute("style",format);
			document.getElementById('sz8').setAttribute("style",format);
		}

		if (elem == 'sz4') {
			document.getElementById('sz1').setAttribute("style",format);
			document.getElementById('sz2').setAttribute("style",format);
			document.getElementById('sz3').setAttribute("style",format);
			document.getElementById('sz5').setAttribute("style",format);
			document.getElementById('sz6').setAttribute("style",format);
			document.getElementById('sz7').setAttribute("style",format);
			document.getElementById('sz8').setAttribute("style",format);
		}

		if (elem == 'sz5') {
			document.getElementById('sz1').setAttribute("style",format);
			document.getElementById('sz2').setAttribute("style",format);
			document.getElementById('sz4').setAttribute("style",format);
			document.getElementById('sz3').setAttribute("style",format);
			document.getElementById('sz6').setAttribute("style",format);
			document.getElementById('sz7').setAttribute("style",format);
			document.getElementById('sz8').setAttribute("style",format);
		}

		if (elem == 'sz6') {
			document.getElementById('sz1').setAttribute("style",format);
			document.getElementById('sz2').setAttribute("style",format);
			document.getElementById('sz4').setAttribute("style",format);
			document.getElementById('sz5').setAttribute("style",format);
			document.getElementById('sz3').setAttribute("style",format);
			document.getElementById('sz7').setAttribute("style",format);
			document.getElementById('sz8').setAttribute("style",format);
		}
		
		if (elem == 'sz7') {
			document.getElementById('sz1').setAttribute("style",format);
			document.getElementById('sz2').setAttribute("style",format);
			document.getElementById('sz4').setAttribute("style",format);
			document.getElementById('sz5').setAttribute("style",format);
			document.getElementById('sz6').setAttribute("style",format);
			document.getElementById('sz3').setAttribute("style",format);
			document.getElementById('sz8').setAttribute("style",format);
		}		

		if (elem == 'sz8') {
			document.getElementById('sz1').setAttribute("style",format);
			document.getElementById('sz2').setAttribute("style",format);
			document.getElementById('sz4').setAttribute("style",format);
			document.getElementById('sz5').setAttribute("style",format);
			document.getElementById('sz6').setAttribute("style",format);
			document.getElementById('sz7').setAttribute("style",format);
			document.getElementById('sz3').setAttribute("style",format);
		}
		
		e.style.display = "";
	}
	//e.style.display = e.style.display == "none" ? "" : "none";
	if (elem != null) {
		var d = document.getElementById(elem);
		if ( (d.getAttribute("style") != null) && (d.getAttribute("style").toLowerCase() != format) && (d.getAttribute("style").toLowerCase() != format2) && (d.getAttribute("style").toLowerCase() != format3) && (d.getAttribute("style").toLowerCase() != format4) ) {
			d.setAttribute("style",format);
		} else {
			d.setAttribute("style","font-weight:bold;color:#459ad3;font-size:16px;padding-top:1px;margin-top:12px;margin-bottom:4px;");
		}
	}
}

function expand(e) {
	e.style.display = "";
}

function collapse(e) {
	e.setAttribute("style", "display:none");
}