function myStory(img, headline, story, href, name, location) {
	this.img = img;
	this.headline = headline;
	this.story = story;
	this.href = href;
	this.name = name;
	this.location = location;
}

var sampleData = [
	new myStory("images/minnix_feature.jpg",
		"It&#39;s my blessing.",
		"I was lying on the exam table and my doctor started asking me questions. I was thinking to myself&#44; &quot;We both know I can&#39;t talk. Why is he expecting me to?&quot; Then the sound of my own voice startled me. Days later I was home with no signs I had suffered a stroke.",
		"stories/jminnix.html",
		"Jessica Minnix",
		", Vinton, Virginia"
	),
	
	new myStory(
		"images/mullins_feature.jpg",
		"It&#39;s my peace of mind&#46;",
		"It's a scary feeling when you can't catch your breath&#46; As someone with asthma&#44; this happens quite a bit&#44; and I end up making a lot of trips to the emergency room&#46; I trust the medical team at Carilion Franklin Memorial Hospital to be there any time I need them&#46;",
		"stories/smullins.html",
		"Suanne Mullins",
		", Boones Mill, Virginia"
	),
	
	new myStory(
		"images/jmenefee-feature.jpg",
		"It&#39;s my confidence.",
		"I had a mastectomy&#44; chemo and radiation&#46; And I needed follow&#45;ups&#44; but the cost was adding up&#46; The Every Woman&#39;s Life &#40;EWL&#41; program is a godsend&#46; Now&#44; all my follow&#45;ups&#44; including yearly mammograms and pap screenings are covered through EWL&#46;",
		"stories/jmenefee.html",
		"Joann Menefee",
		", Rocky Mount, Virginia"
	),
	
	new myStory(
		"images/monk_feature.jpg",
		"It&#39;s his childhood.",
		"Hunter was diagnosed with leukemia when he was 2&#189; half years old. We&#39;re lucky to have Carilion Clinic Children&#39;s Hospital close by. And although leukemia has become a part of his lifestyle&#44; one look at him can tell you that he will never let it define him.",
		"stories/hmonk.html",
		"Jodie Monk",
		", Moneta, Virginia"
	),
	
	new myStory(
		"images/mhubble_feature.jpg",
		"It&#39;s my good fortune&#46;",
		"I was helping my son move furniture and blamed my symptoms on over-exerting myself&#46; I just thought I had a bad back ache &#8212; it didn't seem like a heart attack to me&#46; Luckily&#44; my son who was a paramedic&#44; and is now a R&#46;N&#46;&#44; knew something just wasn't right&#46;",
		"stories/mhubble.html",
		"Mark Hubble",
		", Dublin, Virginia"
	),
	
	new myStory(
		"images/wvwa_feature.jpg",
		"It&#39;s our employees&#39; health and safety.",
		"With many of our employees working on-site in treatment facilities and helping maintain water lines and fire hydrants&#44; it is important that we help them stay healthy. That&#39;s why we&#39;ve relied on Carilion Clinic Occupation Medicine since 2004.",
		"stories/nnorris.html",
		"Neil Norris (Western Virginia Water Authority)",
		", Roanoke, Virginia<br /><br />(pictured at left is WVWA employee Mario Jones)"
	),
	
	new myStory(
		"images/mills_feature.jpg",
		"It&#39;s my health&#46;",
		"Being diagnosed with Type 2 diabetes was really scary&#46; My doctor recommended that I attend one of Carilion&#39;s Diabetes Management Classes&#46; Through one-on-one meetings and a few group classes&#44; I started to feel comfortable with my condition &#8212; and my ability to control it&#46;",
		"stories/cmills.html",
		"Casey Mills",
		", Salem, Virginia"
	),
	
	new myStory(
		"images/kincer-feature.jpg",
		"It&#39;s not just a slogan&#46;",
		"During my son&#39;s recent surgery&#44; a Carilion child life specialist helped him understand what was going to happen&#44; gave him games to play with and accompanied him to the OR&#46; Afterwards&#44; she came to see me in the waiting room and then again after surgery in his room&#46;",
		"stories/kkincer.html",
		"Kim Kincer",
		", Rocky Mount, Virginia"
	),
];

var currentIndex = Math.floor(Math.random() * sampleData.length);

function updateContent() {
//alert("updating!")
//alert(sampleData[currentIndex].content);
	document.getElementById("theImage").src = sampleData[currentIndex].img;
	document.getElementById("theHeadline").innerHTML = sampleData[currentIndex].headline;
	document.getElementById("theStory").innerHTML = sampleData[currentIndex].story;
	document.getElementById("theLink").href = sampleData[currentIndex].href;
	document.getElementById("theName").innerHTML = sampleData[currentIndex].name;
	document.getElementById("thePlace").innerHTML = sampleData[currentIndex].location;
}


