function disconnect()
{ 
	//Hide user, when it exists
	var user_connected = document.getElementById("user_connected");
	if(user_connected != undefined)
	{
		//From https://developer.mozilla.org/En/DOM:element.replaceChild
		//Create <div id="user_disconnected" />
		var user_disconnected = document.createElement("div");
		user_disconnected.setAttribute("id","user_disconnected");
		
		//Build a reference to the existing node to be replaced
		var parentDiv = user_connected.parentNode;
		
		//Replace <div id="user_disconnected"> with <div id="user_connected">
		parentDiv.replaceChild(user_disconnected, user_connected);
	}
	
	
	//Show login button, when it exists
	var loginbutton = document.getElementById("loginbutton");
	if(loginbutton != undefined)
	{
		//Dirty hack for IE, should be loginbutton.innerHTML = '<fb:login-button size="medium" background="dark" length="long"></fb:login-button>';
		loginbutton.style.visibility = "visible";
		loginbutton.style.display = "inline";
	}
	
	
	//Hide form, when it exists
	var addComment = document.getElementById("addComment");
	if(addComment != undefined)
	{
		addComment.style.visibility = "hidden";
		addComment.style.display = "none";
	}
	
	//Because this is XFBML, we need to tell Facebook to re-process the document
	FB.XFBML.Host.parseDomTree(); 
}