	 //The following variables are used in the preload function	
	 	var suffix = new Array('a','i','o'); //Starts new array to preload images; 1st variable is the active state, 2nd variable is the inactive state, 3rd variable is the on state (if needed)
		var loaded = false; //Globally sets the loaded var to false so rollovers do not function until loaded
	 	var uExt = 'gif'; //The file extension of the rollover graphics for the Uroll function
		//var uPath = 'all';This is the path where the top nav rollover graphics live - it is set on each page
	
	//This function preloads rollover images for the dropNav function
	function uPreload(){
  		if(document.images){
    	var uArglen = arguments.length;
    	for(var i = 0; i < uArglen; i++){
      		var uArg = arguments[i];
     		var uSufLen = suffix.length;
      		for(j = 0; j < uSufLen; j++){
        var uSuf = suffix[j];
        uNew = uArg + uSuf + ' = new Image();';  eval(uNew);
        uSrc = uArg + uSuf + '.src = \'' + uPath + 'all' + '/' + uArg + uSuf + '.' + uExt + '\';';  eval(uSrc);
	        		}
	        	}   
				loaded = true;
			}
		}
		
	//This function is for two rollover images and showing/hiding a div layer
	//dnDivstate is the state (hidden or visible) of the div layer mentioned on the next line
	//dnDiv is the div layer to be hidden or shown
	//dnName is name of 1st graphic
	//dndName is name of 2nd graphic
	//dnState is the rollover state of both graphics - active (a), inactive(i) or on(o)
	//uWstat is the browser window status message
	function dropNav(dnDivstate,dnDiv,dnName,dndName,dnState,dnWstat) {
		isNS4 = (document.layers) ? true : false;
		isIE4 = (document.all && !document.getElementById) ? true : false;
		isIE5 = (document.all && document.getElementById) ? true : false;
		isNS6 = (!document.all && document.getElementById) ? true : false;
		if (isIE4) { 
			var dnNavlayer = eval('document.all.'+dnDiv);
			dnNavlayer.style.visibility = dnDivstate;
			if(document.images && loaded) {
	    		document.images[dnName].src = self[dnName + dnState].src;
	   			if(dndName!='x') {
	   				document.images[dndName].src = self[dndName + dnState].src;
	  				}
	  			dnWstat = dnWstat.replace('|',"'");
	  			window.status = dnWstat;
	  		}	
		}else if (isNS4) { 
			var dnNavlayer = eval('document.layers.'+dnDiv);
			dnNavlayer.visibility = dnDivstate;
			if(document.images && loaded) {
	    		document.images[dnName].src = self[dnName + dnState].src;
	   			if(dndName!='x') {
	   				dnNavlayer.document.images[dndName].src = self[dndName + dnState].src;
	  				}
	  			dnWstat = dnWstat.replace('|',"'");
	  			window.status = dnWstat;
	  		}
		}else if (isNS6 || isIE5) { 
			var dnNavlayer = eval('document.getElementById'+'("'+dnDiv+'")');
			dnNavlayer.style.visibility = dnDivstate;
			if(document.images && loaded) {
	    		document.images[dnName].src = self[dnName + dnState].src;
	   			if(dndName!='x') {
	   				document.images[dndName].src = self[dndName + dnState].src;
	  				}
	  			dnWstat = dnWstat.replace('|',"'");
	  			window.status = dnWstat;
				}
	  		}
	  	}
	  	
	// This function opens a unique sized window; uUrl is the URL, uWidth is the window width, uHeight is the window height, uWinname is the window name
	function uPop(uUrl,uWidth,uHeight,uWinname){
		var aWin = window.open(uUrl,uWinname,'width='+uWidth+',height='+uHeight+',status=no,resizable=no,location=no,left=0,top=0,screenX=0,screenY=0,scrollbars=no,menubar=no');
		aWin.focus();
		}
		
		
	// This function preloads all of the graphics for the top navigation
	function onLoad() {
  		uPreload('resources','features','history','news','information','search','ask','browse','explore','conferences','indexes','analysis','books','aircraft','roswell','spacerace','pearlharbor','featuredreport','imagegallery','timeline','iitconnection','refshelf','whatsnew','stats','awards','aboutproject','policies','credits','conferences');
	}

		window.onload = onLoad;
		
	// This function randomizes the graphic on the home page
	function random_img(){
	var myimages=new Array()
	myimages[1]="img/1.jpg"
	myimages[2]="img/2.jpg"
	myimages[3]="img/3.jpg"
	myimages[4]="img/4.jpg"
	myimages[5]="img/5.jpg"
	myimages[6]="img/6.jpg"
	myimages[7]="img/7.jpg"
	myimages[8]="img/8.jpg"
	myimages[9]="img/9.jpg"
	myimages[10]="img/10.jpg"
	myimages[11]="img/11.jpg"
	myimages[12]="img/12.jpg"
	myimages[13]="img/13.jpg"
	myimages[14]="img/14.jpg"
	myimages[15]="img/15.jpg"
	myimages[16]="img/17.jpg"
	myimages[17]="img/18.jpg"
	myimages[18]="img/19.jpg"
	myimages[19]="img/20.jpg"
	myimages[20]="img/21.jpg"
	myimages[21]="img/22.jpg"

						
	var ry=Math.floor(Math.random()*myimages.length)
						
	if (ry==0) ry=1
	document['randomimg'].src = myimages[ry]					
	}
		
// This function builds the dropdown menus for the top nav
function buildNav(){
//		<!--- The following div tags are for the top nav dropdowns --->
//		<!------ resources dropdown start ------>
document.write('		<div id="navresources">');
document.write('			<table border="0" cellpadding="0" cellspacing="0" width="64" height="76">');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'resources/search.html" onmouseover="dropNav(\'visible\',\'navresources\',\'resources\',\'explore\',\'a\',\'Resources - Explore Reports\');return true" onmouseout="dropNav(\'hidden\',\'navresources\',\'resources\',\'explore\',\'i\',\' \');return true")><img src="'+uPath+'all/explorei.gif" width="104" height="18" alt="Search" border="0" name="explore"></a></td>');
document.write('				</tr>');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'resources/conferences.html" onmouseover="dropNav(\'visible\',\'navresources\',\'resources\',\'conferences\',\'a\',\'Resources - Conferences\');return true" onmouseout="dropNav(\'hidden\',\'navresources\',\'resources\',\'conferences\',\'i\',\' \');return true"><img src="'+uPath+'all/conferencesi.gif" width="104" height="18" alt="conferences" border="0" name="conferences"></a></td>');
document.write('				</tr>');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'resources/indexes.html" onmouseover="dropNav(\'visible\',\'navresources\',\'resources\',\'indexes\',\'a\',\'Resources - Indexes\');return true" onmouseout="dropNav(\'hidden\',\'navresources\',\'resources\',\'indexes\',\'i\',\' \');return true"><img src="'+uPath+'all/indexesi.gif" width="104" height="18" alt="indexes" border="0" name="indexes"></a></td>');
document.write('				</tr>');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'resources/analysis.html" onmouseover="dropNav(\'visible\',\'navresources\',\'resources\',\'analysis\',\'a\',\'Resources - Analysis\');return true" onmouseout="dropNav(\'hidden\',\'navresources\',\'resources\',\'analysis\',\'i\',\' \');return true"><img src="'+uPath+'all/analysisi.gif" width="104" height="18" alt="analysis" border="0" name="analysis"></a></td>');
document.write('				</tr>');
document.write('				<tr height="4">');
document.write('					<td width="104" bgcolor="#2d8d97" height="4"><img src="'+uPath+'all/spacer.gif" width="104" height="4" alt="" border="0"></td>');
document.write('				</tr>');
document.write('			</table>');
document.write('		</div>');
//		<!------ resources dropdown end ------>
//		<!------ features dropdown start ------>
document.write('		<div id="navcollections">');
document.write('			<table border="0" cellpadding="0" cellspacing="0" width="64" height="112">');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'features/aircraft" onmouseover="dropNav(\'visible\',\'navcollections\',\'features\',\'aircraft\',\'a\',\'features - Aircraft\');return true" onmouseout="dropNav(\'hidden\',\'navcollections\',\'features\',\'aircraft\',\'i\',\' \');return true"><img src="'+uPath+'all/aircrafti.gif" width="104" height="18" alt="Aircraft" border="0" name="aircraft"></a></td>');
document.write('				</tr>');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'history/roswell" onmouseover="dropNav(\'visible\',\'navcollections\',\'features\',\'roswell\',\'a\',\'features - Roswell\');return true" onmouseout="dropNav(\'hidden\',\'navcollections\',\'features\',\'roswell\',\'i\',\' \');return true"><img src="'+uPath+'all/roswelli.gif" width="104" height="18" alt="Roswell" border="0" name="roswell"></a></td>');
document.write('				</tr>');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'history/spacerace/" onmouseover="dropNav(\'visible\',\'navcollections\',\'features\',\'spacerace\',\'a\',\'features - Space Race\');return true" onmouseout="dropNav(\'hidden\',\'navcollections\',\'features\',\'spacerace\',\'i\',\' \');return true"><img src="'+uPath+'all/spaceracei.gif" width="104" height="18" alt="Space Race" border="0" name="spacerace"></a></td>');
document.write('				</tr>');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'history/7December1941/" onmouseover="dropNav(\'visible\',\'navcollections\',\'features\',\'pearlharbor\',\'a\',\'features - Pearl Harbor\');return true" onmouseout="dropNav(\'hidden\',\'navcollections\',\'features\',\'pearlharbor\',\'i\',\' \');return true"><img src="'+uPath+'all/pearlharbori.gif" width="104" height="18" alt="Pearl Harbor" border="0" name="pearlharbor"></a></td>');
document.write('				</tr>');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'features/featured.html" onmouseover="dropNav(\'visible\',\'navcollections\',\'features\',\'featuredreport\',\'a\',\'features - Featured Reports\');return true" onmouseout="dropNav(\'hidden\',\'navcollections\',\'features\',\'featuredreport\',\'i\',\' \');return true"><img src="'+uPath+'all/featuredreporti.gif" width="104" height="18" alt="Featured Reports" border="0" name="featuredreport"></a></td>');
document.write('				</tr>');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'features/gallery.html" onmouseover="dropNav(\'visible\',\'navcollections\',\'features\',\'imagegallery\',\'a\',\'features - Image Gallery\');return true" onmouseout="dropNav(\'hidden\',\'navcollections\',\'features\',\'imagegallery\',\'i\',\' \');return true"><img src="'+uPath+'all/imagegalleryi.gif" width="104" height="18" alt="Image Gallery" border="0" name="imagegallery"></a></td>');
document.write('				</tr>');
document.write('				<tr height="4">');
document.write('					<td width="104" bgcolor="#3f6499" height="4"><img src="'+uPath+'all/spacer.gif" width="104" height="4" alt="" border="0"></td>');
document.write('				</tr>');
document.write('			</table>');
document.write('		</div>');
//		<!------ features dropdown end ------>
//		<!------ history dropdown start ------>
document.write('		<div id="navservices">');
document.write('			<table border="0" cellpadding="0" cellspacing="0" width="64" height="58">');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'history/timeline/" onmouseover="dropNav(\'visible\',\'navservices\',\'history\',\'timeline\',\'a\',\'history - Timeline\');return true" onmouseout="dropNav(\'hidden\',\'navservices\',\'history\',\'timeline\',\'i\',\' \');return true"><img src="'+uPath+'all/timelinei.gif" width="104" height="18" alt="Timeline" border="0" name="timeline"></a></td>');
document.write('				</tr>');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'history/iitconnection/" onmouseover="dropNav(\'visible\',\'navservices\',\'history\',\'iitconnection\',\'a\',\'history - IIT Connection\');return true" onmouseout="dropNav(\'hidden\',\'navservices\',\'history\',\'iitconnection\',\'i\',\' \');return true"><img src="'+uPath+'all/iitconnectioni.gif" width="104" height="18" alt="IIT Connection" border="0" name="iitconnection"></a></td>');
document.write('				</tr>');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'history/referenceshelf/" onmouseover="dropNav(\'visible\',\'navservices\',\'history\',\'refshelf\',\'a\',\'history - Reference Shelf\');return true" onmouseout="dropNav(\'hidden\',\'navservices\',\'history\',\'refshelf\',\'i\',\' \');return true"><img src="'+uPath+'all/refshelfi.gif" width="104" height="18" alt="Reference Shelf" border="0" name="refshelf"></a></td>');
document.write('				</tr>');
document.write('				<tr height="4">');
document.write('					<td width="104" bgcolor="#b65e80" height="4"><img src="'+uPath+'all/spacer.gif" width="104" height="4" alt="" border="0"></td>');
document.write('				</tr>');
document.write('			</table>');
document.write('		</div>');
//		<!------ history dropdown end ------>
//		<!------ news dropdown start ------>
document.write('		<div id="navnews">');
document.write('			<table border="0" cellpadding="0" cellspacing="0" width="64" height="58">');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'news/update.html" onmouseover="dropNav(\'visible\',\'navnews\',\'news\',\'whatsnew\',\'a\',\'news - What|s New\');return true" onmouseout="dropNav(\'hidden\',\'navnews\',\'news\',\'whatsnew\',\'i\',\' \');return true"><img src="'+uPath+'all/whatsnewi.gif" width="104" height="18" alt="What\'s New" border="0" name="whatsnew"></a></td>');
document.write('				</tr>');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'news/stats.html" onmouseover="dropNav(\'visible\',\'navnews\',\'news\',\'stats\',\'a\',\'news - Statistics\');return true" onmouseout="dropNav(\'hidden\',\'navnews\',\'news\',\'stats\',\'i\',\' \');return true"><img src="'+uPath+'all/statsi.gif" width="104" height="18" alt="Statistics" border="0" name="stats"></a></td>');
document.write('				</tr>');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'news/awards.html" onmouseover="dropNav(\'visible\',\'navnews\',\'news\',\'awards\',\'a\',\'news - Awards\');return true" onmouseout="dropNav(\'hidden\',\'navnews\',\'news\',\'awards\',\'i\',\' \');return true"><img src="'+uPath+'all/awardsi.gif" width="104" height="18" alt="Awards" border="0" name="awards"></a></td>');
document.write('				</tr>');
document.write('				<tr height="4">');
document.write('					<td width="104" bgcolor="#b17743" height="4"><img src="'+uPath+'all/spacer.gif" width="104" height="4" alt="" border="0"></td>');
document.write('				</tr>');
document.write('			</table>');
document.write('		</div>');
//		<!------ news dropdown end ------>
//		<!------ information dropdown start ------>
document.write('		<div id="navinformation">');
document.write('			<table border="0" cellpadding="0" cellspacing="0" width="64" height="58">');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'scope/about.htm" onmouseover="dropNav(\'visible\',\'navinformation\',\'information\',\'aboutproject\',\'a\',\'information - About the Project\');return true" onmouseout="dropNav(\'hidden\',\'navinformation\',\'information\',\'aboutproject\',\'i\',\' \');return true"><img src="'+uPath+'all/aboutprojecti.gif" width="104" height="18" alt="About the Project" border="0" name="aboutproject"></a></td>');
document.write('				</tr>');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'policy/" onmouseover="dropNav(\'visible\',\'navinformation\',\'information\',\'policies\',\'a\',\'information - Policies\');return true" onmouseout="dropNav(\'hidden\',\'navinformation\',\'information\',\'policies\',\'i\',\' \');return true"><img src="'+uPath+'all/policiesi.gif" width="104" height="18" alt="Policies" border="0" name="policies"></a></td>');
document.write('				</tr>');
document.write('				<tr height="18">');
document.write('					<td width="104" height="18"><a href="'+uPath+'scope/credits/" onmouseover="dropNav(\'visible\',\'navinformation\',\'information\',\'credits\',\'a\',\'information - Credits\');return true" onmouseout="dropNav(\'hidden\',\'navinformation\',\'information\',\'credits\',\'i\',\' \');return true"><img src="'+uPath+'all/creditsi.gif" width="104" height="18" alt="Credits" border="0" name="credits"></a></td>');
document.write('				</tr>');
document.write('				<tr height="4">');
document.write('					<td width="104" bgcolor="#bfb364" height="4"><img src="'+uPath+'all/spacer.gif" width="104" height="4" alt="" border="0"></td>');
document.write('				</tr>');
document.write('			</table>');
document.write('		</div>');
document.write('<script src="http://www.gl.iit.edu/__utm.js" type="text/javascript"></script>');
}
//		<!------ information dropdown end ------>
