function loadTextContent(dyBoxObject){
	var win;
	
	dyBoxObject.disableClick();
	win = window.windowDimensions();	
	buildContainers(dyBoxObject);
	displayContent(dyBoxObject);
}

/*Gets the text from copytext. This is achieved by using AJAX to call the ASP file listed below. This gets the copytext and applies a relevant XSLT stylesheet to it, which is added to the lightbox_Flash container*/
function createTextBox(dyBoxObject){
	var data, ajaxResults;
	
	if(dyBoxObject.dyboxObject.options.product.productID != "undefined" && dyBoxObject.dyboxObject.options.product.productID.length > 0){
		data = "copyTextCategory=" + dyBoxObject.dyboxObject.options.textDetails.copyTextCategory + "&productDetailsId=" + dyBoxObject.dyboxObject.options.product.productID + "&productType=" + dyBoxObject.dyboxObject.options.product.productType;
		if(dyBoxObject.dyboxObject.options.product.productType.toLowerCase() == "accessory"){
			$("lightbox_Flash").className = "textBox clear dyBox_WhiteBackground";
		}else{		
			$("lightbox_Flash").className = "textBox clear dyBox_BlackBackground";
		}
	}else{
		data = "copyTextCategory=" + dyBoxObject.dyboxObject.options.textDetails.copyTextCategory;
		$("lightbox_Flash").className = "textBox clear";
	}
	ajaxResults = new Ajax.Updater("lightbox_Container", "/local/library/dyBoxTextContent.asp", { parameters: data, onComplete: function() { scrollTest(dyBoxObject); }});		
}

function scrollTest(dyBoxObject){
	//window.setTimeout(function(){getContentSize(dyBoxObject)}, 2000);
	$("lightbox_Flash").scrollTop = 0 + "px";
}