var xcNode = [];


function xcSet(m, c) {
if (document.getElementById && document.createElement) {
	m = document.getElementById(m).getElementsByTagName('ul');
	var d, p, x, h, i, j;
	for (i = 0; i < m.length; i++) {
		d = m[i].getAttribute('id');
		if (d) {
			x = xcCtrl(d, c, 'x', '+', 'Show', m[i].getAttribute('title')+' (expand menu)');
			x = xcCtrl(d, c, 'c', '-', 'Hide', m[i].getAttribute('title')+' (collapse menu)');

			p = m[i].parentNode;
			if (h = !p.className) {
				j = 2;
				while ((h = !(d == arguments[j])) && (j++ < arguments.length));
				if (h) {
					m[i].style.display = 'none';
					x = xcNode[d+'x'];
				}
			}

			p.className = c;
			p.insertBefore(x, p.firstChild);
		}
	}
}}


function xcShow(m, i, h) {
	xcXC(m, 'block', m+'c', m+'x');
	
	xcHilite('nav_' + m);
	xcHilite('nav_' + m + '_' + i);
	xcHilite('nav_' + m + '_' + h);
}

function xcHilite(n) {
	el = document.getElementById(n);
	if (el) {
		el.className = 'hilite';
	}
}
	


function xcHide(m) {
	xcXC(m, 'none', m+'x', m+'c');
}


function xcXC(e, d, s, h) {
	e = document.getElementById(e);
	if (e) {
		e.style.display = d;
		e.parentNode.replaceChild(xcNode[s], xcNode[h]);
	}
}


function xcCtrl(m, c, s, v, f, t) {
	var a = document.createElement('a');
	a.setAttribute('href', 'javascript:xc'+f+'(\''+m+'\');');
	a.setAttribute('title', t);
	a.appendChild(document.createTextNode(v));

	var d = document.createElement('div');
	d.className = c+s;
	d.appendChild(a);

	return xcNode[m+s] = d;
}

<!-- Glossary pop up script -->
function launchGlossary(el) {
	newWindow = window.showModelessDialog("/help/pageHelp/glossaryView.html", el, "dialogLeft:0px; dialogTop:0px; dialogWidth:300px; dialogHeight:200px; scroll:yes; resizable:yes");
}