// kev
oldLeftSection = null;

function ImgClick(img)
{
	if (img.src.indexOf("plus") != -1)
	{
		if (oldLeftSection != null)
		{
			oldLeftSection.src = "/images/fiducie/leftnav-plus.gif";
			CollapseSection(oldLeftSection.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode);
		}
		img.src="/images/fiducie/leftnav-minus.gif";
		ExpandSection(img.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode);
		oldLeftSection = img;
	}
	else
	{
		img.src="/images/fiducie/leftnav-plus.gif";
		CollapseSection(img.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode);
	}
}

function ExpandSection(menuSection)
{
	menuSection.getElementsByTagName('div')[2].style.display = "block";
}

function CollapseSection(menuSection)
{
	menuSection.getElementsByTagName('div')[2].style.display = "none";
}



// tim
function ImgClick2(theID){
	var actionTaken = null;	
	if (document.getElementById('CollapseImg'+theID).src.indexOf("minus") >= 0){
		document.getElementById('CollapseImg'+theID).src = '/images/fiducie/leftnav-plus.gif';
		document.getElementById('CollapseDiv'+theID).style.display = 'none';
		actionTaken = 1;
	}

	var e=document.getElementsByTagName("div");
	for(var i=0;i<e.length;i++){
		if(e[i].id.indexOf('Collapse') >= 0){ 
			e[i].style.display = 'none'; 
		}
	}
	var e=document.getElementsByTagName("img");
	for(var i=0;i<e.length;i++){
		if(e[i].id.indexOf('Collapse') >= 0){ 
			e[i].src = '/images/fiducie/leftnav-plus.gif'; 
		}
	}
	if(actionTaken == null){
		document.getElementById('CollapseImg'+theID).src = '/images/fiducie/leftnav-minus.gif';
		document.getElementById('CollapseDiv'+theID).style.display = 'block';
	}
}
