function randompic() {
	if(randpic==true) {
		var num = Math.floor(Math.random()*23);
		var outstring = "<a onclick=\"randompic()\"><img src=\"Pictures/pic"+num+".jpg\" width=\"420\" height=\"280\" /></a><div class=\"caption c\">";
		if(num == 0) {
			outstring += "A game of ultimate a Brews and Bruises.";
		} else if (num == 1) {
			outstring += "Members of Ultimato gather before ALPHA 2008.";
		} else if (num == 2) {
			outstring += "Members of Ultimato Sauce gather before practicing.";
		} else if (num == 3) {
			outstring += "Women of Sauce warm-up with plyos .";
		} else if (num == 4) {
			outstring += "Chelsea throws a disc.";
		} else if (num == 5) {
			outstring += "Merideth catches a disc.";
		} else if (num == 6) {
			outstring += "Men of Ultimato warm-up their throws.";
		} else if (num == 7) {
			outstring += "Jake and Sam interrupt the women's practice.";
		} else if (num == 8) {
			outstring += "Ultimato men take a quick water break during practice.";
		} else if (num == 9) {
			outstring += "Members of Ultimato Sauce stand on the sideline of a game at High Tide. ";
		} else if (num == 10) {
			outstring += "Sauce girls relax in between games at High Tide.";
		} else if (num == 11) {
			outstring += "Perry sips a tasty drink from a random sand bucket.";
		} else if (num == 12) {
			outstring += "Sauce girls pose at High Tide.";
		} else if (num == 13) {
			outstring += "Ultimato men pose at High Tide.";
		} else if (num == 14) {
			outstring += "Members of Ultimato Sauce come together for a High Tide picture.";
		} else if (num == 15) {
			outstring += "Ultimato men gather on the line before the start of a point.";
		} else if (num == 16) {
			outstring += "Fletcher, Crispy and Louise attempt to look busy.";
		} else if (num == 17) {
			outstring += "Mavery's yuletide house decorations.";
		} else if (num == 18) {
			outstring += "Keira sets up a hard mark.";
		} else if (num == 19) {
			outstring += "Women of Sauce come together for a photo at Big D in little d.";
		} else if (num == 20) {
			outstring += "Fletch lays out for a disk.";
		} else if (num == 21) {
			outstring += "Jake skies his opponent.";
		} else if (num == 22) {
			outstring += "Paulie catches a disc while his opponents look on helplessly.";
		}
		outstring += "</div>";
		document.getElementById('picin').innerHTML=outstring;
	}
}
