// inicia AJAX
try{
    xmlhttp = new XMLHttpRequest();
}catch(ee){
    try{
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    }catch(e){
        try{
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }catch(E){
            xmlhttp = false;
        }
    }
}
try{
    xmlhttp2 = new XMLHttpRequest();
}catch(ee){
    try{
        xmlhttp2 = new ActiveXObject("Msxml2.XMLHTTP");
    }catch(e){
        try{
            xmlhttp2 = new ActiveXObject("Microsoft.XMLHTTP");
        }catch(E){
            xmlhttp2 = false;
        }
    }
}
function carrega(div, n, func){
    recarregar = true;
    document.getElementById(div).innerHTML='<p>&nbsp;</p><p align="center"><img src="images/carregando.gif"></p>';
    atual=n
    xmlhttp.open("GET", n,true);
    xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4){
            var texto=xmlhttp.responseText
            texto=texto.replace(/\+/g," ")
            texto=unescape(texto)
            document.getElementById(div).innerHTML=texto;
				eval(func);
        }
    }
    xmlhttp.send(null);
}
function carrega2(div, n, func){
    recarregar = true;
    document.getElementById(div).innerHTML='<p>&nbsp;</p><p align="center"><img src="images/carregando.gif"></p>';
    atual=n
    xmlhttp2.open("GET", n,true);
    xmlhttp2.onreadystatechange=function() {
        if (xmlhttp2.readyState==4){
            var texto=xmlhttp2.responseText
            texto=texto.replace(/\+/g," ")
            texto=unescape(texto)
            document.getElementById(div).innerHTML=texto;
				eval(func);
        }
    }
    xmlhttp.send(null);
}
function iniciar() {
//   alternaMenu('td_destaque');
//   carrega('destaque','portlet_destaque.asp','');
}

