var liyAnswer = function()
{
	var answer;
	var right;
	var responseText;

	this.answerStr = function( inAnswer ) { answer = inAnswer; }
	this.right     = function( inRight )  { right = inRight; }
	this.responseText = function( inText ) { responseText = inText; }

}

//******************************************
var liyQuestion = function()
{
	var image;
	var imageSize;
	var question;
	var hint;
	var moreInfoURL;
	var moreInfoAnchorText;
	var answers = new Array();

	this.image       = function( inImage )     { image = inImage; }
	this.imageSize   = function( inImageSize ) { imageSize = inImageSize; }
	this.question    = function( inQuestion )  { question = inQuestion; }
	this.hint        = function( inHint )      { hint = inHint; }
	this.moreInfoURL = function( inURL )       { moreInfoURL = inURL; }
	this.moreInfoAnchorText = function( inText ) { moreInfoAnchorText = inText; }

	this.AddAnswer = function( correct, inAnswerText, inResponseText )
	{
		var ans = new liyAnswer;
		ans.answer = inAnswerText;
		ans.right  = correct;
		ans.responseText = inResponseText;
		answers[ answers.length ] = ans;
	}


	this.NumAnswers = function() { return answers.length; }
	this.GetAnswerText = function( idx ) { return answers[idx].answer; }
	this.IsAnswerCorrect = function( idx ) { return answers[idx].right; }
	this.GetResponseText = function( idx ) { return answers[idx].responseText; }

}  // end: object liyQuestion

//******************************************

