[jQuery] v1.3 code not running like 1.2

[jQuery] v1.3 code not running like 1.2


I had this code function properly in 1.2 yet on upgrade it does not
perform correctly.
Initially i have 1 ul
<div id="topmenu">
    <ul id="main-menu">
        <li>
            <a href="EventList" class="current big"
onmouseover="viewNav(1)">Browse Events</a>
            <ul id="sub-menu1">
     <li><a href="EventList?
ignoreDate=true">More Categories</a><span>|</span></li>
     <li><a href="EventList?
timeframe=lastWeek">Last Week's</a><span>|</span></li>
</ul>
        </li>
    <li>
                <a href="VenueList" class="big" onmouseover="viewNav(2)">Browse
Venues</a>
        <ul id="sub-menu2" class="hidden" style="left:
14px;">
             <li><a href="VenueList">View All</a></li>
</ul>
    </li>
....
I have a few more of these list items all having the hidden class. So
by default the 1st ul is shown.
On mouse over of the outer list item, it should hide all sub uls and
then show the ul that the mouse hovered on. This was achieved via the
following code.
$("#topmenu li ul").not(".hidden").addClass("hidden");
$("#sub-menu" + n).removeClass("hidden");
I also tried
$("#topmenu li ul").hide();
$("#sub-menu" + n).show();
and this did not work on 1.3 Its working correctly on initial mouse
over, but then every subsequent mouseover it does not hide all the
uls.
any suggestions?