rem:   setTimeout("document.persist('sidebar-box', 'collapsed');",100); setTimeout("sidebarObj.panels.refresh();",100); 
add: var sidebar_splitter = document.getElementById('sidebar-splitter'); var sidebar_box = document.getElementById('sidebar-box'); if (sidebar_splitter.getAttribute('state') == 'collapsed') { debug("Expanding the sidebar"); sidebar_splitter.removeAttribute('state'); sidebar_box.removeAttribute('collapsed'); } else { debug("Collapsing the sidebar"); sidebar_splitter.setAttribute('state', 'collapsed'); sidebar_box.setAttribute('collapsed', 'true'); } 
context: function SidebarExpandCollapse() {  // XXX Mini hack. Persist isn't working too well. Force the persist,  // but wait until the change has commited.  setTimeout("document.persist('sidebar-box', 'collapsed');",100);  setTimeout("sidebarObj.panels.refresh();",100);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/324797b6305ae708ab851464900f1b43ccb90012/sidebarOverlay.js/clean/suite/common/sidebar/sidebarOverlay.js