function inputfocus(s, t) {
	if (s.value == t)
		s.value = '';
}
function inputblur(s, t) {
	if (s.value == '')
		s.value = t;
}

function remove(link, confirmMessage, reloadUrl) {
	var reload = function(data) {
		if (data.result && data.result == "success") {
			window.location = reloadUrl;
		} else {
			alert(messages.error.remove);
		}
	};
	if (confirm(confirmMessage)) {
		$.ajax({
			url : link.href,
			dataType : "json",
			success : reload,
			error : function() {
				alert(messages.error.remove);
			}
		});
	}
	return false;
}

function timelineDetail() {
	Timeline.OriginalEventPainter.prototype._showBubble = function(x, y, evt) {
		$('#content').load(evt._link);
		$('#right > .sidebar').load(evt._link.replace("content","right"));
	};
}
