var arrHREF, arrTEXT;
var openRow, closeRow, openLink, closeLink, closeLink1, closeLink2, openImage, closeImage, openText, closeText, NumEntries, currName;
var arrTITLE, openTitle, closeTitle;

arrTITLE=[
"",
"Life of Ven. Hsu Yun",
"",
"",
"Lives of the Patriarchs",
"",
"",
"Records of the<br>High Sanghans",
"",
"",
"Reflections in<br>Water and Mirrors",
"",
""];

openTitle="<tr><td colspan=2 bgcolor=maroon><p class=sm align=center>"
closeTitle="</p></td></tr>"

arrHREF=[
"teach6.html",
"teach6-2.html",
"teach6-3.html",
"teach6-4.html",
"teach6-5.html",
"teach6-6.html",
"teach6-7.html",
"teach6-8.html",
"teach6-9.html",
"teach6-10.html",
"teach6-11.html",
"teach6-12.html",
"teach6-13.html"];

arrTEXT=[
"Introduction",
"Introduction",
"Three Steps, One Bow Pilgrimage",
"A Cup Falls to the Floor -- The Root of Doubt is Severed",
"Introduction",
"Dhyana Master<br>Hwai Shen",
"Dhyana Master<br>Lyang Ching",
"Introduction",
"The Venerable Vighna",
"Dharma Master Dau Li",
"Introduction",
"Incorruptibility",
"Tsau Bin"];

openRow="<tr>";
closeRow="</tr>";
openLink="<td><a href=\"";
closeLink="\" target=\"_top\" onMouseOver='";
closeLink1=".src=\"../images/bullet1.gif\"' onMouseOut='";
closeLink2=".src=\"../images/bullet.gif\"'>";
openImage="<img name=\"";
closeImage="\" src=\"../images/bullet.gif\" width=25 height=25 border=0></a></td>";
openText="";
closeText="</a></td></tr>";

document.write('<table border="0" cellpadding=5 cellspacing=0 width=100%><tr><td colspan=2><h4 align=center><br>Teachings of<br>Ven. Master<br>Hsuan Hua</h4></td></tr>');
drawMenu(arrTITLE, arrHREF, arrTEXT);
document.write('</table>');

function drawMenu(mbArrayTitle, mbArrayLink, mbArrayText)
{
	NumEntries = mbArrayLink.length;
	for (i = 0; i < NumEntries; i++)
	{	currName="item" + i;
		if (arrTITLE[i] != "") {
			document.write(openTitle + mbArrayTitle[i] + closeTitle);
		};
		document.write(openRow + openLink + mbArrayLink[i] + closeLink + currName + closeLink1 + currName + closeLink2 + openImage + currName + closeImage);
		document.write(openLink + mbArrayLink[i] + closeLink + currName + closeLink1 + currName + closeLink2 + openText + mbArrayText[i] + closeText + closeRow);
	}
};