[accordion] Close All On Page Load

[accordion] Close All On Page Load


Hi all. I've just downloaded and tried the jquery accordion and it
seems to be working fine, but with one exception. When I test my page
in IE7 all my accordion DIVs open completely on page load and then
close immediately, so it sort of 'flashes', which is pretty off-
putting. I've also tried the page in FF (Mac) and it's fine - either
it's so quick I can't see the same thing happening, or there's a
difference in the way IE7 is working. I'm simply using one of the
examples off the demo page:
jQuery(document).ready(function(){
// first simple accordion with special markup
jQuery('#list3').accordion({
header: 'div.title',
active: false,
alwaysOpen: false,
animated: false,
autoheight: false
});
});
Can anyone help as I'm not that familiar with javascript. The only
thing I can think of (although I don't know how to do it), would be to
set (inline) each child DIV to display:none (or something), but then
the accordion script would need to change this to 'block' once it has
loaded and is ready to work. Is this possible?...
Thanks :)