function InitTabs()
{
	var tabcontrol = new TabControl('project-tabs');
	tabcontrol.OnOpenTab = OnOpenTab;
		
}

function OnOpenTab(index, content)
{
}

function delete_page(id)
{
	if(!confirm('Are you sure you want to delete this page?'))
	{
		return;
	}
	
	if(!id)
	{
		return;
	}
	
	var http = new Ajax(window.base_url + 'admin/projects/delete_page/' + id, {
		method: 'get',
		
		onSuccess: function()
		{
			new Fx.Style('source_' + id, 'opacity', 
			{
				onComplete: function()
				{
					$('page_' + id).parentNode.removeChild($('page_' + id));
				}
			}).start(0);
		}
	});
	
	http.request();
}


