function onLoad(){
	//Make async request to get random images for previewer object
	
	//Setting the data type to text even though we are getting json data stops the ajax call from automatically
	//parsing the json data, which is a security vulnerability
	
	$.get('./php/getpreview.php', function(data){
		var picsarray = JSON.parse(data);//parse returned json data into an array object
		
		var cb = function(){
			$("#homePrev").cycle({
			fx:		'fade',
			speed:	2500
			});
		}
		
		preload(picsarray, "#homePrev", cb);
	}, 'text');
};
