/* Event Functions for PMI website.

Author: Brendan O'Connor
Date: December 20, 2003

Author: Ray Hope
Date: July 31, 2007

Updated: Chris Gumprich
Date: September 14, 2009
- updated to handle external URLs
*/

var eventDB = new Array()

function loadEventDB()
{


eventDB[eventDB.length] = loadEvent( "2010/02/25", "2010/02/25",	"Feb 25"
																, ""
																, "", ""
																, "PMI Manitoba Recognition Event"
                                , ""
																, ""
                                , ""
																, ""
																, ""
                                , ""
																, "", "0", "",
                                "https://pmi.olasoft.com/viewEvent.html?no_header=true&productId=2430");
                                
eventDB[eventDB.length] = loadEvent( "2010/03/18", "2010/03/18",	"Mar 18"
																, ""
																, "", ""
																, "PMI Manitoba Curling Funspiel"
                                , ""
																, ""
                                , ""
																, ""
																, ""
                                , ""
																, "", "0", "",
                                "https://pmi.olasoft.com/viewEvent.html?no_header=true&productId=4754");	
                                
eventDB[eventDB.length] = loadEvent( "2010/03/16", "2010/03/16",	"Mar 16"
																, ""
																, "", ""
																, "2010 Annual General Meeting"
                                , ""
																, ""
                                , ""
																, ""
																, ""
                                , ""
																, "", "0", "",
                                "https://pmi.olasoft.com/viewEvent.html?no_header=true&productId=4733");  	                                

eventDB[eventDB.length] = loadEvent( "2010/03/18", "2010/03/18",	"Mar 18"
																, ""
																, "", ""
																, "PMP & CAPM Study Group Information Session"
                                , ""
																, ""
                                , ""
																, ""
																, ""
                                , ""
																, "", "0", "",
                                "https://pmi.olasoft.com/viewEvent.html?no_header=true&productId=4758");  
                                
  return eventDB;
}

function loadEvent( aBeginDate, aEndDate, aDates, aTime, aLocation, aHeader, aTitle, aBody, aSpeaker, aBio, 
                    aRegistrationFees, aRegisterInstructions, aContactInfo, aDetailLink, aRegisterId, aRepNo,
                    aExternalURL)
{
  var oneRecord = new Object()
  oneRecord.aBeginDate = aBeginDate
  oneRecord.aEndDate = aEndDate
  oneRecord.aDates= aDates
  oneRecord.aTime= aTime                              // Setup as an array for creating bullets in the event details
  oneRecord.aLocation = aLocation
  oneRecord.aHeader= aHeader
  oneRecord.aTitle= aTitle
  oneRecord.aBody= aBody                              // Setup as an array for creating paragraphs in the event details
  oneRecord.aSpeaker = aSpeaker
  oneRecord.aBio = aBio
  oneRecord.aRegistrationFees = aRegistrationFees     // Setup as an array for creating bullets in the event details
  oneRecord.aRegisterInstructions = aRegisterInstructions
  oneRecord.aContactInfo = aContactInfo
  oneRecord.aDetailLink= aDetailLink
  oneRecord.aRegisterId= aRegisterId
  oneRecord.aRepNo = aRepNo
  //if (aExternalURL == undefined){
  //  oneRecord.aExternalURL = "none"
  //}
  //else {
    oneRecord.aExternalURL = aExternalURL
  //}
  return oneRecord
}
