$(document).ready(function(){
	$('body').append('<div style="display: none;"><div id="thick_prompt"><span id="message"></span>' +
			 '<br /><br />' +
			 '<table width="100%"><tr id="thick_prompt_buttons"></tr></table>' +
			 '</div></div>');
});

	/**
	  * Displays a thickbox modal dialog box.
	  * @param message The message to display.  This may contain HTML.
	  * @param buttons An array of Label => Callback Function pairs.
	  */
function thickPrompt(message, buttons)
{
	$('#thick_prompt span#message').html(message);
	$('#thick_prompt_buttons').html("");
	for (var i = 1; i < arguments.length; ++i)
	{
		var label    = arguments[i][0];
		var callback = arguments[i][1];
		$("#thick_prompt_buttons").append(
			'<td style="text-align: center;"><button type="button" onclick="tb_remove(); '+callback+'();">'+label+'</button></td>'
			);
	}
	tb_show("Prompty McPrompterton", "#TB_inline?height=100&width=200&inlineId=thick_prompt&modal=true", false);
}
