try{
		xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
	}
	
	catch(e){
		try{
			xmlDoc=document.implementation.createDocument("","",null);
		}
	
		catch(e){
			alert(e.message);

			}
		}

	xmlDoc.async=false;
	xmlDoc.load('rates.xml');

var x = Math.floor(Math.random() * xmlDoc.getElementsByTagName('name').length);

document.write("<h2 class='rateannounce'>RATE ALERT!</h1> <h3 class='rateannounce2'>"+xmlDoc.getElementsByTagName('name')[x].childNodes[0].nodeValue+":</h3>   <h2 class='rateannounce'>INTEREST:</h2><h3 class='rateannounce2'>"+xmlDoc.getElementsByTagName('interest')[x].childNodes[0].nodeValue+"</h3><h2 class='rateannounce'> APY: </h2><h3 class='rateannounce2'>"+xmlDoc.getElementsByTagName('apy')[x].childNodes[0].nodeValue+" <a href='rates.htm'>[more rates]</h3></a><br />")

if (navigator.appName != "Microsoft Internet Explorer"){
	document.write('<br />');
}
