


function pickProducts(newIn, custFav, starBuy, base){
	
	if(document.getElementById){
		
		//Pick random images from the supplied arrays
		newIn_img = newIn[Math.floor(Math.random()*newIn.length)];
		custFav_img = custFav[Math.floor(Math.random()*custFav.length)];
		starBuy_img = starBuy[Math.floor(Math.random()*starBuy.length)];
		
		// Swap the currently displayed images with those picked above
		document.getElementById('newIn-img').src = base+newIn_img;
		document.getElementById('custFav-img').src = base+custFav_img;
		document.getElementById('starBuy-img').src = base+starBuy_img;
	}
}