$(document).ready(function(){
	$.ajax({ 
		type: 'GET',
		url: 'embed-ajax.xhtml',
		dataType: 'xml',
		complete: function addContent(msg) {
			$('#sidebar').append('<div id="ajax"></div>');
			$('#ajax').append(msg.responseXML.getElementsByTagName('div')[0]);
		},
		error: function showError() {
			$('#sidebar').append('<div id="ajax"><a href="embed-ajax.xhtml">Error</a></div>');
		}
	})
});