
function WriteLink(text, target, matchString) {
	document.write ("<div>\n");
	if (text == matchString) {
		document.write ("<p>" + text + "</p>\n");
	}
	else {
		document.write ("<a href=\"" + target + "\" target=\"_self\">\n");
		document.write (text + "\n");
		document.write ("</a>\n");		
	}
	document.write ("</div>\n");
}

function WriteSideBar (matchString) {
	document.write ("<div id=\"content-left\">\n");
	
	WriteLink ("Home", "index.html", matchString);
	WriteLink ("About Spring Medical", "about_us.html", matchString);
	WriteLink ("Driving Directions", "directions.html", matchString);
	WriteLink ("New Weight Loss Patients", "new_patients.html", matchString);
	WriteLink ("Before & After Pictures", "client_photos.html", matchString);
	WriteLink ("Body Composition Testing", "body_testing.html", matchString);
	WriteLink ("TB Testing", "tb_test.html", matchString);
	WriteLink ("Health Screenings & Shots", "shots.html", matchString);
	WriteLink ("Protein Products", "protein_products.html", matchString);
//	WriteLink ("Juice Plus+&#174; Products", "juiceplus.html", matchString);
	WriteLink ("Clinic Photos", "clinic_photos.html", matchString);
	WriteLink ("Advice Links", "links.html", matchString);
	
	document.write ("</div>\n");
	
}

