hi all,

I am using simple show/hide layers for menus, what I want is to use cookie so that if any menu is open it should remain open if a visitor goes to another page, and the open link text should be in BOLD, I tried a couple things, but I cant get it work, here I need your help please..

please download my menu.html files here
http://rapidshare.com/files/59123696/menu.html

below is the function I am using for show / hide layer..

<script>
function showhide(id){
if (document.getElementById){
obj = document.getElementById(id);
if (obj.style.display == "none"){
obj.style.display = "";
} else {
obj.style.display = "none";
}
}
}
</script>
thanks for looking at this thread.