var now = new Date();
var years = 0;

var FNBfoundation = 1876;

//real estate
var RE = new Array(new Array());
RE[0] = ["ed", "carolyn", "diane", "cindy", "kathy"];
RE[1] = [1973, 1982, 1975, 2002, 1998];
RE[2] = [5];//# employees

//farm
var Farm = new Array(new Array());
Farm[0] = ["tedd", "don", "duane", "chris", "brandon", "kevin"];
Farm[1] = [1981, 1994, 1987, 2000, 2004, 2005];
Farm[2] = [6];//# employees

//trust
var Trust = new Array();
Trust["assets"] = "$700 million";
Trust["accounts"] = "over 1200";
Trust["EB"] = "$145 million";

function getFNBYears()
{
	years = now.getFullYear()-FNBfoundation;
	document.write(years);
	return;
}
function showTrust(what)
{
	document.open('text/html','replace');
	document.write(Trust[what]);
	document.close();
	return;
}
function getDeptYears(dept)
{
	var DeptArray;
	years = 0;
	if(dept == "RE"){DeptArray = RE;}
	if(dept == "Farm"){DeptArray = Farm;}
	for(var i = 0; i<DeptArray[2][0]; i=i+1){years = years+DeptArray[1][i]; }
	years = DeptArray[2][0]*now.getFullYear()-years;
	document.write(years);
	return;
}
//end of file