<!-- Colm 032803 removed as no longer calling this image -->
<!--
if (document.images) {
//preload actual buttons
image1on = new Image();
image1on.src = "/nav_top/nav_top_images/nt_tab_math_button_on.gif";
image2on = new Image();
image2on.src = "/nav_top/nav_top_images/nt_tab_science_button_on.gif";
image3on = new Image();
image3on.src = "/nav_top/nav_top_images/nt_tab_language_button_on.gif";
//Colm 032803 removed as no longer calling this image
//image4on = new Image();
//image4on.src = "/nav_top/nav_top_images/nt_tab_elementary_button_on.gif";
image5on = new Image();
image5on.src = "/nav_top/nav_top_images/nt_tab_specialneeds_button_on.gif";
image6on = new Image();
image6on.src = "/nav_top/nav_top_images/nt_tab_products_button_on.gif";
image7on = new Image();
image7on.src = "/nav_top/nav_top_images/for_teachers_on.gif";
image8on = new Image();
image8on.src = "/nav_top/nav_top_images/for_students_on.gif";
image9on = new Image();
image9on.src = "/nav_top/nav_top_images/for_parents_on.gif";
image10on = new Image();
image10on.src = "/nav_top/nav_top_images/tnav_home_on.gif";
image11on = new Image();
image11on.src = "/nav_top/nav_top_images/tnav_estore_on.gif";
image12on = new Image();
image12on.src = "/nav_top/nav_top_images/tnav_spprt_on.gif";
image13on = new Image();
image13on.src = "/nav_top/nav_top_images/tnav_subscr_on.gif";
image14on = new Image();
image14on.src = "/nav_top/nav_top_images/tnav_myaccount_on.gif";
image15on = new Image();
image15on.src = "/nav_top/nav_top_images/tnav_on_aboutus.gif";
image16on = new Image();
image16on.src = "/nav_top/nav_top_images/nt_tab_pro_dev_button_on.gif";
image1off = new Image();
image1off.src = "/nav_top/nav_top_images/nt_tab_math_button.gif";
image2off = new Image();
image2off.src = "/nav_top/nav_top_images/nt_tab_science_button.gif";
image3off = new Image();
image3off.src = "/nav_top/nav_top_images/nt_tab_language_button.gif";
//Colm 032803 removed as no longer calling this image
//image4off = new Image();
//image4off.src = "/nav_top/nav_top_images/nt_tab_elementary_button.gif";
image5off = new Image();
image5off.src = "/nav_top/nav_top_images/nt_tab_specialneeds_button.gif";
image6off = new Image();
image6off.src = "/nav_top/nav_top_images/nt_tab_products_button.gif";
image7off = new Image();
image7off.src = "/nav_top/nav_top_images/for_teachers.gif";
image8off = new Image();
image8off.src = "/nav_top/nav_top_images/for_students.gif";
image9off = new Image();
image9off.src = "/nav_top/nav_top_images/for_parents.gif";
image10off = new Image();
image10off.src = "/nav_top/nav_top_images/tnav_home_off.gif";
image11off = new Image();
image11off.src = "/nav_top/nav_top_images/tnav_estore_off.gif";
image12off = new Image();
image12off.src = "/nav_top/nav_top_images/tnav_spprt_off.gif";
image13off = new Image();
image13off.src = "/nav_top/nav_top_images/tnav_subscr_off.gif";
image14off = new Image();
image14off.src = "/nav_top/nav_top_images/tnav_myaccount_off.gif";
image15off = new Image();
image15off.src = "/nav_top/nav_top_images/tnav_off_aboutus2.gif";
image16off = new Image();
image16off.src ="/nav_top/nav_top_images/nt_tab_pro_dev_button.gif";
}
function turnOn(imageName) {
  if (document.images) {
    document[imageName].src = eval(imageName + "on.src");
  }
}
function turnOff(imageName) {
  if (document.images) {
    document[imageName].src = eval(imageName + "off.src");
  }
}
function openWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);

}
function frippleguides() {
      ver = navigator.appVersion;
	  var is = new Is();
	  if ( is.ie4up ) {
     	if ( is.win ) {
       	 	open('/critical_thinking/FrippleShop/ReleaseJS/fripple_WMP_IE.html','FrippleShop', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width=600,height=400');
        } else {
        	open('/critical_thinking/FrippleShop/ReleaseQT/frippleShopQT.html','FrippleShop', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width=600,height=400');
      	}
      } else if ( is.nav4up ) {
        if ( is.win ) {
        	navWindow =	open('/critical_thinking/FrippleShop/ReleaseJS/fripple_WMP_Nav.html', 'FrippleShop', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width=600,height=400');
      	} else {
         	if ( is.nav5up ) {
         		open('/critical_thinking/FrippleShop/ReleaseQT/frippleShopQT.html','FrippleShop', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width=639,height=430');      	
      		} else
         		open('/critical_thinking/FrippleShop/ReleaseJS/frippleJS_QT.html','FrippleShop', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width=600,height=400');
     	}
      } else {
      	alert('Browser version not supported');
      }
	  
	function Is () {
	   // convert all characters to lowercase to simplify testing
	    var agt=navigator.userAgent.toLowerCase()
	    // *** BROWSER VERSION ***
	    this.major = parseInt(navigator.appVersion)
	    this.minor = parseFloat(navigator.appVersion)
	    //test for Netscape browser
		this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1)
	                && (agt.indexOf('compatible') == -1)))
	    this.nav2 = (this.nav && (this.major == 2))
	    this.nav3 = (this.nav && (this.major == 3))
	    this.nav4 = (this.nav && (this.major == 4))
	    this.nav4up = this.nav && (this.major >= 4)
	    this.nav5up = this.nav && (this.major >= 5)
	    this.nav6up = this.nav && (this.major >= 6)
	    
	    //test for IE browser
	    this.ie   = (agt.indexOf("msie") != -1)
	    this.ie3  = (this.ie && (this.major == 2))
	    this.ie4  = (this.ie && (this.major == 4))
	    this.ie4up  = (this.ie  && (this.major >= 4))    
		
		//test for OS
	    this.win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) )
	    // NOTE: On Opera 3.0, the userAgent string includes "Windows 95/NT4" on all
	    //        Win32, so you can't distinguish between Win95 and WinNT.
	    this.win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1))
	    // NOTE: Reliable detection of Win98 may not be possible. It appears that:
	    //       - On Nav 4.x and before you'll get plain "Windows" in userAgent.
	    //       - On Mercury client, the 32-bit version will return "Win98", but
	    //         the 16-bit version running on Win98 will still return "Win95".
	    this.win98 = ((agt.indexOf("win98")!=-1)||(agt.indexOf("windows 98")!=-1))
	    this.winnt = ((agt.indexOf("winnt")!=-1)||(agt.indexOf("windows nt")!=-1))	
	    this.win32 = this.win95 || this.winnt || this.win98 || 
	                 ((this.major >= 4) && (navigator.platform == "Win32")) ||
	                 (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1)
	                 
	    this.mac    = (agt.indexOf("mac")!=-1)
	}    
}
var taskBarHeight = 55; // for netscape (ok to be constant)
var UserID = 0;
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var MacPlatform = navigator.platform == "MacPPC";
function openDMath(in_strURL)
{
	g_strDynamoSessionID = "";
	g_iDynamoUserID = UserID;
	openActivityWin(in_strURL, 0);
}
function openActivityWin(in_strURL, in_iAssignmentID)
{
	var theHeight = InternetExplorer ? screen.availHeight : (screen.height)-taskBarHeight;
	var theWidth = InternetExplorer ? screen.availWidth : screen.width;
	var windowProperties = "top=0,left=0,resizable=no,scrollbars=no,height="+theHeight+",width="+theWidth;
	var theURL = in_strURL + g_strDynamoSessionID +"?USERID=" + g_iDynamoUserID + "&ASSIGNID=" + in_iAssignmentID;
	sessionWindow=window.open(theURL, "activityWin", windowProperties);
	if (MacPlatform && InternetExplorer)
		sessionWindow.resizeTo(theWidth, theHeight);
	sessionWindow.focus();
}
// for drop down menus to open in new windows
function jumpPage(newLoc) 
{ 
	var winName,features;
	newPage = newLoc.options[newLoc.selectedIndex].value;
	if ( newPage != "" )openDMath(newPage);
}
//Destination Reading open window
function openFlashWindow(redirectURL)
{
	var IsIE = navigator.appName.indexOf("Microsoft") != -1;
	var IsNetscape = !IsIE;
	var IsMac = navigator.platform.indexOf("MacPPC") != -1;
	var IsWin = !IsMac;
	var IsNS6 = navigator.appVersion.substr(0, 1) > "4";
	
	var flashWindow;
	//open the flash player window, fullscreen, no chrome
	if(IsIE)
	{
		//d'oh - scrollbars=yes causes NO SCROLLBARS on IE/Win!
		flashWindow = window.open(redirectURL, "flashWindow", "fullscreen=yes, scrollbars=no, left=0, top=0");
		//d'oh - IE/Mac can't take a hint and size to full screen
		if(IsMac)
		{
			flashWindow.resizeTo(window.screen.width - 10, window.screen.height);
		}
	}
	else
	{
		//allow for bug in NS4x that computes height of task bar incorrectly
		var ah = IsNS6 ? window.screen.availHeight : window.screen.availHeight - 32;
		var aw = IsNS6 ? window.screen.availWidth : window.screen.availWidth - 10;
		if(IsNS6)
			flashWindow = window.open(redirectURL, 'flashWindow', 'toolbar=0,outerWidth=' + aw + ',outerHeight=' + ah + ',screenX=0,screenY=0');
		else
			flashWindow = window.open(redirectURL, 'flashWindow', 'toolbar=0,innerWidth=' + aw + ',innerHeight=' + ah + ',screenX=0,screenY=0');
	}
}
function selSupport(gurl) {
selSupportWin = window.open(gurl, 'SelectSupport',
'width=761,height=374,left=20,top=50');
}
// used for the mouse over buttons in talking walls
function switchIcon(ImgName,thisImg) {
    ImgName.src = thisImg.src;
} 
// --------- Images for the Mouse Overs --------------------
// root directory for the images
var ImgDir       = "/talkingwalls/images/";
//Just the Facts variables declaration
factso           = new Image();
factso.src       = ImgDir + "demograp.gif";
factsd           = new Image();
factsd.src       = ImgDir + "demograp2.gif";
//Cyber Sources variables declaration
cybero           = new Image();
cybero.src       = ImgDir + "cybersrc.gif";
cyberd           = new Image();
cyberd.src       = ImgDir + "cybersrc2.gif";
//In the News variables declaration
newso            = new Image()
newso.src        = ImgDir + "news.gif";
newsd            = new Image();
newsd.src        = ImgDir + "news2.gif";
//Check It Out variables declaration
checkito         = new Image();
checkito.src     = ImgDir + "chkitout.gif";
checkitd         = new Image();
checkitd.src     = ImgDir + "chkitout2.gif";
//Time Machine variables declaration
timemaco         = new Image();
timemaco.src     = ImgDir + "timemach.gif";
timemacd         = new Image();
timemacd.src     = ImgDir + "timemach2.gif";
//Odyssey variables declaration
odysseyo         = new Image();
odysseyo.src     = ImgDir + "odyssey.gif";
odysseyd         = new Image();
odysseyd.src     = ImgDir + "odyssey2.gif";
//Feedback variables declaration
feedbo           = new Image();
feedbo.src       = ImgDir + "feedback.gif";
feedbd           = new Image();
feedbd.src       = ImgDir + "feedback2.gif";
//Galaxy functions
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}

//This is for the success story movie popup windows. Had to do it this way to get it to work in Mozilla browsers.
//Carina Shipley
function popupwin(themovie) {

var IsIE = navigator.appName.indexOf("Microsoft") != -1;

thewinwidth=242;
thewinheight=191;

if (IsIE) { //because IE doesn't recognize the window.screenX and window.screenY properties
	thewinleft = 140
	thewintop = 140
	}
else {
	thewinleft = window.screenX + (window.innerWidth / 2) - (thewinwidth / 2);
	thewintop = window.screenY + (window.innerHeight / 2) - (thewinheight / 2);
	}
 
if (thewinleft<0) thewinleft=0;
	if 
	((thewinleft+thewinwidth)>screen.width) 
	thewinleft=screen.width-(thewinwidth+10);
		if 
		((thewintop+thewinheight)>screen.height) 
		thewintop=screen.height-(thewinheight+10);

var newWin = 
window.open("/products/success/"+themovie, "movie", 
"width="+thewinwidth+",height="+thewinheight+",scrollbars=0,menubar=0,toolbar=0,location=0,status=0,resizable=0,top="+thewintop+",left="+thewinleft+",screenX="+thewinleft+",screenY="+thewintop);
}
	
// -->
