// Create image objects, preload all active and inactive images.
	
    if (document.images)  { 
    img1on = new Image();						// Create image objects for the 
    img1on.src = "/images/onnavbar_r1_c1.gif";			// active images; the images displayed
    img2on = new Image();						// when the mouse moves over the 
    img2on.src = "/images/onnavbar_r1_c2.gif";		// rollovers.
    img3on = new Image();
    img3on.src = "/images/onnavbar_r1_c3.gif";
    img4on = new Image();
    img4on.src = "/images/onnavbar_r1_c4.gif";
    img5on = new Image();
    img5on.src = "/images/onnavbar_r1_c5.gif";
    img6on = new Image();
    img6on.src = "/images/onnavbar_r1_c6.gif";
	img7on = new Image();						
    img7on.src = "/images/onnavbar_r1_c7.gif";		
    img8on = new Image();						
    img8on.src = "/images/onnavbar_r1_c8.gif";	
	
	img1off = new Image();						// Create image objects for the 
    img1off.src = "/images/offnavbar_r1_c1.gif";		// inactive images; the images 
    img2off = new Image();						// displayed when the mouse moves off
    img2off.src = "/images/offnavbar_r1_c2.gif";		// the rollovers.
    img3off = new Image();
    img3off.src = "/images/offnavbar_r1_c3.gif";
    img4off = new Image();
    img4off.src = "/images/offnavbar_r1_c4.gif";
    img5off = new Image();
    img5off.src = "/images/offnavbar_r1_c5.gif";
    img6off = new Image();
    img6off.src = "/images/offnavbar_r1_c6.gif";
	img7off = new Image();
    img7off.src = "/images/offnavbar_r1_c7.gif";
    img8off = new Image();
    img8off.src = "/images/offnavbar_r1_c8.gif";
		
    }

	
// Function to "activate" images.
function imgAct(imgName, imageLoc) {
    if (document.images) {
    document.images[imageLoc].src = eval(imgName + "on.src");
    }
}

// Function to "deactivate" images.
function imgInact(imgName, imageLoc) {
    if (document.images) {
    document.images[imageLoc].src = eval(imgName + "off.src");
    }
}
	

//  -- Begin date display function with y2k compatibility
function displayDate() {
	var this_month = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
	var day_of_week = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
	var today = new Date();
	var day   = today.getDate();
	var weekday = today.getDay();
	var month = today.getMonth();
	var year  = today.getYear();
	if (year < 1900){
		year += 1900;
	}
  return(day_of_week[weekday] + "&nbsp;&nbsp;"+ this_month[month]+" "+day+", "+year);
}
// -- End date display function with y2k compatibility


 var popWin = null    // use this when referring to pop-up window
 var winCount = 0
 var winName = "popWin"
 function openPopWin(winURL, winWidth, winHeight, winFeatures, winLeft, winTop){
   var d_winLeft = 20  // default, pixels from screen left to window left
   var d_winTop = 20   // default, pixels from screen top to window top
   winName = "popWin" + winCount++ //unique name for each pop-up window
   closePopWin()           // close any previously opened pop-up window
   if (openPopWin.arguments.length >= 4)  // any additional features? 
     winFeatures = "," + winFeatures
   else 
     winFeatures = "" 
   if (openPopWin.arguments.length == 6)  // location specified
     winFeatures += getLocation(winWidth, winHeight, winLeft, winTop)
   else
     winFeatures += getLocation(winWidth, winHeight, d_winLeft, d_winTop)
   popWin = window.open(winURL, winName, "width=" + winWidth 
            + ",height=" + winHeight + winFeatures)
   }
 function closePopWin(){    // close pop-up window if it is open 
   if (navigator.appName != "Microsoft Internet Explorer" 
       || parseInt(navigator.appVersion) >=4) //do not close if early IE
     if(popWin != null) if(!popWin.closed) popWin.close() 
   }
 function getLocation(winWidth, winHeight, winLeft, winTop){
   return ""
   }

function getLocation(winWidth, winHeight, winLeft, winTop){
   var winLocation = ""
   if (winLeft < 0)
     winLeft = screen.width - winWidth + winLeft
   if (winTop < 0)
     winTop = screen.height - winHeight + winTop
   if (winTop == "cen")
     winTop = (screen.height - winHeight)/2 - 20
   if (winLeft == "cen")
     winLeft = (screen.width - winWidth)/2
   if (winLeft>0 & winTop>0)
     winLocation =  ",screenX=" + winLeft + ",left=" + winLeft   
                 + ",screenY=" + winTop + ",top=" + winTop
   else
     winLocation = ""
   return winLocation
   }   

// -->
