var noticia = new Array();
var Final=2;
function monta_noticias()
{
var hnoticias = 170
var veloc_notic = 2
var cor = ""
var marquee   = "<marquee id=scroller onmouseover='this.stop();' style='height: " + hnoticias + "px;width:305px' onmouseout='this.start();' scrollAmount=" + veloc_notic + " direction=up bgcolor=" + cor + ">";
var table     = "<table align=justify cellSpacing=3 cellPadding=0 width=305><tr valign=middle align=justify>"
var td_descr  = "<td align=justify valign=top class='fonte2 normal tamP preto'>";
var href_notic= ""
var href      = "<a class='fonte2 preto tamM' href='"
var hrefbold  = "<a class='bold fonte2 preto tamM' href='"
var href_fim  = "</a>"
var tdtr_fim  = "</td></tr>";
var table_fim = "</table>";
var separador = "<tr><td align=left colspan=2 valign=top style='height: 4px'><div class='divisao'>&nbsp;</div></td></tr>"
var marquee_fim = "</marquee>";

var result = marquee;

//for(i=0;i<noticia.length;i++)
for(i=0;i<=Final;i++)
	{
	noticia[i]=noticia[i].replace(/\s\|/g, "|")
	noticia[i]=noticia[i].replace(/\|\s/g, "|")
	linha = noticia[i].split("|")
	if (linha[3]==0) {	
		href_notic = href + linha[1] + "'><span class='fonte2 tamM branco normal'>" + linha[0] + "</span> " + linha[2] + href_fim+"<hr>"
		}
	else {
		href_notic = hrefbold + linha[1] + "'><span class='fonte2 tamM branco normal'>" + linha[0] + "</span> " + linha[2] + href_fim+"<hr>"
		} 
	result=result + table
	result=result + td_descr
	result=result + href_notic
	result=result + tdtr_fim
	result=result + separador
	result=result + table_fim
	}

result = result + marquee_fim;

document.getElementById("div_noticias").innerHTML = result;

}

