A website I'm working on has sidebar with expandable/collapsible entries. Some of the items on this sidebar have a bullet next to them that, when clicked on, reveals a second level of sidebar items. We are using an onclick event to call this function to do this. Here is the script:
<script type="text/javascript">
function menuClick(menu)
{
if(menu.nextSibling.nextSibling.nextSibling.style.display == "inline")
{
menu.nextSibling.nextSibling.nextSibling.style.display = "none";
}
else
{
menu.nextSibling.nextSibling.nextSibling.style.display = "inline";
}
}
</script>
This works in IE8, but doesn't work in IE7. In IE7, when these bullets are clicked, the menu will expand like normal, but doesn't show the next level of links. Also in IE7 these bullets are above their respective links on a separate line. If you'd like to take a look a the site it's www.triptac.org. If you have IE8 you can see how it doesn't work in compatability view. I'd greatly appreciate any help.