function enhanceToggles(){
	var ths = getElementsByClassName('togglehead');
	for(var i=0;i<ths.length;i++){
		var th = ths[i];
		var title = th.getAttribute('title');
		th.toggleBody = $(title+'_togglebody');

		if(th.toggleBody){
			th.className = 'toggle-head';
			var sp = document.createElement('span');
			var control = document.createElement('img');
			control.src = '/images/expand.gif';
			sp.appendChild(control);
			//sp.appendChild(document.createTextNode('click to expand'));
			th.appendChild(sp);
			th.toggleBody.style.display = 'none';
			th.toggleText = sp;
			th.toggleControl = control;
			th.toggleControl.alt = 'click to expand';
			th.toggleControl.title = 'click to expand';
			th.onclick = function(){
				var d = '';
				var t = '';
				var i = ''; //Image Src
				if(this.toggleBody.style.display == 'none'){
					d = 'block';
					t = 'click to collapse';
					i = '/images/collapse.gif';
				}else{
					d = 'none';
					t = 'click to expand';
					i = '/images/expand.gif';
				}
				this.toggleBody.style.display = d;
				this.toggleControl.src = i;
				//this.toggleText.replaceChild(document.createTextNode(t),this.toggleText.childNodes[0]);
			};
		}
	}
}