function writeStories(){
	var lm = storiesMarkup;
	var i = Math.floor(Math.random()*(stories.length));
	var output = lm.wrap[0];
	var l = stories[i];
	for(var prop in l){
		output += lm[prop][0];
		output += l[prop];
		output += lm[prop][1];
	};
	output += lm.wrap[1];
	document.write(output);
}

var storiesMarkup = {
	wrap: ['<tr>','</tr>'],
	image: ['<td><br><br><br><a href="stories.html"><img src="','" border=0></a></td></tr>'],
	name: ['<tr><td style="padding-left: 8px; "><a href="stories.html">','</a><br />'],
	details: ['','</td>']
}
var stories = [
	{ 	
		image: 'images/home_success.jpg', 
		name: 'Alli Mauzey',
		details: 'Congratulations on booking a role in Hairspray on Broadway and performing on the 2003 Tony Awards on CBS' 
	},
		{ 	
		image: 'images/home_success_2.jpg', 
		name: 'Danielle Czencz',
		details: 'Congratulations on booking Shape Magazine, Ucle Jewelry and The Art Institute' 
	},
	{ 	
		image: 'images/home_success_7.jpg', 
		name: 'Drew Mikuska',
		details: 'Congratulations on having booked a lead role in the feature film Scary Movie 3' 
	},
		{ 	
		image: 'images/home_success_3.jpg', 
		name: 'Lisa Tucker',
		details: 'Congratulations on landing a commercial for Nickelodeon' 
	}
];