//=======================================================================//
//									 //
//				index_trak.js				 //
//									 //
//    * javascript used for detecting screen resolution and posting	 //
//	results to ind_rec.pl						 //
//									 //
//    * script written by Scott L. Hunter III -- Copyright 2001,	 //
//	Instructional Development and Support, University of Kansas	 //
//									 //
//									 //
//=======================================================================//


//====================================//
//	    for NN4 and IE4	      //
//====================================//
if (self.screen)
{
	width = screen.width
	height = screen.height
}


//====================================//
//     for NN3 with enabled Java      //
//====================================//
else if (self.java)
{
	var jkit = java.awt.Toolkit.getDefaultToolkit();
	var scrsize = jkit.getScreenSize();       
	width = scrsize.width; 
	height = scrsize.height; 
}


//====================================//
// N2, E3, N3, Java off, Opera, WebTV //
//====================================//
else
{
	width = height = '?'
}


// creating a new 'empty' image with the source of ind_rec.pl
cgi = new Image();
cgi.src = "http://www.ku.edu/cgi-bin/cgiwrap/kbug/stats/ind_rec.pl?width="+width+"&height="+height;