//adds js class to body element if javascript is supported
function addBodyJS(){
	if (document.getElementById && document.getElementsByTagName && document.createTextNode) {
		document.body.className="js";
	}
}

//setup initialisation function
//.. gecko, safari, konqueror and generic
if(typeof window.addEventListener != 'undefined'){
	window.addEventListener('load', showHide, false);
	window.addEventListener('load', addBodyJS, false);
}
//.. opera 7
else if(typeof document.addEventListener != 'undefined'){
	document.addEventListener('load', showHide, false);
	document.addEventListener('load', addBodyJS, false);
}
//.. win/ie
else if(typeof window.attachEvent != 'undefined'){
	window.attachEvent('onload', showHide);
	window.attachEvent('onload', addBodyJS);
}

function showHide() {
	if (document.getElementById('ku_maincontent')) {
		var main = document.getElementById('ku_middle_rows');
		var arrLinks = main.getElementsByTagName('h4');
		for (var i=0; i < arrLinks.length; i++ ) {
			if (/toggle/.test(arrLinks[i].className)) {
				arrLinks[i].onclick = function(){
				var div = this.nextSibling;
				var v = div.style.display;
				v = (v == 'block') ? 'none' : 'block';
				div.style.display = v;
				};//onclick fn
			}
		}; //for
	} //ku_maincontent
} //fn