var contribroot = "http://www.rootsweb.ancestry.com/~ohottawa/images/"
//var contribroot = "file://c:/my documents/webs/ohottawa/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","ohottawa","gmail","com")
	mybook.contributors[1]  = new contributor("Greg Knopp","ohottawa","gmail","com")
	mybook.contributors[2]  = new contributor("Marlene Seaton","Bugszie","aol","com")
	mybook.contributors[3]  = new contributor("Ellen Amstutz","EAmstutz","aol","com")
	mybook.contributors[4]  = new contributor("Larry Epling","larryep","netins","net")
	mybook.contributors[5]  = new contributor("Steven Levine","solongago","earthlink","net")
	mybook.contributors[6]  = new contributor("Lynne Wilson","lyn227","aircanopy","net")
	mybook.contributors[7]  = new contributor("Bonnie Petee","globetrotter101","juno","com")
    mybook.contributors[8]  = new contributor("Terri Sturgill","tsturgill","gmail","com")
    mybook.contributors[9]  = new contributor("Charles Tieman","curious8","pacbell","net")
    mybook.contributors[10] = new contributor("Barbara Hernden","BMoran0016","aol","com")
    mybook.contributors[11] = new contributor("Sally Runner Foxx","sjf3jc","yahoo","com")
    mybook.contributors[12] = new contributor("Tracy Kirk","tmk0012","yahoo","com")
	mybook.contributors[13] = new contributor("Christine Hostrup Krell","Ellech448","aol","com")
	mybook.contributors[14] = new contributor("Angie","angela","linkohio","com")
	mybook.contributors[15] = new contributor("Ryan Hawk","hawkman_ohio","yahoo","com")
	mybook.contributors[16] = new contributor("Cris Magrum","crisportclinton","aol","com")
	mybook.contributors[17] = new contributor("Jon Bell","jcbell3","hotmail","com")
	mybook.contributors[18] = new contributor("Norman Hamann","trestlecreek","chartermi","net")
	mybook.contributors[19] = new contributor("Jim Naum","jimnaum","hotmail","com")
	mybook.contributors[20] = new contributor("Richard Gates","rgates8","verizon","net")
	mybook.contributors[21] = new contributor("Lucretia Morales","lmor56","embarqmail","com")
	mybook.contributors[22] = new contributor("Cheryl Myers","care_2","cros","net")
	mybook.contributors[23] = new contributor("Adrienne Wyatt","dunnsectry","aol","com")
	mybook.contributors[24] = new contributor("Ralph Tack","dr.tack","gmail","com")
	mybook.contributors[25] = new contributor("Judy Seeley Price","jksp1957","aol","com")
	mybook.contributors[26] = new contributor("Jim Casadevall","jcasadev","msn","com")
	mybook.contributors[27] = new contributor("Spencer Throne","thronegenealogy","gmail","com")
	mybook.contributors[28] = new contributor("Karina","karina","atomictowing","com")
	mybook.contributors[29] = new contributor("Kim Willie","pwilliemendon","yahoo","com")
	mybook.contributors[30] = new contributor("Jim Casadevall","jcasadev","msn","com")
	mybook.contributors[31] = new contributor("Sandra Newsome","troublesome88","hotmail","com")
	mybook.contributors[32] = new contributor("Amy Wolf","ajwolf","comcast","net")
	mybook.contributors[33] = new contributor("Patty Fuller","munrofuller","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()
	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: #F4F3D4;')
	window2.document.writeln('MARGIN-LEFT: 2px; MARGIN-TOP: 0px;')
	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 + '"' + '>')
	}
}