addEvent(window, "load", dohides);

function dohides() {
	var dls,dts,tostyle,tohide,newspan,newtext;
	dts=document.getElementsByTagName('dt');
	for (i=0;i<dts.length;i++) {
			if (dts[i].parentNode.className == 'toggle') {
				tostyle=dts[i];
				tostyle.className='closed';
				tohide=dts[i].nextSibling;
				while(tohide.nodeType!=1) {
					tohide=tohide.nextSibling;
					}
				tohide.className='closed';
				newspan=document.createElement('span');
				newtext=document.createTextNode(dts[i].firstChild.nodeValue);
				newspan.appendChild(newtext);
				newspan.href='#'
				newspan.colobj=tohide;
				newspan.colobj1=tostyle;
				newspan.onclick=function() {
					showhide(this.colobj);
					showstyle(this.colobj1);
					return false;
					}
				dts[i].replaceChild(newspan,dts[i].firstChild)
				}
			}
	}
	
	function showall() {
	var dls,dts,tostyle,toshow,newspan,newtext;
	dts=document.getElementsByTagName('dt');
	for (i=0;i<dts.length;i++) {
			if (dts[i].parentNode.className == 'toggle') {
				tostyle=dts[i];
				tostyle.className='open';
				toshow=dts[i].nextSibling;
				while(toshow.nodeType!=1) {
					toshow=toshow.nextSibling;
					}
				toshow.className='open';
				}
			}
	}	
	function hideall() {
	var dls,dts,tostyle,toshow,newspan,newtext;
	dts=document.getElementsByTagName('dt');
		for (i=0;i<dts.length;i++) {
			if (dts[i].parentNode.className == 'toggle') {
				tostyle=dts[i];
				tostyle.className='closed';
				toshow=dts[i].nextSibling;
				while(toshow.nodeType!=1) {
					toshow=toshow.nextSibling;
					}
				toshow.className='closed';
				}
			}
	}
		function showstyle(x) {
			if(x) {
				x.className=x.className=='closed'?'open':'closed';
			}
		}
		
		function showhide(o) {
			if(o) {
				o.className=o.className=='closed'?'open':'closed';
			}
		}
		
function addEvent(obj, evType, fn) {
	if (obj.addEventListener) {
		obj.addEventListener(evType, fn, false);
		return true;
		}
	else if (obj.attachEvent) {
		var r = obj.attachEvent("on"+evType, fn);
		return r; 
		} 
	else {
		return false;
		}
	}