
<!-- 
// What course are we in?

	var href = window.location.href;
	var courseIndex = href.indexOf('grades');
	var sessionIndex = href.indexOf('session');
	var course = href.substring(courseIndex, sessionIndex);


// for launching pop-up windows

	function openWin(URL,type,w,h) {
	
	var bname = navigator.appName;
	var bversion = parseInt(navigator.appVersion);
	var bplatform = navigator.platform;
	var status = 'no';
	var reSize = 'no';
	var scroll = 'no';
	var toolbar = 'no';
	var location = 'no';
	var menubar = 'no';
	var directories = 'no';
	var ewindow;
	
/* 	document.write('URL = ' + URL); */
/* 	document.write('type = ' + type); */
	
	// server location
	// allows all URL location in function call to be root relative
	var site_root = document.location.href.substr(0,document.location.href.indexOf('teachingmath/'));
	site_root += 'teachingmath/';
	
	//URL = site_root + URL;
	//document.write("URL = " + URL);
	

// use this for journal windows

		if (type == "journal" || type == "journal_win01" || type == "journal_win02" || type == "journal_win03" || type == "journal_win04") {
			if (!w) {
				w = 612;
			}
			if (!h) {
				h= 421;
			}
			if (bname == 'Netscape' && bplatform != "Win32") {
				status = 'yes';
			}
			reSize = 'yes';
			scroll = 'yes';
			menubar = 'yes';
		} 
	

// use this for video pop-up	
	else if (type == "wmp") {
		if (!w) {
			w = 282;
		}
		if (!h) {
			h= 358;
		}
		reSize = 'yes';		
	} 	
	
	 else { // If no URL specified
		if (!URL) {
			URL = site_root + "blank.html";
		}
		if (!w) {
			w = 294;
		}
		if (!h) {
			h= 398;
		}
		reSize = 'yes';
	}
	
	
	var windowFeatures = 'width='+w+',height='+h+
									',toolbar='+toolbar+',status='+status+
									',scrollbars='+scroll+',resizable='+reSize+
									',menubar='+menubar+
									',location='+location+
									',directories='+directories+''
									
	ewindow = window.open(URL,type,windowFeatures);   
	ewindow.focus();
}


// for showing and hiding hidden layers

  function show(object) {
      if (document.getElementById && document.getElementById(object) != null)
           node = document.getElementById(object).style.visibility='visible';
      else if (document.layers && document.layers[object] != null)
          document.layers[object].visibility = 'visible';
      else if (document.all)
          document.all[object].style.visibility = 'visible';
  }

  function hide(object) {
      if (document.getElementById && document.getElementById(object) != null)
           node = document.getElementById(object).style.visibility='hidden';
      else if (document.layers && document.layers[object] != null)
          document.layers[object].visibility = 'hidden';
      else if (document.all)
           document.all[object].style.visibility = 'hidden';
  }
  
  
//force tables in  NN to go all the way to the right margin

		function makeIt (num,exception) {
 	 		var browser = navigator.appName;
			 var version = parseInt(navigator.appVersion);
			 var width;
			 var site_root = document.location.href.substr(0,document.location.href.indexOf('teachingmath/'));
			 site_root += 'teachingmath/';	
			 		 
			 if (browser == "Netscape" && version >= '4' && version < '6') {
			 	width = window.innerWidth;
			 	if (num == 'total') {
		 			space = '<img src="' + site_root + 'images/spacer.gif" width= "' + width + '" height="1"  border="0"  alt="" class="spacer" />'; 
		 			return space;
		 		} else if (width <= num) {  
		 			space = '&nbsp;';
		 		} else {
		 			
		 			width = width - num; 
		 			//make sure path to spacer.gif is correct
		 			space = '<img src="' + site_root + 'images/spacer.gif" width= "' + width + '" height="1"  border="0"  alt="" class="spacer" />'; 
		 		}
			 } else if (browser != "Netscape" && num == 'total') {
		 		space = '';
			 } else if (browser !="Netscape" && exception == "IE") {
				space = '';		 	
			 } else {
			 	space = '&nbsp;';
			 }
			 return space;
		}
		
		
//force NN to reload on re-size
 		function fixNN () {
 			var ua = navigator.appName;
			var uanum = parseFloat(navigator.appVersion);
			if (ua == "Netscape" && uanum >= '4.05') {
			document.location.reload();
			} else {
				return;
			}
		}
		
// use for features not currently available		
function noContent(){
alert("This content is not available in the alpha stage...")
}

//use for remote control pop-up window
function go(url) {
opener.location.href = url;
}

 //-->
 