$(document).ready(function()
{
    ajax_getHTML('sketchbook.html', 'article');
});

/*	a_ajah_getHTML()
--------------------------------------------------
Input:	0 HTML URL
		1 HTML anchor for insert point
----------------------------------------------	*/
function ajax_getHTML(url, anchor)
{
	$.ajax(
	{
		type:'get',
		dataType:'html',
		url:url,
		async:false,
		beforeSend: function()
		{
			$(anchor).html('<p class="loading">Loading content, please wait.</p>');
		},
		error: function()
		{
			$(anchor).html('<p class="error">ERROR: Loading content failed.</p>');
		},
		success: function(html)
		{
			$(anchor).html(html);
		}
	});
}
/*	------------------------------------------	*/
