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,"newsindex.htm","/runimages/1ptrans");
CreateNewGraphic(2,"/homebuyer/index.htm","/images/btn_homebuyer");
CreateNewGraphic(3,"/member/index.htm","/images/btn_member");
CreateNewGraphic(4,"/about/index.htm","/images/btn_about");
CreateNewGraphic(5,"/programs/index.htm","/images/btn_programs");
CreateNewGraphic(6,"/links/index.htm","/images/btn_links");
CreateNewGraphic(7,"/homebuyer/index.htm","/images/btn_homebuyer_b");
CreateNewGraphic(8,"/member/index.htm","/images/btn_member_b");
CreateNewGraphic(9,"/programs/index.htm","/images/btn_programs_b");
CreateNewGraphic(10,"/about/index.htm","/images/btn_about_b");
CreateNewGraphic(11,"/links/index.htm","/images/btn_links_b");
CreateNewGraphic(12,"/links/index.htm","/images/btn_resources");
CreateNewGraphic(13,"/contactus.htm","/images/btn_contactus");
CreateNewGraphic(14,"/member/join.htm","/images/btn_join");
CreateNewGraphic(15,"/member/news.htm","/images/btn_news");
CreateNewGraphic(16,"/member/howhelp.htm","/images/btn_help");
CreateNewGraphic(17,"/member/supporters.htm","/images/btn_supporters");
CreateNewGraphic(18,"/about/releases.htm","/images/btn_releases");
CreateNewGraphic(19,"/about/faq.htm","/images/btn_faq");
CreateNewGraphic(20,"/about/board.htm","/images/btn_board");
CreateNewGraphic(21,"/about/bylaws.htm","/images/btn_bylaws");
CreateNewGraphic(22,"/homebuyer/education.htm","/images/btn_education");
CreateNewGraphic(23,"/homebuyer/whatis.htm","/images/btn_hbdp");
CreateNewGraphic(24,"/programs/fair.htm","/images/btn_fair");
CreateNewGraphic(25,"/programs/fair.htm","/images/txt_fair");
CreateNewGraphic(26,"/homebuyer/eddates.htm","/images/txt_calendar");
CreateNewGraphic(27,"/homebuyer/eddates.htm","/images/btn_calendar");
CreateNewGraphic(28,"/pdf/homeownershipfair.pdf","/images/txt_fair");
