var enablepersist1="no" //Enable saving state of content structure using session cookies? (on/off)
var collapseprevious1="yes" //Collapse previously open content when opening present? (yes/no)

if (document.getElementById){
document.write('<style type="text/css">')
document.write('.switchcontent1{display:none;}')
document.write('</style>')
}

function getElementbyClass1(classname){
ccollect1=new Array()
var inc1=0
var alltags1=document.all? document.all : document.getElementsByTagName("*")
for (i1=0; i1<alltags1.length; i1++){
if (alltags1[i1].className==classname)
ccollect1[inc1++]=alltags1[i1]
}
}

function closeall1() {
if (typeof ccollect1=="undefined"){
   getElementbyClass1("switchcontent1")
}
var inc1=0
while (ccollect1[inc1]){
ccollect1[inc1].style.display="none"
inc1++
}
}

function contractcontent1(omit){
var inc1=0
while (ccollect1[inc1]){
if (ccollect1[inc1].id!=omit)
ccollect1[inc1].style.display="none"
inc1++
}
}

function expandcontent1(cid){
if (typeof ccollect1=="undefined"){
   getElementbyClass1("switchcontent1")
}
if (collapseprevious1=="yes")
contractcontent1(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "block"
}

function revivecontent1(){
contractcontent1("omitnothing")
selectedItem1=getselectedItem1()
selectedComponents1=selectedItem1.split("|")
for (i1=0; i1<selectedComponents1.length-1; i1++)
document.getElementById(selectedComponents1[i1]).style.display="block"
}



function getselectedItem1(){
return ""
}

function saveswitchstate1(){
var inc1=0, selectedItem1=""
while (ccollect1[inc1]){
if (ccollect1[inc1].style.display=="block")
selectedItem1+=ccollect1[inc1].id+"|"
inc1++
}

document.cookie=window.location.pathname+"="+selectedItem1
}

function do_onload1(){
getElementbyClass1("switchcontent1")
if (enablepersist1=="on" && typeof ccollect1!="undefined")
revivecontent1()
}


if (window.addEventListener)
window.addEventListener("load", do_onload1, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload1)
else if (document.getElementById)
window.onload=do_onload1

if (enablepersist1=="on" && document.getElementById)
window.onunload=saveswitchstate1

