//DOM Tree menu script by Perry Molendijk - &Acirc;&copy;2002 Inflexions (WA) Pty Ltd
function showHide(divId, iconId, linkId, listType) {    
	// get the 'div' element you want to show or hide.
	var showHideDiv = document.getElementById(divId);

	// get the +/- icon associate with current group.
	var iconTag = document.getElementById(iconId);
	
	// get the link tag that was clicked.
	var currentLink = document.getElementById(linkId);
	
	// var to hold source for the plus and minus icons.
	var iconSrc = '/images/shim.gif';
	
	// var to hold string used for alt and title attributes.
	var altTitleText = '';
	if (listType == 'plus'){
		if(showHideDiv.style.display == '')  {
			showHideDiv.style.display = 'none';
			iconSrc = '/images/icon_plus.gif';
			altTitleText = 'Click to expand';
		}
		else  {
			showHideDiv.style.display = '';
			iconSrc = '/images/icon_minus.gif';
			altTitleText = 'Click to minimise';
		}
	}	
	else if (listType == 'arrow'){
		if(showHideDiv.style.display == '')  {
			showHideDiv.style.display = 'none';
			iconSrc = '/images/icon_arrow_off.gif';
			altTitleText = 'Click to expand';
		}
		else  {
			showHideDiv.style.display = '';
			iconSrc = '/images/icon_arrow_on.gif';
			altTitleText = 'Click to minimise';
		}
	}	
	iconTag.setAttribute("src",iconSrc);
	iconTag.setAttribute("alt",altTitleText);
	iconTag.setAttribute("title",altTitleText);
	currentLink.setAttribute("title",altTitleText);
}