//jdCourse_z.prototype = new jdCourse_LC();
//jdCourse_z.prototype = new jdCourse_SCORM();
function jdCourse_z() {
	this.init = init;
	this.calcSCOStatus = calcSCOStatus;

	this.init();

	function init() {
		jdCourse_z.prototype.init.call(this);	// Generates error on IE5, so it's commented just for IE5.
		/* Overriden variables */
		this.PageStruct = new jdPageStruct(getPagesData());
		this.defaultMasteryScore = 80;
		/* Added Internal variables */
		//this.sAvailQs;		// Available questions list  (e.g. "1|3|4|6|32|35")
		//this.sAvailQs = "0";
		//this.sAvailQs = "1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25";
		//this.sAvailQs = "1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50";
	}

	// Course completion (incomplete, passed, failed) is determined by the quiz score only.
	function calcSCOStatus(fCompletionRate) {
		//alert("fCompletionRate: " + fCompletionRate);
		var sStatus = this.NOT_ATTEMPTED;
		if (this.getQuizScore() != null && this.getQuizScore().toString().length > 0) {
			if (this.getQuizScore() >= this.getMasteryScore()) {
				sStatus = this.PASSED;
			} else {
				sStatus = this.INCOMPLETE;//this.FAILED;
			}
		} else {
			sStatus = this.INCOMPLETE;
		}
		return sStatus;
	}

}

