bMSIE= (-1!= navigator.appName.indexOf("Microsoft"));
sCloseImage= "image/h1.gif";
sOpenImage= "image/h2.gif";
sInfoImage= "image/h3.gif";
sDefaultPage= "1";
sEntryHtml= "<img src='INFOIMAGE' border=0><b>TITLE</b><br>";
function HtmlAdd(stDest, sNewHtml)
{
	if((null== stDest)|| (null== sNewHtml))
		return;
	if(! bMSIE){
		var stRange= stDest.ownerDocument.createRange();
		stRange.selectNodeContents(stDest);
		stRange.collapse(false);
		stDest.appendChild(stRange.createContextualFragment(sNewHtml));
	}else
		stDest.insertAdjacentHTML("BeforeEnd", sNewHtml);
}
function HelpMake(stHelpNode)
{
	if(null== stHelpNode)
		return;
	var stObjects= stHelpNode.getElementsByTagName("SPAN");
	var stImage= stHelpNode.getElementsByTagName("IMG")[0], i;
	if(0< stObjects.length){
		if(stHelpNode.bExtract){
			stImage.src= sOpenImage;
			for(i= 0; stObjects.length> i; i++){
				if(stHelpNode!= stObjects[i].parentNode)
					continue;
				stObjects[i].style.display= "inline";
				HelpMake(stObjects[i]);
			}
		}else{
			stImage.src= sCloseImage;
			for(i= 0; stObjects.length> i; i++){
				if(stHelpNode!= stObjects[i].parentNode)
					continue;
				stObjects[i].bExtract= false;
				HelpMake(stObjects[i]);
				stObjects[i].style.display= "none";
			}
		}
	}
}
function HelpRoll(sRoller)
{
	var stAnchor= document.getElementById(sRoller);

	if(null== stAnchor)
		return;
	while("SPAN"== stAnchor.parentNode.tagName){
		stAnchor= stAnchor.parentNode;
		stAnchor.bExtract= true;
	}
	HelpMake(stAnchor);
	top.frames["descmenu"].location.replace(sRoller+ ".htm");
	window.location= "#"+ sRoller;
}
function HelpClick(sEntry)
{
	var stSource= document.getElementById(sEntry);

	if(null== stSource)
		return;
	stSource.bExtract= !(stSource.bExtract);
	HelpMake(stSource);
	top.frames["descmenu"].location.replace(sEntry+ ".htm");
}
function HelpNode(sParent, sChild, sTitle)
{
	if(null== sChild)
		return;
	var stTemp= document.getElementById(sParent);
	if(null== stTemp)
		stTemp= document.getElementById("ColNode").parentNode;
	var stColumn= document.createElement("SPAN");
	stTemp.appendChild(stColumn);
	stColumn.style.cursor= "hand";
	stColumn.id= sChild;
	stColumn.bExtract= false;
	if(! stTemp.nShift)
		stTemp.nShift= 0;
	stColumn.nShift= stTemp.nShift+ 1;
	var sPrefix= "";
	for(var i= 0; stTemp.nShift> i; i++)
		sPrefix+= "¡@";
	stColumn.appendChild(document.createTextNode(sPrefix));
	stTemp= document.createElement("A");
	stTemp.name= sChild;
	stTemp.href= "javascript:HelpClick('"+ sChild+ "')";
	stColumn.appendChild(stTemp);
	var sImageSwap= /INFOIMAGE/g, sTitleSwap= /TITLE/g;
	var sNewHtml= sEntryHtml.replace(sImageSwap, sInfoImage).replace(sTitleSwap, sTitle);
	HtmlAdd(stTemp, sNewHtml);
}
function HelpInit()
{
	TreeSet();
	var stColumn= document.getElementById("ColNode");
	var stRoot= stColumn.parentNode;
	stRoot.removeChild(stColumn);
	stColumn= stRoot.getElementsByTagName("SPAN");
	stColumn[0].bExtract= true;
	for(var i= 0; stColumn.length> i; i++){
		if(stRoot!= stColumn[i].parentNode)
			continue;
		HelpMake(stColumn[i]);
	}
	var sLocat= location.search.slice(2);
	if(""== sLocat)
		sLocat= sDefaultPage;
	HelpRoll(sLocat);
}

