
/***************************************
 *           jevent_loc.js             *
 ***************************************
 * Localized functions for             *
 * Jewish holidays and events          *
 ***************************************
 * History														 *
 *  13/12/2004: v1.2									 *
 ***************************************
 * December 31, 2004 - Tevet 19, 5765  *
 *  v1.21                              *
 *                                     *
 * Changed html extensions to php.     *
 ***************************************
 * (c) Gabriel Zerbib,                 *
 *   gabriel@bumpt.net                 *
 *   http://www.bumpt.net              *
 *                                     *
 * It is strictly forbidden to use or  *
 * reproduce all or parts of this      *
 * program without author's explicit   *
 * permission.                         *
 * Commercial use of this program is   *
 * subject to purchase. Please contact *
 * the author.                         *
 ***************************************/

JEvent.prototype.localize = function()
{
	switch(this.type)
	{
		case HOLIDAYS.ROSH_HASHANA:	this.name = "Rosh Hashana";		this.link = "roshhashana.php"; break;
		case HOLIDAYS.GDALIA:		this.name = "Jeûne de Guédalia";	this.link = "gdalia.php"; break;
		case HOLIDAYS.YOM_KIPPUR:	this.name = "Yom Kippour";		this.link = "kipour.php"; break;
		case HOLIDAYS.SUCCOT:		this.name = "Souccot";			this.link = "souccot.php"; break;
		case HOLIDAYS.HOSHAANA_RABBA:	this.name = "Hoshaâna Rabba";		this.link = "hoshaanaraba.php"; break;
		case HOLIDAYS.SHMINI_ATSERET:	this.name = "Shemini Atséret";		this.link = "shminiatseret.php"; break;
		case HOLIDAYS.SIMCHAT_TORAH:	this.name = "Simchat Torah";		this.link = "simchattorah.php"; break;
		case HOLIDAYS.CHANUKA:		this.name = "Hhanouka";			this.link = "chanuka.php"; break;
		case HOLIDAYS.TEVET_10:		this.name = "Jeûne du 10 Tevet";	this.link = "10tevet.php"; break;
		case HOLIDAYS.SHVAT_15:		this.name = "Tou bi Shvat";		this.link = "15shvat.php"; break;
		case HOLIDAYS.PURIM_FAST:		this.name = "Jeûne d'Esther";			this.link = "pourim.php"; break;
		case HOLIDAYS.PURIM:		this.name = "Pourim";			this.link = "pourim.php"; break;
		case HOLIDAYS.PESACH:		this.name = "Pessahh";			this.link = "pesach.php"; break;
		case HOLIDAYS.YOM_HASHOA: this.name = "Yom haShoa"; this.link = "yomhashoa.php"; break;
		case HOLIDAYS.YOM_HAATSMAUT:	this.name = "Yom ha Âtsma'out";		this.link = "yomhaatsmaout.php"; break;
		case HOLIDAYS.OMER_33:		this.name = "Lag ba 'Omer";		this.link = "33omer.php"; break;
		case HOLIDAYS.SHAVUOT:		this.name = "Shavou'ot";		this.link = "shavuot.php"; break;
		case HOLIDAYS.TAMUZ_17:		this.name = "Jeûne de Tamouz";		this.link = "17tamuz.php"; break;
		case HOLIDAYS.AV_9:		this.name = "Tisha bé Av";		this.link = "9av.php"; break;
	}
}

JEvent.prototype.prefix = function()
{
	switch(this.format())
	{
		case "AND": return "les";
		case "": return "le";
		default: return "du";
	}
}

JEvent.prototype.conj = function()
{
	switch(this.format())
	{
		case "AND": return "et";
		case "FROM_TO": return "au";
		default: return "";
	}
}
