function calcHeight() {
	//find the height of the internal page
	var the_height = document.getElementById('corpo').contentWindow.document.body.scrollHeight;

	//change the height of the iframe
	document.getElementById('corpo').height = the_height;
}



function exibirNoticias() {
	var xmlDoc = null;
	var xmlInternet = true; // para baixar as noticias da internet (true) ou de um arquivo (false)
	if (window.ActiveXObject) { // code for IE
		xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
	}
	else if (document.implementation.createDocument) { // code for Mozilla, Firefox, Opera, etc.
		xmlInternet = false;
		xmlDoc = document.implementation.createDocument("","",null);
	}
	else {
		//alert('Your browser cannot handle this script!');
	}
	if (xmlDoc != null) {
		xmlDoc.async = false;
		//if (xmlInternet)
		//	xmlDoc.load("http://feeds.folha.uol.com.br/folha/ambiente/rss091.xml");
		//else
			xmlDoc.load("js/folha.xml");
		document.write('<marquee onMouseOver="this.stop();" onMouseOut="this.start();" direction="up" scrollamount="2" id="noticias_list">');
		var x = xmlDoc.getElementsByTagName("item");
		for (i = 0 ; i < x.length ; i++) {
			document.write("<p>");
			document.write("<font size=\"-2\">");
			document.write("<a href=\""+x[i].getElementsByTagName("link")[0].childNodes[0].nodeValue+"\" target=\"_blank\">");
			document.write(x[i].getElementsByTagName("title")[0].childNodes[0].nodeValue);
			document.write("</a>");
			document.write("</font><br/>");
			//document.write("<font size=\"-3\">");
			//document.write(x[i].getElementsByTagName("pubDate")[0].childNodes[0].nodeValue);
			//document.write("</font>");
			document.write("</p>");
		}
		document.write('</marquee>');
	}
}
