function switchMenuVisible() {

	if (menu_hidden) {
		menu_hidden=0;
		
		
	
		//document.getElementById("brdmenu").style.display = "block";
		//if (document.getElementById("searchlinks")) {
		//	document.getElementById("searchlinks").style.display = "block";
		//}
		//document.getElementById("punwrap").style.marginLeft = "205px";
		//document.getElementById("hidemenu").getElementsByTagName("a")[0].style.left = "210px";
		document.getElementById("hidemenu").getElementsByTagName("a")[0].style.backgroundImage = "url(style/aptica/bouton-menu-show.png)"
		/*setCookie('menuForum', 'visible');*/
	}
	else {
		menu_hidden=1;
		document.location.href="login.php";
		//document.getElementById("brdmenu").style.display = "none";
		/*if (document.getElementById("searchlinks")) {
			document.getElementById("searchlinks").style.display = "none";
		}*/
		//document.getElementById("punwrap").style.marginLeft = "10px";
		//document.getElementById("hidemenu").getElementsByTagName("a")[0].style.left = "15px";
		document.getElementById("hidemenu").getElementsByTagName("a")[0].style.backgroundImage = "url(style/aptica/bouton-menu-show.png)"
		/*setCookie('menuForum', 'hidden');*/
	}
}

/*function addLoadEvent(func)
{
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	}
	else {
		window.onload = function()
		{
			oldonload();
			func();
		}
	}
}

addLoadEvent(function() {
	if(getCookie('menuForum') == 'hidden')	{
		switchMenuVisible();
	}
});
*/
