
// expand collapse sublist
function browseToggle(oSpan) {

	// function disabled
	return;

	oUl = oSpan.parentNode.getElementsByTagName('ul')[0];
	
	if (oSpan.className == 'expandable') {
		oSpan.className = 'collapsable';
		oUl.style.display = "block";
	} else {
		oSpan.className = 'expandable';
		oUl.style.display = "none";
	}

}


// finds the first following tag of a given type
function getNextSiblingByTagName(oEl,cTagname) {

	oSibEl = oEl;
	while (oSibEl.nextSibling && oSibEl.tagName != cTagname) {
		oSibEl = oSibEl.nextSibling;
	}
	return oSibEl;
}


// finds the first preceding tag of a given type
function getPrevSiblingByTagName(oEl,cTagname) {

	oSibEl = oEl;
	while (oSibEl.previousSibling && oSibEl.tagName != cTagname) {
		oSibEl = oSibEl.previousSibling;
	}
	return oSibEl;
}




