This code works just fine for my top level menu but I can't get it to work correctly for the ImageGallery menu a little advice would be appreciated.
The result at the moment means it uses the first else html so the image rollover is always active and the current page is not defined.
ImageGalleryPage_album.ss
...
<ul id="Menu2">
<% control Albums %>
<% if GalleryMenuImg %>
<% if LinkOrSection = section %>
<li id="Menu2item" class="$LinkingMode"><a class="$LinkingMode" href="$Link" title="$AlbumName"><img src="$GalleryMenuImg2.URL" name="$AlbumName" title="$AlbumName" height="35px" border="0" id="$AlbumName" /></a></li>
<% else %>
<li id="Menu2item" class="$LinkingMode"><a class="$LinkingMode" href="$Link" title="$AlbumName" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('$AlbumName','','$GalleryMenuImg2.URL',1)"><img src="$GalleryMenuImg.URL" title="$AlbumName" name="$AlbumName" height="35px" border="0" id="$AlbumName" /></a></li>
<% end_if %>
<% else %>
<!-- debug: menu image missing for page $Title -->
<li class="$LinkingMode"><a href="$Link" title="$AlbumName">$AlbumName</a></li>
<% end_if %>
<% end_control %></ul>
...