var tests = [ 'test1.png',  'test2.png',  'test3.png',  'test4.png',  'test5.png',  'test6.png',  'test7.png',  'test8.png',  'test9.png',  'test10.png', 'test11.png', 'test12.png', 'test13.png', 'test14.png', 'test15.png', 'test16.png', 'test17.png', 'test18.png', 'test19.png' ];

var test_widths = [ 354, 395, 252, 466, 358, 374, 347, 397, 386, 358, 289, 367, 397, 422, 373, 448, 494, 393, 309 ];

var test_heights = [ 105, 57, 105, 68, 104, 105, 67, 97, 105, 106, 105, 104, 98, 70, 105, 105, 67, 97, 105 ];

var test_width_center = 408;
var test_height_center = 370;
var test_last = -1;

function place_testimonial() {
	var ot = tag('oval_testimonial');
	var i;

	// don't do the same one twice in a row
	do {
		i = Math.floor(Math.random() * 17.9999);
	} while (i == test_last);
	test_last = i;

	ot.style.width = test_widths[i] + 'px';
	ot.style.height = test_heights[i] + 'px';
	ot.style.top = test_height_center - Math.floor(test_heights[i] / 2) + 'px';
	ot.style.left = test_width_center - Math.floor(test_widths[i] / 2) + 'px';
	ot.style.position = 'absolute';
	ot.style.backgroundColor = 'transparent';
	ot.style.backgroundImage = 'url(images/' + tests[i] + ')';
}

