if (document.getElementById){
document.write('<style type="text/css">')
document.write('.wechsel{display:none;}')
document.write('</style>')
}
function getElementbyClass(classname){
ccollect=new Array()
var inc=0
var alltags=document.all? document.all : document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className==classname)
ccollect[inc++]=alltags[i]
}}
function contractcontent(omit){
var inc=0
while (ccollect[inc]){
if (ccollect[inc].id!=omit)
ccollect[inc].style.display="none"
inc++
}}
function expandcontent(cid){
if (typeof ccollect!="undefined"){
 contractcontent(cid)
for(i=1;i<=cid;++i) {
 document.getElementById(i).style.display=(document.getElementById(i).style.display="block")
 selectedItem=i+"|"+document.getElementById(i).style.display
}}}

function do_onload(){
getElementbyClass("wechsel")
if (enablepersist=="on" && getselectedItem()!="")
revivecontent()
}

if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload 
if (enablepersist=="on" && document.getElementById)
window.onunload=saveswitchstate
