/******************************************************************************************
*
* Definitions
*
* This file contains all the definitions of Jewish and Hebrew terms. This
* consists of 2 arrays and a lookup function. One array contains the defined
* words; the other the associated definitions to be displayed. Each word and its
* associated definition must have the same index.
*
*******************************************************************************************/

//******************************************************************************************
//	Global Arrays
//******************************************************************************************

var definedWords = [             // The defined words.
   "aliyah",
   "aliyot",
   "ark",
   "aron kodesh",
   "aufrufs",
   "baal keri'ah",
   "bet midrash",
   "bikur holim",
   "bimah",
   "brit milah",
   "chazan",
   "chazanim",
   "chazan shaynee",
   "chevra kadisha",
   "davening",
   "eruv",
   "eruv tavshilin",
   "gabbai",
   "gomel",
   "hagbahah",
   "hakafot",
   "halakhah",
   "halakhic",
   "humash",
   "kabalat shabbat",
   "kaddish",
   "kiddush",
   "kiddushim",
   "korbanot",
   "maariv",
   "mashgiach",
   "megillah",
   "minhah",
   "minyan",
   "mishnah",
   "mishnah berurah",
   "mohel",
   "musaf", 
   "parnass",
   "passover",
   "pidyon haben",
   "pirkay avot",
   "purim",
   "rosh hashanah",
   "rosh hodesh",
   "sedrah", 
   "selihot",
   "semikhah",
   "shabbat",
   "shaharit",
   "shavuot",
   "shofar",
   "shul",
   "simcha",
   "simhat torah",
   "seudah shleesheet",
   "sukkah",
   "talmud",
   "tish'ah b'av",
   "torah",
   "torahs",
   "yahrtzeit",
   "yizkors",
   "yom kippur",
   "yom tov"
   ];
var definitions = [              // The associated definitions.
   "<b>aliyah:</b> a call up to recite a<br />blessing over the Torah",
   "<b>aliyot:</b> plural of <b>aliyah</b>, a call up to<br />recite a blessing over the Torah",
   "<b>Ark or Aron Kodesh</b>: the Holy ark in a<br />synagogue containing the Torah scrolls",
   "<b>Aron Kodesh:</b> the Holy ark in a synagogue<br />containing the Torah scrolls",
   "<b>Aufruf:</b> a groom's aliyah (call to the<br />Torah) prior to the wedding",
   "<b>Baal Keri'ah:</b> the Torah reader",
   "<b>Bet Midrash:</b> study hall",
   "<b>Bikur Holim:</b> visiting and<br />extending aid to the sick",
   "<b>bimah:</b> elevated area or platform in a<br />synagogue where the \"action\" takes<br />place, including the leading of the prayer<br />services and the reading of the Torah",
   "<b>brit milah:</b> covenantal circumcision",
   "<b>chazan or hazan:</b> a cantor trained in music<br />who leads the congregation in prayer",
   "<b>chazanim or hazanim:</b> plural of <b>chazan</b>, a<br />cantor who leads the congregation in prayer",
   "<b>Chazan Shaynee or Hazan Shaynee:</b> Second cantor,<br />who also sometimes leads the congregation in<br />prayer and is a back-up for the cantor",
   "<b>Chevra Kadisha:</b> Jewish burial society",
   "<b>daven:</b> Yiddish for - to pray",
   "<b>Eruv:</b> an enclosure around a home or<br />community enabling the carrying of<br />objects within that enclosure<br />on the Sabbath",
   "<b>Eruv Tavshilin:</b> baked and cooked product<br />(usually matzah/bread and chicken/fish)<br />that is specially set up immediately prior<br />to a festival that starts on either Wednesday<br />night or Thursday night, and which allows<br />for baking and cooking on Friday for Shabbat",
   "<b>Gabbai:</b> a term denoting \"responsible for.\"<br />In many places, there is a <i>gabbai tsedakah</i><br />who is responsible to supervise the receipt<br />of and giving out the charity funds. In a<br />synagogue, the gabbai assists the Parnass.",
   "<b>Gomel:</b> blessing recited by someone to whom was<br />bestowed (gomel) good fortune; for example,<br />recovery from a serious illness or accident",
   "<b>hagbahah and glilah:</b> lifting the Torah (<b>hagbahah</b>)<br />and rolling and dressing it (<b>gelilah</b>) following<br />the conclusion of the reading",
   "<b>Hakafot:</b> a ceremony on Simhat Torah<br />in which the Torah scrolls are<br />carried around the synagogue",
   "<b>halakhah:</b> the collective body<br />of Jewish religious law",
   "<b>halakhah:</b> the collective body<br />of Jewish religious law",
   "<b>Humash or Chumash:</b> the Five<br />Books of Moses (Pentateuch)",
   "<b>Kabalat Shabbat:</b> Friday evening<br />service ushering in the Sabbath",
   "<b>Kaddish:</b> Doxology usually recited<br />by those in mourning period for<br />a deceased parent, sibling, child,<br />or spouse, and by one observing<br />the anniversary of such a death",
   "<b>kiddush:</b> technically - sanctification, recited on<br />the eve of a Shabbat or holy day, and in the<br />morning; but also, as used here, refers to the<br />meal or refreshments served when reciting<br />kiddush at the conclusion of services",
   "<b>kiddushim:</b> plural of <b>kiddush</b>, technically - sanctification,<br />recited on the eve of a Sabbath or holy day,<br />and in the morning; but, as used here, also refers<br />to the meal or refreshments served when reciting<br />kiddush at the conclusion of services",
   "<b>Korbanot:</b> text, recited at the<br />beginning of morning prayers,<br />describing the offerings made in<br />the Holy Sanctuary in Jerusalem",
   "<b>Maariv:</b> evening prayer service",
   "<b>mashgiach:</b> a person who supervises the<br />adherence to Jewish dietary laws in a<br />kosher establishment",
   "<b>Megillah:</b> a book in scriptures. There<br />are five,of which one, the Book<br />of Esther, is read during Purim",
   "<b>Minhah:</b> afternoon prayer service",
   "<b>minyan:</b> a quorum  of ten male<br />Jewish adults required to<br />have a public prayer service ", 
   "<b>Mishnah:</b> the collection of Jewish<br />oral law from the Tannaitic period,<br />forming the basis of the Talmud",
   "<b>Mishnah Berurah:</b> a commentary on<br />the Code of Jewish law dealing<br />with daily practice, written by<br />Rabbi Yisrael Meir Kagan",
   "<b>mohel:</b> person who performs the<br />cicumcision at a brit milah",
   "<b>Musaf:</b> an additional prayer service<br />following the morning prayer service<br />on the Sabbath and Jewish holidays", 
   "<b>Parnass:</b> the person charged with giving<br />out the honours; such as the aliyot",
   "<b>Passover:</b> Jewish festival that<br />commemorates the exodus<br />of the Israelites from Egypt",
   "<b>Pidyon haBen:</b> redemption of the<br />firstborn son from priestly obligations",
   "<b>Pirkay Avot:</b> compilation of the ethical teachings<br />and maxims of the Rabbis of the 1st and 2nd<br />centuries and part of the Mishnah (collection<br />of Jewish oral law)",
   "<b>Purim:</b> Jewish festival celebrated to<br />commemorate of the deliverance<br />of the Jews in Persia from destruction",
   "<b>Rosh Hashanah:</b> the two-day Jewish New Year<br />that launches the focus on repentance which<br />concludes with the holy day of Yom Kippur.",
   "<b>Rosh Hodesh:</b> a Biblically mandated holy<br />day celebrating the beginning of each<br />new month in the Jewish calendar",
   "<b>sedrah:</b> section of the Torah<br />chanted or read on the Sabbath",
   "<b>Selihot:</b> penitentials (poems & prose)<br />recited in advance of the High Holy Days,<br />during the ten days of repentance,<br />and on fast days",
   "<b>Semikhah:</b> ordination of a rabbi within Judaism",
   "<b>Shabbat:</b> Sabbath",
   "<b>Shaharit:</b> morning prayer service",
   "<b>Shavuot:</b> Jewish festival that<br />commemorates God's giving of<br />the Torah to the people of Israel",
   "<b>Shofar:</b>a horn, traditionally that<br />of a ram, used for Jewish religious<br />purposes, mainly on Rosh HaShanah,<br />to awaken and to inspire",
   "<b>shul:</b> a synagogue",
   "<b>simcha or simhah:</b> a festive occasion,<br />such as a Bar or Bat Mitzvah,<br />wedding, etc. ",
   "<b>Simhat Torah:</b> Jewish festival that<br />marks the completion of the annual<br />cycle of the reading of the Torah",
   "<b>Seudah Shleesheet:</b> the \"third meal,\"<br />eaten in the late afternoon on<br />the Sabbath",
   "<b>Sukkah:</b> a booth or hut used during<br />the Jewish festival of Sukkot as<br />a temporary dining or living area",
   "<b>Talmud:</b> collection of Jewish writings related to the<br />practical application of Judaic law and tradition<br />(refers to either the Babylonian Talmud or<br />the shorter Jerusalem Talmud)",
   "<b>Tish'ah B'Av:</b> a major fast day in the Jewish<br />calendar commemorating the destruction<br />of the 1st and 2nd Temples in Jerusalem",
   "<b>Torah:</b> a parchment scroll on which the Five Books<br />of Moses is written, used in synagogue services",
   "<b>Torah:</b> a parchment scroll on which the Five Books<br />of Moses is written, used in synagogue services",
   "<b>Yahrtzeit:</b> annual anniversary of<br />the day of death of a relative",
   "<b>Yizkor:</b> special service for commemorating<br />the dead, held on major Jewish holy days",
   "<b>Yom Kippur:</b> Day of Atonement,<br />a full day fast which is spent<br />in prayer and introspection",
   "<b>Yom Tov:</b> a major Jewish<br />festival or holy day"
];

/*****************************************************************************
*
*       lookupDefinition - Lookup a word and return its definition
*
*****************************************************************************/

function lookupDefinition (

	word)								// Word to lookup.

{
	// Local work variables.
   
   var i;
   
   // Find the word in one array and return the associated definition from the
   // other. If ther word cannot be found, return NULL.
   
   for (i = 0;  i < definedWords.length;  i++)
      if (word.toLowerCase() == definedWords[i])  return definitions[i];
   return null;
}


