$(function (){
	$('a.dialog').click(function() {
		var url = this.href;
		var title = this.title;
		var dialog = $('<div style="display:hidden"></div>').appendTo('body');
		dialog.load( url, {}, function (responseText, textStatus, XMLHttpRequest) {
									dialog.dialog({width:700, height:300, title: title});
                                }
		);
		return false;
	});
});
