You should never have to explicitly get a content to expand (ie: by adding style="display:block"). Remove that first.
The defaultExpand() function does work on your page- I just tested it locally. However, since you also have the persistence feature enabled:
Code:
switchnews.setPersist(true)
The above will take over right after the first time the page is loaded (ie: reload the page) over any specified default expanded content:
Code:
switchevents.defaultExpanded(1)
To truly test if the defaultExpanded feature is working, remove the setPersist() line first to see how the script behaves without persistence overriding things.
Bookmarks