function openAlertDialog(message) {
	message = message + "";
	$('#alertDialog').modal();
	$('#alertDialog .content').css('display','none');
	$('#alertDialog .content').html(message);
	
	//-- animate dialog a little to the top while opening content to make it seem as if top and bottom go apart from each other while revealing content
	$('#alertDialog').animate({'margin-top': '-20px'},  FAST_SPEED);
	$('#alertDialog .content').slideToggle(FAST_SPEED);
}


/**
 * UNUSABLE
 */
function closeAlertDialog() {
	//-- animate dialog a little to the bottom while closing content to make it seem as if top and bottom go together while hiding content
	$('#alertDialog').animate({'margin-top': '0px'},  NORMAL_SPEED);
	$('#alertDialog .content').slideToggle(NORMAL_SPEED, function() {
		//-- clone the dialog:
		var alertDialog = $('#alertDialog').clone();
		
		//-- call back function, remove all dialog-related stuff:
		$('#simplemodal-overlay').remove();
		$('#simplemodal-placeholder').remove();
		$('#simplemodal-container').remove();
		
		//-- add the cloned dialog again:
		$("body").append(alertDialog);
		$('#alertDialog').css('display','none');
		
	});
}
