if (API_CORE)
{
	API_CORE.extention_type = "CORE_API has been extended for HTML Text only.";

	API_CORE.HTMLVarArray = new Array;

	// Flash mix-in replacements.
	API_CORE.load_learning = function()
	{
		//this.debugMessage("load_HTML()",1,false,false);
		init()	// In frameset_generic.js
	}

	// function to send the variables to flash
	API_CORE.send_variables_to_learning = function()
	{
		//this.debugMessage("send_variables_to_learning()",1,false,false);
		currCourse.addLMSData(this.HTMLVarArray)
		return true;
	}

	// function to add a variable to the flash queue
	API_CORE.add_variable_to_learning_variable_stack = function (inVariableName, inValue)
	{
		// validate name and value
		//this.debugMessage("add_variable_to_learning_variable_stack(inVariableName: " + inVariableName + ", inValue: " + inValue + ")",1,false,false)

		if (((inVariableName == null) || (inVariableName == "") && (inVariableName !== 0)) || ((inValue == null) || (inValue == "") && (inValue !== 0)) )
		{
			//this.debugMessage("add_variable_to_learning_variable_stack(): Error, missing inVariableName/inValue. Please check inputs.",3,false,false)
			return false;
		}
		// add to an array
		this.HTMLVarArray[inVariableName] = inValue;

		return true;
	}

	// function to get variable from flash
	// (no currently required, as flash sended the variables back to js)
	API_CORE.get_variable_from_content = function (inVariableName, inValue)
	{
		// Previous code said: *** not required at this time ***
		//this.debugMessage("get_variable_from_content(inVariableName: " + inVariableName + ", inValue: " + inValue + ")",1,false,false)
	}

	// Debug messages are piped off to the debug object.
	API_CORE.debugMessage = function (inText, priority, whatObj, showCallee)
	{
		if (DEBUG)
			DEBUG.lert(inText, priority, whatObj, showCallee, "api_core_extension_HTML_text_only.js")
	}

	API_CORE.debugMessage("API_CORE Extended.",0)
	API_CORE.debugMessage("API_CORE has been extended for HTML text only, Object: ",1,API_CORE,false)
}
else
{
	if (DEBUG)
		DEBUG.lert("Unable to extend API_CORE, it seems to be missing.",3,0,0)
	else
		alert("Unable to extend API_CORE, it seems to be missing.")
}
