window.onload=init;
function init(){
var theKids = document.body.getElementsByTagName('dt');
for (var i=0; i<theKids.length; i++){
if (theKids[i].className){
if (theKids[i].className.match('toggle closed')){
var nextSib = getNextSibling(theKids[i]);
if (!nextSib.className){
nextSib.className = 'hidden';
}	
else{
nextSib.className = nextSib.className + ' hidden';
}}}}
document.onmousedown = k;
}
function k(v){
var tg = (v) ? v : event;
if (tg.target){
var el = (tg.target.nodeType == 3) ? tg.target.parentNode : tg.target;
} 
else{ 
var el = tg.srcElement;
}
if (el.className.match('toggle')) {
if (el.className.match(' closed')) {
el.className = el.className.replace(/ closed/gi, '');
toggleSib(el);
}
else{
el.className = el.className + ' closed';
toggleSib(el);
}}}
function toggleSib(el){
var nextSib = getNextSibling(el);
if(nextSib.className.match('hidden')){
nextSib.className = nextSib.className.replace(/hidden/, '');
}
else{
nextSib.className += ' hidden';
}}
function getNextSibling(el){
var nextSib = el.nextSibling;
if (nextSib.nodeType != 1){	
nextSib = nextSib.nextSibling;
}
return nextSib;
}

