
// draw left side of calendar page list of events
// Parameters to DrawConcert are:
//   parameter 1 - date/time of event
//   parameter 2 - logo placement (see list in DrawLogo function comments)
//   parameter 3 - type of event
//   parameter 4 - event venue
//   parameter 5 - event location (city, state)
function DrawCalendarLeft() {

 DrawConcert( "May 3, 7:30pm", 0, "3 Degrees Band Tournament FINALS", "<a href=\"http://www.club3degrees.com\" class=\"contentLink\">Club 3 Degrees</a>", "Minneapolis, Minnesota<BR><I>Cover: $10<BR>Sara would greatly appreciate your support at this event.  Points are awarded for fan attendance.  Sara and the Elements (the whole crew!!) play at 9:50pm.</I>" )

  DrawConcert( "May 4, 9:30am & 11:00am", 0, "", "<a href=\"http://www.newhopechurchmn.org\" class=\"contentLink\">New Hope Church</a>", "New Hope, Minnesota" )

  DrawConcert( "May 11, 10:00am", 0, "", "<a href=\"http://www.worldwidelighthouse.com\" class=\"contentLink\">Lighthouse Church</a>", "Rosemount, Minnesota" )

  DrawConcert( "May 11", 0, "Mother's Day Brunch & Concert", "Trocaderos Restaurant", "Minneapolis, Minnesota<BR><i>Doors Open: 1:00pm<BR>Music starts: 2:00pm<BR>Tickets & Info: 612-465-0440<BR>\"All You Can Eat Buffet\"<BR>Adults: $16.95<BR>Kids: $9.95<BR>Price includes one non-alcoholic<BR>beverage and Admission</i>" )

  DrawConcert( "May 18, all AM services", 0, "", "Westwood Church", "Chanhassen, Minnesota" )

 DrawConcert( "May 24, 7:30pm", 0, "with <a href=\"http://www.pedereide.com\" class=\"contentLink\">Peder Eide</a>", "Mabel Tainter Theatre", "Menomonee, Wisconsin" )

} 

 
// draw right side of calendar page list of events
// Parameters to DrawConcert are:
//   parameter 1 - date/time of event
//   parameter 2 - logo placement (see list in DrawLogo function comments)
//   parameter 3 - type of event
//   parameter 4 - event venue
//   parameter 5 - event location (city, state)
function DrawCalendarRight() {
 DrawConcert( "June 8", 0, "with <a href=\"http://www.pedereide.com\" class=\"contentLink\">Peder Eide</a>", "A Taste of Summer Music Festival", "Waukesha, Wisconsin" )

  DrawConcert( "June 9, 9:15am", 0, "Women's Connection Breakfast", "", "St. Cloud, Minnesota" )

  DrawConcert( "June 10, 10:30am", 0, "Women's Connection Luncheon", "", "Princeton, Minnesota" )

  DrawConcert( "June 22, 12:00pm-5:00pm", 0, "Brooklyn Park Tater Daze", "", "Brooklyn Park, Minnesota<i><BR>Free and open to the public</i>" )

  DrawConcert( "June 24-26, 7:00pm each night", 0, "<a href=\"http://www.bthetree.org\" class=\"contentLink\">EFCA Leadership Conference</a>", "", "St. Louis, Missouri<BR><i>Free and open to the public</i>" )

  DrawConcert( "July 4, 1:30pm-2:30pm", 0, "with <a href=\"http://www.pedereide.com\" class=\"contentLink\">Peder Eide</a>", "Taste of Minnesota<BR>Heart of the City stage", "St. Paul, Minnesota<BR><i>Free and open to the public</i>" )

  DrawConcert( "July 5, 9:00pm-10:00pm", 0, "Taste of Minnesota", "Heart of the City Stage", "St. Paul, Minnesota<BR><i>Free and open to the public</i>" )

  DrawConcert( "July 19, 1:00pm-1:45pm", 0, "<a href=\"http://www.sonshinefestival.com\" class=\"contentLink\">SONSHINE Music Festival</a>", "Main Stage", "Willmar, Minnesota" )

}


// draw upcoming events on the main page
function DrawMainPageEvents() {

  document.writeln( '<CENTER>' )
  document.writeln( '<SPAN class="homeConcertHeader">' )
  document.writeln( 'UPCOMING EVENT!</SPAN><BR><br>' )


  // draw upcoming event(s) here.  
  DrawMainPageEvent( "Saturday, May 13, 7:00pm", "UWEC Gospel Choir concert featuring Sara Renner & the Elements", "University of Wisconsin - Eau Claire", "Eau Claire, Wisconsin" )



//  Separate each call to DrawMainPage Event with multiple breaklines (<BR>) like the line below
//  document.writeln( '<br><br><br>' )


  document.writeln( '</CENTER>' )

}


// draw upcoming Mpls Live events on the main page
function DrawMplsLiveEvents() {

  document.writeln( '<SPAN class="homeLiveText">' )
  document.writeln( '<ul>' )

//  DrawMplsLiveEvent( "January 19, 2006", "7:30-8:00 Christoson<BR>8:30-10:30 Sara Renner & the Elements" )

  DrawMplsLiveEvent( "May 18, 2006", "7:30-10:30pm featuring Sara Renner & the Elements<BR>Special CD Release Celebration for Tonia Hughes, \"Just for Hymn\".<BR>Come early (7:30pm) for cake and to meet Tonia!" )
  DrawMplsLiveEvent( "June 15, 2006", "" )
  DrawMplsLiveEvent( "July 20, 2006", "" )

  document.writeln( '</ul>' )
  document.writeln( '</SPAN>' )

}


// logo alignment values
//   0 - no logo
//   1 - Elements of the Journey left
//   2 - Elements of the Journey right
//   3 - Savior of All left
//   4 - Savior of All right
function DrawLogo( alignment ) {
  if ( alignment > 0 ) {
    alignString = (alignment == 1 || alignment == 3) ? "left" : "right"
    logoPicture = (alignment == 1 || alignment == 2) ? 
                   "images/elements_small.jpg" : "images/soa_small.jpg"
    document.writeln( '  <IMG SRC="' + logoPicture + 
                      '" align="' + alignString + '">' )
  }
}


// draw information for an event on the calendar page
function DrawConcert( dateTime, logoAlignment, concertInfo, venue, location ) {
  DrawLogo( logoAlignment )
  document.writeln( '  <SPAN class="concertDate">' + dateTime + '<BR></SPAN>' )
  document.writeln( '  <SPAN class="concertInfo">' )

  if ( concertInfo != "" ) {
    document.writeln( '  ' + concertInfo + '<BR>' )
  }

  if ( venue != "" ) {
    document.writeln( '  ' + venue + '<BR>' )
  }

  if ( location != "" ) {
    document.writeln( '  ' + location + '<P>' )
  } else {
    document.writeln( '  <P>' )
  }
  
  document.writeln( '  </SPAN>' ) 
}


// draw an upcoming event on the main page
//
// dateTime - date and time of event
// eventType - type of event (Mpls Live, full concert, ...)
// venue - where event takes place (Club 3 Degrees, Hosanna Lutheran, ...)
// location - city/state of event
function DrawMainPageEvent( dateTime, eventType, venue, location ) {
  document.writeln( '<SPAN class="homeConcertText">' )

  document.writeln( '<b>' + dateTime + '</b><br>' )
  document.writeln( eventType + '<br>' )
  document.writeln( venue + '<BR>' )
  document.writeln( location + '<BR>' )

  document.writeln( '</SPAN>' )
}


// draw an upcoming Mpls Live event on the main page
//
// date - date of the event
// eventDesc - schedule for event, special guests, etc. (not required)
function DrawMplsLiveEvent( date, eventDesc ) {

  document.writeln( '<li> <SPAN class="homeLiveText">' + date + '</SPAN><br>' )
  document.writeln( '<SPAN class="homeLiveSubText">' )
  document.writeln( '<i>' + eventDesc + '</i></SPAN><p>' )



}


