var Preload = new Array('tab1_completeactivity', 'tab_compareshare', 'seq_viewclassroom', 'seq_hearexpert', 'seq_analyzeinstruction', 'seq_compareshare');


		for (var n = 0; n < Preload.length; n++) {
			var each = new Image();
			each.src="../images/" + Preload[n] + "_ov.gif";
		}
	
function onLocal(name) {
			document[name].src="../images/" + name + "_ov.gif";
		}
		
		function offLocal(name) {
			document[name].src="../images/" + name + ".gif";
		}

function Hilite(name,over) {

	var name = arguments[0];
	var over = arguments[1];
	var img_name;

	if (arguments[2]) {
		img_name = arguments[2];
	} else {
		img_name = arguments[0];
	}

	if(over)
		window.document.images[img_name].src = "../images/" + name +"_ov.gif";
	else
		window.document.images[img_name].src =  "../images/" + name + ".gif";
}
	
function launchInteractive(page) {
			howTall = (screen.availHeight - 550)/2;
			howWide = (screen.availWidth - 600)/2;
			troubleWindow = window.open(page+'.htm','new','width=720,height=620,screenX=100,screenY=100,top='+howTall+',left='+howWide+'menubar=yes,resizable=no,noresize,titlebar=no,status=no,toolbar=no,scrollbars=no');
			troubleWindow.focus();
		}
		
function selectedHighlightGd(intSelectedHL) {
    
    		allOffGd();
    		
    		var WhichOne="highlight" + intSelectedHL;
			var WhichOneNumber="highlight" + intSelectedHL + "Number";
    		
    		/*Old code, not compliant with Safari
    		document.all[WhichOne].style.backgroundColor = "#FFED8F";
    		document.all[WhichOneNumber].style.backgroundColor = "#FFED8F"; 
    		*/
    		
        	//New code, tested on Safari v. 1.2.3
        	document.getElementById(WhichOne).style.backgroundColor = "#F9F676";
			document.getElementById(WhichOneNumber).style.backgroundColor = "#F9F676";
			
			
		}
		
		function allOffGd() {
		
			//howManyHighlights = document.all.highlightTable.rows.length;
			howManyHighlights = document.getElementById('highlightTable').rows.length;

		
			for (i=1;i<howManyHighlights;i++) {
				var turnOff="highlight" + i;
				var turnOffNumber="highlight" + i + "Number";
    	
    			/* Old code, not compliant with Safari
    			document.all[turnOff].style.backgroundColor = "#ffffff";
    			document.all[turnOffNumber].style.backgroundColor = "#ffffff";
    			*/
    			
    			//New code, tested on Safari v. 1.2.3    			
    			document.getElementById(turnOff).style.backgroundColor = "transparent";
				document.getElementById(turnOffNumber).style.backgroundColor = "transparent";
   			}    		
    		
    		
		}
		

function selectedHighlight(intSelectedHL) {
    
    		allOff();
    		
    		var WhichOne="highlight" + intSelectedHL;
			var WhichOneNumber="highlight" + intSelectedHL + "Number";
    		
    		/*Old code, not compliant with Safari
    		document.all[WhichOne].style.backgroundColor = "#FFED8F";
    		document.all[WhichOneNumber].style.backgroundColor = "#FFED8F"; 
    		*/
    		
        	//New code, tested on Safari v. 1.2.3
        	document.getElementById(WhichOne).style.backgroundColor = "#B0F1FF";
			document.getElementById(WhichOneNumber).style.backgroundColor = "#B0F1FF";
			
		}	
		

function allOff() {
		
			//howManyHighlights = document.all.highlightTable.rows.length;
			howManyHighlights = document.getElementById('highlightTable').rows.length;

		
			for (i=1;i<howManyHighlights;i++) {
				var turnOff="highlight" + i;
				var turnOffNumber="highlight" + i + "Number";
    	
    			/* Old code, not compliant with Safari
    			document.all[turnOff].style.backgroundColor = "#ffffff";
    			document.all[turnOffNumber].style.backgroundColor = "#ffffff";
    			*/
    			
    			//New code, tested on Safari v. 1.2.3    			
    			document.getElementById(turnOff).style.backgroundColor = "transparent";
				document.getElementById(turnOffNumber).style.backgroundColor = "transparent";
   			}    		
    		
    		
		}
				

		
		
		