var nameList = new Array();

function individual(nme,pos,parent){
this.name = nme;
this.position = pos;
this.parent = parent;
		}
	
function addIndividual(parent,nme,pos){
nameList[nameList.length]=new individual(nme,pos,parent);
}
	


function findChildren(id){

found = 0;
document.selecter.generation2.length=0;
for(n=0;n<nameList.length;n++){
if(nameList[n].parent==id){
//do something
document.selecter.generation2.length=1+document.selecter.generation2.length;
document.selecter.generation2.options[found].text=nameList[n].name;
document.selecter.generation2.options[found].value=nameList[n].position;
found++;
      }
 }
 if(document.selecter.generation2.length==0){
 document.selecter.generation2.length=1;
document.selecter.generation2.options[0].text="No Children";
document.selecter.generation2.options[0].value=-1;
 }

}	


function findName(id){
for(n=0;n<nameList.length;n++){
if(nameList[n].position==id){
document.selecter.generation1.value=nameList[n].name;
document.selecter.person.value=nameList[n].position;
}}
}


function findParent(id){
returnValue = id;
for(n=0;n<nameList.length;n++){
if(nameList[n].position==id){
returnValue = nameList[n].parent;
}
  }
return(returnValue);
}



function buttonUp(){
var parentValue;
parentValue = findParent(document.selecter.person.value);

if(parentValue>0){
findName(parentValue);
findChildren(parentValue);
}
}

function buttonDown(){
child=document.selecter.generation2.options[document.selecter.generation2.selectedIndex].value;

findName(child);
findChildren(child);

}


function JumpToName(){
eval("parent.location.href='#'+document.selecter.person.value");

}
	
function init(){
addIndividual(0,"Behr Drucker-Behrman",1);
addIndividual(1,"Shmere Behrman",2);
addIndividual(2,"Moushe Behrman",3);
addIndividual(3,"Gershon Behrman",4);
addIndividual(4,"Wolf Charles Behrman",5);
addIndividual(4,"Hirsch Bagendorf",6);
addIndividual(4,"Shmere Behrman",7);
addIndividual(4,"Sore Samunov",8);
addIndividual(4,"Hinne Rabbinowitz",9);
addIndividual(4,"Channa Mark",10);
addIndividual(4,"Zipe Sussman",11);
addIndividual(4,"Feigel Mandelson",12);
addIndividual(5,"Moushe Avrohom Behrman",13);
addIndividual(5,"Golde Aronson",14);
addIndividual(5,"Shmuel Gershon",15);
addIndividual(5,"Aaron Hirsh",16);
addIndividual(5,"Yankel Behrman",17);
addIndividual(5,"Dvore Hinde Jacobson",18);
addIndividual(5,"Lazar Behrman",19);
addIndividual(5,"Minnie Behrman",20);
addIndividual(5,"Esther Reiche Levy",21);
addIndividual(6,"Leopold Bagendorf",22);
addIndividual(6,"Rahle Ziegler",23);
addIndividual(6,"Minnie Orkoff",24);
addIndividual(7,"Mary Belson",25);
addIndividual(7,"Gershon Behrman",26);
addIndividual(7,"Minnie Hurwitz",27);
addIndividual(7,"Samuel Behrman",28);
addIndividual(8,"Moushe Samunov",29);
addIndividual(8,"Gershon Mendel Samunov",30);
addIndividual(8,"Rivke Behrman",31);
addIndividual(8,"Elijah Aaron Mileikowsky",32);
addIndividual(8,"Mere Leah Klazov",33);
addIndividual(10,"Hirsh Mark",34);
addIndividual(10,"Beresh Mark",35);
addIndividual(10,"Zipe Behrman",36);
addIndividual(10,"Leib Else Mark",37);
addIndividual(10,"Chaie Sore Drucker",38);
addIndividual(11,"Sarah Span",39);
addIndividual(11,"Feival Sussman",40);
addIndividual(11,"Daughter Krottinger",41);
addIndividual(13,"Ore Hesre Behrman",42);
addIndividual(13,"Devore Hinde Gordon",43);
addIndividual(13,"Mendel Yitzchok Behrman",44);
addIndividual(13,"Michael Behrman",45);
addIndividual(13,"Seite Posnack",46);
addIndividual(13,"Esther Channa Rabinowitz",47);
addIndividual(15,"Minnie Edelstein",48);
addIndividual(15,"Doris Weinberg",49);
addIndividual(15,"Hinde Lebenhaft",50);
addIndividual(15,"Aaron Behrman",51);
addIndividual(16,"Gershon Behrman",52);
addIndividual(16,"Sophy Levy",53);
addIndividual(17,"Mendel Behrman",54);
addIndividual(17,"Kreine Behrman",55);
addIndividual(18,"Minnie Jaffe",56);
addIndividual(18,"Olga Sacks",57);
addIndividual(18,"Pauline Jacobson",58);
addIndividual(18,"Morris Jacobs",59);
addIndividual(18,"Samuel Jacobs",60);
addIndividual(18,"Fannie Cohen",61);
addIndividual(18,"Sophie Margolis",62);
addIndividual(18,"Mary Kumesh",63);
addIndividual(19,"Wolf Charles Behrman",64);
addIndividual(19,"Zodak Behrman",65);
addIndividual(19,"Sophy Behrman",66);
addIndividual(19,"Ray Behrman",67);
addIndividual(19,"Dora Behrman",68);
addIndividual(21,"Arnold Levy",69);
addIndividual(21,"Leib Levy",70);
addIndividual(21,"Moss Hyman Levy",71);
addIndividual(22,"George Behrman",72);
addIndividual(22,"Samuel Behrman",73);
addIndividual(22,"Aubrey Behrman",74);
addIndividual(22,"Rosie Hirschon",75);
addIndividual(23,"Herman Ziegler",76);
addIndividual(23,"Eli Ziegler",77);
addIndividual(23,"Joseph Ziegler",78);
addIndividual(24,"(3 Children)",79);
addIndividual(25,"(3 Children)",80);
addIndividual(26,"David Behrman",81);
addIndividual(26,"Samuel Behrman",82);
addIndividual(26,"Ben Behrman",83);
addIndividual(26,"Charles Behrman",84);
addIndividual(26,"Leah Kineger",85);
addIndividual(26,"Max Behrman",86);
addIndividual(26,"Abe Behrman",87);
addIndividual(26,"Julius Behrman",88);
addIndividual(28,"Rosie Cohen",89);
addIndividual(28,"George Behrman",90);
addIndividual(29,"Max Samunov",91);
addIndividual(30,"Ephraim Samunov",92);
addIndividual(30,"Mordechai Aria Samunov",93);
addIndividual(30,"Tevye Samunov",94);
addIndividual(30,"Selig Samunov",95);
addIndividual(30,"Leibe Samunov",96);
addIndividual(30,"Chaie Samunov",97);
addIndividual(30,"Rochel Samunov",98);
addIndividual(33,"Devore Traub",99);
addIndividual(33,"Friede Samunov",100);
addIndividual(33,"Chava Jacobson",101);
addIndividual(33,"Minnie Rashall",102);
addIndividual(33,"Sarah Drubkin",103);
addIndividual(33,"Channa Courting",104);
addIndividual(33,"Morecai Klazov",105);
addIndividual(34,"Dora Taylor",106);
addIndividual(34,"Abraham Mark",107);
addIndividual(34,"Rasha Sussman",108);
addIndividual(34,"Sarah Zaitz",109);
addIndividual(35,"Gershon Mark",110);
addIndividual(35,"Chai Glickman",111);
addIndividual(35,"Rose Kurtin",112);
addIndividual(35,"Miriam Safren",113);
addIndividual(35,"Celia Rogoff",114);
addIndividual(35,"Sarah Heller",115);
addIndividual(35,"Bella Pearlman",116);
addIndividual(38,"(3 Children)",117);
addIndividual(39,"Moushe Span",118);
addIndividual(39,"Yanke Span",119);
addIndividual(39,"Gershon Span",120);
addIndividual(39,"Zipe Span",121);
addIndividual(40,"Behr Sussman",122);
addIndividual(40,"Gershon Sussman",123);
addIndividual(40,"Zipe Olswang",124);
addIndividual(40,"Channa Behrman",125);
addIndividual(40,"Pesse Epstein",126);
addIndividual(40,"Olga Schumacher",127);
addIndividual(40,"Minnie Schumacher",128);
addIndividual(40,"Tamar Simon",129);
addIndividual(40,"Fanny Palsitz",130);
addIndividual(41,"Welfe Krottinger",131);
addIndividual(41,"Zipe Urdang",132);
if(navigator.appName.indexOf("Microsoft") > -1){
findName(1);
findChildren(1);
}
}


function horizontalMenu(){
if(navigator.appName.indexOf("Microsoft") > -1){
document.write("<td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\" onClick=\"parent.location.href='index.htm'\">Home</td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td><td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\" onClick=\"parent.location.href='history.htm'\">History</td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td><td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\" onClick=\"parent.location.href='early.htm'\" nowrap>Isaac Cohen</td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td><td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\" onClick=\"parent.location.href='behrTree.htm'\" nowrap>Behr Tree</td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td><td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\" onClick=\"parent.location.href='records.htm'\" nowrap>Records</td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td><td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\" onClick=\"parent.location.href='photographs.htm'\">Photographs</td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td><td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\" onClick=\"parent.location.href='publications.htm'\">Publications</td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td><td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\" onClick=\"parent.location.href='contact.htm'\">Contact</td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td>");
}
else
{
document.write("<td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\" onClick=\"parent.location.href='index.htm'\"><a href='index.htm' target=\"_parent\" class=HorizontalMenu>Home</a></td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td><td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\"><a href='history.htm' target=\"_parent\" class=HorizontalMenu>History</a></td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td><td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\" nowrap><a href='early.htm' target=\"_parent\" class=HorizontalMenu>Isaac Cohen</a></td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td><td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\" nowrap><a href='behrTree.htm' target=\"_parent\" class=HorizontalMenu>Behr Tree</a></td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td><td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\" nowrap><a href='records.htm' target=\"_parent\" class=HorizontalMenu>Records</a></td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td><td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\"><a href='photographs.htm' target=\"_parent\" class=HorizontalMenu>Photographs</a></td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td><td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\"><a href='publications.htm' target=\"_parent\" class=HorizontalMenu>Publications</a></td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td><td class=HorizontalMenuOff onMouseOver=\"this.className='HorizontalMenuOver'\" onMouseOut=\"this.className='HorizontalMenuOff'\"><a href='contact.htm' target=\"_parent\" class=HorizontalMenu>Contact</a></td><td width='1px'><img src=\"images/pad.gif\" width=\"2px\" height='20px'></td>");
}

}

	
	function behrNav(){	
	
		if(navigator.appName.indexOf("Microsoft") > -1){
		document.write("<center><form method=\"POST\" id=\"selecter\" name=\"selecter\">");
document.write("<hr width=\"90%\" size=\"3\" color=#7B00AD><TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\" WIDTH=\"399\" HEIGHT=\"133\">");
document.write("<TR><td>&nbsp;</td><TD ROWSPAN=\"1\" COLSPAN=\"1\" WIDTH=\"135\" HEIGHT=\"49\" background=\"images/Image4_1x1.gif\">");
document.write("</TD><TD ROWSPAN=\"1\" COLSPAN=\"1\" WIDTH=\"125\" HEIGHT=\"49\">");
document.write("<IMG NAME=\"Image41\" SRC=\"images/Image4_1x2.gif\" WIDTH=\"125\" HEIGHT=\"49\" BORDER=\"0\"></TD>");
document.write("<TD ROWSPAN=\"1\" COLSPAN=\"1\" WIDTH=\"139\" HEIGHT=\"49\" background=\"images/Image4_1x3.gif\">");
document.write("</TD><td>&nbsp;</td></TR><TR><td><input type=\"button\" name=\"B1\" value=\"Up\" onClick=\"buttonUp();\"><img src=\"images/up.gif\" border=\"0\"></td>");
document.write("<TD ROWSPAN=\"1\" COLSPAN=\"1\" WIDTH=\"*\" HEIGHT=\"29\" background=\"images/Image4_2x1.jpg\">");
document.write("<input type=\"button\" id=\"generation1\" value=\"\" onclick=\"JumpToName();\">");
document.write("</TD><TD ROWSPAN=\"1\" COLSPAN=\"1\" WIDTH=\"125\" HEIGHT=\"29\"><IMG NAME=\"Image44\" SRC=\"images/Image4_2x2.gif\" WIDTH=\"125\" HEIGHT=\"29\" BORDER=\"0\"></TD><TD ROWSPAN=\"1\" COLSPAN=\"1\" WIDTH=\"139\" HEIGHT=\"29\" background=\"images/Image4_2x3.jpg\">");
document.write("<select name=\"generation2\" id=\"generation2\" size=\"1\"><option value=\"1\">Behr Drucker-Behrman</option></select></TD><td><img src=\"images/down.gif\" border=\"0\"><input type=\"button\" name=\"B1\" value=\"Down\" onClick=\"buttonDown();\"></td></TR><TR><td>&nbsp;</td><TD ROWSPAN=\"1\" COLSPAN=\"1\" WIDTH=\"135\" HEIGHT=\"55\" background=\"images/Image4_3x1.gif\">");
document.write("</TD><TD ROWSPAN=\"1\" COLSPAN=\"1\" WIDTH=\"125\" HEIGHT=\"55\"><IMG NAME=\"Image47\" SRC=\"images/Image4_3x2.gif\" WIDTH=\"125\" HEIGHT=\"55\" BORDER=\"0\"></TD><TD ROWSPAN=\"1\" COLSPAN=\"1\" WIDTH=\"139\" HEIGHT=\"55\" background=\"images/Image4_3x3.gif\"></TD><td>&nbsp;</td></TR></TABLE><input type=\"hidden\" name=\"person\" value=\"1\"></form></center><hr width=\"90%\" size=\"3\" color=#7B00AD><br>");
}
else{
document.write("<br><br><br>");
}
	
	}
	


function createWindow(cUrl,cName,cFeatures) {
var xWin = window.open(cUrl,cName,cFeatures)
}