Hi, if you delete the reference to submenu2 and submenu3 and the id's as well, it will work.
Unfortunately I can't explain why, but it works on my pc when i delete what is highlighted below.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HeartSCS.org - Navigation</title>
<meta name="keywords" content="Homepage, Website, Krapohl, Senior, Center, Mt Morris, Michigan, USA, Genesee County, Flint, Activities, Fun, Day, Events" />
<meta name="description" content="This is the Homepage of the Krapohl Senior Center, Mt. Morris, Michigan, United States of America." />
<meta name="author" content="Krapohl Senior Center" />
<meta name="language" content="en-us" />
<base target="content" />
<link rel="stylesheet" type="text/css" href="CSS/sidebarmenu.css" />
<script type="text/javascript">
//Nested Side Bar Menu (Mar 20th, 09)
//By Dynamic Drive: http://www.dynamicdrive.com/style/
var menuids=["sidebarmenu1, sidebarmenu2, sidebarmenu3"] //Enter id(s) of each Side Bar Menu's main UL, separated by commas
function initsidebarmenu(){
for (var i=0; i<menuids.length; i++){
var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
for (var t=0; t<ultags.length; t++){
ultags[t].parentNode.getElementsByTagName("a")[0].className+=" subfolderstyle"
if (ultags[t].parentNode.parentNode.id==menuids[i]) //if this is a first level submenu
ultags[t].style.left=ultags[t].parentNode.offsetWidth+"px" //dynamically position first level submenus to be width of main menu item
else //else if this is a sub level submenu (ul)
ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
ultags[t].parentNode.onmouseover=function(){
this.getElementsByTagName("ul")[0].style.display="block"
}
ultags[t].parentNode.onmouseout=function(){
this.getElementsByTagName("ul")[0].style.display="none"
}
}
for (var t=ultags.length-1; t>-1; t--){ //loop through all sub menus again, and use "display:none" to hide menus (to prevent possible page scrollbars
ultags[t].style.visibility="visible"
ultags[t].style.display="none"
}
}
}
if (window.addEventListener)
window.addEventListener("load", initsidebarmenu, false)
else if (window.attachEvent)
window.attachEvent("onload", initsidebarmenu)
</script>
</head>
<body>
<div class="sidebarmenu">
<ul id="sidebarmenu1">
<li><a class=" subfolderstyle" href="#">Physical</a>
<ul>
<li><a href="#">Nutrition</a></li>
<li><a href="#">hello</a></li>
</ul>
</li>
<li><a href="#">Intellectual</a></li>
<li><a class=" subfolderstyle" href="#">Social</a>
<ul>
<li><a href="#">hello</a></li>
</ul>
</li>
<li><a href="#">Emotional</a></li>
<li><a href="#">Enviromental</a></li>
<li><a href="#">Spiritual</a>
<ul>
<li><a href="#">hello</a></li>
</ul>
</li>
</ul>
<ul id="sidebarmenu2">
<li><a href="#">Services</a></li>
<li><a href="#">Financial</a>
<ul>
<a href="#">hello</a>
</ul>
</li>
</ul>
<ul id="sidebarmenu3">
<li><a href="#">Who we are</a></li>
<li><a href="#">Contact us</a></li>
<li><a href="#">Mission</a></li>
<li><a href="#">Wellness</a></li>
</ul>
</div>
<p><br></p>
<div id="nav_weather">
<a href="http://www.wunderground.com/US/MI/Mount_Morris.html?bannertypeclick=infoboxtr"><img src="http://weathersticker.wunderground.com/weathersticker/infoboxtr_both/language/www/US/MI/Mount_Morris.gif" alt="Click for Mount Morris, Michigan Forecast" border="0" height="108" width="144" /></a>
</div>
</body>
</html>
Hope that will work
Bookmarks