onclick expand div in jquery and hide another div
<p>What should i do to when onclick expand and when click on another close the other or will be a very long page</p>

<pre><code>&lt;script language="javascript"&gt;
var ie4 = false;
if(document.all) { ie4 = true; }

function getObject(id) { if (ie4) { return document.all[id]; } else { return document.getElementById(id); } }
function toggle(link, divId) {
    var d = getObject(divId);
    if (d.style.display == \'\') { d.style.display = \'none\'; }
    else { d.style.display = \'\'; }
}
</code></pre>

<p></p>
