			var homeMenu = 
			{
				menus:
				{
					menu1: { name: "Menu1", link: "MDspas/servicesDynamic.html", text: "Consultation", children: null },
	
	
					menu2: 
					{ 
						name: "Menu2", link: "#menu2", text: "Surgery", children: 
						{
							child1: 
							{ 
							     name: "child1", link: "#menu2.child1", text: "Face", children:
							     {
							         child1: { name: "grandchild1", link: "/MDspas/Detail/facelift.html", text: "Face Lift", children: null },
							         child2: { name: "grandchild2", link: "/MDspas/Detail/browlift.html", text: "Browlift", children: null },
							         child3: { name: "grandchild3", link: "/MDspas/Detail/blepharoplasty.html", text: "Eyelid Surgery", children: null },
							         child4: { name: "grandchild4", link: "/MDspas/Detail/midfacelift.html", text: "Midface Lift", children: null },
							         child5: { name: "grandchild5", link: "/MDspas/Detail/rhinoplasty.html", text: "Nose Surgery", children: null },
							         child6: { name: "grandchild6", link: "/MDspas/Detail/otoplasty.html", text: "Ear Surgery", children: null },
							         child7: { name: "grandchild7", link: "/MDspas/Detail/genioplasty.html", text: "Chin Augmentation", children: null },
							         child8: { name: "grandchild8", link: "/MDspas/Detail/mandibleangle.html", text: "Jaw Augmentation", children: null },
							         child9: { name: "grandchild9", link: "/MDspas/Detail/midfaceaugmentation.html", text: "Midface Implants", children: null },
							         child10: { name: "grandchild10", link: "/MDspas/Detail/necklift.html", text: "Neck Lift", children: null },
							         child11: { name: "grandchild11", link: "/MDspas/Detail/fattransfer.html", text: "Fat Transfer", children: null },
							         child12: { name: "grandchild12", link: "/MDspas/Detail/laser.html", text: "Esthetic Laser", children: null },
							         child13: { name: "grandchild13", link: "/MDspas/Detail/orthognathic.html", text: "Orthognathic Surgery", children: null }
							     }
							
							},

							child2: 
							{ 
								name: "child2", link: "#menu2.child2", text: "Upper Body", children: 
								{
									child1: { name: "grandchild1", link: "/MDspas/Detail/abdominoplasty.html", text: "Tummy Tuck", children: null },
									child2: { name: "grandchild12", link: "/MDspas/Detail/breastaug.html", text: "Breast Augmentation", children: null },
									child3: { name: "grandchild3", link: "/MDspas/Detail/armlift.html", text: "Arm Lift", children: null },
									child4: { name: "grandchild4", link: "/MDspas/Detail/liposuction.html", text: "Liposculpture", children: null },
									child5: { name: "grandchild5", link: "/MDspas/Detail/benelli.html", text: "Benelli Breast Lift", children: null },
									child6: { name: "grandchild6", link: "/MDspas/Detail/breastlift.html", text: "Breast Lift", children: null },
									child7: { name: "grandchild7", link: "/MDspas/Detail/breastreduction.html", text: "Breast Reduction", children: null }
								}
							},

							child3: 
							{ 
							     name: "child3", link: "#menu2.child3", text: "Lower Body", children:
							     {
							
									child1: { name: "grandchild1", link: "/MDspas/Detail/buttocks.html", text: "Buttock Augmentation", children: null },
									child2: { name: "grandchild2", link: "/MDspas/Detail/buttocklift.html", text: "Buttock Lift", children: null },
									child3: { name: "grandchild3", link: "/MDspas/Detail/calfs.html", text: "Calf Augmentation", children: null },
									child4: { name: "grandchild4", link: "/MDspas/Detail/fattransferbody.html", text: "Fat Transfer", children: null },
									child5: { name: "grandchild5", link: "/MDspas/Detail/thighlift.html", text: "Thigh Lift", children: null },
									child6: { name: "grandchild6", link: "/MDspas/Detail/bodylift.html", text: "Lower Body Lift", children: null }
							
							     }
						      }
						  }
				    },
					menu3: 
					{ 
						name: "Menu3", link: "#Menu3", text: "Procedures", children: 
						{
							child1: { name: "m3c1", link: "/MDspas/Detail/botox.html", text: "Botox&reg;", children: null },
							child2: { name: "m3c2", link: "/MDspas/Detail/restylane.html", text: "Restylane&reg;", children: null },
							child3: { name: "m3c3", link: "/MDspas/Detail/laserhair.html", text: "Laser Hair Removal", children: null },
							child4: { name: "m3c4", link: "/MDspas/Detail/obagi.html", text: "Obagi Skin Care", children: null },
							child5: { name: "m3c5", link: "/MDspas/Detail/microderm.html", text: "Microdermabrasion", children: null },
							child6: { name: "m3c6", link: "/MDspas/Detail/bluePeel.html", text: "Blue Peel", children: null },
							child7: { name: "m3c7", link: "/MDspas/Detail/reeverse.html", text: "Reeverse&trade;", children: null },
							child8: { name: "m3c8", link: "/MDspas/Detail/surgiwire.html", text: "Wrinkle Eraser", children: null },
							child9: { name: "m3c9", link: "/MDspas/Detail/juvederm.html", text: "Juv&eacute;derm&trade;", children: null },
							child10: { name: "m3c10", link: "/MDspas/Detail/prevelle.html", text: "Prevelle&trade;", children: null }
						}
					},	
					menu4: { name: "Menu4", link: "/MDspas/photoAlbum.html", text: "Picture Gallery", children: null },
					menu5: 
					{ 
						name: "Menu5", link: "#Menu5", text: "MDspas", children: 
						{
							child1: { name: "m5c1", link: "/MDspas/about.html", text: "About MDspas", children: null },
							child2: { name: "m5c2", link: "/MDspas/aboutDirector.html", text: "Medical Director", children: null },
							child3: { name: "m5c3", link: "/MDspas/contactus.html", text: "Contact Us", children: null }
						}
					},
					menu6: { name: "Menu6", link: "#", text: "Guest Book", children: null, click: "RDPshowScript(); return false;" }
				}
			}
			var siteMenu = 
			{
				menus:
				{
					menu1: { name: "Menu1", link: "/index.html", text: "Home", children: null },
	
	
					menu2: 
					{ 
						name: "Menu2", link: "#menu2", text: "Surgery", children: 
						{
							child1: 
							{ 
							     name: "child1", link: "#menu2.child1", text: "Face", children:
							     {
							         child1: { name: "grandchild1", link: "/MDspas/Detail/facelift.html", text: "Face Lift", children: null },
							         child2: { name: "grandchild2", link: "/MDspas/Detail/browlift.html", text: "Browlift", children: null },
							         child3: { name: "grandchild3", link: "/MDspas/Detail/blepharoplasty.html", text: "Eyelid Surgery", children: null },
							         child4: { name: "grandchild4", link: "/MDspas/Detail/midfacelift.html", text: "Midface Lift", children: null },
							         child5: { name: "grandchild5", link: "/MDspas/Detail/rhinoplasty.html", text: "Nose Surgery", children: null },
							         child6: { name: "grandchild6", link: "/MDspas/Detail/otoplasty.html", text: "Ear Surgery", children: null },
							         child7: { name: "grandchild7", link: "/MDspas/Detail/genioplasty.html", text: "Chin Augmentation", children: null },
							         child8: { name: "grandchild8", link: "/MDspas/Detail/mandibleangle.html", text: "Jaw Augmentation", children: null },
							         child9: { name: "grandchild9", link: "/MDspas/Detail/midfaceaugmentation.html", text: "Midface Implants", children: null },
							         child10: { name: "grandchild10", link: "/MDspas/Detail/necklift.html", text: "Neck Lift", children: null },
							         child11: { name: "grandchild11", link: "/MDspas/Detail/fattransfer.html", text: "Fat Transfer", children: null },
							         child12: { name: "grandchild12", link: "/MDspas/Detail/laser.html", text: "Esthetic Laser", children: null },
							         child13: { name: "grandchild13", link: "/MDspas/Detail/orthognathic.html", text: "Orthognathic Surgery", children: null }
							     }
							
							},

							child2: 
							{ 
								name: "child2", link: "#menu2.child2", text: "Upper Body", children: 
								{
									child1: { name: "grandchild1", link: "/MDspas/Detail/abdominoplasty.html", text: "Tummy Tuck", children: null },
									child2: { name: "grandchild12", link: "/MDspas/Detail/breastaug.html", text: "Breast Augmentation", children: null },
									child3: { name: "grandchild3", link: "/MDspas/Detail/armlift.html", text: "Arm Lift", children: null },
									child4: { name: "grandchild4", link: "/MDspas/Detail/liposuction.html", text: "Liposculpture", children: null },
									child5: { name: "grandchild5", link: "/MDspas/Detail/benelli.html", text: "Benelli Breast Lift", children: null },
									child6: { name: "grandchild6", link: "/MDspas/Detail/breastlift.html", text: "Breast Lift", children: null },
									child7: { name: "grandchild7", link: "/MDspas/Detail/breastreduction.html", text: "Breast Reduction", children: null }
								}
							},

							child3: 
							{ 
							     name: "child3", link: "#menu2.child3", text: "Lower Body", children:
							     {
							
									child1: { name: "grandchild1", link: "/MDspas/Detail/buttocks.html", text: "Buttock Augmentation", children: null },
									child2: { name: "grandchild2", link: "/MDspas/Detail/buttocklift.html", text: "Buttock Lift", children: null },
									child3: { name: "grandchild3", link: "/MDspas/Detail/calfs.html", text: "Calf Augmentation", children: null },
									child4: { name: "grandchild4", link: "/MDspas/Detail/fattransferbody.html", text: "Fat Transfer", children: null },
									child5: { name: "grandchild5", link: "/MDspas/Detail/thighlift.html", text: "Thigh Lift", children: null },
									child6: { name: "grandchild6", link: "/MDspas/Detail/bodylift.html", text: "Lower Body Lift", children: null }
							
							     }
						      }
						  }
				    },
					menu3: 
					{ 
						name: "Menu3", link: "#Menu3", text: "Procedures", children: 
						{
							child1: { name: "m3c1", link: "/MDspas/Detail/botox.html", text: "Botox&reg;", children: null },
							child2: { name: "m3c2", link: "/MDspas/Detail/restylane.html", text: "Restylane&reg;", children: null },
							child3: { name: "m3c3", link: "/MDspas/Detail/laserhair.html", text: "Laser Hair Removal", children: null },
							child4: { name: "m3c4", link: "/MDspas/Detail/obagi.html", text: "Obagi Skin Care", children: null },
							child5: { name: "m3c5", link: "/MDspas/Detail/microderm.html", text: "Microdermabrasion", children: null },
							child6: { name: "m3c6", link: "/MDspas/Detail/bluePeel.html", text: "Blue Peel", children: null },
							child7: { name: "m3c7", link: "/MDspas/Detail/reeverse.html", text: "Reeverse&trade;", children: null },
							child8: { name: "m3c8", link: "/MDspas/Detail/surgiwire.html", text: "Wrinkle Eraser", children: null },
							child9: { name: "m3c9", link: "/MDspas/Detail/juvederm.html", text: "Juv&eacute;derm&trade;", children: null },
							child10: { name: "m3c10", link: "/MDspas/Detail/prevelle.html", text: "Prevelle&trade;", children: null }
						}
					},	
					menu4: { name: "Menu4", link: "/MDspas/photoAlbum.html", text: "Picture Gallery", children: null },
					menu5: 
					{ 
						name: "Menu5", link: "#Menu5", text: "MDspas", children: 
						{
							child1: { name: "m5c1", link: "/MDspas/about.html", text: "About MDspas", children: null },
							child2: { name: "m5c2", link: "/MDspas/aboutDirector.html", text: "Medical Director", children: null },
							child3: { name: "m5c3", link: "/MDspas/contactus.html", text: "Contact Us", children: null }
						}
					},
					menu6: { name: "Menu6", link: "#", text: "Guest Book", children: null, click: "RDPshowScript(); return false;" }
				}
			}

			// Does NOT support recursion.
			// Assumes no more than 2 submenus
			function buildMenu( menuInfo )
			{
				var html = "";
				for ( var key in menuInfo.menus )
				{
					var menu = menuInfo.menus[key];
					if( key == "bindWithArguments"  ||  key == "CrossFade")
						continue;
					html += "<ul id='menu'>\n";
					html += "\t<li class='sub'>\n";
					html += "\t\t<a href='" + menu.link + "'";
					if ( menu.click != null )
					   html += " onClick='" + menu.click + "'"; 
					
					html += ">" + menu.text + "</a>\n";

					if ( menu.children != null )
					{
						html += "\t\t<ul>\n";
						for ( var subKey in menu.children )
						{

						if( subKey == "bindWithArguments"  ||  subKey == "CrossFade")
							continue;
							
							var child = menu.children[subKey];
							html += "\t\t\t<li>\n";
							html += "\t\t\t\t<a href='" + child.link + "'>" + child.text + "</a>\n";

							if ( child.children != null )
							{
								html += "\t\t\t\t<ul>\n";
								for ( var subSubKey in child.children )
								{
									if( subSubKey == "bindWithArguments"  ||  subSubKey == "CrossFade")
										continue;
									var grandchild = child.children[subSubKey];
									html += "\t\t\t\t\t<li>";
									html += "<a href='" + grandchild.link + "'>" + grandchild.text + "</a>";
									html += "</li>\n";
									grandchild = null;
								}
								subSubKey = null;
								html += "\t\t\t\t</ul>\n";
							}
							child = null;

							html += "\t\t\t</li>\n";
						}
						html += "\t\t</ul>\n";
					}
					menu = null;
					html += "\t</li>\n";
					subKey = null;
					html += "</ul>\n";
				}
//				alert( "html = \n" + html );
				document.write( html );
			}
			function RDPshowScript() 
{
	winURL  = "http://74.238.34.244/cgi-bin/WebObjects/GuestBook.woa";
	winName = "Guestbook";
	winOpts = "toolbar=0,status=0,menubar=0,scrollbars=0, resizable=0,width=675,height=450";
	winHandle = window.open( winURL, winName, winOpts );
}
