function printJewishBirthday($birthday, $bornAtNight = false, $style = 0, $displayCurrent = false, $displayLink = true)
{
    $retval = "<div ";
    if ($style == 2 || $style == 4) {
        $retval .= "align='center'";
    }
    $retval .= "><fb:ref handle='Message'/>";
    if ($displayCurrent) {
        $retval .= "<fb:ref handle='Today_H'/><br />";
    }
    $retval .= "My Hebrew Birthday is: <br />";
    $ahebdate = explode("/", strGregToHeb($birthday, false, $bornAtNight));
    switch ($style) {
        case 4:
            //english
            $retval .= "<b>" . $ahebdate[1] . " " . getJewishMonthName($ahebdate[0], $ahebdate[2]) . "</b>";
            break;
        case 3:
            //english
            $retval .= "<b>" . $ahebdate[1] . " " . getJewishMonthName($ahebdate[0], $ahebdate[2]) . " " . $ahebdate[2] . "</b><br />";
            $retval .= "The next occurrence will be:<br />" . dateThisYear($ahebdate);
            break;
        case 2:
            //Hebrew
            $hebdate = strGregToHeb($birthday, true, $bornAtNight);
            $retval .= "<b>" . substr($hebdate, 0, strlen($hebdate) - 10) . "</b>";
            break;
        case 1:
        default:
            //Hebrew
            $retval .= "<b>" . strGregToHeb($birthday, true, $bornAtNight) . "</b><br />";
            $retval .= "The next occurrence will be:<br />" . dateThisYear($ahebdate);
    }
    if ($displayLink) {
        $retval .= "<br /><fb:ref handle='Explanation'/>";
    }
    return $retval . "</div>";
}
 public function getHebrewDate($format = 'shorteng')
 {
     $bornAtNight = $this->data['night'];
     switch (strtolower($format)) {
         case 'shorteng':
             return strGregToHeb($this->data['originalDate'], false, $bornAtNight);
             break;
         case 'longeng':
             $ahebdate = explode("/", strGregToHeb($this->data['originalDate'], false, $bornAtNight));
             return $ahebdate[1] . " " . getJewishMonthName($ahebdate[0], $ahebdate[2]) . " " . $ahebdate[2];
             break;
         case 'medeng':
             $ahebdate = explode("/", strGregToHeb($this->data['originalDate'], false, $bornAtNight));
             return $ahebdate[1] . " " . getJewishMonthName($ahebdate[0], $ahebdate[2]);
             break;
         case 'shortheb':
             return strGregToHeb($this->data['originalDate'], true, $bornAtNight);
             break;
         case 'longheb':
             return "Not Implemented";
             break;
     }
 }