var newRow
var newCell
var rowCount = 0

function loadVolunteers(aTableName)
{
  rowCount = 0
  clearTable(aTableName)
  loadCells( [ "<b>President</b>","<b>Johnathan Fahr</b>","Fahr Group" ], aTableName )
  loadCells( [ "<b>Vice-President</b>","<b>Michael Bennett, PMP</b>","Canadian Wheat Board" ], aTableName )
  loadCells( [ "<b>Past-President</b>","<b>Nick Destefano, PMP</b>","Online Business Systems" ], aTableName )
  loadCells( [ "<b>Treasurer</b>","<b>Michael Hanna, PMP</b>","MTS Allstream" ], aTableName )
  loadCells( [ "<b>Secretary</b>","<b>Sandy Carriere, PMP</b>","Cangene Corporation" ], aTableName )  
  loadCells( [ "End","","" ], aTableName )  
  
  loadCells( [ "<b>Communications</b>","<b>Cory Alexander, PMP (Director)</b>","Ceridian Canada Ltd." ], aTableName )
  loadCells( [ "Newsletter","Jeff Reitberger, PMP","SmartplanIT" ], aTableName )
  loadCells( [ "","Lorraine Russell, CAPM", "Chartier Property Mgmt." ], aTableName ) 
  loadCells( [ "","Mukesh Mathrani, PMP", "Whiteshell Laboratories" ], aTableName ) 
  loadCells( [ "Golf Tournament Chair","Allan Okano, PMP","Workers Compensation Board" ], aTableName )
  loadCells( [ "Website","Anton Abiiaka, PMP","OlaTech Business Hosting Corp." ], aTableName )
  loadCells( [ "","Chris Gumprich, PMP","Persentech" ], aTableName )
  loadCells( [ "","Michael Costantini","Bird Construction" ], aTableName )
  loadCells( [ "","Elizabeth Oduntan","" ], aTableName )
  loadCells( [ "","Raj Parswanna","Manitoba Public Insurance" ], aTableName )
  loadCells( [ "End","","" ], aTableName )

  loadCells( [ "<b>Marketing</b>","<b>Jacqueline Chochinov, PMP (Director)</b>","Cangene Corporation" ], aTableName )
  loadCells( [ "","Russell Enns, PMP","Deloitte" ], aTableName )
  loadCells( [ "","Sanjay Jain","Sierra Systems" ], aTableName )
  loadCells( [ "","Suvojit De, PMP","EISI" ], aTableName )
  loadCells( [ "","Navneet Bradoo, PMP", "SNC - Lavalin" ] ,aTableName )
  loadCells( [ "","Aman Kapur, PMP", "New Flyer" ] ,aTableName )
  loadCells( [ "End","","" ], aTableName )
  
  loadCells( [ "<b>Membership</b>","<b>Victor Kolynchuk, PMP (Director)</b>","Smith Carter" ], aTableName )
  loadCells( [ "","John McLeod, PMP","Project Management Associates (IT)" ], aTableName )
  loadCells( [ "","Kim Smith","Winnipeg Regional Health Authority" ], aTableName )
  loadCells( [ "","Marina Reimer, PMP","Celero" ], aTableName )
  loadCells( [ "","Robert Kury, PMP","" ], aTableName )
  loadCells( [ "","Dana Sandu, PMP","Ceridian Canada Ltd." ], aTableName ) 
  loadCells( [ "","Gayatri Singal","Lenovo Canada" ], aTableName )
  loadCells( [ "","Bunmi Akinseye","Function Four Ltd." ], aTableName )
  loadCells( [ "","Meredith McRae, PMP","" ], aTableName )
  loadCells( [ "","David Ho","Smith Carter" ], aTableName )
  loadCells( [ "End","","" ], aTableName )

  loadCells( [ "<b>Nominations</b>","<b>Les Howard, PMP</b>","Manitoba eHealth, WRHA" ], aTableName )
  loadCells( [ "End","","" ], aTableName )

  loadCells( [ "<b>Outreach</b>","<b>Nick DeStefano, PMP (temporary)</b>","PMI MB President" ], aTableName )
  loadCells( [ "End","","" ], aTableName )

  loadCells( [ "<b>Professional Development</b>","<b>Jon Cook (Director)</b>","MacDon Industries" ], aTableName )
  loadCells( [ "PDD Conference Committee","Johnathan Fahr (Chair)","Fahr Group" ], aTableName )
  loadCells( [ "","Lucy Camara, PMP","OlaTech Business Corp" ], aTableName )
  loadCells( [ "","Simon Clayton, PMP","SmartPlanIT" ], aTableName )
  loadCells( [ "","Anton Abiiaka, PMP","OlaTech Business Corp" ], aTableName )
  loadCells( [ "","Don Ruchkall, PMP","Government of MB" ], aTableName )
  loadCells( [ "","Yanik Sourisseau","Celero Solutions" ], aTableName )
  loadCells( [ "","Terra Dreger","MTS Allstream Inc" ], aTableName )
  loadCells( [ "","Michael Hanna, PMP","MTS Allstream Inc" ], aTableName )
  loadCells( [ "","Donna Castellano, PMP","Workers Compensation Board of MB" ], aTableName )
  loadCells( [ "Education Committee","Debbie Radtke","Manitoba Public Insurance" ], aTableName )
  loadCells( [ "","David Steinhilber, PMP","HED Insurance" ], aTableName )
  loadCells( [ "","Jacqueline Frizado","City of Winnipeg" ], aTableName )
  loadCells( [ "Certification Committee","Debra Akister, PMP","MTS Allstream" ], aTableName )
  loadCells( [ "","Juanita DeSouza-Huletey, PMP","City of Winnipeg" ], aTableName )
  loadCells( [ "","Scott Munn, PMP","Northwest Company" ], aTableName )
  loadCells( [ "End","","" ], aTableName )

  loadCells( [ "<b>Programs</b>","<b>Connie Lemoine, PMP (Director)</b>","Online Business Systems" ], aTableName )
  loadCells( [ "","Michael Bennett, PMP","Canadian Wheat Board" ], aTableName )
  loadCells( [ "","Murielle Collette, PMP","EDS Canada" ], aTableName )
  loadCells( [ "","Irene Wagner, PMP","Ceridian Canada" ], aTableName )
  loadCells( [ "","Dave Johnson, PMP","Smart PlanIT" ], aTableName )
  loadCells( [ "","Renato Arthur","Boge-Boge" ], aTableName )
  loadCells( [ "","David Prathipati, PMP","MTS Allstream" ], aTableName )
  loadCells( [ "","Connie Lemoine, PMP","Online Business Systems" ], aTableName )
  loadCells( [ "End","","" ], aTableName )  
  
  loadCells( [ "<b>Project of the Year</b>","<b>Allan Okano, PMP (Chair)</b>","Workers Compensation Board" ], aTableName )
  loadCells( [ "","Kathie Allardyce, PMP","Workers Compensation Board" ], aTableName )
  loadCells( [ "","Brad Mundy, PMP","Kesitah Systems" ], aTableName )
  loadCells( [ "End","","" ], aTableName )
  
  loadCells( [ "<b>Recognition Event</b>","<b>Johnathan Fahr (Chair)</b>","Fahr Group" ], aTableName )
  loadCells( [ "End","","" ], aTableName )
}

function loadCells( aRec, aTable )
{
  var className = "";
	
	if( aRec[0] == "End" )
		{
			newRow = getObject(aTable).insertRow(rowCount++);
			newCell = newRow.insertCell(newRow.cells.length);
			newCell.colSpan = "3";
			newCell.className = "VolunteerSeparator";
			newCell.innerHTML = "";
		}
	else
		{
		if( aRec[0] != "" )
			{
			  className = "VolunteerHighlight"; 
			}
		else
			{
			  className = "VolunteerDetail"; 
			}

			newRow = getObject(aTable).insertRow(rowCount++)
			loadNewCell( newRow, className, aRec[0] );
			loadNewCell( newRow, className, aRec[1] );
			loadNewCell( newRow, className, aRec[2] );
		}
  
}

function loadNewCell( newRow, className, aValue)
{
  newCell = newRow.insertCell(newRow.cells.length)
  newCell.className = className;
  newCell.innerHTML = aValue

}
