var myArticles = [{text: "Historical Notes", url: "", sublinks: [
	{text:"The Temple Mount", url: "articles.shtml?startPoint=The Temple Mount", sublinks:[
		{text:"The Temple Mount in the First and Second Temple periods.", url: "article.asp?id=26"},
		{text:"The Temple Mount in traditional thought", url: "articles.shtml?startPoint=The Temple Mount in traditional thought",sublinks:[
			{text:"The Foundation Stone of the world", url: "article.asp?id=136"},
			{text:"Isaac's sacrifice", url: "article.asp?id=137"},
			{text:"Jacob's dream", url: "article.asp?id=138"},
			{text:"The Tablets", url: "article.asp?id=139"},
			{text:"The Arc of the Covenant", url: "article.asp?id=140"}
		]},
		{text:"The architecture of the Temple Mount", url: "articles.shtml?startPoint=The architecture of the Temple Mount", sublinks:[
			{text:"Herod's building proclamation", url: "article.asp?id=19"},
			{text:"The walls of the Temple Mount", url: "article.asp?id=21"},
			{text:"Method of construction", url: "article.asp?id=22"},
			{text:"The Herodian building blocks", url: "article.asp?id=23"},
			{text:"Stone quarrying and construction", url: "article.asp?id=55"},
			{text:"Hoisting and transporting massive stones", url: "article.asp?id=16"},
			{text:"The streets along the Temple Mount walls", url: "article.asp?id=54"},
			{text:"The gates of the Temple Mount", url: "article.asp?id=53"}
		]}
	]},
	{text:"The temple", url: "articles.shtml?startPoint=The temple", sublinks:[
		{text:"The temple's construction", url: "article.asp?id=144"},
		{text:"The sources", url: "article.asp?id=142"},
		{text:"The layout of the temple", url: "article.asp?id=143"},
		{text:"The gates leading to the temple", url: "article.asp?id=145"}
		]},
	{text:"Priests and priesthood", url: "articles.shtml?startPoint=Priests and priesthood", sublinks:[
		{text:"The priestly office", url: "article.asp?id=51"},
		{text:"The high priest", url: "article.asp?id=146"},
		{text:"The priestly oligarchy", url: "article.asp?id=147"}
		]},
	{text:"Religious rituals connected with the Temple", url: "articles.shtml?startPoint=Religious rituals connected with the Temple", sublinks:[
		{text:"The Sacrificing Rituals", url: "articles.shtml?startPoint=The Sacrificing Rituals", sublinks: [
			{text:"The sources", url: "article.asp?id=149"},
			{text:"Sacrifices", url: "article.asp?id=148"},
			{text:"The offering rituals", url: "article.asp?id=150"},
			{text:"Holiday offerings", url: "article.asp?id=151"},
			{text:"The end of sacrificing", url: "article.asp?id=152"}
		]},
		{text:"The Jewish pilgrimage", url: "articles.shtml?startPoint=The Jewish pilgrimage", sublinks:[
			{text:"The number of pilgrims", url: "article.asp?id=153"},
			{text:"Accommodations", url: "article.asp?id=154"},
			{text:"The half shekel poll tax", url: "article.asp?id=155"},
			{text:"Cause of uprisings", url: "article.asp?id=156"}
		]},
		{text:"Ritual baths", url: "article.asp?id=25"}
		]},
	{text:"The destruction of the temple", url: "articles.shtml?startPoint=The destruction of the temple", sublinks:[
		{text:"Historical survey", url: "articles.shtml?startPoint=Historical survey" , sublinks:[
			{text:"The causes of war", url: "article.asp?id=157"},
			{text:"The civil war", url: "article.asp?id=158"},
			{text:"The destruction of the temple", url: "article.asp?id=159"}
		]} //,
		//{text:"Archaeological evidence", url: "articles.shtml?startPoint=Archaeological evidence", sublinks: [
		//	{text:"The Jerusalem Archaeological Park", url: ""},
		//	{text:"The Jewish Quarter", url: ""}
		//]}
		]},
	{text:"Water supply systems", url: "articles.shtml?startPoint=Water supply systems", sublinks:[
		{text:"The aqueducts of Jerusalem", url: "article.asp?id=162"},
		{text:"The Arrub aqueduct", url: "article.asp?id=163"},
		{text:"The Biar aqueduct", url: "article.asp?id=164"},
		{text:"The Lower aqueduct", url: "article.asp?id=165"},
		{text:"The Upper aqueduct", url: "article.asp?id=166"}
		]},
	{text:"Tombs and burial costumes", url: "articles.shtml?startPoint=Tombs and burial costumes", sublinks:[
		{text:"Historical background", url: "article.asp?id=100"},
		{text:"The kidron valley tombs", url: "article.asp?id=101"}

		]}
	]
}]




function getArticles(startNode) {
	var html = ""
	var linkArr = []
	for (var i = 0 ; i < myArticles.length ; i++) {
		if (myArticles[i].sublinks) {
			if (myArticles[i].text == startNode) {
				linkArr = myArticles[i].sublinks
				break
			} else {
				for (j = 0 ; j < myArticles[i].sublinks.length ; j++) {
					if (myArticles[i].sublinks[j].sublinks) {
						if (myArticles[i].sublinks[j].text == startNode) {
							linkArr = myArticles[i].sublinks[j].sublinks
							break
						} else {
							for (k = 0 ; k < myArticles[i].sublinks[j].sublinks.length ; k++) {
								if (myArticles[i].sublinks[j].sublinks[k].sublinks) {								
									if ( myArticles[i].sublinks[j].sublinks[k].text == startNode && myArticles[i].sublinks[j].sublinks[k].sublinks) {
										linkArr = myArticles[i].sublinks[j].sublinks[k].sublinks
										break
									} else {
										for (l = 0 ; l < myArticles[i].sublinks[j].sublinks[k].sublinks.length ; l++) {
										
											if ( myArticles[i].sublinks[j].sublinks[k].sublinks[l].text == startNode && myArticles[i].sublinks[j].sublinks[k].sublinks[l].sublinks) {
												linkArr = myArticles[i].sublinks[j].sublinks[k].sublinks[l].sublinks
												break
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
	
	if (linkArr.length > 0) {
		html += "<DIV CLASS='Title'>" + startNode + "</DIV><BR>"
	} else {
		html += "<BR><BR>No articles found in this category.<BR><BR><BR><BR><BR><BR>"
	}

	for (i = 0 ; i < linkArr.length ; i++) {
		html += "<IMG SRC='images/bullet.gif' WIDTH='8' HEIGHT='12' ALT='' BORDER='0' ALIGN='ABSMIDDLE' HSPACE='5'> <A HREF='" + linkArr[i].url + "' CLASS=''>" + linkArr[i].text + "</A><BR><BR>"
	}
	
	return html
}
