Keep original div open at location.reload()
<p>Is there an way to keep the orginal div open when using location.reload();?</p>

<p><strong>This is my situation:</strong>
In my page I have an loop what is containig the div. When clciking on it the div is opened:</p>

<pre><code>while ($row = mysql_fetch_array($res))
{
    echo '&lt;tr onMouseOver="addHighlight(this);" onMouseOut="removeHighlight(this);" onclick="setHighlighted(this),showDetails('.$row['id'].');"&gt;
    &lt;td&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
    &lt;td&gt; &lt;div id="details'.$row['id'].'"&gt;&lt;/div&gt; &lt;/td&gt;
    &lt;/tr&gt;';
}
</code></pre>

<p>The div is opened or closed with:</p>

<pre><code>function showDetails(str)
{
if(document.getElementById("details"+str).innerHTML=="") //if empty proceed to show details
{

xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
{
alert ("Browser does not support HTTP Request");
return;
}
var url="includes/js/ajax_details_adres.php";
url=url+"?q="+str;
url=url+"&amp;sid="+Math.random();
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);

divnumber=str;

}
else
{
document.getElementById("details"+str).innerHTML=""; //if NOT empty, clear the details from div
}

}

function stateChanged()
{
if (xmlhttp.readyState==4)
{
document.getElementById("details"+divnumber).innerHTML=xmlhttp.responseText;
}
}

function GetXmlHttpObject()
{
if (window.ActiveXObject)
  {
  // code for IE6, IE5
  return new ActiveXObject("Microsoft.XMLHTTP");
  }
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  return new XMLHttpRequest();
  }
return null;
}
</code></pre>

<p>The div contains an jQuery popup, when that popup is closed the page is reloaded with:</p>

<pre><code>//Close Popups and Fade Layer
$('a.close, #fade').live('click', function() { //When clicking on the close or fade layer...
    $('#fade , .popup_block').fadeOut(function() {
        $('#fade, a.close').remove();  //fade them both out
        location.reload(); // reload page
    });
    return false;
});
</code></pre>

<p>The problem is when the page is reloaded the div is closed, how can I reload the page with this div opened again or reload only this div (div id="details'.$row['id'].'">)?</p>
