remove the href from the top of the menus on wordpress


i want to remove the automatic a href link from the function wp_list_pages() on wordpress menu, but i do not want to remove the href form the sub menu, only from the top menu

for example:

<li><a href="">Games-not remove thr href</a>
    <li><a href="">Menu0-remove the auto href</li>
      <li><a href="">sub-menu 1-do not remove the auto href</a></li>
          <li><a href="">**not** remove the href</li>
      <li><a href="">sub-menu 2 not-remove the auto href</li>

Target the links in LI's that are direct children of the main list..

$("ul#menu > li a").removeAttr("href");

Or leave the url in place and return false on them..

$("ul#menu > li a").click(function(){ return false; });

The URL would appear in the browser still, but clicking the link would do nothing(if JS is enabled).