Accordion function
HTML
<div id="menu">
<h3>Section 1</h3>
<div>
<p>I'm the first section!</p>
</div>
<h3>Section 2</h3>
<div>
<p>I'm the first section!</p>
</div>
<h3>Section 3</h3>
<div>
<p>I'm the first section!</p>
</div>
</div>
JavaScript
$(document).ready(function(){
$('#menu').accordion();
});