accordion effect
<p>There are so many 'huge' accordion scripts around and I am confused.</p>

<p>Can anyone suggest me a simple code to turn this list into a accordion panel. To start with, only the 'Sports' list will be visible. Then when the user clicks on either Technology or Latest, the Sports will hide and the one clicked will show up and so on..</p>

<pre><code>&lt;ul id="accordion"&gt;
    &lt;li&gt;Sports&lt;/li&gt;
    &lt;ul&gt;
        &lt;li&gt;&lt;a href="#"&gt;Golf&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Cricket&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Football&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;li&gt;Technology&lt;/li&gt;
    &lt;ul&gt;
        &lt;li&gt;&lt;a href="#"&gt;iPhone&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Facebook&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Twitter&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;li&gt;Latest&lt;/li&gt;
    &lt;ul&gt;
        &lt;li&gt;&lt;a href="#"&gt;Obama&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Iran Election&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Health Care&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
&lt;/ul&gt;
</code></pre>
