var currentCommentIndex = 0;
var numberOfComments = 7;
var comments = new Array(numberOfComments);
var people = new Array(numberOfComments);
var titles = new Array(numberOfComments);

var currentEventIndex = 0;
var numberOfEvents = 2;
var events = new Array(numberOfEvents); // Typically has URL to the FlowModeler events.html page
var eventsPageName = new Array(numberOfEvents); // Typically has URL to the event web site
var eventDates = new Array(numberOfEvents);
var eventDescriptions = new Array(numberOfEvents);

var currentArticleIndex = 0;
var numberOfArticles = 1;
var articles = new Array(numberOfArticles);
var articleSources = new Array(numberOfArticles);

comments[0] ="FlowModeler has tremendous potential for capturing knowledge and training various constituencies–employees, partners, analysts–across a multitude of industries, on their complex business processes.";
people[0] = "Susan LaCour";
titles[0] ="Sr. Vice President, Corporate Training, enterprise software products";

comments[1] = "Representation is a powerful tool. FlowModeler does this, and much more.";
people[1] = "David Hollingsworth";
titles[1] ="President private equity";

comments[2] = "A premium product at a reasonable price!";
people[2] = "Gregg Samson";
titles[2] ="VP, Sales & Marketing consumer products";

comments[3] = "Tying training to process is very useful, as it provides context for the training (how / when to use the skill taught).";
people[3] = "Dawn Miller";
titles[3] ="Utility industry";

comments[4] = "FlowModeler can play a key role in knowledge transfer as we experience the spike in retirements ... capturing process knowledge of our subject matter experts and enabling that to be accessed by all online.";
people[4] = "Dawn Miller";
titles[4] ="Utility industry";

comments[5] = "FlowModeler goes further in evaluating an organization\'s information processing dynamics than any other...";
people[5] = "John Vigna";
titles[5] = "COO manufacturing";

comments[6] = "Thank you for being such a great partner!";
people[6] = "Dawn Miller";
titles[6] = "Utility industry";

/*
comments[] = "";
people[]= = "";
titles[] = "";
*/

events[0] = "<a href=\"http://www.flowmodeler.com/events.html\">Gartner Business Process Summit 2012</a>";
eventsPageName[0] ="<a href=\"http://www.gartner.com/technology/summits/na/business-process\" target=\"_blank\">Gartner Business Process Summit 2012</a>";
eventDates[0] = "25-27 April 2012<br/>Baltimore, MD";
eventDescriptions[0] = "<b>Gartner Business Process Summit 2012</b><p/>Join GEM and other industry leaders at the largest, most comprehensive BPM conference in the world. The Gartner BPM Summit explores both proven BPM management disciplines and the latest BPM technologies - and demonstrates how to use them together in the most effective way possible.";

events[1] = "<a href=\"http://www.flowmodeler.com/events.html\">GEM Presents at ICELW Conference</a>";
eventsPageName[1] = "<a href=\"http://www.flowmodeler.com/pdf/ICELW2009-BP Meets eLrng_F.pdf\" target=\"_blank\">Business Process Meets eLearning: real-world success with knowledge maps</a>"; 
eventDates[1] = "10-12 June 2009<br/>New York, NY";
eventDescriptions[1] = "<b>Business Process Meets eLearning</b><p/>Mark Talaba presented his paper <b>Business Process Meets eLearning: real-world success with knowledge maps</b> at the 2009 International Conference on eLearning in the Workplace at Columbia University. Click <a href=\"http://www.flowmodeler.com/pdf/ICELW2009-BP Meets eLrng_F.pdf\" target=\"_blank\">here</a> to download the paper.</p>";

articles[0] = "<a href=\"http://www.flowmodeler.com/pdf/KnowledgeRetentionGEMWorX.pdf\" target=\"_blank\">\"Capturing Knowledge Before it Retires\"</a>";
articleSources[0] = "Public Power Magazine";

function setCurrentIndices() {
	currentCommentIndex = Math.floor(numberOfComments*Math.random());
	currentEventIndex = Math.floor(numberOfEvents*Math.random());
	currentArticleIndex = Math.floor(numberOfArticles*Math.random());
}

function getComment() {
	return comments[currentCommentIndex];
}

function getPerson() {
	return people[currentCommentIndex];
}

function getTitle() {
	return titles[currentCommentIndex];
}

function getEvent() {
	return events[currentEventIndex];
}

function getEventDate() {
	return eventDates[currentEventIndex];
}

function getAllEvents() {
	var allEvents = "";
	for (var i=0; i<numberOfEvents; i++) {
		allEvents += "<h3>" + eventsPageName[i] + "</h3>";
		allEvents += "<p>" + eventDates[i] + "</p>";
		allEvents += "<p>" + eventDescriptions[i] + "</p>";
	}
	return allEvents;
}

function getArticle() {
		return articles[currentArticleIndex];
}

function getArticleSources() {
		return articleSources[currentArticleIndex];
}

