title: Magento: Location of function renderCategoriesMenuHtml found in top.phtml
body: <p>The top navigation template file at /catalogue/navigation/top.phtml contains just this short function:</p>
  
  <pre><code>&lt;?php $_menu = $this-&gt;renderCategoriesMenuHtml(0,'level-top') ?&gt;
  &lt;?php if($_menu): ?&gt;
  &lt;div class="nav-container"&gt;
      &lt;ul id="nav"&gt;
          &lt;?php echo $_menu ?&gt;   
          &lt;/ul&gt;
  &lt;/div&gt;
  &lt;?php endif ?&gt;
  </code></pre>
  
  <p>I'm trying to find the renderCategoriesMenuHtml function so that I can get in and edit the structure of the $_menu result that is called in top.phtml.</p>
  
  <p>The purpose is that I want to slightly edit the structure the menu. It currently comes out in a  ul > li > a > ul > li > a > span in HTML and I want to edit this slightly.</p>