var totalphotos=5;

// var position will determine whether the
// picture comes from the 1st, 2nd, or 3rd
// third of the list of photos.
function get_photo(){
	var random = get_random(totalphotos);
	
	return (random);
}

function get_random(range)
{
    var ranNum= Math.floor(Math.random()*range);
    return ranNum;
}
