//construct a quiz singleton like this Quiz = new Quiz(quizId, name) 
function Quiz(quizId, name){
	var currentQuestionIndex;
	var complete = false;
	var id = quizId;
	var brandName = name;

	constructor = function(){
	};

	constructor.getCurrentQuestionIndex = function(){
		return currentQuestionIndex;
	};

	constructor.setCurrentQuestionIndex = function(index){
		currentQuestionIndex = index;
	};

	constructor.isComplete = function(){
		return complete;
	};

	constructor.completed = function(isCompleted){
		complete = isCompleted;
	};

	constructor.getId = function(){
		return id;
	}

	constructor.setId = function(quizId){
		id=quizId;
	}

	constructor.getBrandName = function(){
		return brandName;
	}

	constructor.setBrandName = function(name){
		brandName=name;
	}	
	
	//view helper - should perhaps be factored out of this class
	//var quizViewBuilder = function(){
		//replace accessible submit button with a styled button		
		//var button = jQuery("#quizForm :submit")
		//var buttonValue = button.attr("value");
		//button.hide().parent().append('<h5 class="playButton"><a href="#"><span>'+buttonValue+'</span></a></h5>');

		//jQuery("#quizForm .polka div.fr a").eq(0).click(
		//	function(e){
		//		jQuery("#quizForm").trigger("submit");
		//		e.preventDefault();
		//	}
		//);
	//}
	
	//jQuery(document).ready(quizViewBuilder);

	
	return constructor;
};
