function set_cookie(object, value) { 
 var expireDate  = new Date()
var expstring   = expireDate.setDate(expireDate.getDate() + 500)
document.cookie = object+'='+value+'; expires='+expireDate.toGMTString()+'; path=/';
window.location.reload()  }

function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

   function toggleSections(section)
	{
    document.getElementById(section).style.display = "block";
    
 if (section != "details")
      document.getElementById("details").style.display = "none";
    if (section != "add")
      document.getElementById("add").style.display = "none";
       if (section != "trade")
      document.getElementById("trade").style.display = "none";
       if (section != "embed")
      document.getElementById("embed").style.display = "none";
        if (section != "flag")
      document.getElementById("flag").style.display = "none";    
          
    document.remember_page.my_value.value = section;
    document.remember_page.submit();

    return false;
	}

	function onload_remember_page()
	{
  	// always store the current page on page load
    document.remember_page.my_value.value = "details";
    document.remember_page.submit();
  }