/********************************
jQuery Do when dom is ready!
*********************************/

$(document).ready(function()
{
	// toggle the add task box
	$('div#bg_submenu ul li a').click(function() {
		// get the id of the clicked link so we know which div to show
		var showingid = $(this).attr("id");
		showingid = showingid.substr(showingid.lastIndexOf("_")+1, 50);
		// hide all the divs
		$('div#bg_content').children("div:visible").hide();
		// show the id of the button clicked
		$('div#bg_about_'+showingid).fadeIn();
		return true;
	});

});