//----------------------------------------------------------------------
//-           Temple Emanu-El Donations Submission Form
//-          (Based on Temple Beth-Ami's Donations Form)
//-     (Source at: http://www.bethami.net/js/tbaDonationForm.js)
//-
//- This form allows users to make online donations to the synagogue.
//-
//- Users can select the fund or funds to donate to, and the amount they
//- wish to donate. User may optionally indicate who a donation is
//- dedicated to, and who should be notified of the donation.
//-
//- Once a user has entered at least one donation amount to one fund,
//- and has pressed the "Google Checkout" button on the page, the user
//- is taken to Google Checkout for credit card payment of the donation.
//----------------------------------------------------------------------

  //--------------------------------------------------------------------
  //- All supporting Javascript code can be found at:
  //-   www.bethami.net/js/tbaDonationFunctions.js
  //--------------------------------------------------------------------

  //--------------------------------------------------------------------
  //- Global Variable: tbaAllFunds
  //-
  //- This LONG data structure is a 3-level deep array.
  //- The structure is:
  //-
  //- Level 0: Each Element is an array that contains a group of funds.
  //-          These groups are displayed as separate sections.
  //-          The version below has Income and Endowment funds.
  //-
  //-          e.g. fundGroup = tbaAllFunds[i];
  //-
  //- Level 1: Each Element describes an individual fund, which includes
  //-          a fund Name and an optional Description.
  //-          The FIRST element of the array is the section header and
  //-          section description. The Funds themselves are listed
  //-          starting at the second element.
  //-
  //-          e.g. fund = fundGroup[j];
  //-
  //- Level 2: The first element is the fund Name.
  //-          The second element is the fund Description.
  //-
  //-          e.g. name = fund[0]; desc = fund[1];
  //--------------------------------------------------------------------

  var tbaAllFunds =
  [
 //- These are the General Operations Funds
   [
    [
     "OPERATIONS",
     " "
    ],[
     "LECH LECHA OPERATING ENDOWMENT",
    "An endowment fund supporting the ongoing operations of Temple Emanu-El"
     ],[
     "GENERAL GIFT FUND",
      "Provides support for ongoing operations of Temple Emanu-El"
//End of Operations
    ]
   ],
      //- These are the Building and Grounds Funds
   [
    [
     "BUILDING AND GROUNDS",
     "  "
    ],[
      "FUND FOR LIFE",
     "A capital fund supporting building renovation and maintenance "
    ],[
     "ARTS AND DECOR FUND",
"Supports and maintains the Rosa and Nathan Rosen Foyer"
    ],[
     "THEODORE D. BIRNKRANT MEMORIAL GARDEN CHAPEL FUND",
  "Established to create and maintain a chapel garden in memory of Theodore Birnkrant"
    ],[
     "BUILDING AND MAINTENANCE FUND",
"Supports maintenance of the building and grounds of Temple Emanu-El"
    ],[
     "ANN JOSPEY MEMORIAL SANCTUARY FUND",
"Supports maintenance and upkeep of the Ann Jospey Sanctuary"
    ],[
     "PATRICIA MODELL ROOM FUND",
"Supports maintenance and upkeep of the Patricia Modell Room"
//End of Building and Grounds Funds
    ],[
      "LEE WOLIN MEMORIAL AITZIM CHAYIM FUND ",
               "Supports the planting of trees at Temple Emanu-El "    
      ]
   ],
//- These are the Religious Funds
   [
    [
     "WORSHIP",
     " "
    ],[
     "NORMAN ROSE CANTOR FUND",
    "Established in memory of Cantor Norman Rose, to support the salary of a full-time Cantor"
        ],[
     "MUSIC FUND ",
"Supports and promotes music at Temple Emanu-El"
    ],[
     "PRAYER BOOK FUND",
"Supports the purchase of prayer books"
    ],[
     "WILLIAM H. RATTNER MEMORIAL FUND FOR THE PRESERVATION OF TORAHS",
"Supports the maintenance and display of our Torahs"
    ],[
     "YOUTH CHOIR FUND ",
"Supports the Youth Choir at Temple Emanu-El"
    ],[
      "THE STELLA COLE MEMORIAL FUND",
           "Supports and maintains Torah ornamentation"
    ],[
     "AMY MARGOLIS SILBERMAN FLOWER FUND",
"Supports the purchase of flowers for the High Holy Days"
 ]
   ],
 //These are the Youth Funds
  [
   [
     "YOUTH",
     " "
     ],[
     "VICTORIA BEN-MOSHE MEMORIAL YOUTH ENDOWMENT FUND",
      "An endowment fund supporting the TEMTY youth program"  
     ],[
     "MASON-STEINHARDT-JACOBS ENDOWMENT FUND",
      "An endowment fund providing scholarships to send deserving youth to Israel"
       ],[
      "ROBERT ALAN GOLDS MEMORIAL FUND",
          "Promotes social programs for Temple youth groups"
    ],[
      "HERMAN KESSELL MEMORIAL FUND",
          "Provides awards to High School graduates of Temple Emanu-El "
    ],[
      "LARRY STRAGER MEMORIAL PHOTOGRAPHY FUND ",
       "Supports professional photographs of the Temple's Religious School and youth groups"    
    ],[
     "B'RAI-SHEIT NURSERY SCHOOL FUND",
"Underwrites the cost of special equipment for the Nursery School"
    ],[
     "PARENT TEACHER ORGANIZATIONS (PTO) FUND ",
  "Administered by the Parent Teacher Organization to support the programs and activities of the PTO"
    ],[
     "RABBI MILTON ROSENBAUM STUDENT LEADERSHIP FUND",
"Supports Temple students who pursue rabbinic, cantorial, or educational studies at HUC-JIR or attend the Kutz Leadership Institute"
    ],[
     "BEVERLY GOLD MEMORIAL COLLEGE STUDENT FUND",
"Supports programs for college students"
    ],[
     "LOIS GOODE NFTY SCHOLARSHIP FUND",
  "Fund administered by the Sisterhood to support Youth Groups"
    ],[
     "ELLA AND DAVID KAATZ YOUTH SCHOLARSHIP FUND",
"Supports Youth Leadership development"
    ],[
     "EDGAR & CECELIA SCHUSSEL SCHOLARSHIP FUND ",
"Provides scholarships for Temple students who are in need to obtain a religious education"
    ],[
     "ZUSSMAN-UNGER YOUTH SCHOLARSHIP FUND ",
"Scholarships for teenagers to attend the Kutz Leadership Intitute, URJ-sponsored camps, and NFTY regional events" 
    ]
  ],
     //- These are the Tikkun Olam Funds
   [
    [
     "SOCIAL ACTION AND CARING",
     " "
    ],[
     "JANE JOSPEY COBB SPECIAL NEEDS ENDOWMENT FUND",
       "An endowment fund supporting students and members with special needs"
    ],[
     "HARWITH FAMILY FUND FOR RESETTLEMENT OF NEW AMERICANS",
"Helps new immigrants to the United States"
    ],[
     "BEA SACKS SOCIAL ACTION FUND",
"A fund administered by the Social Action Committee to promote social justice"
    ],[
     "RUTH AND MAXWELL STETTNER CARING COMMUNITY FUND",
"Provides support and care to families of Temple Emanu-El in their time of need"
]
   ], 
   //- These are the Discretionary Funds
  [
    [
     " DISCRETIONARY ",
     " "
    ],[
      "RABBI'S DISCRETIONARY FUND",
       "A fund administered at the discretion of the Rabbi of Temple Emanu-El"
    ],[
      "CANTOR'S DISCRETIONARY FUND",
 "A fund administered at the discretion of the Cantor of Temple Emanu-El "
    ],[
      "PRESIDENT'S DISCRETIONARY FUND",
 "A fund administered at the discretion of the current President of Temple Emanu-El"
    ],[
      "DR. WARREN EDER MEMORIAL FUND",
           "A fund established in memory of Past President Warren 'Buddy' Eder "
]
   ],
//These are the Education and Library Funds
 [
    [
     " EDUCATION AND LIBRARY ",
     " "
    ],[
     "MILTON RIBIAT MEMORIAL TEACHER ENRICHMENT FUND",
"Administered by the Director of Education for teacher enrichment"
    ],[
     "SARAH SCHMIER LIBRARY FUND ",
"Supports the purchase of books for the Temple's library"
    ],[
     "SASSON SHAYA LIBRARY FUND ",
"Supports the purchase of books, furniture, or technology for the Temple's library"
    ],[
     "DR. MAURICE B. WEINER AND DR. RICHARD A. WEINER MEMORIAL CHILDREN'S BOOK FUND",
"Supports the purchase of children's books for the Temple's library"
    ],[
     "BEATRICE AND LOUIS WEINSTEIN SCHOLARSHIP FUND",
"Funds an annual adult education speaker"
    ],[
     "SAMUEL HAMBURGER ENDOWMENT",
      "An endowment fund supporting a Scholar-in-Residence program"     
      ],[
     "CHARLES AND MIRIAM HAMBURGER EDUCATION FUND",
"Supports Adult Education at Temple Emanu-El"
    ]
   ]

     ];
  //- End of tbaAllFunds

  //--------------------------------------------------------------------
  //- Create and display the Donation Form
  //--------------------------------------------------------------------

  tbaDisplayDonationForm(tbaAllFunds);

  //--------------------------------------------------------------------


