var nl = getNewLine()

function getNewLine() {
	var agent = navigator.userAgent

	if (agent.indexOf("Win") >= 0)
		return "\r\n"
	else
		if (agent.indexOf("Mac") >= 0)
			return "\r"

 	return "\n"

}



function others(){
document.getElementById('others1').style.display = "inline";
document.getElementById('others').style.display = "none";
document.getElementById('heymann1').style.display = "none";
document.getElementById('heymann').style.display = "inline";
}

function heymann(){
document.getElementById('heymann1').style.display = "inline";
document.getElementById('heymann').style.display = "none";
document.getElementById('others1').style.display = "none";
document.getElementById('others').style.display = "inline";
}

function goHere(here){
if(here!="") location.href=here;
if(here=="") alert("Please select from one of the options further down in the menu")
}

pagecode = '<table width=100% cellpadding=0 cellspacing=0 border=0 bgcolor="#99cc99"><form name="mainmenu"><tr><td valign="top" width=80% align=right>'+nl+nl+nl+
	'<img src="/images/bar4.gif"></td><td valign=top align=center><img src="/images/symbol.gif"></td></tr><tr><td colspan=2 align=center>'+nl+nl+
	'<a href="/index.html"><img src="/menu-buttons/home.gif" border=0></a>'+nl+
	'<a href="/Admin/Introduction_to_the_site.htm"><img src="/menu-buttons/preface_introduction.gif" border=0 ></a>'+nl+
	'<a href="/Heyman%20Family/genealogy.htm"><img src="/menu-buttons/full-genealogy.gif" border=0></a>'+nl+
	'<div id="heymann" style="display:inline;position:relative;"><a href="javascript:heymann()"><img src="/menu-buttons/heymann.gif" border=0></a></div>'+nl+
	'<div id="heymann1" style="display:none;margin-bottom:2px;position:relative;"> '+nl+
	'<select name="family" style="width:130px;font-size: 8pt; margin-bottom: 10px; color: white; font-family: arial; background-color: #006600"> '+nl+
	'<option value="" selected>Heyman Family'+nl+
	'<option value="/Heyman%20Family/Heymann%20Index.html"> Family History '+nl+
	'<option value="/Heyman%20Family/Marc%20&%20Naomi%20Family%20Page.html"> Marc, Naomi & Devorah'+nl+
	'</select><input type="button" value="Go" style="margin-bottom: 10px; border:solid 1px #c4f9c5; margin-left:3px; width:25px;font-size: 8pt; color: white; font-family: arial; background-color: #006600" onclick="goHere(document.mainmenu.family.options[document.mainmenu.family.options.selectedIndex].value)"></div>'+nl+
	'<div id="others" style="display:inline;position:relative;"><a href="javascript:others()"><img src="/menu-buttons/others.gif" border=0></a></div>'+nl+
	'<div id="others1" style="display:none;margin-bottom:2px;position:relative;"> '+nl+
	'<select name="families" style="width:130px; margin-bottom: 10px; font-size: 8pt; color: white; font-family: arial; background-color: #006600"> '+nl+
	'<option value="" selected>Other Families'+nl+
	'<option value="/Alter%20Family/Alter%20Index.html" style="background-color:#009999"> Alter '+nl+
	'<option value="/other%20families/Gerer%20Hassidic%20Sect.html" style="background-color:#009999"> Gerer Sect'+nl+
	'<option value="/other%20families/bacharach/Bacharach%20Family.html"> Bacharach '+nl+
	'<option value="/other%20families/Goldschmidt/Goldschmidt%20families.htm"> Goldschmidt '+nl+
	'<option value="/Lindwasser%20Family/Lindwasser%20Family.html"> Linwasser'+nl+
	'<option value="/other%20families/Marx%20Family.html"> Marx'+nl+
	'<option value="/Nathan%20Family/Nathan%20family%20Index.html"> Nathan'+nl+
	'<option value="/other%20families/Notman%20Family.html"> Notman'+nl+
	'<option value="/other%20families/Oppenheimer/Oppenheimer%20Families.htm"> Oppenheimer'+nl+
	'<option value="/other%20families/Rothschild/Rothschild%20families.htm"> Rothschild'+nl+
	'<option value="/other%20families/stern.html"> Stern/Shavit Freyer'+nl+
	'<option value="/other%20families/stipior/Stipior%20Index.html"> Stipior/Mandel '+nl+
	'</select><input type="button" value="Go" style="margin-bottom: 10px; border:solid 1px #c4f9c5; margin-left:3px; width:25px;font-size: 8pt; color: white; font-family: arial; background-color: #006600" onclick="goHere(document.mainmenu.families.options[document.mainmenu.families.options.selectedIndex].value)"></div>'+nl+
	'<br />'+nl+
	'<a href="/family%20events/events.htm"><img src="/menu-buttons/events.gif" border=0></a>'+nl+
	'<a href="/Admin/where-is.htm"><img src="/menu-buttons/where-is.gif" border=0></a>'+nl+
	'<a href="/Admin/Admin%20Page.htm"><img src="/menu-buttons/updates.gif" border=0></a>'+nl+
	'<a href="/Admin/useful-links.htm"><img src="/menu-buttons/links.gif" border=0></a>'+nl+
	'<a href="mailto:mheymann@austnet.com.au"><img src="/menu-buttons/email-button.gif" border=0></a>'+nl+
	' </center>'+nl+
	'</td></tr></table>'

document.write(pagecode);

if(location.href.indexOf("Alter")>=0) {others();document.mainmenu.families.options.selectedIndex=1}
if(location.href.indexOf("Hassidic")>=0) {others();document.mainmenu.families.options.selectedIndex=2}
if(location.href.indexOf("bacharach")>=0) {others();document.mainmenu.families.options.selectedIndex=3}
if(location.href.indexOf("Goldschmidt")>=0) {others();document.mainmenu.families.options.selectedIndex=4}
if(location.href.indexOf("Lindwasser")>=0) {others();document.mainmenu.families.options.selectedIndex=5}
if(location.href.indexOf("Marx")>=0) {others();document.mainmenu.families.options.selectedIndex=6}
if(location.href.indexOf("Nathan")>=0) {others();document.mainmenu.families.options.selectedIndex=7}
if(location.href.indexOf("Notman")>=0) {others();document.mainmenu.families.options.selectedIndex=8}
if(location.href.indexOf("Oppenheimer")>=0) {others();document.mainmenu.families.options.selectedIndex=9}
if(location.href.indexOf("Rothschild")>=0) {others();document.mainmenu.families.options.selectedIndex=10}
if(location.href.indexOf("stern")>=0) {others();document.mainmenu.families.options.selectedIndex=11}
if(location.href.indexOf("stipior")>=0) {others();document.mainmenu.families.options.selectedIndex=12}

if(location.href.indexOf("Heymann%20Index.html")>=0) {heymann();document.mainmenu.family.options.selectedIndex=1}
if(location.href.indexOf("Marc")>=0) {heymann();document.mainmenu.family.options.selectedIndex=2}