Photo = {};

Photo.newPhoto = function(maxNum)
{
	document.getElementById('imageHolder').innerHTML = '<img class=\"featureImage\" src=\"img/features/' + Photo.rand(maxNum) + '.jpg\" border=\"0\"/>';
}

Photo.preloadImages = function(files)
{
	for(var i=0; i<files.length; i++)
	{
		var image = new Image();
		image.src = files[i];
	}
}

Photo.rand = function( n )
{
	return ( Math.floor ( Math.random ( ) * n + 1 ) );
}