// this file deals with all the counting of slides and questions
// which get displayed. requires branching for different interactions.

// branching for mcqs
if (this.questionsArrayIndex) {
	if (questionsArrayIndex.length >1) {	
		for (i=0; i<questionsArrayIndex.length; i++) {
			document.write('<div id="count' + questionsArrayIndex[i] + '" class="count" style="position:absolute; visibility:hidden"><div style="position:relative; top:45"><table border="0" width="80" cellspacing="0" cellpadding="0"><tr><td align="center"><b>' + (i+1) + ' / ' + questionsArrayIndex.length + '</b></td></tr></table></div></div>')
		}
	}
}

//branching for hotspots
if (this.imageCodes) {
	if (imageCodes.length >1) {	
		for (i=0; i<imageCodes.length; i++) {
			document.write('<div id="count' + imageCodes[i] + '" class="count" style="position:absolute; visibility:hidden"><div style="position:relative; top:65"><table border="0" width="70" cellspacing="0" cellpadding="0"><tr><td align="center"><b>' + (i+1) + ' / ' + imageCodes.length + '</b></td></tr></table></div></div>')
		}
	}	
}

//branching for slide shows
if (this.slideCodes) {
	if (slideCodes.length >1) {	
		for (i=0; i<slideCodes.length; i++) {
			document.write('<div id="count' + slideCodes[i] + '" class="count" style="position:absolute; visibility:hidden"><div style="position:relative; top:45"><table border="0" width="80" cellspacing="0" cellpadding="0"><tr><td align="center"><b>' + (i+1) + ' / ' + slideCodes.length + '</b></td></tr></table></div></div>')
		}
	}	
}