function loadCarousel(sourceURL, XMLURL, containerWidth, containerHeight, carouselHeight, background, pageTitle) {
	
	if (!containerHeight) {
		containerHeight = defaultContainerHeight;
	}
	if (!containerWidth) {
		containerWidth = 680;
	}
	if (!background) {
		background = "#000";
	}
		
	if (!pageTitle) {
		document.title = SiteTitle;
	}
	else {
		document.title = SiteTitle + " - " + pageTitle;
	}
	
	$('body').css({'backgroundImage' : defaultbackgroundimage});
	$('body').css({'background-size' : defaultbackgroundsize});
	
	$('#sidebar2').hide();
	$('#carouselInfoContainer1').show();
	$('#carouselButtonContainer1').show();
	$('#Advertisement').hide();
	$('#YouHaveAFriendInMe').hide();
	$('#contentContainer1').show();
	$('#contentContainer2').hide();

	$('#contentContainer1').css("height",containerHeight);
	$('#contentContainer1').css("width",containerWidth);
	$('#contentContainer1').css("background",background);
	$('#contentContainer1').css("border-color",background);
	$('#contentContainer1').css("overflow","hidden");
	$('#contentContainer1').css("visibility","visible");
	$('#contentContainer1').css("padding-top","10px");
	$('#contentContainer1').css("padding-left","10px");
	$('#contentContainer1').css("padding-right","10px");
	$('#contentContainer1').css("padding-bottom","10px");
	$('#contentContainer1').css("-moz-border-radius-topleft","5px");
	$('#contentContainer1').css("-webkit-border-top-left-radius","5px");
	$('#contentContainer1').css("-khtml-border-top-left-radius","5px");
	$('#contentContainer1').css("border-top-left-radius","5px");

	$('#contentContainer1').css("-moz-border-radius-topright","5px");
	$('#contentContainer1').css("-webkit-border-top-right-radius","5px");
	$('#contentContainer1').css("-khtml-border-top-right-radius","5px");
	$('#contentContainer1').css("border-top-right-radius","5px");

	$('#contentContainer1').css("-moz-border-radius-bottomleft","5px");
	$('#contentContainer1').css("-webkit-border-bottom-left-radius","5px");
	$('#contentContainer1').css("-khtml-border-bottom-left-radius","5px");
	$('#contentContainer1').css("border-bottom-left-radius","5px");

	$('#contentContainer1').css("-moz-border-radius-bottomright","5px");
	$('#contentContainer1').css("-webkit-border-bottom-right-radius","5px");
	$('#contentContainer1').css("-khtml-border-bottom-right-radius","5px");
	$('#contentContainer1').css("border-bottom-right-radius","5px");

	if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
	else {// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState==4 && xmlhttp.status==200) {
			$('#contentContainer1')[0].innerHTML=xmlhttp.responseText;
			document.onload=startCloudCarousel('#carouselContainer1',containerWidth, carouselHeight);
			//EX: loadContent('#carouselInfoContainer1', 'GirlsCompetitiveTeam/Bios/MadelineDragon.htm'); return false;
			firstPageLoad = ($('#carouselContainer1 a:first').attr('onclick'));
			functionToCall = firstPageLoad.substr(0, firstPageLoad.indexOf("("));
			thisElementSelector = firstPageLoad.substr(firstPageLoad.indexOf("('")+2, firstPageLoad.indexOf("',")-firstPageLoad.indexOf("('")-2);
			firstPageLoad = firstPageLoad.substr(firstPageLoad.indexOf(",")+1);
			firstPageLoad = firstPageLoad.substr(firstPageLoad.indexOf("'")+1, firstPageLoad.indexOf("')")-2);
			if (functionToCall == "loadContent") {
				loadContent(thisElementSelector, firstPageLoad);
			}
			else if (functionToCall == "loadHTMLHTTPRequest") {
				loadHTMLHTTPRequest(thisElementSelector, firstPageLoad);
			}
			$('#contentContainer1').css("height","auto");
			$('#contentContainer1').css("color","#FFF");

		}
	}
	
	// sourceURL = "Site/php/meet_the_staff.php"
	xmlhttp.open("GET",sourceURL+"?height="+carouselHeight+"px&XMLURL="+XMLURL,true);
	xmlhttp.send();
		
}

