Accordion Full menu

Accordion Full menu

Hi evryone,

I'm new to jquery and i'm preparing a new web site for my companies.

I like to make a full menu with jquery accordion like one i'v notified in dojo framework web page http://www.dojotoolkit.org/,

Click on the full menu to see it.

with jquery the first tab is always opened, i manage some code to get the effects. But when click first time it's open that s good, the second time that not colaps the tab (because of my function)

this is my code :


/***********************************************************************/
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>jQuery UI Example Page</title>
<link type="text/css" href="css/ui-lightness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript">
$(function(){
// Accordion
$("#accordion").accordion({ header: "#head" });

});
$(document).ready(function() {
//HIDE THE DIVS ON PAGE LOAD
$("div.accordionContent").hide();
//Show the divs
$("div#head").click(
function() {
$("div.accordionContent").show();
}
);

});
</script>
<style type="text/css">
/*demo page css*/
body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 50px;}
.demoHeaders { margin-top: 2em; }
#dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
#dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
ul#icons {margin: 0; padding: 0;}
ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left; list-style: none;}
ul#icons span.ui-icon {float: left; margin: 0 4px;}
</style>
</head>
<body>

<!-- Accordion -->
<h2 class="demoHeaders">Accordion</h2>
<div id="accordion">
<div>
<div id="head"><p>First</div>
<div class="accordionContent">Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</div>
</div>
</div>




</body>
</html>


/************************************************************************/

If some one can suggest me a better solution , it will be nice

You wlcome


Thanks

NB : sorry for my poor english, i m so bad