code: function hebElapsedDays(hYear){
  	// borrowed from original JS
  	var m_elapsed = 235 * Math.floor((hYear - 1) / 19) +
  		12 * ((hYear - 1) % 19) +
  		Math.floor(((((hYear - 1) % 19) * 7) + 1) / 19);
  
  	var p_elapsed = 204 + (793 * (m_elapsed % 1080));
  
  	var h_elapsed = 5 + (12 * m_elapsed) +
  		793 * Math.floor(m_elapsed / 1080) +
  		Math.floor(p_elapsed / 1080);
  
  	var parts = (p_elapsed % 1080) + 1080 * (h_elapsed % 24);
  
  	var day = 1 + 29 * m_elapsed + Math.floor(h_elapsed / 24);
  	var alt_day = day + ((parts >= 19440) ||
  		((2 == (day % 7)) && (parts >= 9924) && !(LEAP (hYear))) ||
  		((1 == (day % 7)) && (parts >= 16789) && LEAP (hYear - 1)));
  
  	return alt_day + ((alt_day % 7) === 0 ||
  		(alt_day % 7) == 3 ||
  		(alt_day % 7) == 5);
  }
docs: /* Days from sunday prior to start of Hebrew calendar to mean
  conjunction of Tishrei in Hebrew YEAR