/*
 * Clear Default Text: functions for clearing and replacing default text in
 * <input> elements.
 *
 * by Ross Shannon, http://www.yourhtmlsource.com/
 */

// Cross-browser event handling, by Scott Andrew
function addEvent(element, eventType, lamdaFunction, useCapture) {
    if (element.addEventListener) {
        element.addEventListener(eventType, lamdaFunction, useCapture);
        return true;
    } else if (element.attachEvent) {
        var r = element.attachEvent('on' + eventType, lamdaFunction);
        return r;
    } else {
        return false;
    }
}


addEvent(window, 'load', init, false);

function init() {
    var formInputs = document.getElementsByTagName('input');
    for (var i = 0; i < formInputs.length; i++) {
        var theInput = formInputs[i];
        
        if (theInput.type == 'text' && theInput.className.match(/\bcleardefault\b/)) {  
            /* Add event handlers */          
            addEvent(theInput, 'focus', clearDefaultText, false);
            addEvent(theInput, 'blur', replaceDefaultText, false);
            
            /* Save the current value */
            if (theInput.value != '') {
                theInput.defaultText = theInput.value;
            }
        }
    }
}

function clearDefaultText(e) {

    var target = window.event ? window.event.srcElement : e ? e.target : null;
    if (!target) return;
//     alert (target.name.backgroundcolor);
    if (target.value == target.defaultText) {
        target.value = '';
    }
}

function replaceDefaultText(e) {
    var target = window.event ? window.event.srcElement : e ? e.target : null;
    if (!target) return;
    
    if (target.value == '' && target.defaultText) {
        target.value = target.defaultText;
    }
}

// END Clear Default Text




// javascript to get an url ? param
function getURLparam(name){
	name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
	var regexS = "[\\?&]"+name+"=([^&#]*)";
	var regex = new RegExp( regexS );
	var results = regex.exec( window.location.href );
	if( results == null ){
		return "";
	}else{
		return results[1];
	}
}

function getWindowSize(whichDIM){
	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			winW = window.innerWidth;
			winH = window.innerHeight;
		}
		if (navigator.appName.indexOf("Microsoft")!=-1) {
			winW = document.body.offsetWidth;
			winH = document.body.offsetHeight;
		}
	}
	if (whichDIM=='h'){
		return winH;
	}else{
		return winW;
	}
}

function handleHttpResponse() {
	//alert ('handle in irisajax.js - status=' + http.status + ' - readystate=' + http.readyState);
	//alert ('howdy');
	if (http.readyState == 4) {
        if (http.status == 200) {
             //alert("OK:\n" + http.statusText);
            //buildTopicList();
         } else {
            ///alert("There was a problem:\n" + http.readyState);
         }
	}
}


function processpagedata(secs) {
	var timeonpage = secs;
	var mypath = location.pathname;
	var mypathArray = mypath.split("/");
	var pathLength = mypathArray.length;
	var urlLeader = '';
	if (mypath.indexOf('WEBSite')==-1){
		ivalue=3;
	}else{
		ivalue=5;
	}
	for (i=ivalue;i<=pathLength;i++){
		urlLeader = urlLeader + '../';
	}
// 	if (mypath.indexOf('JH')>-1){
// 		showDat=1;
// 	}else{
// 		showDat=0;
// 	}
	var thisfolder = mypathArray[pathLength-2];
	var thisfile = mypathArray[pathLength-1];
	//var url = urlLeader + 'PHPmaterials/irisajax.php?time='+escape(timeonpage)+'&fldrN='+escape(thisfolder)+'&fileN='+escape(thisfile); // The server-side script
	var url = urlLeader + 'PHPmaterials/sessions/irisajax.php?time='+escape(timeonpage)+'&fldrN='+escape(thisfolder)+'&fileN='+escape(thisfile); // The server-side script
	//var url = urlLeader + '../php/irisajax.php?time='+escape(timeonpage)+'&fldrN='+escape(thisfolder)+'&fileN='+escape(thisfile); // The server-side script
// 	if (showDat==1){
// 		alert('mypath = '+mypath);
// 		alert('url = '+url);
// 		alert('urlLeader = '+urlLeader+'  --  url = '+url);
// 		alert('pathLength = '+pathLength);
// 	}

    // branch for native XMLHttpRequest object
    if (window.XMLHttpRequest) {
        http = new XMLHttpRequest();
		if (http.overrideMimeType){
			http. overrideMimeType('text/xml');
		}
// 		http.overrideMimeType('text/xml');
        http.onreadystatechange = handleHttpResponse;
//         if (thisfile=='indexJH.html'){
//         	alert('before GET url = '+url);
//         }
        http.open("GET", url, false);
        http.send(null);
        //alert ('sent');
    // branch for IE/Windows ActiveX version
    } else if (window.ActiveXObject) {
        isIE = true;
        http = new ActiveXObject("Microsoft.XMLHTTP");
        if (http) {
            http.onreadystatechange = handleHttpResponse;
            http.open("GET", url, false);
            http.send();
        }
    }
}

function ajaxtest(){
	exit=new Date();
	time_dif=(exit.getTime()-enter.getTime())/1000;
	time_dif=Math.round(time_dif);
	processpagedata(time_dif);
}

function person_in() {
	count=0;
	//alert ("HELLO!  in load " + count);
	enter=new Date();
	//var t=setTimeout("alert('5 seconds!')",5000);
}

function person_leaving() {
	exit=new Date();
	count=1;
	time_dif=(exit.getTime()-enter.getTime())/1000;
	time_dif=Math.round(time_dif);
	//alert ("HELLO!  in before unload " + time_dif + " seconds!!" + count);
	processpagedata(time_dif);
}


function person_gone() {
	//alert ("HELLO!  in unload " + time_dif + " seconds!!" + count);
	if (count==0){
		exit=new Date();
		time_dif=(exit.getTime()-enter.getTime())/1000;
		time_dif=Math.round(time_dif);
		processpagedata(time_dif);
	}
}


function chkCK(){
	//alert ('in chkCK');
}

<!-- START ROUTINES SPECIFIC TO QUICKTIME-->

function MM_embedQuicktimePODCAST(media){
	document.write("<OBJECT CLASSID='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'  WIDTH='360' NAME='"+media+"'ID='"+media+"' HEIGHT='30' CODEBASE='http://www.apple.com/qtactivex/qtplugin.cab'>");
	document.write("<PARAM NAME='src' VALUE='audio/audiopost.mov'>");
	document.write("<PARAM NAME='controller' VALUE='false'>");
	document.write("<PARAM NAME='target' VALUE='myself'>");
	document.write("<PARAM NAME='href' VALUE='"+media+".mov'>");
	document.write("<PARAM NAME='pluginspage' VALUE='http://www.apple.com/quicktime/download/indext.html'>");
	document.write("<EMBED WIDTH='360' NAME='"+media+"'ID='"+media+"' HEIGHT='30' CONTROLLER='false' TARGET='myself' HREF='"+media+".mov' SRC='audio/audiopost.mov' BGCOLOR='FFFFFF' BORDER='0' PLUGINSPAGE='http://www.apple.com/quicktime/download/indext.html'></EMBED>");
	document.write("</OBJECT>");
}

function MM_embedQuicktimeAudio(media){
	document.write("<OBJECT CLASSID='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'  WIDTH='200' NAME='"+media+"'ID='"+media+"' HEIGHT='30' CODEBASE='http://www.apple.com/qtactivex/qtplugin.cab'>");
	document.write("<PARAM NAME='src' VALUE='audio/audiopost.mov'>");
	document.write("<PARAM NAME='controller' VALUE='false'>");
	document.write("<PARAM NAME='target' VALUE='myself'>");
	document.write("<PARAM NAME='href' VALUE='"+media+".mov'>");
	document.write("<PARAM NAME='pluginspage' VALUE='http://www.apple.com/quicktime/download/indext.html'>");
	document.write("<EMBED WIDTH='200' NAME='"+media+"'ID='"+media+"' HEIGHT='30' CONTROLLER='false' TARGET='myself' HREF='"+media+".mov' SRC='audio/audiopost.mov' BGCOLOR='FFFFFF' BORDER='0' PLUGINSPAGE='http://www.apple.com/quicktime/download/indext.html'></EMBED>");
	document.write("</OBJECT>");
}

function MM_embedQuicktimeAudioNOPOSTER(media){
	document.write("<OBJECT CLASSID='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'  WIDTH='200' HEIGHT='30' CODEBASE='http://www.apple.com/qtactivex/qtplugin.cab'>");
	document.write("<PARAM NAME='src' VALUE='audio/"+media+".mov'>");
	document.write("<PARAM NAME='controller' VALUE='true'>");
	document.write("<PARAM NAME='pluginspage' VALUE='http://www.apple.com/quicktime/download/indext.html'>");
	document.write("<EMBED WIDTH='200' HEIGHT='30' CONTROLLER='true' SRC='audio/"+media+".mov' BGCOLOR='FFFFFF' BORDER='0' PLUGINSPAGE='http://www.apple.com/quicktime/download/indext.html'></EMBED>");
	document.write("</OBJECT>");
}


function MM_embedQuicktimeVideo(poster,media,width,height){
	document.write("<OBJECT CLASSID='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'  WIDTH='"+width+"' HEIGHT='"+height+"' CODEBASE='http://www.apple.com/qtactivex/qtplugin.cab'>");
	if (poster != ''){
		document.write("<PARAM NAME='src' VALUE='movies/"+poster+".mov'>");
		document.write("<PARAM NAME='controller' VALUE='false'>");
		document.write("<PARAM NAME='target' VALUE='myself'>");
		document.write("<PARAM NAME='href' VALUE='"+media+".mov'>");
		document.write("<PARAM NAME='pluginspage' VALUE='http://www.apple.com/quicktime/download/indext.html'>");
		document.write("<EMBED WIDTH='"+width+"' HEIGHT='"+height+"' CONTROLLER='false' TARGET='myself' HREF='"+media+".mov' SRC='movies/"+poster+".mov' BGCOLOR='FFFFFF' BORDER='0' PLUGINSPAGE='http://www.apple.com/quicktime/download/indext.html'></EMBED>");
	}else{
		document.write("<PARAM NAME='src' VALUE='movies/"+media+".mov'>");
		document.write("<PARAM NAME='controller' VALUE='true'>");
		document.write("<PARAM NAME='pluginspage' VALUE='http://www.apple.com/quicktime/download/indext.html'>");
		document.write("<EMBED WIDTH='"+width+"' HEIGHT='"+height+"' CONTROLLER='true' SRC='movies/"+media+".mov' BGCOLOR='FFFFFF' BORDER='0' PLUGINSPAGE='http://www.apple.com/quicktime/download/indext.html'></EMBED>");
	}
	document.write("</OBJECT>");
}



<!-- END ROUTINES SPECIFIC TO QUICKTIME-->



<!-- START ROUTINES SPECIFIC TO WINDOW ROUTINES-->

function MM_openFeedbackWindow(whatLANG)
{
	if (whatLANG=='english'){
		var theURL = '../PHPmaterials/iris_feedback/feedback.php?PATH='+window.location.pathname;
	}else{
		var theURL = '../PHPmaterials/iris_feedback/feedback_sp.php?PATH='+window.location.pathname;
	}
	window.open(theURL,'feedbackWIN','scrollbars=yes,resizable=yes,width=670,height=600');
}

function MM_openBrWindow(theURL,winName,features)
{
	//alert ('here');
	window.open(theURL,winName,features);
}


function MM_openHelpWindow(theURL)
{
	//var theURL = 'help.html';
	//alert ('howdy ='+howdy);
	var winName = 'helpWIN';
	var features = 'scrollbars=yes,resizable=yes,width=500,height=700';
	window.open(theURL,winName,features);
}


function MM_openSiteWideWindow(theURL)

{
	if (theURL.indexOf('tour')>-1){
		var winName = 'webtourWIN';
		var features = 'scrollbars=yes,resizable=yes,width=640,height=640';
	}else{
		var winName = 'helpWIN';
		var features = 'scrollbars=yes,resizable=yes,width=500,height=700';
	}
	window.open(theURL,winName,features);
}



//function MM_openDisplayWindow(theURL,sessArrayName,folder,page) { //v2.0
function MM_openDisplayWindow(theURL) { //v2.0
	//alert (theURL+" "+sessArrayName+" "+folder+" "+page);
	var winName = "Question Answer";
	var theFeatures='scrollbars=yes,resizable=yes,width=500,height=450';
	window.open(theURL,'Thoughts',theFeatures);//,winName,theFeatures);
}
<!-- END ROUTINES SPECIFIC TO WINDOW ROUTINES-->

<!-- START ROUTINES SPECIFIC TO MODULE CLEARVIEW-->

function show_mouseover_text( bwidth,bheight,pFileName, pTitle, pCaption, pUrl) {
 //specify window parameters
	 devicetextwin = window.open( "", "deviceWIN", 'width='+ bwidth +',height='+bheight+',status,scrollbars,toolbar=no,location=no,resizable,screenX=20,screenY=40,left=20,top=40');
// wrote content to window  
	devicetextwin.document.write('<html><head><title>' + pTitle + '</title></head>');  
	devicetextwin.document.write('<BODY BGCOLOR=#ffffff >');
	devicetextwin.document.write('');
	devicetextwin.document.write('' + pFileName + '<br>');
	devicetextwin.document.write( '<p>' + pCaption + '</b><br clear=all><center><A HREF="javascript:window.close();">CLOSE WINDOW</A>');
	devicetextwin.document.write('</center></body></html>');
	devicetextwin.document.close();    
	// If NetScape, can bring the window to the front
	if (navigator.appName.substring(0,8) == "Netscape") devicetextwin.focus();
	if (pUrl != "NO") devicetextwin.location.href=pUrl;
}


function show_feedback_remote( bwidth,bheight,pmasterquestion, pyouransewr, pfeedback) {
    // specify window parameters
    //feedbackremotewin.close();
    feedbackremotewin = window.open( "", "remotewin", 'width='+ bwidth +',height='+bheight+',status,scrollbars,toolbar=no,location=no,resizable,screenX=20,screenY=40,left=20,top=40');
    // wrote content to window  
    feedbackremotewin.document.write('<html><head><title>Feedback</title></head>');  
    feedbackremotewin.document.write('<BODY BGCOLOR=#ffffff >');
    feedbackremotewin.document.write('');
    feedbackremotewin.document.write( '<p><img src=../images/irisMini.gif alt=iris width=49 height=70 border=0 align=left hspace=3><font color=993399><i><b>Question</b>:  </font><font color=000000>' + pmasterquestion + '</i></font><br clear=all><p>');
   
   
    feedbackremotewin.document.write('<font color=993399><i><b>Your pick</b>:  </font><font color=000000>' + pyouransewr + '</i></font><br clear=all><p>');

	feedbackremotewin.document.write('');

    feedbackremotewin.document.write('<font color=993399><i><b>Feedback</b>:  </font><font color=000000>' + pfeedback + '</i></font><br clear=all><p>');
   
    feedbackremotewin.document.write('');
   
    feedbackremotewin.document.write('<center><A HREF="javascript:window.close();"><i>(Close Window)</i></A>');


    feedbackremotewin.document.write('</center></body></html>');
    feedbackremotewin.document.close();    
       // If NetScape, can bring the window to the front
    if (navigator.appName.substring(0,8) == "Netscape") feedbackremotewin.focus();
}
<!-- END ROUTINES SPECIFIC TO MODULE CLEARVIEW-->















<!-- START ROUTINES SPECIFIC TO MODULE CLEARVIEW-->
function show_feedback_remoteOLD( bwidth,bheight,pFileName, pTitle, pCaption, pUrl) {
    // specify window parameters
    feedbackremotewin = window.open( "", "remotewin", 'width='+ bwidth +',height='+bheight+',status,scrollbars,toolbar=no,location=no,resizable,screenX=20,screenY=40,left=20,top=40');
    // wrote content to window  
    feedbackremotewin.document.write('<html><head><title>' + pTitle + '</title></head>');  
    feedbackremotewin.document.write('<BODY BGCOLOR=#ffffff >');
    feedbackremotewin.document.write('');
    //feedbackremotewin.document.write('' + pFileName + '<br>');
    feedbackremotewin.document.write( '<p><img src=../images/irisMini.gif alt=iris width=49 height=70 border=0 align=left hspace=3><font size=+2 face=Arial><i>' + pCaption + '</i></font><br clear=all><center><A HREF="javascript:window.close();">CLOSE WINDOW</A>');
    feedbackremotewin.document.write('</center></body></html>');
    feedbackremotewin.document.close();    
       // If NetScape, can bring the window to the front
    if (navigator.appName.substring(0,8) == "Netscape") feedbackremotewin.focus();
    if (pUrl != "NO") feedbackremotewin.location.href=pUrl;
}
<!-- END ROUTINES SPECIFIC TO MODULE CLEARVIEW-->



<!-- START ROUTINES SPECIFIC TO MODULE SR PAGES (5 PAGES)-->
 function resize(x,y){
	window.resizeTo(x,y);
 }
<!-- END ROUTINES SPECIFIC TO MODULE SR PAGES (5 PAGES)-->

<!-- START ROUTINES SPECIFIC TO MODULE PAR2 amy,jamal,?? -->
function MM_openDisplayWindowPar2_02(theURL) {
    var theFeatures='scrollbars=yes,resizable=yes,width=500,height=500';
    window.open(theURL,'Transcript',theFeatures);
}
<!-- END ROUTINES SPECIFIC TO MODULE PAR2 amy,jamal,?? -->


<!-- START ROUTINES SPECIFIC TO MODULE GPM PAGE 6-->
function displayGRAF(titl,fileNME,hite)
{
    winHITE=hite+50;
    var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
    var string_length = 8;
    var randomstring = '';
    for (var i=0; i<string_length; i++) {
            var rnum = Math.floor(Math.random() * chars.length);
            randomstring += chars.substring(rnum,rnum+1);
    }
    var winTitle = titl;
    //alert("hey "+fileNME);
    text="<html><head><title>"+winTitle+"<\/title><\/head><body><img src=images/"+fileNME+" border=0 width=700 align=top height="+hite+">";
    text +="<div align=\"right\"><a href=\"javascript:self.close()\">(close window)<\/a><\/body><\/html>";
    OpenWindow=window.open("", randomstring, "height="+winHITE+", width=720,toolbar=no,scrollbars=yes,menubar=no");
    OpenWindow.document.write(text);
    OpenWindow.document.close()
}
<!-- END ROUTINES SPECIFIC TO MODULE GPM PAGE 6-->

<!-- START ROUTINES SPECIFIC TO MODULE GPM PAGE 6 SPANISH-->
function displayGRAFspan(titl,fileNME,hite)
{
    winHITE=hite+50;
    var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
    var string_length = 8;
    var randomstring = '';
    for (var i=0; i<string_length; i++) {
            var rnum = Math.floor(Math.random() * chars.length);
            randomstring += chars.substring(rnum,rnum+1);
    }
    var winTitle = titl;
    //alert("hey "+fileNME);
    text="<html><head><title>"+winTitle+"<\/title><\/head><body><img src=images/"+fileNME+" border=0 width=700 align=top height="+hite+">";
    text +="<div align=\"right\"><a href=\"javascript:self.close()\">(cerrar esta pantalla)<\/a><\/body><\/html>";
    OpenWindow=window.open("", randomstring, "height="+winHITE+", width=720,toolbar=no,scrollbars=yes,menubar=no");
    OpenWindow.document.write(text);
    OpenWindow.document.close()
}
<!-- END ROUTINES SPECIFIC TO MODULE GPM PAGE 6 SPANISH-->





<!-- START ROUTINES SPECIFIC TO MODULE Bi1 page 10-->
function focusPhaseMovie(winName) { //v2.0
	//alert("in func c");
	//alert(winName);
	winName.focus();
}
<!-- END ROUTINES SPECIFIC TO MODULE Bi1 page 10-->


 <!-- START ROUTINES FOR THE IRISNEWS PAGES-->
function SetWindowName() {
 //this.name="ilikewin";
 }
//SetWindowName();

function show_legacy_remote( bwidth,bheight,pFileName, pTitle, pCaption, pUrl) {
    // specify window parameters
    legacyremotewin = window.open( "", "remotewin", 'width='+ bwidth +',height='+bheight+',status,scrollbars,toolbar=no,location=no,resizable,screenX=20,screenY=40,left=20,top=40');
    // wrote content to window  
    legacyremotewin.document.write('<html><head><title>' + pTitle + '</title></head>');  
    legacyremotewin.document.write('<BODY BGCOLOR=#ffffff >');
    legacyremotewin.document.write('');
    legacyremotewin.document.write('' + pFileName + '<br>');
//     legacyremotewin.document.write( '<p><img src=images/irisMini.gif alt=iris width=49 height=70 border=0 align=left hspace=3><b>' + pCaption + '</b><br clear=all><center><A HREF="javascript:window.close();">CLOSE WINDOW</A>');
    legacyremotewin.document.write( '<br clear=all><center><A HREF="javascript:window.close();">Close This Window</A>');
    legacyremotewin.document.write('</center></body></html>');
    legacyremotewin.document.close();    
       // If NetScape, can bring the window to the front
    if (navigator.appName.substring(0,8) == "Netscape") legacyremotewin.focus();
    if (pUrl != "NO") legacyremotewin.location.href=pUrl;
}



function openWin ( windowURL, windowName, windowFeatures ) {
      return window.open ( windowURL, windowName, windowFeatures ) ;
    }
 <!-- END ROUTINES FOR THE IRISNEWS PAGES-->


 <!-- START ROUTINES FOR THE PAGE "fordevbob.html" ????? dump???? -->
 function SetWindowNameBob() {
 //this.name="legacywin";
 }
//SetWindowNameBob();

function show_legacy_remoteBob( bwidth,bheight,pFileName, pTitle, pCaption, pUrl) {

		// specify window parameters
		//if(legacyremotewin != null && !legacyremotewin.closed) legacyremotewin.close()
	
       // specify window parameters

		legacyremotewin = window.open( "", "remotewin", 'width='+ bwidth +',height='+bheight+',status,scrollbars,toolbar,location=no,resizable,screenX=20,screenY=40,left=20,top=40');

       // wrote content to window
		legacyremotewin.document.write('<html><head><title>' + pTitle + '</title></head>');
		  
		legacyremotewin.document.write('<html><head><title>' + pTitle + '</title></head>');   

		legacyremotewin.document.write('<BODY BGCOLOR=#ffffff >');
		legacyremotewin.document.write('<center>');
		legacyremotewin.document.write('<font size=+1 face="arial,helvetica"><b>' + pCaption + '</b></font><br>');
		legacyremotewin.document.write('<hr></center>' + pFileName + '<p><center><hr>');
		legacyremotewin.document.write('<font face="arial,helvetica">');      
		legacyremotewin.document.write( ' ' + pTitle + ' <br>');
	
		legacyremotewin.document.write( '<p><A HREF="javascript:window.close();">CLOSE WINDOW</A><p>');

	
		legacyremotewin.document.write('<p></font></center></body></html>');
		legacyremotewin.document.close();     
	
       // If NetScape, can bring the window to the front
		if (navigator.appName.substring(0,8) == "Netscape") legacyremotewin.focus();

		if (pUrl != "NO") legacyremotewin.location.href=pUrl;

       }
<!-- END ROUTINES FOR THE PAGE "fordevbob.html" -->


<!-- START ROUTINES FOR RTI ROLLOVER page2 -->

function rti02newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function rti02changeImages() {
	if (document.images && (rti02preloadFlag == true)) {
		for (var i=0; i<rti02changeImages.arguments.length; i+=2) {
			document[rti02changeImages.arguments[i]].src = rti02changeImages.arguments[i+1];
		}
	}
}


function rti02preloadImages() {
	if (document.images) {
		avgStudent_16 = rti02newImage("images/rolloverImages/avg/avgStudent_16.gif");
		avgStudent_14 = rti02newImage("images/rolloverImages/avg/avgStudent_14.gif");
		avgStudent_13 = rti02newImage("images/rolloverImages/avg/avgStudent_13.gif");
		avgStudent_12 = rti02newImage("images/rolloverImages/avg/avgStudent_12.gif");
		avgStudent_11 = rti02newImage("images/rolloverImages/avg/avgStudent_11.gif");
		avgStudent_15 = rti02newImage("images/rolloverImages/avg/avgStudent_15.gif");

		lowStudent_16 = rti02newImage("images/rolloverImages/low/lowStudent_16.gif");
		lowStudent_14 = rti02newImage("images/rolloverImages/low/lowStudent_14.gif");
		lowStudent_13 = rti02newImage("images/rolloverImages/low/lowStudent_13.gif");
		lowStudent_12 = rti02newImage("images/rolloverImages/low/lowStudent_12.gif");
		lowStudent_11 = rti02newImage("images/rolloverImages/low/lowStudent_11.gif");
		lowStudent_15 = rti02newImage("images/rolloverImages/low/lowStudent_15.gif");

		ldStudent_16 = rti02newImage("images/rolloverImages/ld/ldStudent_16.gif");
		ldStudent_14 = rti02newImage("images/rolloverImages/ld/ldStudent_14.gif");
		ldStudent_13 = rti02newImage("images/rolloverImages/ld/ldStudent_13.gif");
		ldStudent_12 = rti02newImage("images/rolloverImages/ld/ldStudent_12.gif");
		ldStudent_11 = rti02newImage("images/rolloverImages/ld/ldStudent_11.gif");
		ldStudent_15 = rti02newImage("images/rolloverImages/ld/ldStudent_15.gif");
		rti02preloadFlag = true;
		//alert ('rti02preloadFlag 2 '+rti02preloadFlag);
	}
}

<!-- END ROUTINES FOR RTI ROLLOVER 01 -->




//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated.  All rights reserved.
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

function ControlVersion()
{
	var version;
	var axo;
	var e;

	// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry

	try {
		// version will be set for 7.X or greater players
		axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		version = axo.GetVariable("$version");
	} catch (e) {
	}

	if (!version)
	{
		try {
			// version will be set for 6.X players only
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
		
			// installed player is some revision of 6.0
			// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
			// so we have to be careful.
		
			// default to the first public version
			version = "WIN 6,0,21,0";

			// throws if AllowScripAccess does not exist (introduced in 6.0r47)	
			axo.AllowScriptAccess = "always";

			// safe to call for 6.0r47 or greater
			version = axo.GetVariable("$version");

		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 4.X or 5.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = axo.GetVariable("$version");
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 3.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = "WIN 3,0,18,0";
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 2.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			version = "WIN 2,0,0,11";
		} catch (e) {
			version = -1;
		}
	}

	return version;
}

// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	var flashVer = -1;

	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			var descArray = flashDescription.split(" ");
			var tempArrayMajor = descArray[2].split(".");		
			var versionMajor = tempArrayMajor[0];
			var versionMinor = tempArrayMajor[1];
			var versionRevision = descArray[3];
			if (versionRevision == "") {
				versionRevision = descArray[4];
			}
			if (versionRevision[0] == "d") {
				versionRevision = versionRevision.substring(1);
			} else if (versionRevision[0] == "r") {
				versionRevision = versionRevision.substring(1);
				if (versionRevision.indexOf("d") > 0) {
					versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
				}
			}
			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	else if ( isIE && isWin && !isOpera ) {
		flashVer = ControlVersion();
	}
	//alert(flashVer);
	return flashVer;
}

// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
	versionStr = GetSwfVer();
	if (versionStr == -1 ) {
		return false;
	} else if (versionStr != 0) {
		if(isIE && isWin && !isOpera) {
			// Given "WIN 2,0,0,11"
			tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]
			tempString        = tempArray[1];			// "2,0,0,11"
			versionArray      = tempString.split(",");	// ['2', '0', '0', '11']
		} else {
			versionArray      = versionStr.split(".");
		}
		var versionMajor      = versionArray[0];
		var versionMinor      = versionArray[1];
		var versionRevision   = versionArray[2];

        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
		if (versionMajor > parseFloat(reqMajorVer)) {
			return true;
		} else if (versionMajor == parseFloat(reqMajorVer)) {
			if (versionMinor > parseFloat(reqMinorVer))
				return true;
			else if (versionMinor == parseFloat(reqMinorVer)) {
				if (versionRevision >= parseFloat(reqRevision))
					return true;
			}
		}
		return false;
	}
}

function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?');
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs)
{
  var str = '';
  if (isIE && isWin && !isOpera)
  {
    str += '<object ';
    for (var i in objAttrs)
    {
      str += i + '="' + objAttrs[i] + '" ';
    }
    str += '>';
    for (var i in params)
    {
      str += '<param name="' + i + '" value="' + params[i] + '" /> ';
    }
    str += '</object>';
  }
  else
  {
    str += '<embed ';
    for (var i in embedAttrs)
    {
      str += i + '="' + embedAttrs[i] + '" ';
    }
    str += '> </embed>';
  }

  document.write(str);
}

function AC_FL_RunContent(){
  var ret =
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret =
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();   

    switch (currArg){
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblclick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
      case "id":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace":
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}
