
imgHover(i) {
	window.document.images[i].src = imgButtonHover[i].src;
}

function imgLink(j) {
	window.document.images[j].src = imgButtonLink[j].src;
}

function setMsg(msg) {
	window.status = msg;
	return true;
}

// Pre-cache all button images for event pictures.
// imgButtonHover[0] = new Image(100,600);
// imgButtonHover[1] = new Image(100,600);
// imgButtonLink[0] = new Image(100,600);
// imgButtonLink[1] = new Image(100,600);

for (x=0; x<2; x++) {
	imgButtonHover[x] = new Image(100,600);
	imgButtonLink[x] = new Image(100,600);
}

// Set image paths for next and previous buttons.
imgButtonHover[0].src = "images/general/button-prev-hover.gif";
imgButtonHover[1].src = "images/general/button-next-hover.gif";
imgButtonLink[0].src = "images/general/button-prev-link.gif";
imgButtonLink[1].src = "images/general/button-next-link.gif";




// NOT FUNCTIONING PROPERLY!!!!!!!!!!!!!!!!!!!!!!!!!

// Declare variables.
var CAMPIMAGES=7

// Toggle button image ON when mouse is over button.
function imageOver(i) {  
// alert("Image Over " + i);
  document.main.src = imgOver[i].src;
}

// Toggle button image OFF.
function imageOff() {
//	alert("Image Off");
  document.images[0].src = imgOff.src;
}

// Pre-cache all 'mouse over' button images.
var imgOver = new Array();

// alert("Image Array");

for (x = 0; x<=CAMPIMAGES; x++) {
  imgOver[x] = new Image(455,426);
}

// Set 'mouse off' image path.
imgOff.src = "./images/mocamps.gif";
   
// Set 'mouse over' image path for each camp. 
imgOver[0].src = "./images/mocamp17.gif";
imgOver[1].src = "./images/mocamp61.gif";
imgOver[2].src = "./images/mocamp62.gif";
imgOver[3].src = "./images/mocamp64.gif";
imgOver[4].src = "./images/mocamp65.gif";
imgOver[5].src = "./images/mocamp66.gif";
imgOver[6].src = "./images/mocamp68.gif";



// Popup windows for pictures.
function popup(mylink, windowname)
{
	if (! window.focus)return true;
	
	var href;
	
	if (typeof(mylink) == 'string')
   		href=mylink;
	else
   		href=mylink.href;

	window.open(href, windowname, 'width=810,height=600,scrollbars=no')
	return false;
}


// Image Popups for pictures
<!--
/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos)
{
	if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
	else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}

	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes';
	win=window.open(mypage,myname,settings);
}
// -->


