
function SwapContent(theName)
    {
        $.ajax({
            type: "GET",
            url: GetPageSourceFileName(theName),
			async: false,
			dataType: "html",
			contentType: "text/html",
			error: function(XMLHttpRequest, textStatus, errorThrown)
			{
				alert ("XMLHttpRequest:  " + XMLHttpRequest + "\n" 
				+ "textStatus:  " + textStatus + "\n"  
				+ "errorThrown:  " + errorThrown);
			},
            success: function(responseHtml)
            {
                  $("#mainContent").html(responseHtml);
            }
        });
    }



function GetPageSourceFileName(id) 
{
	if (typeof(id) == "undefined" || id == null)
		return;
	else
	{
		switch(id)
		{
		case "main" : return "main.html";
		case "bio" : return "bio.html";
		case "talking" : return "talking.html";
		case "buy" : return "buy.html";
		case "videos" : return "videos.html";
		case "lyrics" : return "lyrics.php";
		case "photos" : return "photos.php";
		case "calendar" : return "calendar.html";
		case "calendar-past" : return "calendar-past.html";
		case "presskit" : return "presskit.html";
		case "street" : return "street.php";
		case "favorites" : return "favorites.html";
		case "biz" : return "biz.html";
		case "faq" : return "faq.html";
		case "mailing" : return "mailing.php";
		case "mailing-thanks" : return "mailing-thanks.php";
		case "donateToMe" : return "donateToMe.html";
		case "boutique" : return "boutique.html";
		default:
            return "main.html";
		}
	}
	
}






