/**
 * navText.js
 * @author TorahWeb
 * @copyright The TorahWeb Foundation, 2007. All Rights Reserved.
 */

function setNavText(textName)
{
	var txt = window[textName];
	var content = document.getElementById("navContent");
	content.innerHTML = txt;
}


var thisWeektext = ' <div align="justify" class="text2">This Week\'s Dvar Torah</div> \
						   <div align="justify" class="text1"> \
								<P>Every week a new Dvar Torah is emailed out to our list and added to the site. Click this link \
								to read this week\'s dvar Torah</P>\
							</div>';

var dttext = ' <div align="justify" class="text2">Dvar Torah Archive</div> \
						   <div align="justify" class="text1"> \
								<P>An archive of every week\'s dvar Torah from TorahWeb going back to February 1999</P>\
							</div>';

var audioText = '<div align="justify" class="text2">Yom Iyun Audio &amp; Video</div> \
						   <div align="justify" class="text1"> \
								<P>TorahWeb organizes yemei iyun on contemporary religious and social issues at regular \
									intervals. The audio is available for listening and/or downloading as MP3 files. \
									You can also watch the videos of these yemei iyun.</P>\
							</div>';
							
var videoText = '<div align="justify" class="text2">Yom Iyun Video</div> \
						   <div align="justify" class="text1"> \
								<P>TorahWeb organizes yemei iyun on contemporary religious and social issues at regular \
									intervals. You can watch the videos of these yemei iyun on TorahWeb.org.</P>\
							</div>';

var subscribeText = '<div align="justify" class="text2">Subscribe</div> \
						   <div align="justify" class="text1"> \
								<P>Subscribe to our email list to receive: \
									<UL> \
										<LI>Weekly divrei Torah in your inbox </LI> \
										<LI>Notification when new audio/video is available </LI> \
										<LI>Yom iyun information </LI> \
										<LI>Publication anouncements </LI> \
									</ul> \
								</P>\
							</div>';

var ebookText = 		'<div align="justify" class="text2">Dvar Torah eBook</div> \
						   <div align="justify" class="text1"> \
								<P>Download the entire archive of TorahWeb divrei Torah as an eBook.</P>\
							</div>';
							
var ravText = 		'<div align="justify" class="text2">Rav zt"l Shiurim</div> \
						   <div align="justify" class="text1"> \
								TorahWeb has published Rav Yosef Dov Soloveitchik\'s zt"l Gemara shiurim, as recorded by Rabbi Hershel Schachter. \
								Volumes currently available: \
								<OL> \
									<LI>Shabbos </LI> \
										<LI>Gittin </LI> \
										<LI>Kiddushin </LI> \
										<LI>Pesachim / Rosh Hashana / Yoma / Megillah </LI> \
									<LI>Krias haTorah, Tzitzis, Tefillin </LI> \
								</OL> \
							</div>';
							
var contactText = '<div align="justify" class="text2">Contact Us</div> \
						   <div align="justify" class="text1"> \
								<P>Contact us via our web form or by postal mail at: <BR> \
									The TorahWeb Foundation<BR> \
									94 Baker Ave.<BR> \
									Bergenfield, N.J. 07621<BR> \
								</P>\
							</div>';

var aboutText = ' <div align="justify" class="text2">About TorahWeb.org</div> \
						   <div align="justify" class="text1"> \
								<P>The TorahWeb Foundation was founded in 1999 at the initiative of members of \
								the community. Its goal is to disseminate divrei Torah and hashkafa, with special \
								attention to contemporary religious and social issues. TorahWeb\'s board consists \
								of Rav Michael Rosensweig, Rav Hershel Schachter, Rav Mayer Twersky, and \
								Rav Mordechai Willig. The divrei Torah on this site were written by the \
								respective rabbis themselves.</P>\
								<P>The TorahWeb Foundation is a 501(c)(3) not-for-profit organization.</P>\
							</div>';

var donateText = ' <div align="justify" class="text2">Make a Donation </div> \
						   <div align="justify" class="text1"> \
<P>Neither the authors/speakers nor any other individuals involved in TorahWeb earn any money from TorahWeb. \
In addition, shuls receive the <i>leil iyun</i> programming free of charge. \
Your donations pay for our web hosting, audio/video equipment, PR for TorahWeb <i>leilei iyun</i>, etc. \
</P> \
<P>The TorahWeb Foundation is a 501(c)(3) not-for-profit organization. All donations are tax deductable</P> \
							</div>';

var parnassaText = ' <div align="justify" class="text2">A Ben Torah\'s Guide to Parnassa </div> \
						   <div align="justify" class="text1"> \
<P>The goal of this publication is to share with current <i>talmidim</i> the insight and experience of <i>bnai Torah</i> who are, \
<i>b\'ezras</i> Hashem, succeeding both in their profession and in other aspects of life. They discuss how to prepare for and \
succeed in their profession, as well as how to strike a proper balance between <i>hishtadlus</i> for <i>parnassa</i> and other <i>mitzvos</i>. \
</P> \
</div>';
							
/**
 * rebbeim.js
 * @author TorahWeb
 * @copyright The TorahWeb Foundation, 2007. All Rights Reserved.
 */

var lastAuth = null;

function setAuthor(authName)
{
	//clear border from previous author
	if(lastAuth != null && lastAuth != "auths")
	{
		var imgDiv = document.getElementById(lastAuth);
		if(imgDiv != null)
		{
			imgDiv.setAttribute("class", "noBorder");
			imgDiv.setAttribute("className", "noBorder");
		}
	}

	//set speaker info
	var txt = window[authName];
	var content = document.getElementById("speakers");
	content.innerHTML = txt;
	
	//add highlight border
	var imgDiv = document.getElementById(authName);
	if(imgDiv != null)
	{
		imgDiv.setAttribute("class", "yesBorder");
		imgDiv.setAttribute("className", "yesBorder");		
	}
	
	//save name for next pass through
	lastAuth = authName;
}

var auths = "<div class='text3'>Authors / Speakers</div><div class='text4'>&nbsp;</div>";

var rhab = "<div class='text3'>Rabbi Yakov Haber - click his picture to go to his content</div> <div class='text4'>Rebbe, Shapell's/Yeshivat Darche Noam, Michlala, and Sha'alvim for Women</div>";

var rneu = "<div class='text3'>Rabbi Yaakov Neuburger - click his picture to go to his content</div> <div class='text4'>Rabbi, Congregation Beth Abraham of Bergenfield, N.J.; Rosh Yeshiva, Rabbi Isaac Elchanan Theological Seminary</div>";

var rros = "<div class='text3'>Rabbi Michael Rosensweig - click his picture to go to his content</div> <div class='text4'>Rosh Yeshiva and Rosh Kollel, Rabbi Isaac Elchanan Theological Seminary</div>";
 
var rsac = "<div class='text3'>Rabbi Yonason Sacks - click his picture to go to his content</div> <div class='text4'>Rabbi, Agudas Yisroel of Passaic, N.J.; Rosh Yeshiva, Rabbi Isaac Elchanan Theological Seminary</div>";

var rsch = "<div class='text3'>Rabbi Hershel Schachter - click his picture to go to his content</div> <div class='text4'>Rosh Yeshiva and Rosh Kollel, Rabbi Isaac Elchanan Theological Seminary</div>";

var rsob = "<div class='text3'>Rabbi Zvi Sobolofsky - click his picture to go to his content</div> <div class='text4'>Rabbi, Ohr haTorah of Bergenfield, N.J.; Rosh Yeshiva, Rabbi Isaac Elchanan Theological Seminary</div>";

var dtwe = "<div class='text3'>Rabbi Dr. Abraham J. Twerski - click his picture to go to his content</div><div class='text4'>&nbsp;</div>";

var rtwe = "<div class='text3'>Rabbi Mayer Twersky - click his picture to go to his content</div> <div class='text4'>Rosh Yeshiva, Rabbi Isaac Elchanan Theological Seminary</div>";

var rwil = "<div class='text3'>Rabbi Mordechai Willig - click his picture to go to his content</div> <div class='text4'>Rabbi, Young Israel of Riverdale, N.Y.; Rosh Yeshiva and Rosh Kollel, RIETS; Sgan Av Beis Din, Beth Din of America</div>";

var ryud = "<div class='text3'>Rabbi Benjamin Yudin - click his picture to go to his content</div> <div class='text4'>Rabbi, Congregation Shomrei Torah of Fairlawn, N.J.; Rebbe, Mechina Program, Yeshiva University</div>";
