i had the same situation, ie to hide the details by clicking on the image......for that i have used the table which has the details.......

function showHide(id)
{
obj=document.getElementById(id);
obj.style.display="none";
}

is the javascript code.


the details......


and it worked for fine for me......so try this......

hope this would be useful for u....