Hola, pues para usar el contraer y expandir elementos puse este script:
<script type='text/JavaScript'>
	function verocultar(cual) {
		var c=cual.nextSibling;
		if(c.style.display=='none') {
			c.style.display='block';
		} else {
			c.style.display='none';
		}
		return false;
	}
</script>
<a onclick="return verocultar(this);"
	href="javascript:void(0);"><img style="margin:6px 0px 0px 0px;" borde='0' height='20' src='images/detalle_user.png' width='160'/></a><div style="display: none;">