function swappy()
{
	var elem = document.getElementById('testimonial');

	var req;

	//req = new XMLHttpRequest();

	try { req = new XMLHttpRequest(); }
    catch (e) { try { req = new ActiveXObject('Msxml2.XMLHTTP'); }
    catch (e) { req = new ActiveXObject('Microsoft.XMLHTTP'); } }

	req.onreadystatechange = function()
		{
			if (req.readyState == 4 && req.status == 200)
			{
				elem.innerHTML = xmlparse(req.responseXML);

				//window.setTimeout("swappy();", 15000);
			}
		}

	req.open("GET", "testimonial.amp", true);
	req.send(null);
}

function xmlparse(xml)
{
	var root = xml.documentElement;
	var html = '';

	var testimonial = root.getElementsByTagName('testimonial');

	for (var n = 0; n < testimonial.length; n++)
	{
		var name = testimonial[n].getElementsByTagName('name')[0].firstChild.nodeValue;
		var text = testimonial[n].getElementsByTagName('text')[0].firstChild.nodeValue;

		html += text + '<br><br>';
		html += '- ' + name + '<br>';
	}

	return html;
}
