{
	switch0 = new Image();
	switch0.src = "/i/si_plus.gif"; 
	switch1 = new Image();
	switch1.src = "/i/si_minus.gif";
}

function expandHome() {
	if (document.getElementById) {
		if (document.getElementById('si-menu').style.display == 'none') {
			document.getElementById('si-menu').style.display = 'block';
			if (document.images) {
				document.images['home-switch'].src = switch1.src;
			}
		}
		else  {
			document.getElementById('si-menu').style.display = 'none';
			if (document.images) {
				document.images['home-switch'].src = switch0.src;
			}
		}
	}
}

function expandMenu(menuName) {
	if (document.getElementById) {
		if (document.getElementById(menuName) == document.getElementById(menuName)) {
			if (navigator.appName == 'Microsoft Internet Explorer') {
				if (document.getElementById(menuName).style.display == 'block') {
					document.getElementById(menuName).style.display = 'none';
					if (document.images) {
						document.images[menuName + '-switch'].src = switch0.src;
					}
				}
				else  {
					document.getElementById(menuName).style.display = 'block';
					if (document.images) {
						document.images[menuName + '-switch'].src = switch1.src;
					}
				}
			}
			else {
				if (document.getElementById(menuName).style.display == 'table-row') {
					document.getElementById(menuName).style.display = 'none';
					if (document.images) {
						document.images[menuName + '-switch'].src = switch0.src;
					}
				}
				else  {
					document.getElementById(menuName).style.display = 'table-row';
					if (document.images) {
						document.images[menuName + '-switch'].src = switch1.src;
					}
				}
			}
		}
	}
}

function expandAll() {
	if (document.getElementById) {
		document.getElementById('si-menu').style.display = 'block';
		if (document.images) {
			document.images['home-switch'].src = switch1.src;
		}
		for (cnt = 0; cnt < node_ids . length; cnt++){
			if (navigator.appName == 'Microsoft Internet Explorer') {
					document.getElementById('si_' + node_ids[cnt]).style.display = 'block';
			}
			else {
				document.getElementById('si_' + node_ids[cnt]).style.display = 'table-row';
			}
			if (document.images) {
				document.images['si_' + node_ids[cnt] + '-switch'].src = switch1.src;
			}
		}
	}
}

function collapseAll() {
	if (document.getElementById) {
		for (cnt = 0; cnt < node_ids . length; cnt++){
			document.getElementById('si_' + node_ids[cnt]).style.display = 'none';
		}
	}
	if (document.images) {
		for (cnt = 0; cnt < node_ids . length; cnt++){
			document.images['si_' + node_ids[cnt] + '-switch'].src = switch0.src;
		}
	}
}