function menuEntry(levelOne, levelTwo, forwardURL, menuText)
	{
		bulletState = "0";

		if ( isMac == false) {
			
				menuClass = "leftnav";
		
			} else {
		
				menuClass = "leftnavMac";
			}

		menuEntryHTML = "<table width=\"100%\" cellspacing=0 cellpadding=0>\n";
		menuEntryHTML += "<tr><td width=10 valign=top>";
		
	
		
		if (levelA == levelOne ) {
			
			if (levelB == "0" ) {
				menuEntryHTML += "<img name=b" + levelOne;
				menuEntryHTML += " src=\"" + rootDirectory + "images/triblt_dg.gif\">";
			} else {
				menuEntryHTML += "<a href=\"" + rootDirectory + forwardURL + "\" title=\" \">";
				menuEntryHTML += "<img border=0 name=b" + levelOne;
				menuEntryHTML += " src=\"" + rootDirectory + "images/triblt_dw.gif\"></a>";
				bulletState = "1";
			}
			
		} else {
		
			menuEntryHTML += "<a href=\"" + rootDirectory + forwardURL + "\" title=\" \">";
			menuEntryHTML += "<img border=0 name=b" + levelOne;
			menuEntryHTML += " src=\"" + rootDirectory + "images/triblt_w.gif\"></a>";
		
		}

		menuEntryHTML += "</td><td valign=top align=left width=130 class=" + menuClass + ">";
			
		if (levelA != levelOne || levelB > levelTwo) {

			menuEntryHTML += "<A HREF=\"" + rootDirectory + forwardURL + "\" ";
			menuEntryHTML += "ONMOUSEOVER=\"changeImages('b" + levelOne + "\', \'" + rootDirectory;

			if (bulletState == "1") {
				menuEntryHTML += "images/triblt_dy.gif\'\)\; return true\;\" ";
				} else {
				menuEntryHTML += "images/triblt_y.gif\'\)\; return true\;\" ";
				}

			menuEntryHTML += "ONMOUSEOUT=\"changeImages(\'b" + levelOne + "\', \'" + rootDirectory;

			if (bulletState =="1") {
				menuEntryHTML += "images/triblt_dw.gif\'\)\; ";
				} else {
				menuEntryHTML += "images/triblt_w.gif\'\)\; ";
				}
			menuEntryHTML += "return true\;\" class=" + menuClass + ">";
			
		}


		menuEntryHTML += menuText;

		if (levelA != levelOne || levelB > levelTwo) menuEntryHTML += "</A>";
		menuEntryHTML += "</td></tr>\n";
		menuEntryHTML += "</table>\n";
		
		//document.write(menuEntryHTML);
		//alert(menuEntryHTML);		
		fulltextHTML += menuEntryHTML;		
	}

//----------------------------------------------

	function topMenuEntry(levelOne, levelTwo, forwardURL, menuText, cellwidth)
	{
		if ( isMac == false) {
			
			thisTopClass = "topnav";
				
		} else {
			thisTopClass = "topnavMac";
		}
		
	    	topMenuHTML = "<td align=center class=" + thisTopClass;
	    	
	    	topMenuHTML += " width=\"" + cellwidth + "\">";
	    	
		if (levelA != levelOne || levelB > levelTwo) {
		
			topMenuHTML += "<A HREF=\"" + rootDirectory + forwardURL;
			topMenuHTML += "\" class=" + thisTopClass + ">";

		}
		topMenuHTML += menuText;
		topMenuHTML += "</A><br></td>";
		
		document.write(topMenuHTML);
		

	}


//----------------------------------------------
//
//

function subMenuEntry(levelTwo, forwardURL, menuText)
	{

		if ( isMac == false) {
		
			thisClass = "leftsubnav";
			
		} else {
		
			thisClass = "leftsubnavMac";
		}
		
		subMenuHTML = "<tr><td width=6 valign=top class=" + thisClass + ">&nbsp;&nbsp;&nbsp;-</td><td class=" + thisClass + ">";
		
		if (levelB != levelTwo || levelC != 0) {
		
			subMenuHTML += "<A HREF=\"" + rootDirectory + forwardURL;
		
			subMenuHTML += "\" class=" + thisClass + ">";
		}
	
		subMenuHTML += menuText;
		
		if (levelB != levelTwo) subMenuHTML += "\n</A>";
				
		subMenuHTML += "</td></tr>\n";
		
		//document.write(subMenuHTML);
		//alert(subMenuHTML);
		fulltextHTML += subMenuHTML;
		
	}




function makeNavMenu(){

fulltextHTML = "";

// Write this line only if not on the Main Page of the site
		

		
	if (HomePage == "no") {
		menuEntry(0, 0, 'index.html', 'Main Page');
		}
	
// Blood Pressure Section


		menuEntry(2, 0, 'bp/bp.htm', 'Blood Pressure');


// High Blood Pressure Section

		menuEntry(3, 0, 'hbp/intro.htm', 'High Blood<br>&nbsp; Pressure');
		if (levelA == "3") {
			fulltextHTML += "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>\n";
			subMenuEntry(1, 'hbp/whathbp.htm', 'What Are High Blood Pressure & Prehypertension?');
			subMenuEntry(2, 'hbp/serious.htm', 'Why Is High Blood Pressure Important?');
			subMenuEntry(3, 'hbp/effect/effect.htm', 'Effect Of High Blood Pressure On Your Body');
			subMenuEntry(4, 'hbp/causes.htm', 'What Causes High Blood Pressure?');
			subMenuEntry(5, 'hbp/develop.htm', 'Who Can Develop High Blood Pressure?');
			fulltextHTML += "</table>\n";
		}

// Detection Section

		menuEntry(4, 0, 'detect/detect.htm', 'Detection');
		if (levelA == "4") {
			fulltextHTML += "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>\n";
			subMenuEntry(1, 'detect/know.htm', 'How Do I Know If I Have High Blood Pressure?');
			subMenuEntry(2, 'detect/tested.htm', 'How Is Blood Pressure Tested?');
			subMenuEntry(3, 'detect/tips.htm', 'Tips for Having Your Blood Pressure Taken');
			subMenuEntry(4, 'detect/categ.htm', 'Categories for Blood Pressure Levels in Adults');
			subMenuEntry(5, 'detect/devices.htm', 'What Device Can I Use to Take My Own Blood Pressure?\n');
			fulltextHTML += "</table>\n";
		}

// Prevention Section

		menuEntry(5, 0, 'prevent/prevent.htm', 'Prevention');
		if (levelA == "5") {
			fulltextHTML += "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>\n";
			subMenuEntry(1, 'prevent/h_eating/h_eating.htm', 'Healthy Eating');
			subMenuEntry(2, 'prevent/sodium/sodium.htm', 'Reduce Sodium');
			subMenuEntry(3, 'prevent/h_weight/h_weight.htm', 'Healthy Weight');
			subMenuEntry(4, 'prevent/p_active/p_active.htm', 'Physical Activity');
			subMenuEntry(5, 'prevent/l_alcohol/l_alcohol.htm', 'Limit Alcohol');
			subMenuEntry(6, 'prevent/q_smoke/q_smoke.htm', 'Quit Smoking');
			subMenuEntry(7, 'prevent/factors/factors.htm', 'Other Factors');

			fulltextHTML += "</table>\n";
		}

// Treatment Section

		menuEntry(6, 0, 'treat/treat.htm', 'Treatment');
		if (levelA == "6") {
			fulltextHTML += "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>\n";
			subMenuEntry(1, 'treat/bpd_type.htm', 'Types Of Blood Pressure Medications');
			subMenuEntry(2, 'treat/tips.htm', 'Remember to Take Your Medicine');
			subMenuEntry(3, 'treat/question.htm', 'Questions to Ask Your Doctor');
			subMenuEntry(4, 'treat/iq_test.htm', 'Test Your Medication IQ');
			fulltextHTML += "</table>\n";
		}

// Issues for Women Section

		menuEntry(7, 0, 'issues/issues.htm', 'Issues for <BR>&nbsp;&nbsp;Women');
		if (levelA == "7") {
			fulltextHTML += "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>\n";
			subMenuEntry(1, 'issues/preg/preg.htm', 'Pregnancy');
			subMenuEntry(2, 'issues/oc.htm', 'Oral Contraceptives');
			subMenuEntry(3, 'issues/hrt.htm', 'Hormone Replacement Therapy');
			fulltextHTML += "</table>\n";
		}

// Real Life Examples Section

		menuEntry(9, 0, 'real/real.htm', 'Real Life <br>&nbsp; Examples');
		if (levelA == "9") {
			fulltextHTML += "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>\n";
			subMenuEntry(1, 'real/meg/meet.htm', 'Mary Ellen Gannon');
			subMenuEntry(2, 'real/rt/meet.htm', 'Ron Tucker');
			subMenuEntry(3, 'real/hf/meet.htm', 'Hal Fullerton');
			subMenuEntry(4, 'real/mc/meet.htm', 'Maria Carrillo');
			subMenuEntry(5, 'real/cj/meet.htm', 'Carol Jackson');
			fulltextHTML += "</table>\n";
		}
		

	document.write(fulltextHTML);
}
