/*toggle switch on or off */
function switchMenu(obj) {
var vcao = document.getElementById(obj);
if ( vcao.style.display != "none") {
vcao.style.display = "none";
}
else {
vcao.style.display = "block";
}
}

function expandcollapse (postid,postidhide) {
   whichpost = document.getElementById(postid);
   whichpostHide = document.getElementById(postidhide);
   if (whichpost.className=="shown") { 
      whichpost.className="hidden";
      whichpostHide.className="shown";
   }
   else {
      whichpost.className="shown";
      whichpostHide.className="hidden";
   }
}



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"){
if (collapseprevious=="yes")
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
}
}

function revivecontent(){
contractcontent("omitnothing")
selectedItem=getselectedItem()
selectedComponents=selectedItem.split("|")
for (i=0; i<selectedComponents.length-1; i++)
document.getElementById(selectedComponents[i]).style.display="block"
}

