var boolBrowserIsCompatible = (navigator.userAgent.indexOf("Mozilla/3") != -1 || navigator.userAgent.indexOf("Mozilla/4") != -1);
var arrGraphics = new Array();
var intTotalGraphics = 0;
var intThisPageID = 0;

var strImagePathOff = "1";
var strImagePathOn = "2";
var strImagePathSelected = "1";
var strImageFileSuffix = ".gif";

function objGraphic(ID,Destination,ImagePathPrefix) {
	this.ID = ID;
	this.Destination = Destination;
	if (boolBrowserIsCompatible) {
		this.off = new Image();
		this.on = new Image();
		this.selected = new Image();
		this.off.src = ImagePathPrefix + strImagePathOff + strImageFileSuffix;
		this.on.src = ImagePathPrefix + strImagePathOn + strImageFileSuffix;
		this.selected.src = ImagePathPrefix + strImagePathSelected + strImageFileSuffix;
	}
}

function CreateNewGraphic(intID,strDest,ImagePathPrefix) {
	intTotalGraphics++;
	arrGraphics[intTotalGraphics] = new objGraphic(intID,strDest,ImagePathPrefix);
}

function ChangeNavFrame(intID) {
	window.setTimeout("self.location=arrGraphics[" + intID + "].Destination;",50);
}

function DoMouseOver(intID) {
	if (boolBrowserIsCompatible) {
		if (intThisPageID != intID) {
			document.images["btn" + intID].src = arrGraphics[intID].on.src;
		}
		else {
			document.images["btn" + intID].src = arrGraphics[intID].selected.src;
		}
	}
}


function DoMouseOut(intID) {
	if (boolBrowserIsCompatible) {
		if (intThisPageID != intID) {
			document.images["btn" + intID].src = arrGraphics[intID].off.src;
		}
		else {
			document.images["btn" + intID].src = arrGraphics[intID].selected.src;
		}
	}
}

CreateNewGraphic(1,"/anderson/index.html","/anderson/images/1ptrans");
CreateNewGraphic(2,"/anderson/index.html","/anderson/images/btn_home");
CreateNewGraphic(3,"/anderson/description.pdf","/anderson/images/btn_description");
CreateNewGraphic(4,"/anderson/application.pdf","/anderson/images/btn_application");
CreateNewGraphic(5,"/anderson/information.pdf","/anderson/images/btn_information");
CreateNewGraphic(6,"/anderson/projects/index.html","/anderson/images/btn_projects");
CreateNewGraphic(7,"/anderson/gallery/index.html","/anderson/images/btn_gallery");
CreateNewGraphic(8,"","/anderson/images/btn_pdfdownload");
