	function success_story_obj(title,logo_url, url, excerpt) {
		this.logo_url = logo_url;
		this.title = title;
		this.excerpt = excerpt;
		this.url = url;
		this.get_html = function () {
			var output_string = "";
			output_string += '<h3>' + this.title + '</h3>' + "\n";
			output_string += '<p>' + this.excerpt + '</p>' + "\n";
			output_string += '<a class="more_button" href="' + this.url + '">More</a>' + "\n";
			return output_string;
		}
	}

	//this is where all the success stories are created
	var success_stories = new Array();
	

	success_stories[0] = new success_story_obj( 'Best Western', 'images/logos/best_western_logo.gif', 'success_stories/best_western.html', '"The analytical data available with Steton is critical to protecting our brand. ...The multiple management reports automatically generated has proved extremely valuable to our business."<br/>Tim Burns Member<br/>Operations Support');
	success_stories[1] = new success_story_obj( 'General Mills', 'images/logos/general_mills_logo.gif', 'success_stories/general_mills.html', '"Historically, we waited 2-3 weeks for reports to be generated. Now, reports are available immediately after the audit is performed."<br/>Sarah Geisert<br/> Director of Global Regulatory Affairs');
		//success_stories[3] = new success_story_obj( 'SkyWest Airlines', 'images/logos/skywest.gif', 'success_stories/skywest_airlines.html', '"The Steton audit management software has been very flexible to meet the evolving needs of our program."<br/>Doug Wyatt<br/> Director of Corporate Safety');
	success_stories[2] = new success_story_obj( 'Louisiana Department of Health & Hospitals', 'images/logos/louisiana_health_logo.gif', 'success_stories/louisiana_department.html', '"We are able to keep the public better informed and therefore, much safer."<br/>James Antoon<br/>Chief of Sanitarian Services');
	//success_stories[5] = new success_story_obj( 'CCA', 'images/logos/CCA_logo.gif', 'success_stories/cca.html', 'Corrections Corporation of America is saving 8,000 man-hours each year (equates to $240,000).');
	success_stories[3] = new success_story_obj( 'Sodexo', 'images/logos/sodexho_logo.PNG', 'success_stories/sodexho.html', '"Steton\'s solution has allowed Sodexo to proactively manage our auditing program, substantially increasing our efficiency and accuracy."<br/>Mike Dunn<br/>Director of Product QA');
	//success_stories[8] = new success_story_obj( 'Sunny Fresh', 'images/logos/sunny_fresh_logo.gif', 'success_stories/sunny_fresh.html', '"Teaming up with Steton has enabled us to stay ahead of the competition..."<br/>Karla Lombard<br/>QA Specialist');
	success_stories[4] = new success_story_obj( 'The Holland, Inc.', 'images/logos/holland_logo.gif', 'success_stories/the_holland.html', '"The biggest, single benefit from implementing Steton\'s software can be described in one word: efficiency."<br/>Debe Nagy-Nero<br/>Director of Food Safety');
	success_stories[5] = new success_story_obj( 'JohnsonDiversey', 'images/logos/johnson_diversey_logo.gif', 'success_stories/johnson_diversey.html', '"Once the audit is performed, results are immediately generated and reports are provided."<br/>Suzanne Schwartz<br/>IS Analyst');

	//this function puts a random success story in the home page
	function add_success_story() {
		var random_index = Math.floor(Math.random()*success_stories.length);
		var random_success_story = success_stories[random_index];
		var story_id = "story";
		var story_link_id = "more_story";
		
		//get the html elements to modify
		var story = document.getElementById(story_id);
		var story_link = document.getElementById(story_link_id);
		
		//output html
		story.innerHTML = '<img src="' + random_success_story.logo_url + '"/>';
		story.innerHTML += '<h3>' + random_success_story.title + '</h3>';
		story.innerHTML += '<p>' + random_success_story.excerpt + '</p>';
		story_link.innerHTML = '<a href="' + random_success_story.url + '" class="more_button">more</a></span>';
	}
