header.style.cursor='pointer';\r
header.onclick=mychangeDisplayState;\r
header.id='dynheader'+sectionCounter;\r
- button.src='closed.gif';\r
section.id='dynsection'+sectionCounter;\r
\r
var display = getCookie( 'sectionDiv.style.display' );\r
- if ( display == '' ){\r
+ if ( display == '' || display == 'block' ){\r
section.style.display='block'; // default\r
+ button.src='open.gif';\r
}else{\r
- section.style.display=display;\r
+ section.style.display='none';\r
+ button.src='closed.gif';\r
}\r
setCookie( 'sectionDiv.style.display', section.style.display );\r
\r