if (document.getElementById) {
	theMenu = document.getElementById("Pulldown");
	if (theMenu) { 	useMenus = true; }
	theDef = document.getElementById("DefFrame");
	if (theDef) { useDefs = true; }
}


menu = new Array;
menu[0] = "<TABLE cellpadding=5 cellspacing=0>";
menu[0] = menu[0] + MenuRow("HOME PAGE", "../index.htm") + MenuRow("TABLE OF CONTENTS", "../toc.htm") + MenuRow("ABOUT THE AUTHOR", "../author.htm") + MenuRow("WHAT'S NU", "../nu.htm") + MenuRow("CURRENT CALENDAR", "../current.htm") + MenuRow("SEARCH THE GLOSSARY AND INDEX", "../search.htm")
menu[0] = menu[0] + "</TABLE>"
menu[1] = "<TABLE cellpadding=5 cellspacing=0>"
menu[1] = menu[1] + MenuRow("WHAT IS JUDAISM?", "../judaism.htm") + MenuRow("BELIEFS", "../beliefs.htm") + MenuRow("NATURE OF G-D", "../g-d.htm") + MenuRow("HUMAN NATURE", "../human.htm") + MenuRow("MESSIAH", "../mashiach.htm") + MenuRow("MYSTICISM", "../kabbalah.htm")
menu[1] = menu[1] + "</TABLE>"
menu[2] = "<TABLE cellpadding=5 cellspacing=0>"
menu[2] = menu[2] + MenuRow("WHO IS A JEW?", "../whoisjew.htm") + MenuRow("JEWISH GENEALOGY", "../genealogy.htm") + MenuRow("JEWISH POPULATION", "../populatn.htm") + MenuRow("MOVEMENTS", "../movement.htm") + MenuRow("ASHKENAZIC AND SEPHARDIC JEWS", "../ashkseph.htm") + MenuRow("ATTITUDES TOWARD NON-JEWS", "../gentiles.htm") + MenuRow("THE ROLE OF WOMEN", "../women.htm") + MenuRow("RABBIS, PRIESTS, ETC.", "../rabbi.htm") + MenuRow("PATRIARCHS AND ORIGINS", "../origins.htm") + MenuRow("MOSES, AARON AND MIRIAM", "../moshe.htm") + MenuRow("PROPHETS & PROPHECY", "../prophet.htm") + MenuRow("SAGES & SCHOLARS", "../sages.htm")
menu[2] = menu[2] + "</TABLE>"
menu[3] = "<TABLE cellpadding=5 cellspacing=0>"
menu[3] = menu[3] + MenuRow("LAND OF ISRAEL", "../israel.htm") + MenuRow("SYNAGOGUES, SHULS & TEMPLES", "../shul.htm")
menu[3] = menu[3] + "</TABLE>"
menu[4] = "<TABLE cellpadding=5 cellspacing=0>"
menu[4] = menu[4] + MenuRow("SIGNS & SYMBOLS", "../signs.htm") + MenuRow("JEWISH COOKING", "../food.htm")
menu[4] = menu[4] + "</TABLE>"
menu[5] = "<TABLE cellpadding=5 cellspacing=0>"
menu[5] = menu[5] + MenuRow("HEBREW ALPHABET", "../alephbet.htm") + MenuRow("HEBREW ROOT WORDS", "../root.htm") + MenuRow("YIDDISH", "../yiddish.htm") + MenuRow("EXPRESSIONS & GREETINGS", "../express.htm") + MenuRow("JEWISH NAMES", "../jnames.htm") + MenuRow("THE NAME OF G-D", "../name.htm") + MenuRow("TORAH", "../torah.htm") + MenuRow("TORAH READINGS", "../readings.htm") + MenuRow("PRAYERS & BLESSINGS", "../prayer.htm") + MenuRow("JEWISH LITURGY", "../liturgy.htm")
menu[5] = menu[5] + "</TABLE>"
menu[6] = "<TABLE cellpadding=5 cellspacing=0>"
menu[6] = menu[6] + MenuRow("JEWISH LAW", "../halakhah.htm") + MenuRow("TEN COMMANDMENTS", "../10.htm") + MenuRow("LOVE & BROTHERHOOD", "../brother.htm") + MenuRow("SPEECH & LASHON HA-RA", "../speech.htm") + MenuRow("DIETARY LAWS", "../kashrut.htm") + MenuRow("KOSHER SEX", "../sex.htm") + MenuRow("CHARITY", "../tzedakah.htm") + MenuRow("TREATMENT OF ANIMALS", "../animals.htm") + MenuRow("SACRIFICES & OFFERINGS", "../qorbanot.htm") + MenuRow("LIST OF THE 613 COMMANDMENTS", "../613.htm")
menu[6] = menu[6] + "</TABLE>"
menu[7] = "<TABLE cellpadding=5 cellspacing=0>"
menu[7] = menu[7] + MenuRow("JEWISH CALENDAR", "../calendar.htm") + MenuRow("CALENDAR: CLOSER LOOK", "../calendr2.htm") + MenuRow("SHABBAT", "../shabbat.htm") + MenuRow("SPECIAL SHABBATOT", "../special.htm") + MenuRow("JEWISH HOLIDAYS", "../holiday0.htm") + MenuRow("THE MONTH OF TISHRI", "../holiday1.htm") + MenuRow("ROSH HASHANAH", "../holiday2.htm") + MenuRow("DAYS OF AWE", "../holiday3.htm") + MenuRow("YOM KIPPUR", "../holiday4.htm") + MenuRow("FASTING TIPS", "../fasttips.htm") + MenuRow("SUKKOT", "../holiday5.htm") + MenuRow("KNOW YOUR ETROG", "../etrog.htm") + MenuRow("SHEMINI ATZERET AND SIMCHAT TORAH", "../holiday6.htm") + MenuRow("CHANUKKAH", "../holiday7.htm") + MenuRow("TU B'SHEVAT", "../holiday8.htm") + MenuRow("PURIM", "../holiday9.htm") + MenuRow("PESACH (PASSOVER)", "../holidaya.htm") + MenuRow("PESACH SEDER", "../seder.htm") + MenuRow("PESACH COOKING", "../kfpfood.htm") + MenuRow("COUNTING THE OMER", "../holidayb.htm") + MenuRow("SHAVU'OT", "../holidayc.htm") + MenuRow("TISHA B'AV", "../holidayd.htm") + MenuRow("ELUL AND SELICHOT", "../elul.htm") + MenuRow("MINOR FASTS", "../holidaye.htm") + MenuRow("ROSH CHODESH", "../chodesh.htm") + MenuRow("NEW HOLIDAYS", "../holidayf.htm") + MenuRow("BLESSING THE SUN", "../chamah.htm") + MenuRow("GENTILE'S GUIDE", "../holidayg.htm")
menu[7] = menu[7] + "</TABLE>"
menu[8] = "<TABLE cellpadding=5 cellspacing=0>"
menu[8] = menu[8] + MenuRow("BIRTH AND THE FIRST MONTH OF LIFE", "../birth.htm") + MenuRow("BAR MITZVAH, BAT MITZVAH AND CONFIRMATION", "../barmitz.htm") + MenuRow("MARRIAGE", "../marriage.htm") + MenuRow("DIVORCE", "../divorce.htm") + MenuRow("LIFE, DEATH AND MOURNING", "../death.htm") + MenuRow("OLAM HA-BA: THE AFTERLIFE", "../olamhaba.htm")
menu[8] = menu[8] + "</TABLE>"
menu[9] = "<TABLE cellpadding=5 cellspacing=0>"
menu[9] = menu[9] + MenuRow("BOOKS & PUBLISHERS", "../biblio.htm") + MenuRow("PRAYERS & BLESSINGS", "../prayref.htm") + MenuRow("GLOSSARY OF JEWISH TERMINOLOGY", "../glossary.htm")
menu[9] = menu[9] + "</TABLE>"
menu[10] = "";

function showMenu(num, obj) {
if (useMenus) {
	pos = getPos(obj);
	with (theMenu) {
		style.left=1;
		innerHTML = menu[num];
		style.visibility = "visible";
		if (num > 7) {  
			style.left=pos[0] + obj.offsetWidth - theMenu.offsetWidth;
		} else {
			style.left=pos[0];
		}
		style.top=pos[1] + obj.offsetHeight;
		if (window.innerHeight) {
			style.height = window.innerHeight - pos[1] - obj.offsetHeight - 10;
		} else {
			style.height = document.body.offsetHeight - pos[1] - obj.offsetHeight - 10;
		}
		style.overflow="auto";
		
	}
}
}

function hideMenu() {
if (useMenus) {
	theMenu.style.visibility = "hidden";
}
}

function getPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		do {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		} while (obj = obj.offsetParent);
		return [curleft,curtop];
	}
}

function MenuRow(Desc, URL) {
	return "<TR onMouseOut=\"hideMenu();\"><TD CLASS=\"pulldown\"><A HREF=\"" + URL + "\" CLASS=\"menulink\" TARGET=\"_self\">" + Desc + "</A></TD></TR>"	
}

function ShowDef(URL) {
if (useDefs) {
	with (theDef) {
		style.left=1;
		innerHTML="";
		innerHTML="<IFRAME SRC='" + URL + "' style='width: 350px; height=200px;' onMouseOut='hideDef();'>";
		if (getPos(URL)[0] > 600) {
			style.left = getPos(URL)[0] - 350 + URL.offsetWidth;
		} else {
			style.left = getPos(URL)[0];
		}
		style.top = getPos(URL)[1] + URL.offsetHeight;
		style.visibility = "visible";
	}
}	
return !useDefs;
}

function hideDef() {
if (useDefs) {
	theDef.style.visibility = "hidden";
	innerHTML="";
}
}