Alex Campbell has extended this version of the listCollapse.js script to allow it to work with autocollapsing.