			var gpath = '../../';
			function showElement(id){
	var elm = document.getElementById(id);
	if (null != elm){
		elm.style.display = "inline";
	}
}

var lastshown=null;
function hiliteElement(id){
//alert('hiliteElement('+id+')')
	var elm = document.getElementById(id);
	if (null != elm){
		if(lastshown){lastshown.className="entry";}
		//alert(elm.tagName);
		for(;;){
			elm=elm.nextSibling;
			try{
				if(elm.tagName=='DIV' || elm==null){
					break;
				}
			}catch(s){alert(s)}
		}
		elm.className="entryhilited";
		lastshown=elm;
	}
	return true;
}

function hiliteFromAnchor(a){
//alert('hiliteFromAnchor')
	id=a.href.match(/#(.*)/)[1]
//	alert(id)
	hiliteElement(id);
}

function showDefinition(id){
	hiliteElement(id);
	window.location.href='#'+id;
}


function hideElement(id){
	var elm = document.getElementById(id);
	if (null != elm){
		elm.style.display = "none";
	}
}

function showHideElement(id){
	var img = document.getElementById(id + '-img');
	var elm = document.getElementById(id);
	if (elm.style.display == "none"){
		showElement(id);
		img.src =gpath+ "images/triangle_open.png";
	} else if (elm.style.display == null){
		showElement(id);
		img.src = gpath+"images/triangle_open.png";
	} else {
		hideElement(id);
		img.src = gpath+"images/triangle_closed.png";
	}
}

function showHideNextElement(img){
	var elm=img;
		for(;;){
			elm=elm.nextSibling;
			try{
				if(elm.tagName=='DIV' || elm==null){
					break;
				}
			}catch(s){alert(s)}
		}
	if (elm.style.display == "none"){
		elm.style.display='block';
		img.src =gpath+ "images/triangle_open.png";
	} else if (elm.style.display == null){
		elm.style.display='block';
		img.src = gpath+"images/triangle_open.png";
	} else {
		elm.style.display ="none";
		img.src = gpath+"images/triangle_closed.png";
	}
}
