//this highlights the topnav link, which is set in the body tag
var currentpage = "none";
	
	function setPage(pagename){
		if (document.images[currentpage]){
			document.images[currentpage].src = eval(currentpage).src;
		}
			if (pagename != 'none' && document.images[pagename]){
				document.images[pagename].src = eval(pagename+"on").src;
			}
			currentpage = pagename;
		}
		
//this preloads all the images
if (document.images) {
		//nav images
		arrow= new Image;
     	arrow.src="images/arrow.gif"; 	
		arrow_on= new Image;
     	arrow_on.src="images/arrow_on.gif"; 
  }
  
  
//rollover function	for multiple images
function rollon(imgName,imgName2)
 {
   if (document.images)
    {
      imgOn=eval(imgName + "on.src");
      document[imgName].src= imgOn;
      imgOn2=eval(imgName2 + "on.src");
      document[imgName2].src= imgOn2;
    }
 }

function rolloff(imgName,imgName2)
 {
   if (document.images)
    {
      imgOff=eval(imgName + "off.src");
      document[imgName].src= imgOff;
      imgOff2=eval(imgName2 + "off.src");
      document[imgName2].src= imgOff2;
    }
 }
 
 //rollover function for single images
 function rollImage(imagename,imageloc){
		if (currentpage != imageloc){
			document.images[imageloc].src = imagename.src;
		}
	}



  
  
 