var num_of_stories = 4;
stories = Math.floor (num_of_stories * Math.random());

if (stories==0) {
photo="https://alumni.gsb.stanford.edu/act/images/home/hud1.jpg";
title="Inspiring Innovation in the Silicon Valley Housing Market ";
body="An ACT team helps to develop a new public-private partnership to help more buyers afford a home in the Valley.";
link="https://alumni.gsb.stanford.edu/act/about/stories/edenhousing.html";
linktext="Details";
}

if (stories==1) {
photo="https://alumni.gsb.stanford.edu/act/images/home/OutwardBound-Group.jpg";
title="Launching a New Outward Bound Urban Center in San Francisco";
body="\"The ACT team provided a roadmap for Outward Bound. Their work gave everyone confidence that there was a plan, and it could be done.\"";
link="https://alumni.gsb.stanford.edu/act/about/stories/outwardbound.html";
linktext="Details";
}

if (stories==2) {
photo="https://alumni.gsb.stanford.edu/act/images/home/ACT-team-1.jpg";
title="ACT Takes Business Consulting to Rural Africa";
body="Cynthia Dai, MBA\'93, shares her experience leading a Stanford ACT project to help Uganda Rural Development and Training develop a sustainable funding model.";
link="https://alumni.gsb.stanford.edu/act/about/stories/uganda.html";
linktext="Details";
}

if (stories==3) {
photo="https://alumni.gsb.stanford.edu/act/images/stories/homewithin2.jpg";
title="ACT Client Recognized for Innovative Work with Kids in Foster Care";
body="Dr. Heineman was awarded a \$10,000 Purpose Prize for her efforts to improve the lives of children in the foster care system.";
link="https://alumni.gsb.stanford.edu/act/about/stories/homewithin.html";
linktext="Details";
}

document.write('<div id="acthomebanner">');
document.write('<img src="' + photo + '" class="h_img">');
document.write('<h3 style="margin-left: 355px;">' + title + '</h3>');
document.write('<p>'+ body + ' <a href="' + link + '"><span class="hidden">' + title + ' </span>' + linktext + '</a></p>');
document.write('</div>');

