
function content_line (level, prettynum, title, section, subref) {

//	alert("cl - MaxDepth=" + MaxDepth);

//	alertst += section + "." + subref + ":";

//	alert("cl - 1");

	if ( level > MaxDepth ) return " "; 

//	alert("cl - 2");

	c  = " ";	
	if (level == 2) {
		// 1*Spaces 
		c += " &nbsp; ";
	} 
	if (level == 3) {
		// 3*Spaces + Bullet
		c += " &nbsp;&nbsp;&nbsp; <font size=2 face=Symbol><span style='font-size:10.0pt;font-family:Symbol'>\267</span></font> ";
	} 
	if (level == 4) {
		// 8*Spaces 
		c += " &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
	} 

//	alert("cl - 4");

	c += "<A HREF=\"Javascript: conlink('" + section + "','" + subref + "')\" " ;
	c += "class='button' ";
	c += "onMouseover=\"Javascript: linkover(this,'#99FFFF')\" " ;
	c += "onMouseout=\"Javascript: linkover(this,document.bgColor)\" " ; 
	c += ">";

//	alert("cl - 5");

	if (level == 1) {
		c += "<B><I>" + title + "</I></B>";
	}
	if (level == 2) {
		c += "<B>" + prettynum + title + "</B>";
	}
	if (level == 3) {
		c += "<B>" + prettynum + "</B>" +  title ;
	}
	if (level == 4) {
		c += "<I>" + prettynum  +  title + "</I>";
	}

//	alert("cl - 6");

	c += "</A><BR>" ;

//	alert (alertst);

//	alert("cl - 7");
//	alert (c);
	return c;
}


function MakeCon (MD) {

     var con = " ";

//     alert("In  " + document.location.href);


	MaxDepth = MD;

//	alert ("MaxDepth = " + MaxDepth);


     con += content_line (1, " ","Introductory Sections", "0_1", " ");
     con += content_line (2, "0.1 ","Welcome and Start Here", "0_1", " ");
     con += content_line (2, "0.2 ","Forward", "0_2", " ");
     con += content_line (3, " ","Please read first!", "0_2", " ");
     con += content_line (3, " ","Guidance on formats and printing", "0_2", "1");
     con += content_line (3, " ","Your feedback is invited", "0_2", "2");

     con += "<BR>";
     if (MD>2) con += "<HR>";
	con += "<A NAME=1_1>";
     con += content_line (1, " ","Chapter 1: The Practice", "1_1", " ");
     con += content_line (2, "1.1 ","The Art of Mindful Living", "1_1", " ");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_2>";
     con += content_line (2, "1.2 ","The Mindfulness Bell", "1_2", " ");
     con += content_line (3, " ","Inviting the bell", "1_2", "1");
     con += content_line (3, " ","Waking up the bell", "1_2", "2");
     con += content_line (3, " ","Hearing the bell", "1_2", "3");
     con += content_line (3, " ","Which bell to use", "1_2", "4");
     con += content_line (3, " ","Bell gathas", "1_2", "5");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_3>";
     con += content_line (2, "1.3 ","Sitting Meditation", "1_3", " ");
     con += content_line (3, " ","Preparation", "1_3", "1");
     con += content_line (3, " ","Entering the meditation room", "1_3", "2");
     con += content_line (3, " ","Sitting posture", "1_3", "3");
     con += content_line (3, " ","Sitting as a Sangha", "1_3", "4");
     con += content_line (3, " ","Sitting practice", "1_3", "5");
     con += content_line (3, " ","Leaving the meditation room", "1_3", "6");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_4>";
     con += content_line (2, "1.4 ","Guided Sitting Meditation", "1_4", " ");
     con += content_line (3, " ","The practice", "1_4", "1");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_5>";
     con += content_line (2, "1.5 ","Kinh Hanh - indoor walking meditation", "1_5", " ");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_6>";
     con += content_line (2, "1.6 ","Outdoor Walking Meditation", "1_6", " ");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_7>";
     con += content_line (2, "1.7 ","Mindful Movements", "1_7", " ");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_8>";
     con += content_line (2, "1.8 ","Eating in Mindfulness", "1_8", " ");
     con += content_line (3, " ","Gathas for eating in mindfulness", "1_8", "1");
     con += content_line (3, " ","The Five Contemplations - gatha", "1_8", "1");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_9>";
     con += content_line (2, "1.9 ","Tea Ceremony", "1_9", " ");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_10>";
     con += content_line (2, "1.10 ","Hugging Meditation", "1_10", " ");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_11>";
     con += content_line (2, "1.11 ","Total Relaxation", "1_11", " ");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_12>";
     con += content_line (2, "1.12 ","Beginning Anew", "1_12", " ");
     con += content_line (3, " ","Beginning Anew ceremony - informal", "1_12", "1");
     con += content_line (3, " ","Beginning Anew ceremony  - with formal practice", "1_12", "2");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_13>";
     con += content_line (2, "1.13 ","The Peace Treaty", "1_13", " ");
     con += content_line (3, " ","Example of a Peace Note", "1_13", "1");
     con += content_line (3, " ","The Peace Treaty (text)", "1_13", "2");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_14>";
     con += content_line (2, "1.14 ","Touching the Earth - prostrations", "1_14", " ");
     con += content_line (3, " ","Guidelines for the practice of the Three Prostrations", "1_14", "1");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_15>";
     con += content_line (2, "1.15 ","Gathas - mindfulness verses", "1_15", " ");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_16>";
     con += content_line (2, "1.16 ","A Day of Mindfulness", "1_16", " ");
     con += content_line (3, " ","Finding a venue", "1_16", "1");
     con += content_line (3, " ","Preparation before the Day", "1_16", "2");
     con += content_line (3, " ","Preparations on the Day", "1_16", "3");
     con += content_line (3, " ","Specimen programme", "1_16", "4");
     con += content_line (3, " ","Planning further Days of Mindfulness", "1_16", "5");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_17>";
     con += content_line (2, "1.17 ","Tree Planting Ceremony", "1_17", " ");

     if (MD>2) con += "<BR>";
	con += "<A NAME=1_18>";
     con += content_line (2, "1.18 ","Mindfulness Retreats", "1_18", " ");

     con+= "<BR>";
     if (MD>2) con += "<HR>";
	con += "<A NAME=2_1>";
     con += content_line (1, " ",    "Chapter 2: Teachings",      "2_1", " ");
     con += content_line (2, "2.1 ","Introduction",              "2_1", " ");
     con += content_line (3, " ",    "The Buddhist Path",         "2_1", "1");

     if (MD>2) con += "<BR>";
	con += "<A NAME=2_2>";
     con += content_line (2, "2.2 ","Interbeing",                                 "2_2", " ");
     con += content_line (3, " ",    "Interbeing: wisdom, prajna",                 "2_2", "1");
     con += content_line (3, " ",    "Experiencing interbeing",                    "2_2", "2");
     con += content_line (3, " ",    "The wave of birth and death",                "2_2", "3");
     con += content_line (3, " ",    "No birth no death",                          "2_2", "4");
     con += content_line (3, " ",    "Non-discriminating wisdom",                  "2_2", "5");
     con += content_line (3, " ",    "Ancestors",                                  "2_2", "6");
     con += content_line (3, " ",    "Historical and ultimate dimensions",         "2_2", "7");
     con += content_line (3, " ",    "Nirvana",                                    "2_2", "8");

     if (MD>2) con += "<BR>";
	con += "<A NAME=2_3>";
     con += content_line (2, "2.3 ","Practising interbeing",                 "2_3", " ");
     con += content_line (3, " ",    "Three Touchings of the Earth",          "2_3", "1");
     con += content_line (3, " ",    "Five Touchings of the Earth",           "2_3", "2");
     con += content_line (3, " ",    "The benefits of Earth Touching",        "2_3", "3");

     if (MD>2) con += "<BR>";
	con += "<A NAME=2_4>";
     con += content_line (2, "2.4 ","Mindfulness and its practice",                 "2_4", " ");
     con += content_line (3, " ",    "What is mindfulness?",                         "2_4", "1");
     con += content_line (3, " ",    "How the mind works",                           "2_4", "2");
     con += content_line (3, " ",    "Store consciousness (Alaya vijnana)",          "2_4", "3");
     con += content_line (3, " ",    "Seeds",                                        "2_4", "4");
     con += content_line (3, " ",    "Habit energies",                               "2_4", "5");
     con += content_line (3, " ",    "The Five Skandhas",                            "2_4", "6");
     con += content_line (3, " ",    "Samatha: stopping, “calm abiding”",      "2_4", "7");
     con += content_line (3, " ",    "Vipassana: looking deeply, insight",           "2_4", "8");
     con += content_line (3, " ",    "Mindful speaking and listening",               "2_4", "9");
     con += content_line (3, " ",    "The Buddha within",                            "2_4", "10");
     con += content_line (3, " ",    "Present moment, wonderful moment",             "2_4", "11");
     con += content_line (3, " ",    "No attainment",                                "2_4", "12");
     con += content_line (3, " ",    "Breathe, you are alive",                       "2_4", "13");
     con += content_line (3, " ",    "The Buddha’s smile",                        "2_4", "14");
     con += content_line (3, " ",    "Joy in the practice",                          "2_4", "15");
     con += content_line (3, " ",    "Bells of mindfulness",                         "2_4", "16");
     con += content_line (3, " ",    "Informal unostentatious practice",             "2_4", "17");


     if (MD>2) con += "<BR>";
	con += "<A NAME=2_5>";
     con += content_line (2, "2.5 ","Ethics and their practice",                  "2_5", " ");
     con += content_line (3, " ",    "Natural ethics ",                            "2_5", "1");
     con += content_line (3, " ",    "The Five Mindfulness Trainings",             "2_5", "2");
     con += content_line (3, " ",    "The Fourteen Mindfulness Trainings",         "2_5", "3");
     con += content_line (3, " ",    "Reciting the Mindfulness Trainings",         "2_5", "4");
     con += content_line (3, " ",    "Practising ethics",                          "2_5", "5");
     con += content_line (3, " ",    "Right livelihood",                           "2_5", "6");
     con += content_line (3, " ",    "The Two Promises",                           "2_5", "7");


     if (MD>2) con += "<BR>";
	con += "<A NAME=2_6>";
     con += content_line (2, "2.6 ","Putting it all into practice",                  "2_6", " ");
     con += content_line (2, "&nbsp;&nbsp;Personal",    " ",                                      "2_6", " ");
     con += content_line (3, " ",    "Handling personal feelings",                    "2_6", "1");
     con += content_line (3, " ",    "The Island of Self",                            "2_6", "2");
     con += content_line (3, " ",    "Relationships",                                 "2_6", "3");
     con += content_line (3, " ",    "Happiness is not an individual matter",         "2_6", "4");
     con += content_line (3, " ",    "The mind of love",                              "2_6", "5");
     con += content_line (3, " ",    "Understanding",                                 "2_6", "6");
     con += content_line (3, " ",    "Acceptance",                                    "2_6", "7");
     con += content_line (3, " ",    "Causes of conflict",                            "2_6", "8");
     con += content_line (3, " ",    "My responsibility in the conflict",             "2_6", "9");
     con += content_line (3, " ",    "Unilateral disarmament",                        "2_6", "10");
     con += content_line (3, " ",    "The Five Awarenesses",                          "2_6", "11");
     con += content_line (3, " ",    "Right (loving) speech, watering positive seeds",         "2_6", "12");
     con += content_line (3, " ",    "Listening deeply",                              "2_6", "13");
     con += content_line (3, " ",    "Non-dependence",                                "2_6", "14");
     con += content_line (3, " ",    "The solidity of the tree",                      "2_6", "15");
     con += content_line (3, " ",    "Beginning Anew and The Peace Treaty",           "2_6", "16");
     con += content_line (2, "&nbsp;&nbsp;Social Action",    " ",                                 "2_6", "17");
     con += content_line (3, " ",    "Engaged Buddhism",                              "2_6", "17");
     con += content_line (3, " ",    "Guidelines in the Mindfulness Trainings",       "2_6", "18");
     con += content_line (3, " ",    "Being peace",                                   "2_6", "19");

     if (MD>2) con += "<BR>";
	con += "<A NAME=2_7>";
     con += content_line (2, "2.7 ","Glossary",                  "2_7", " ");

     con+= "<BR>";
     if (MD>2) con += "<HR>";
	con += "<A NAME=3_1>";
     con += content_line (1, " ",    "Chapter 3: Ceremonies & Practices",                       "3_1", " ");
     con += content_line (2, "3.1 ","Daily Practice ",                                         "3_1", "1");
     con += content_line (3, " ",    "Morning Chant",                                           "3_1", "2");
     con += content_line (3, " ",    "Evening Chant",                                           "3_1", "3");
     con += content_line (3, " ",    "Sitting meditation",                                      "3_1", "4");
     con += content_line (3, " ",    "Kinh Hanh walking meditation",                            "3_1", "5");
     con += content_line (3, " ",    "Sitting meditation",                                      "3_1", "6");
     con += content_line (3, " ",    "Incense Offering",                                        "3_1", "7");
     con += content_line (3, " ",    "Touching the Earth",                                      "3_1", "8");
     con += content_line (3, " ",    "Sutra Opening Verse",                                     "3_1", "9");
     con += content_line (3, " ",    "Sutra reading – The Heart of the Prajńaparamita",   "3_1", "10");
     con += content_line (3, " ",    "Invoking the Bodhisattvas’ Names",                     "3_1", "11");
     con += content_line (3, " ",    "The Three Refuges",                                       "3_1", "12");
     con += content_line (3, " ",    "Sharing the Merit (or Sutra Closing Verse)",              "3_1", "13");

     if (MD>2) con += "<BR>";
	con += "<A NAME=3_2>";
     con += content_line (2, "3.2 ","Recitation Ceremonies",                            "3_2", "1");
     con += content_line (3, " ",    "Recitation of the Three Refuges, the Two Promises & the Five Mindfulness Trainings",             "3_2", "2");

     con += content_line (4, " ",    "To Open the Ceremony", "3_2", "3");
     con += content_line (4, " ",    "Sutra Opening Verse", "3_2", "4");
     con += content_line (4, " ",    "The Heart of the Prajńaparamita", "3_2", "5");

     con += content_line (4, " ",    "Introductory Words", "3_2", "6");
     con += content_line (4, " ",    "The Three Refuges", "3_2", "7");
     con += content_line (4, " ",    "The Two Promises ", "3_2", "8");
     con += content_line (4, " ",    "Sanghakarman Procedure", "3_2", "9");

     con += content_line (4, " ",    "Introductory Words", "3_2", "10");
     con += content_line (4, " ",    "Recitation of the Five Mindfulness Trainings", "3_2", "11");
     con += content_line (4, " ",    "Conclusion", "3_2", "12");
     con += content_line (4, " ",    "The Three Refuges ", "3_2", "13");
     con += content_line (4, " ",    "Sharing the Merit", "3_2", "14");

     con += content_line (3, " ",    "Recitation of the Fourteen Mindfulness Trainings", "3_2", "15");
     con += content_line (4, " ",    "To open the ceremony", "3_2", "16");
     con += content_line (4, " ",    "Sutra Opening Verse", "3_2", "17");
     con += content_line (4, " ",    "The Heart of the Prajńaparamita", "3_2", "18");
     con += content_line (4, " ",    "Sanghakarman Procedure", "3_2", "19");
     con += content_line (4, " ",    "Introductory Words", "3_2", "20");
     con += content_line (4, " ",    "Recitation of the Fourteen Mindfulness Trainings", "3_2", "21");
     con += content_line (4, " ",    "Concluding Words", "3_2", "22");
     con += content_line (4, " ",    "The Three Refuges ", "3_2", "23");
     con += content_line (4, " ",    "Sharing the Merit", "3_2", "24");


     if (MD>2) con += "<BR>";
	con += "<A NAME=3_3>";
     con += content_line (2, "3.3 ","Touchings of the Earth – prostrations",    "3_3", "1");
     con += content_line (3, " ",    "The Three Touchings of the Earth",             "3_3", "2");
     con += content_line (4, " ",    "I connect with ancestors and descendants of both my spiritual and my blood families", "3_3", "3");
     con += content_line (4, " ",    "I connect with all people and all species which are alive at this moment in this world with me", "3_3", "4");
     con += content_line (4, " ",    "I let go of my idea that I am this body and my life span is limited", "3_3", "5");

     con += content_line (3, " ",    "The Five Touchings of the Earth",              "3_3", "6");

     con+= "<BR>";
     if (MD>2) con += "<HR>";
	con += "<A NAME=4_1>";
     con += content_line (1, " ",    "Chapter 4: Recitations & Discourses",        "4_1", " ");
     con += content_line (2, "4.1 ","Recitations & Chants  ",                         "4_1", " ");
     con += content_line (3, " ",    "Love Meditation",                                "4_1", "1");
     con += content_line (3, " ",    "The Five Remembrances",                          "4_1", "2");
     con += content_line (3, " ",    "The Five Awarenesses",                           "4_1", "3");
     con += content_line (3, " ",    "Gatha on Impermanence ",                         "4_1", "4");
     con += content_line (3, " ",    "Invoking the Bodhisattvas’ Names",            "4_1", "5");
     con += content_line (3, " ",    "The Four Recollections",                         "4_1", "6");
     con += content_line (3, " ",    "The Refuge Chant",                               "4_1", "7");

     if (MD>2) con += "<BR>";
	con += "<A NAME=4_2>";
     con += content_line (2, "4.2 ","The Mindfulness Trainings ",                     "4_2", " ");     
     con += content_line (3, " ",    "The Five Mindfulness Trainings",                 "4_2", " ");
     con += content_line (3, " ",    "The Fourteen Mindfulness Trainings",             "4_2", "2");

     if (MD>2) con += "<BR>";
	con += "<A NAME=4_3>";
     con += "<A NAME=4_4>";
     con += "<A NAME=4_5>";
     con += "<A NAME=4_6>";
     con += "<A NAME=4_7>";
     con += "<A NAME=4_8>";
     con += "<A NAME=4_9>";
     con += content_line (2, "4.3 ","Discourses (Sutras)",                                          "4_3", " ");     
     con += content_line (3, " ",    "The Heart of the Prajńaparamita – The Heart Sutra",      "4_3", " ");
     con += content_line (3, " ",    "Commentary on The Heart of the Prajńaparamita",             "4_4", " ");
     con += content_line (3, " ",    "Discourse on Knowing the Better Way to Live Alone",            "4_5", " ");
     con += content_line (3, " ",    "Discourse on the Eight Realisations of the Great Beings",      "4_6", " ");
     con += content_line (3, " ",    "Discourse on Love",                                            "4_7", " ");
     con += content_line (3, " ",    "Discourse on the Full Awareness of Breathing",                 "4_8", " ");
     con += content_line (3, " ",    "The Diamond Sutra – The Diamond that Cuts through Illusion",   "4_9", " ");

     con+= "<BR>";
     if (MD>2) con += "<HR>";
	con += "<A NAME=5_1>";
     con += content_line (1, " ",    "Chapter 5: Information",                       "5_1", " ");
     con += content_line (2, "5.1 ", "The UK Community of Interbeing",               "5_1", " ");

     con += content_line (3, " ", "Sangha contacts",                              "5_1", "1");
     con += content_line (3, " ", "Here & Now newsletter",                        "5_1", "2");
     con += content_line (3, " ", "Membership Application Form",                  "5_1", "3");
    con += content_line (3, " ", "Books service",                                "5_1", "4");

     if (MD>2) con += "<BR>";
	con += "<A NAME=5_2>";
     con += content_line (2, "5.2 ", "Plum Village",                                   "5_2", " ");
     con += content_line (3, " ", "Thich Nhat Hanh",                                "5_2", "1");
     con += content_line (3, " ", "Sister Chân Không",                        "5_2", "2");

     if (MD>2) con += "<BR>";
	con += "<A NAME=5_3>";
     con += content_line (2, "5.3 ", "Visiting Plum Village",                          "5_3", " ");
     con += content_line (3, " ", "Booking your stay",                                 "5_3", "1");
     con += content_line (3, " ", "Which hamlet?",                                     "5_3", "2");
     con += content_line (3, " ", "Map of Plum Village",                               "5_3", "3");
     con += content_line (3, " ", "Travelling to Plum Village",                        "5_3", "4");
     con += content_line (3, " ", "Environmental awareness",                           "5_3", "5");
     con += content_line (3, " ", "The route between Upper & Lower Hamlets",           "5_3", "6");

     if (MD>2) con += "<BR>";
	con += "<A NAME=5_4>";
     con += content_line (2, "5.4 ", "The Order of Interbeing - The Tiep Hien Order",   "5_4", " ");
     con += content_line (3, " ", "Joining the Order of Interbeing ",                   "5_4", "1");
     con += content_line (3, " ", "Guidelines for aspiring UK Order members",           "5_4", "2");
     con += content_line (3, " ", "The UK process for applying to join the Order of Interbeing", "5_4", "3");
     con += content_line (3, " ", "The Charter of the Order of Interbeing",             "5_4", "4");


     con += content_line (4, " ", "CHAPTER I: Name, Aim, Tradition",   "5_4", "5");
     con += content_line (4, " ", "CHAPTER II: Basic Scriptures, Teachings, Methods",   "5_4", "6");
     con += content_line (4, " ", "CHAPTER III: Authority, Membership, Organisation",   "5_4", "7");
     con += content_line (4, " ", "CHAPTER IV: Mindfulness Trainings of the Order of Interbeing, Conditions for Ordination",   "5_4", "8");
     con += content_line (4, " ", "CHAPTER V: Leadership, Community Properties, Accounting",   "5_4", "9");
     con += content_line (4, " ", "CHAPTER VI:  Amending of the Charter",   "5_4", "10");


     if (MD>2) con += "<BR>";
	con += "<A NAME=5_5>";
     con += content_line (2, "5.5 ", "Our Dharma Name and Lineage",   "5_5", " ");
    

     if (MD>2) con += "<BR>";
	con += "<A NAME=5_6>";
     con += content_line (2, "5.6 ", "The Mindfulness Bell newsletter",   "5_6", " ");
     con += content_line (3, " ", "Subscription form ",                   "5_6", "1");
   
	con += "<BR>";








//	alert(con);

	return con;

//     document.write(con);
}