var contribroot = "http://www.rootsweb.ancestry.com/~miarenac/images/"
//var contribroot = "file://c:/my documents/webs/miarenac/images/"

function contributor(name,id,domain,suffix) {
	this.name = name
	this.id = id.toLowerCase()
	this.domain = domain.toLowerCase()
	this.suffix = suffix.toLowerCase()
	}

function book(name) {
	this.name = name
	this.contributors = new Array()
	}

function buildbook() {
	mybook = new book("mybook")

	mybook.contributors[0] = new contributor("Greg Knopp","miarenac","gmail","com")
	mybook.contributors[1] = new contributor("Doris Demet","tdemet","wi.rr","com")
	mybook.contributors[2] = new contributor("Jim LaLone","jplalone","prodigy","net")
	mybook.contributors[3] = new contributor("Gail Harms","gailharms","charter","net")
	mybook.contributors[4] = new contributor("Kay Mason","klmm_mi","hotmail","com")
	mybook.contributors[5] = new contributor("Marlene Banks","herron41","yahoo","com")
	mybook.contributors[6] = new contributor("Marcia Ticknor","m_ticknor","yahoo","com")
	mybook.contributors[7] = new contributor("Carol Goodroe","jcmmgood","comcast","net")
	mybook.contributors[8] = new contributor("Nancy Pataky","rogernancy","mediaone","net")
	mybook.contributors[9] = new contributor("Burton Palmer","burtie","naples","net")
        mybook.contributors[10] = new contributor("Jennifer Selbrede","jen","postoffice.ccis","com")
	mybook.contributors[11] = new contributor("Dennis R. Lee","butlerinatux","yahoo","com")
	mybook.contributors[12] = new contributor("Karen Wandrie","shisterman","aol","com")
	mybook.contributors[13] = new contributor("Barbara J. House","genbarb","avci","net")
	mybook.contributors[14] = new contributor("Roianne Brown","roianneb","hotmail","com")
	mybook.contributors[15] = new contributor("Margaret Borushko","usnbob1","earthlink","net")
	mybook.contributors[16] = new contributor("Sandra Miller","caudell","cboss","com")
        mybook.contributors[17] = new contributor("Penny Bliss","henny_penny99","yahoo","com")
	mybook.contributors[18] = new contributor("Bill Harrington","Bharr2302","aol","com")
	mybook.contributors[19] = new contributor("Bob Clayton","rclayton","iflint","com")
	mybook.contributors[20] = new contributor("Georgeana M. Justice","just8","juno","com")
	mybook.contributors[21] = new contributor("Mary Ann Aaron","aaronma2","hotmail","com")
	mybook.contributors[22] = new contributor("David Collver","chepados","pivot","net")
	mybook.contributors[23] = new contributor("Maryjane Stelmach Honner","mjonhermusheen","m33access","com")
	mybook.contributors[24] = new contributor("Molly Anderson","maanderson","geocities","com")
	mybook.contributors[25] = new contributor("John Besaw","JMBesaw","aol","com")
	mybook.contributors[26] = new contributor("Linda Byerley","Llbyerley","aol","com")
	mybook.contributors[27] = new contributor("Angeline Pieniozek","angp43","yahoo","com")
	mybook.contributors[28] = new contributor("Robert Borushko","usnbob1","earthlink","net")
	mybook.contributors[29] = new contributor("Steve Saunders","STEVEFRMR","aol","com")
	mybook.contributors[30] = new contributor("Phyllis Poole","plpcountry","hotmail","com")
	mybook.contributors[31] = new contributor("Cathy Palm","palmsrv","gmail","com")
	mybook.contributors[32] = new contributor("Stephanie Wangler","wanglerville","hotmail","com")
	mybook.contributors[33] = new contributor("Matt Larive","mzlarive","juno","com")
	mybook.contributors[34] = new contributor("Jody Marx","ptn","pointnorthdesign","com")
	mybook.contributors[35] = new contributor("Annette Tipton","at2mt4","earthlink","net")
	mybook.contributors[36] = new contributor("Suzanne Nolan","snolan1","tampabay.rr","com")
	mybook.contributors[37] = new contributor("Nadine Hardin","hardin3942","juno","com")
	mybook.contributors[38] = new contributor("Jim Goodroe","jcmmgood","comcast","net")
	mybook.contributors[39] = new contributor("Theresa Fitzgerald","theresa","fitzgeraldhistory","com")
	mybook.contributors[40] = new contributor("Eric Alli","ericalli","yahoo","com")
	mybook.contributors[41] = new contributor("Sandy Phillips","san323","aol","com")
	mybook.contributors[42] = new contributor("Gerald L. Reno","gerry","chartermi","net")
	mybook.contributors[43] = new contributor("Ethel Rashotte Rawson","TwoFeathers","usol","com")
	mybook.contributors[44] = new contributor("Pam Woods","rwoods427","gallatinriver","net")
	mybook.contributors[45] = new contributor("Byron Kelly","kellyb2550","earthlink","net")
	mybook.contributors[46] = new contributor("Greg Knopp","miarenac","gmail","com")
	mybook.contributors[47] = new contributor("Jane Charchan","janec12","ejourney","com")
	mybook.contributors[48] = new contributor("Linda Kolinski","lindakolinski","yahoo","com")
	mybook.contributors[49] = new contributor("Christy Woletz Howell","celtic_hazel_eyes","juno","com")
	mybook.contributors[50] = new contributor("Bob Mann","r.c.mann","arenet","net")
	mybook.contributors[51] = new contributor("Denise McGlone","dmcglone1","comcast","net")
	mybook.contributors[52] = new contributor("Alton Badour","BADOURALTONr","aol","com")
	mybook.contributors[53] = new contributor("Laura Wooley","LODGECRAFT","aol","com")
	mybook.contributors[54] = new contributor("Maryanne Richards","arioch61","comcast","net")
	mybook.contributors[55] = new contributor("James Bukoski","jbukoski","adelphia","net")
	mybook.contributors[56] = new contributor("Lorraine Kanary","fkanary","comcast","net")
	mybook.contributors[57] = new contributor("Janell Scott Evans","nell9445","comcast","net")
	mybook.contributors[58] = new contributor("Betty Bisom","crazyhouse80","comcast","net")
	mybook.contributors[59] = new contributor("Keith Pollock","blackdog","ptialaska","net")
	mybook.contributors[60] = new contributor("Linda Tessin","lltessin","lycos","com")
        mybook.contributors[61] = new contributor("Judy Addison","yvjudy","adelphia","net")
	mybook.contributors[62] = new contributor("Karin Thomas","ladypines","aol","com")
	mybook.contributors[63] = new contributor("Dennis Norton","dennisnorton","comcast","net")
	mybook.contributors[64] = new contributor("Shawn Spickerman","spickerman2","tm","net")
	mybook.contributors[65] = new contributor("Rachel Weishuhn","WeishuhnR","aol","com")
	mybook.contributors[66] = new contributor("Robert Kosick","kosick3","comcast","net")
	mybook.contributors[67] = new contributor("Peggy Adams","peggysadams","hotmail","com")
	mybook.contributors[68] = new contributor("Arlene Stenger","ArleSteng","aol","com")
	mybook.contributors[69] = new contributor("Lynn Seamark","Lmseamark","newhudson","com")
	mybook.contributors[70] = new contributor("Joann Gulau","gulau2","charter","net")
	mybook.contributors[71] = new contributor("Chris Scott","punkee","centurytel","net")
	mybook.contributors[72] = new contributor("Amy Knepp","OCL","m33access","com")
	mybook.contributors[73] = new contributor("Molly Anderson","mollyanderson","usa","net")
	mybook.contributors[74] = new contributor("Lisa Mandeville","zsazse","chartermi","net")
	mybook.contributors[75] = new contributor("Connie Shaw","connie_shaw04","yahoo","com")
	mybook.contributors[76] = new contributor("Cynthia Del Castillo","cadelc222-lists","yahoo","com")
	mybook.contributors[77] = new contributor("Edward R. Masson","esmasson","aim","com")
	mybook.contributors[78] = new contributor("Aimee Boettcher","bradleyh","shianet","org")
	mybook.contributors[79] = new contributor("Linda Reeves","lindareeves279","comcast","net")
	mybook.contributors[80] = new contributor("Alicia Zacek","alcgrsshppr","yahoo","com")
	mybook.contributors[81] = new contributor("Robin Powell","tsiquoquo","sbcglobal","net")
	mybook.contributors[82] = new contributor("Martha Nelson","man.142","hotmail","com")
	mybook.contributors[83] = new contributor("Cheryl Prosack","prosack","lindenhall","org")
	mybook.contributors[84] = new contributor("Aleisha Hepfer","-","-","-")
	mybook.contributors[85] = new contributor("Rick Champine","richardchampine","att","net")
	mybook.contributors[86] = new contributor("Gary Crook","Gary.Crook","pgnmail","com")
	mybook.contributors[87] = new contributor("Diana Catlin","catlindiana","yahoo","com")
}


function letter(name,fname,width,height,alttext) {
	this.name = name.toLowerCase()
	this.fname = fname.toLowerCase()
	this.width = width
	this.height = height
	this.alttext = alttext.toLowerCase()
	}

function alphabet(name) {
	this.name = name
	this.letters = new Array()
	}

function buildalphabet() {
	myalphabet = new alphabet("myalphabet")

	myalphabet.letters[0] = new letter("a","a.gif","19","28","a")
	myalphabet.letters[1] = new letter("b","b.gif","17","28","b")
	myalphabet.letters[2] = new letter("c","c.gif","17","28","c")
	myalphabet.letters[3] = new letter("d","d.gif","17","28","d")
	myalphabet.letters[4] = new letter("e","e.gif","18","28","e")
	myalphabet.letters[5] = new letter("f","f.gif","14","28","f")
	myalphabet.letters[6] = new letter("g","g.gif","18","28","g")
	myalphabet.letters[7] = new letter("h","h.gif","16","28","h")
	myalphabet.letters[8] = new letter("i","i.gif","10","28","i")
	myalphabet.letters[9] = new letter("j","j.gif","11","28","j")
	myalphabet.letters[10] = new letter("k","k.gif","16","28","k")
	myalphabet.letters[11] = new letter("l","l.gif","7","28","l")
	myalphabet.letters[12] = new letter("m","m.gif","24","28","m")
	myalphabet.letters[13] = new letter("n","n.gif","16","28","n")
	myalphabet.letters[14] = new letter("o","o.gif","18","28","o")
	myalphabet.letters[15] = new letter("p","p.gif","18","28","p")
	myalphabet.letters[16] = new letter("q","q.gif","18","28","q")
	myalphabet.letters[17] = new letter("r","r.gif","13","28","r")
	myalphabet.letters[18] = new letter("s","s.gif","16","28","s")
	myalphabet.letters[19] = new letter("t","t.gif","13","28","t")
	myalphabet.letters[20] = new letter("u","u.gif","16","28","u")
	myalphabet.letters[21] = new letter("v","v.gif","17","28","v")
	myalphabet.letters[22] = new letter("w","w.gif","24","28","w")
	myalphabet.letters[23] = new letter("x","x.gif","15","28","x")
	myalphabet.letters[24] = new letter("y","y.gif","15","28","y")
	myalphabet.letters[25] = new letter("z","z.gif","15","28","z")
	myalphabet.letters[26] = new letter("0","0.gif","21","28","0")
	myalphabet.letters[27] = new letter("1","1.gif","16","28","1")
	myalphabet.letters[28] = new letter("2","2.gif","18","28","2")
	myalphabet.letters[29] = new letter("3","3.gif","19","28","3")
	myalphabet.letters[30] = new letter("4","4.gif","19","28","4")
	myalphabet.letters[31] = new letter("5","5.gif","18","28","5")
	myalphabet.letters[32] = new letter("6","6.gif","19","28","6")
	myalphabet.letters[33] = new letter("7","7.gif","18","28","7")
	myalphabet.letters[34] = new letter("8","8.gif","19","28","8")
	myalphabet.letters[35] = new letter("9","9.gif","19","28","9")
	myalphabet.letters[36] = new letter("_","us.gif","18","28","_")
	myalphabet.letters[37] = new letter("@","at.gif","28","28","@")
	myalphabet.letters[38] = new letter(".","dt.gif","8","30",".")
	myalphabet.letters[39] = new letter("-","da.gif","16","28","-")
}	

function display_contrib(number) {
	var number
	buildbook()
	buildalphabet()
	var x = Math.floor(Math.random() * 10000)
	var address = x.toString()
	window2=window.open('about:blank',address,'resizable=yes,width=650,height=150')
	window2.document.writeln("<html>")
	window2.document.writeln("<head>")
	window2.document.writeln("<title>Contributor e-mail</title>")
	window2.document.writeln('<style TYPE="text/css">')
	window2.document.writeln('<!--')
	window2.document.writeln('BODY {')
	window2.document.writeln('BACKGROUND-COLOR: #F8F0D0;')
	window2.document.writeln('MARGIN-TOP: 0px;')
	window2.document.writeln('MARGIN-LEFT: 2px;')
	window2.document.writeln('FONT-SIZE: 12px;')
	window2.document.writeln('COLOR: #004080;')
	window2.document.writeln('FONT-STYLE: normal;')
	window2.document.writeln('FONT-FAMILY: verdana, arial, helvetica, sans-serif}')
	window2.document.writeln('-->')
	window2.document.writeln('</style>')
	window2.document.writeln("</head>")
	window2.document.writeln("<body>")
	window2.document.writeln('<form ID="actionForm" name="actionForm"><input type="button" value="Close Window" title="Close Window" name="B1" onClick="self.close()"></form>')
	window2.document.writeln("<p>E-mail:  " + mybook.contributors[number].name + "</p>")
	window2.document.writeln("<p>")
	write_string(mybook.contributors[number].id)
	write_string("@")
	write_string(mybook.contributors[number].domain)
	write_string(".")
	write_string(mybook.contributors[number].suffix)
	window2.document.writeln("</p>")
	window2.document.write("<p>")
        window2.document.write("Click <a href='m")
        window2.document.write("ai")
        window2.document.write("lt")
        window2.document.write("o:")
        window2.document.write(mybook.contributors[number].id)
        window2.document.write("@")
        window2.document.write(mybook.contributors[number].domain + "." + mybook.contributors[number].suffix)
        window2.document.write("'>here<a> to send e-mail")
	window2.document.write("</p>")
	window2.document.writeln("</body>")
	window2.document.writeln("</html>")
	window2.document.close()
}

function write_string(mystring) {
	var mystring
	var myletters = "abcdefghijklmnopqrstuvwxyz0123456789_@.-"
	for (var i = 0; i <= mystring.length - 1; i++) {
		j = myletters.indexOf(mystring.substring(i,i+1),0)
		window2.document.writeln('<img src="' + contribroot + myalphabet.letters[j].fname + '" width="' + myalphabet.letters[j].width + '" height="' + myalphabet.letters[j].height + '" alt="' + myalphabet.letters[j].alttext + '"' + '>')
	}
}