function showBlock(id) {
	getObject(id).display = "block";
}

function hideBlock(id) {
	getObject(id).display = "none";
}

function showComment(id) {
	hideBlock('comment'+id+'teaser');
	showBlock('comment'+id+'full');
}

function hideComment(id) {
	showBlock('comment'+id+'teaser');
	hideBlock('comment'+id+'full');
}

$(document).ready(function() {
	$(".button").hover(
		function() {
			this.src = this.src.substr(0, this.src.length-4)+"_hover.gif";
		},
		function() {
			this.src = this.src.substr(0, this.src.length-10)+".gif";
		}
	);
	$("#menuButton").click(function() {
		$.post('rpc_menustate', {menu: 1});
	});
	$("#hideButton").click(function() {
		$.post('rpc_menustate', {menu: 0});
	});
	$("a.external").click(function() {
		window.open(this.href);
		return false;
	});
});
