/*
function UseAjax()
{
	// Pick up any links inside a "listbutton" container, and set a click action
	$('.listbutton').children('a').click(

		function(e)
		{
			// Set the cursor to a "hourglass" state
			$('body').addClass('working');

			// Get the address, lop off the page address, and shorten the action to one letter
			var act = e.href;
			act = act.substring(11);
			act = act.substring(0, 1) + act.substring(3);

			// Set up the AJAX options
			var args = {async: false,
									type: 'GET',
									url: 'planner.php',
									data: act};

			// Send the AJAX request
			$.ajax(args);

			$('body').removeClass('working');

			// Don't follow the default link action
			e.preventDefault();
		}
	);
}

addEvent(window, 'load', UseAjax);
*/
popup.Add('.listbutton', 450, 300);
addEvent(window, 'load', popupLinks);

function popupLinks()
{
	var links = gClass(document, 'listbutton');
	
	for(i = 0, j = links.length; i < j; i++)
	{
		var link = links[i];
		link = gTag(link, 'a');
		link[0].href = link[0].href + '&d=n';
	}
}
