function flash (){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase=  "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="484" height="276">');
document.write ('<param name="movie" value="../swf/banner_home_ead.swf">');
document.write ('<param name="quality" value="high">')
document.write ('<embed src="../swf/banner_home_ead.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="484" height="276"></embed></object>');
}

function cursos (){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase=  "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="484" height="276">');
document.write ('<param name="movie" value="../swf/ead_cursos.swf">');
document.write ('<param name="quality" value="high">')
document.write ('<embed src="../swf/ead_cursos.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="484" height="276"></embed></object>');
}

function downloads (){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase=  "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="484" height="276">');
document.write ('<param name="movie" value="../swf/downloads.swf">');
document.write ('<param name="quality" value="high">')
document.write ('<embed src="../swf/downloads.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="484" height="276"></embed></object>');
}


try{
    xmlhttp = new XMLHttpRequest();
	//alert("A");
}catch(ee){
    try{
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		//alert("B");
    }catch(e){
        try{
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			//alert("C");
        }catch(E){
            xmlhttp = false;
        }
    }
}
function news_insert(a,b){
document.getElementById(b).innerHTML = "<img src='../img/34-1.gif'> Processando......";

    xmlhttp.open("GET", "../newsletter/insert.php?a="+a+"&b="+b,true);

    xmlhttp.onreadystatechange=function() {
 
    if (xmlhttp.readyState==4){
	
    var texto = unescape(xmlhttp.responseText.replace(/\+/g," ")); // coloca acentos
      document.getElementById(b).innerHTML = texto;
	    }
    }
    xmlhttp.send(null) 
}