/*
 * Note that both /keywords/index.tmpl and /people/view.tmpl use this script
 */
		function ajaxFailed(req) {
			alert('Failed to get keyword details. Sorry.');
			$('details').hide();
		}
		function getDetails(id, keyword, url) {
			details = $('details_' + id);
			if (details.getStyle('display') != 'none') {
				Effect.BlindUp(details, {duration: 0.2});
				return false;
			}
			Effect.BlindDown(details, {duration: 0.2});
			details.innerHTML = "Loading details for " + keyword + "...";
			if (typeof url == 'undefined') url = "view.php";
			var params = 'id=' + id;
			var req = new Ajax.Updater('details_' + id, url, {method: 'get', parameters: params, onFailure: ajaxFailed} );
			return false;
		}

