function showDebug() {
	$.postJSON("services/json/debugService.cfc?method=getSessionInfo", {}, function(json) {
		if (!checkJsonError(json)) return;
		
		try {
			console.log(json);
		} catch (e) {}
		
		
		if (typeof json.customer == 'object') {
			var html = [''
				,'<table class="debug customer-info standard_data_table">'
					,'<thead>'
						,'<tr>'
							,'<th>Property</th>'
				];
			for (var customerType in json.customer) {
				html.push('<th>' + customerType + '</th>');
			}
			html.push('</tr></thead><tbody>');
			
			var baseProperties = json.customer[customerType];
			
			for (var property in baseProperties) {
				html.push(''
					,'<tr>'
						,'<td>' + property + '</td>'
					);
				for (var customerType in json.customer) {
					var val = json.customer[customerType][property];
					
					html.push('<td class="' + (typeof val) + '">');
					switch (typeof val) {
					case 'string':
						html.push(val.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;'));
						break;
					case 'number':
						html.push(val);
						break;
					case 'boolean':
						html.push(val?'true':'false');
						break;
					case 'object':
						if (object == null) {
							html.push('<i>NULL</i>');
						} else {
							html.push('<table>');
							for (var x in val) {
								html.push('<tr><th>' + x + '</th><td>' + (''+val[x]).replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;') + '</td></tr>');
							};
							html.push('</table>');
						}
					}
					html.push('</td>');
				}
				html.push('</tr>');
			}
			html.push("</table>");
			html.push('<a class="button" onclick="$(this).parent(\'div\').hide(500, function(){$(this).remove();});">Hide Debug Info<span class="endcap"></span></a>');
			
			$("<div id='page-debug-panel'>" + html.join('') + "</div>")
				.prependTo('.page')
				.find('table').tablesorter({
					widgets: ['zebra']
				});
			$("#page-debug-panel").mouseover(function() {
				$(this).stop()
					.animate({height: '600px'}, 500, function(){
						$(this).css({height: 'auto'});
						});
			});
			$("#page-debug-panel").mouseout(function() {
				$(this).stop()
					.animate({height: '52px'}, 500);
			});
		}
	});
}

