var msgs=new Array();
function parseFactsXML(xmlLoc)
{
	try /*ie*/{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");}
	catch(e){ try /*Firefox, Mozilla, Opera, etc.*/{ xmlDoc=document.implementation.createDocument("","",null); }
		catch(e){ alert(e.message); return; }
	}
	xmlDoc.async=false;
	xmlDoc.load(xmlLoc);
	//populate the msgs array with the xml message content
	for(var i = 0; i < xmlDoc.getElementsByTagName("message").length; i++) {
		msgs[i]=xmlDoc.getElementsByTagName("message")[i].childNodes[0].nodeValue;
	}
	// Start the first rotation.
	rotatequote();
}

function rotatequote()
{
	message = msgs.shift(); //Pull the top one
	msgs.push(message); //And add it back to the end
	document.getElementById('didYouKnowMsg').innerHTML = message;
}
