
	    var ASSESSMENT_MODE_NULL = 0;
	    var ASSESSMENT_MODE_LIVE = 1;
	    var ASSESSMENT_MODE_REVIEW = 2;
    			
		var courseStructure = new Array;
		var structureIndex = new Array;
		var questionPool = new Array;
		var assessmentSection = new Array;
		var scoreMatrix = new Array;
		var assessmentMode = 0;
		var assessmentScore = 0;
		var status = "i";
		var showAssessmentFeedback = false;
		
		function setupStructure()
		{
		
			var nodeDetails = new Array;
			var topicIndex = 0;
			var parentIndex = 0;
			var topicStart = -1;
		     





					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_010.xml";
					nodeDetails[ 1 ] = "Introduction";
					nodeDetails[ 2 ] = "N10A57";
					nodeDetails[ 3 ] = "rdd_010";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         
					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_020.xml";
					nodeDetails[ 1 ] = "Common misunderstanding";
					nodeDetails[ 2 ] = "N10BB9";
					nodeDetails[ 3 ] = "rdd_020";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         
					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_030.xml";
					nodeDetails[ 1 ] = "Better understanding";
					nodeDetails[ 2 ] = "N11074";
					nodeDetails[ 3 ] = "rdd_030";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         
					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_040.xml";
					nodeDetails[ 1 ] = "Question 1";
					nodeDetails[ 2 ] = "N111CA";
					nodeDetails[ 3 ] = "rdd_040";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         
					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_050.xml";
					nodeDetails[ 1 ] = "Question 2";
					nodeDetails[ 2 ] = "N114EF";
					nodeDetails[ 3 ] = "rdd_050";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         
					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_060.xml";
					nodeDetails[ 1 ] = "Question 3";
					nodeDetails[ 2 ] = "N117CA";
					nodeDetails[ 3 ] = "rdd_060";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         
					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_070.xml";
					nodeDetails[ 1 ] = "Question 4";
					nodeDetails[ 2 ] = "N11A87";
					nodeDetails[ 3 ] = "rdd_070";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         
					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_080.xml";
					nodeDetails[ 1 ] = "2 experiences";
					nodeDetails[ 2 ] = "N11D1C";
					nodeDetails[ 3 ] = "rdd_080";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         
					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_090.xml";
					nodeDetails[ 1 ] = "Benefits of improving accessibilty";
					nodeDetails[ 2 ] = "N11F9C";
					nodeDetails[ 3 ] = "rdd_090";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         
					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_100.xml";
					nodeDetails[ 1 ] = "What could it involve for you?";
					nodeDetails[ 2 ] = "N1248F";
					nodeDetails[ 3 ] = "rdd_100";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         
					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_110.xml";
					nodeDetails[ 1 ] = "Size does matter!";
					nodeDetails[ 2 ] = "N125DD";
					nodeDetails[ 3 ] = "rdd_110";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         
					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_120.xml";
					nodeDetails[ 1 ] = "Fancy that?";
					nodeDetails[ 2 ] = "N129FF";
					nodeDetails[ 3 ] = "rdd_120";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         
					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_130.xml";
					nodeDetails[ 1 ] = "How much?";
					nodeDetails[ 2 ] = "N12D81";
					nodeDetails[ 3 ] = "rdd_130";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         
					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_135.xml";
					nodeDetails[ 1 ] = "This much!";
					nodeDetails[ 2 ] = "N130B3";
					nodeDetails[ 3 ] = "rdd_135";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         
					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_150.xml";
					nodeDetails[ 1 ] = "Options for becoming more accessible";
					nodeDetails[ 2 ] = "N13236";
					nodeDetails[ 3 ] = "rdd_150";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         
					nodeDetails = new Array;
					nodeDetails[ 0 ] = 	"rdd_160.xml";
					nodeDetails[ 1 ] = "Where next?";
					nodeDetails[ 2 ] = "N13392";
					nodeDetails[ 3 ] = "rdd_160";
					nodeDetails[ 4 ] = "courseStructure";
					nodeDetails[ 5 ] = "l";
					nodeDetails[ 6 ] = ++topicIndex;
					nodeDetails[ 7 ] = "";
					nodeDetails[ 8 ] = parentIndex;
					nodeDetails[ 9 ] = false;
				
						nodeDetails[10 ] = false;
					
					courseStructure[ courseStructure.length ] = nodeDetails;
					if ( topicStart == - 1 )
					{
						topicStart = courseStructure.length - 1;
					}
	         




			topicEnd = courseStructure.length;
			topicSize = topicEnd - topicStart;
			// for ( topicStart = topicStart + 1; topicStart <= topicEnd; topicStart++ )
			for ( ; topicStart < topicEnd; topicStart++ )
			{
			    courseStructure[ topicStart ][ 7 ] = topicSize;
			}
        
            // buildIndex();
            
            createAssessmentSection();
            
        }
        
 	