if (document.getElementById) { window.onload = swap };

function swap() {
	/* number needs to be increased or decreased if images are added or removed */
	var numimages = 6;

	/* if images do not show up, check to make sure the path is right */
	/* remember to add the image path & name at the end to ensure it showing up on the page */
	rndimg = new Array('images/family01.jpg', 'images/family02.jpg', 'images/family03.jpg', 'images/family04.jpg', 'images/family05.jpg', 'images/family06.jpg' );
	
	x = (Math.floor(Math.random()*numimages));
	randomimage=(rndimg[x]);
	document.getElementById('random').style.backgroundImage = 'url('+ randomimage +')';
}
