// JavaScript Document
<!--
function expand(id)
{
	//Get the max height
	document.getElementById(id).style.height = "auto";
	document.getElementById(id).style.paddingLeft = "4px";
	document.getElementById(id).style.paddingRight = "4px";
	var height = document.getElementById(id).offsetHeight+8;
	document.getElementById(id).style.height = "0px";
	
	//Set the left and right padding
	
	
	//Expand the element
	setTimeout("increaseHeight('"+id+"','"+height+"',-10)",10);
	
	//Change the link
	document.getElementById("EC-"+id).innerHTML = "hide";
	document.getElementById("EC-"+id).href = "javascript:contract('"+id+"');";
}

function contract(id)
{
	document.getElementById(id).style.padding = "0px 0px 0px 0px";
	document.getElementById(id).style.height = "0px";
	document.getElementById("EC-"+id).innerHTML = "show";
	document.getElementById("EC-"+id).href = "javascript:expand('"+id+"');";
}

function increaseHeight(id,height,offSetHeight)
{
	if(offSetHeight < 4)
	{
		document.getElementById(id).style.paddingTop = "4px";
		offSetHeight = offSetHeight + 4;
		setTimeout("increaseHeight('"+id+"','"+height+"',"+offSetHeight+")",10);
	}
	else if(offSetHeight < (height - 4))
	{
		if(height - offSetHeight < 14)
		{
			document.getElementById(id).style.height = (offSetHeight+(height - offSetHeight - 4))+"px";
			offSetHeight = offSetHeight+(height - offSetHeight - 4);
		}
		else
		{
			document.getElementById(id).style.height = (offSetHeight+6)+"px";
			offSetHeight = offSetHeight + 10;
		}
		setTimeout("increaseHeight('"+id+"','"+height+"',"+offSetHeight+")",10);
	}
	else if(offSetHeight < height)
	{
		document.getElementById(id).style.paddingBottom = "4px";
		offSetHeight = offSetHeight + 4;
		setTimeout("increaseHeight('"+id+"','"+height+"',"+offSetHeight+")",10);
	}
}
-->