<!--

var xmlTextTopMenuNode = null;
function setXmlTopMenu()
{
	xmlTextTopMenuNode = getLocalXmlNode(_xmlNode);
	chooseBrowserFunction("getIExmlTopMenu();","getNetscapeXmlTopMenu();");
}

function getIExmlTopMenu()
{
	var tmpParentNode = xmlTextTopMenuNode;
	var childNodeLength = tmpParentNode.childNodes.length;
	
	var childColection = "";
	for(var i = 0;i<childNodeLength;i++)
	{
		var arrTmpUrl = getIEFirstChildNodeNavigateUrl(tmpParentNode.childNodes(i));
	
		childColection += '<a target="'+arrTmpUrl[0]+'" '+
						' onclick="Javascript:setLastPageToXmlNode(this.href,\'xmlTextTopMenuNode.childNodes('+i+')\');" '+
						' href="'+changePath(arrTmpUrl[1])+'">'+
						tmpParentNode.childNodes(i).getAttribute("Text") + 
						'</a>' + " ~ ";
	}
	childColection = childColection.substring(0,childColection.length-2);
	document.getElementById("textTopMenuXmlMenuNav").innerHTML = childColection;
}

function getNetscapeXmlTopMenu()
{
	var tmpParentNode = xmlTextTopMenuNode;
	
	var tempNode = tmpParentNode.getElementsByTagName(firstNodeName);
	var xmlNodeChildLength = tempNode.length;
	//if (xmlNodeChildLength <= 0){return ;}
	
	var childColection = "";
	for(var i = 0 ; i< xmlNodeChildLength ;i++)
	{
		if (tempNode[i].parentNode != tmpParentNode)
		{
			continue;
		}

		var arrTmpUrl = getNetscapeFirstChildNodeNavigateUrl(tempNode[i]);
		
		childColection += '<a target="'+arrTmpUrl[0]+'"  '+
						' onclick="Javascript:setLastPageToXmlNode(this.href,\'xmlTextTopMenuNode.getElementsByTagName(firstNodeName)['+i+']\');" '+
						' href="'+changePath(arrTmpUrl[1])+'">'+
						tempNode[i].getAttribute("Text") +
						'</a>' + ' ~ ';
	}
	childColection = childColection.substring(0,childColection.length-2);
	document.getElementById("textTopMenuXmlMenuNav").innerHTML = childColection;
}

//setWinLoad("setXmlTopMenu();");

//-->
