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"){
if (collapseprevious=="yes")
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
}
}
function expandmnu(cid){
if (typeof ccollect!="undefined"){
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
}
}
function revela(did,vid){
if (typeof ccollect!="undefined"){
document.getElementById(did).style.display=(document.getElementById(did).style.display!="inline")? "inline" : "none"
document.getElementById(vid).style.display=(document.getElementById(vid).style.display!="none")? "none" : "inline"
}
}
function chTXT(did,vid,theURL){
if (typeof ccollect!="undefined"){
document.getElementById(did).src = theURL;
document.getElementById(did).style.display=(document.getElementById(did).style.display!="inline")? "inline" : "none"
document.getElementById(vid).style.display=(document.getElementById(vid).style.display!="none")? "none" : "inline"
}
}

function swapMNU(mnID, isShow) 
{ 
  var theMN = document.getElementById(mnID); 
    theMN.style.display = (isShow) ? 'block' : 'none';   
} 
