function toggleList(e){
	element = document.getElementById(e).style;
	element.display == 'none' ? element.display = 'block' : 
element.display='none';
}

function blocking(nr){
	if (document.getElementById(nr)){
		// Code added by Sean McCleary 06/16/06
		var element = document.getElementById(nr);
		var display = element.style.display;
		if(!display)
			display = 'none';
		var current = 'none';
		if(display == 'none')
			current = 'block';
		element.style.display = current;
		var plusMinus = '+ ';
		if(current == 'block')
			plusMinus = '-&nbsp;&nbsp;';
		var aPlus = document.getElementById(nr).parentNode.childNodes[0]
		aPlus.innerHTML = plusMinus;
		// End code added by Sean McCleary
	}
    return false;
}

function createStyleRule(selector, declaration) {
	if (!document.getElementsByTagName || !(document.createElement || document.createElementNS)) return;
	var agt = navigator.userAgent.toLowerCase();
	var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
	var is_iewin = (is_ie && (agt.indexOf("win") != -1));
	var is_iemac = (is_ie && (agt.indexOf("mac") != -1));
	if (is_iemac) return; // script doesn't work properly in IE/Mac
	var head = document.getElementsByTagName("head")[0]; 
	var style = (typeof document.createElementNS != "undefined") ?  document.createElementNS("http://www.w3.org/1999/xhtml", "style") : document.createElement("style");
	if (!is_iewin) {
		var styleRule = document.createTextNode(selector + " {" + declaration + "}");
		style.appendChild(styleRule); // bugs in IE/Win
	}
	style.setAttribute("type", "text/css");
	style.setAttribute("media", "screen"); 
	head.appendChild(style);
	if (is_iewin && document.styleSheets && document.styleSheets.length > 0) {
		var lastStyle = document.styleSheets[document.styleSheets.length - 1];
		if (typeof lastStyle.addRule == "object") { // bugs in IE/Mac and Safari
			lastStyle.addRule(selector, declaration);
		}
	}
}

// call this after page has loaded --
if (document.getElementById) { // include all feature tests needed for your DOM script
	createStyleRule(".sub", "display:none;");
	var on = document.getElementById('on');
	if(on != null){
		var i = 0;
		while( ((!on.childNodes[i].tagName) || (on.childNodes[i].tagName.toUpperCase() != 'UL')) && (i < 10)){
			i++;
		}
		var childID = on.childNodes[i].id;
		blocking(childID);
	}
}