This is a demo page for the jQuery dltoggle plugin. The markup is plain, and the javascript is merely:
//
// Make all definition lists togglable - give different images.
//
$('#dl1').dltoggle();
//
// Leave this one open, and set different images.
//
$('#dl2').dltoggle({ "open-image" : "minus.gif",
"closed-image" : "plus.gif",
"leave-open" : 1 });
//
// Set different images, but keep the default behaviour otherwise.
//
$('#dl3').dltoggle({ "open-image" : "folder-open.gif",
"closed-image" : "folder-closed.gif" });