I haven't tested this out thoroughly yet, but try the below:
Add the below function inside menu.js:
Code:
function collapseit(){
if(getcookie("menu") == null){
for (var i=0; i< arguments.length; i++) {
titles[arguments[i]].className = "titlehidden";
submenus[arguments[i]].style.height = "0px";
submenus[arguments[i]].style.display = "none";
arrows[arguments[i]].src = "slashfiles/collapsed.gif";
}
}
}
Then, find the line:
Code:
if(remember) restore();
collapseit(0,1)
and add to that the code in red above. 0, 1 tells the script to auto hide the first and second menu sections. 0,1,2 would mean all 3 sections, 0 just the first section etc.
Bookmarks