	$(document).ready(function() { 
		$("#header").click(function() { window.location = "/"; });
	});
	function tapmod(theid, thevalue) {
		var selector = "#"+theid+"-tapshtml";
		$.post("vote.php", { id: theid, value: thevalue }, function(data) { 
			var status = data.split("!");
			if(status[0] == "error") {
				alert(status[1]);
			} else {
				$(selector).html("").fadeOut("slow");
				$(selector).html(status[1]).fadeIn("slow");
			}
		});
	}
	function removeconvo(id) {
		var confirmation = confirm("Are you sure you want to remove this convo? This cannot be undone");
		if(confirmation == true) {
			$.post("removeconvo.php", { id: id }, function(data) { 
				$("#"+id).slideUp("slow");
			});
		}
	}
