Logically if You Can Do
Make a cookie to store information if it is HTML Control
That Suppose Your Div's Name is "Container"
Whene Ever You Want To Change Visibility of Links Write HTML And Save It To Cookie
and On Page Load
onload="MakeHTML();"
function MakeHTML()
{
var Values=getCookie("HTML");
document.getElementById('Container').innerHTML=-Values;
}