function a_fam(id,title)
{ document.write('<a href="../fam_html/' + id + '.htm#begin" title="' + title + '" onmouseover="window.status=' + "'Family " + id.toUpperCase() + "'" + ';return true" onmouseout="window.status=' + "''" + '">');
}
function a_sour(id,title)
{ document.write('<a href="#" title="' + title.toUpperCase() + '" onmouseover="window.status=' + "'Source " + id.toUpperCase() + "';return true" + '" onmouseout="window.status=' + "''" + '" onclick="window.open(' + "'../sour_html/" + id + ".htm#begin','source','width=1,height=1,scrollbars=1,left='+event.screenX+',top='+event.screenY+'');return false" + '">');
}
function a_note(id,title)
{ document.write('<a href="#" title="' + title + '" onmouseover="window.status=' + "'Note " + id.toUpperCase() + "';return true" + '" onmouseout="window.status=' + "''" + '" onclick="window.open(' + "'../note_html/" + id + ".htm#begin','note','width=1,height=1,scrollbars=1,left='+event.screenX+',top='+event.screenY+'');return false" + '">');
}
function a_multimedia(filename,title)
{ document.write('<a href="#" title="' + title + '" onmouseover="window.status=' + "'Photo'" + ';return true" onmouseout="window.status=' + "''" + '" onclick="window.open(' + "'../multimedia/" + filename + "#begin','multimedia','width=1,height=1,scrollbars=1');return false" + '">');
}
function a_index(filename)
{ document.write('<a href="../indexes/' + filename + '#begin" onmouseover="window.status=' + "'Index'" + ';return true" onmouseout="window.status=' + "''" + '">');
}
function a_chart(filename,anchor,title)
{ document.write('<a href="#" title="' + title + '" onmouseover="window.status=' + "'Chart'" + ';return true" onmouseout="window.status=' + "''" + '" onclick="top.chart_window=window.open(' + "'../charts/" + filename + "#" + anchor + "','chart');return false" + '">');
}
function a_logo()
{ document.write('<a href="#" onmouseover="window.status=' + "'GEDvisual Homepage'" + ';return true" onmouseout="window.status=' + "''" + '" onclick="window.open(' + "'http://www.gedvisual.com','gedvisual');return false" + '">');
}
function a_legend(width,height)
{ document.write('<a href="#" onmouseover="window.status=' + "'Legend';return true" + '" onmouseout="window.status=' + "''" + '" onclick="lgnd=window.open(' + "'legend.htm#begin','legend','width=" + width + ",height=" + height + ",left='+event.screenX+',top='+event.screenY+'');return false" + '">');
}
function img_faml()
{ document.write('<img src="../layout/arrow_left.gif" height="32" width="32" border="0">');
}
function img_famr()
{ document.write('<img src="../layout/arrow_right.gif" height="32" width="32" border="0">');
}
function img_sour()
{ document.write('<img src="../layout/link_source.gif" height="9" width="9" hspace="2" border="0">');
}
function img_note()
{ document.write('<img src="../layout/link_note.gif" height="9" width="9" hspace="2" border="0">');
}
function img_multimedia(filename)
{ document.write('<img src="../multimedia/' + filename + '" border="0">');
}
function img_index()
{ document.write('<img src="../layout/button_index.gif" height="32" width="32" border="0">');
}
function img_chart()
{ document.write('<img src="../layout/button_chart.gif" height="32" width="32" border="0">');
}
function img_logo()
{ document.write('<img src="../layout/gedvisual.gif" border="0">');
}
function go_f()
{ var page = document.form.flist.options[document.form.flist.selectedIndex].text;
  if (page != 'Family')
  { page = '../fam_html/' + page.toLowerCase() + '.htm#begin';
    window.open(page,'main');
  }
}
function go_i()
{ var page = document.form.ilist.options[document.form.ilist.selectedIndex].value;
  var anchor = document.form.ilist.options[document.form.ilist.selectedIndex].text;
  if (anchor != 'Individual')
  { page = '../fam_html/' + page.toLowerCase() + '.htm#' + anchor.toLowerCase();
    window.open(page,'main');
  }
}
function go_s()
{ var page = document.form.slist.options[document.form.slist.selectedIndex].text;
  if (page != 'Source')
  { page = '../sour_html/' + page.toLowerCase() + '.htm#begin';
    window.open(page,'source','width=1,height=1,scrollbars=1');
  }
}
function go_n()
{ var page = document.form.nlist.options[document.form.nlist.selectedIndex].text;
  if (page != 'Note')
  { page = '../note_html/' + page.toLowerCase() + '.htm#begin';
    window.open(page,'note','width=1,height=1,scrollbars=1');
  }
}
function on_load(chart_window,chart_file,left,top,width,height)
{ if(top == self)
  { top.location.href = '../index.htm';
  }
  if (chart_window && chart_window.open && !chart_window.closed)
  { var cf = chart_window.location.pathname;
    var l1 = cf.lastIndexOf("\\");
    var l2 = cf.lastIndexOf("/");
    if (l2 > l1)
    { l1 = l2;
    }
    cf = cf.substring(l1 + 1);
    if (cf == chart_file)
    { chart_window.highlight(left,top,width,height);
    }
    else
    { chart_window.highlight(0,0,0,0);
    }
  }
}
function fit(w,h)
{ w+=10;
  h+=35;
  if ((w>screen.width)||(h>screen.height-30))
  { if (w>screen.width) w=screen.width;
    else w+=17;
    if (h>screen.height-30) h=screen.height-30;
    else h+=17;
  }
  else
  { document.body.style.overflow='hidden';
  }
  window.resizeTo(w,h);
  window.focus();
}