function mostra()
{
        prog = document.getElementById('programas');
        if (prog.style.display == "none")
        {
            prog.style.display = "block";
        }
        else
        {
            prog.style.display = "none";
        }
}

function mostraoque(qual)
{
        prog2 = document.getElementById('oque'+qual);
        if (prog2.style.display == "none")
        {
            prog2.style.display = "block";
        }
        else
        {
            prog2.style.display = "none";
        }
}

var k = 0;
function trocapromo(l, nomediv, total, aba){
        for (k=1;k<=total;k++)
        {
                document.getElementById(nomediv+k).style.display = "none";
                document.getElementById(aba+k).className = "";
        }    
        document.getElementById(nomediv+l).style.display="block";
        document.getElementById(aba+l).className="promoativo";
}
qualpromo=1;
function autotrocapromo(max){
//	var max = 3;
	if(!qualpromo){
		qualpromo = 2;
	}else{
		qualpromo++;
		if (qualpromo==(max+1)){
			qualpromo=1;
		}
	}
	trocapromo(qualpromo, 'promo', max, 'aba');
	setTimeout ( 'autotrocapromo('+max+')', 5000 );
}


        //configuration
        OAS_url = 'http://ads.globo.com/RealMedia/ads/';
        OAS_listpos = 'Top,Top1,Top2,TopRight,Right1,Right2,Middle,Left,Frame1';
        OAS_query = '';
        OAS_sitepage = 'afrpc/98fm/home';
        //end of configuration
        OAS_version = 10;
        OAS_rn = '001234567890'; OAS_rns = '1234567890';
        OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11);
        function OAS_NORMAL(pos) {
            document.write('<A HREF="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + OAS_query + '" TARGET=_top>');
            document.write('<IMG SRC="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + OAS_query + '" BORDER=0></A>');
        }
        //-->
        OAS_version = 11;
        if (navigator.userAgent.indexOf('Mozilla/3') != -1)
            OAS_version = 10;
        if (OAS_version >= 11)
            document.write('<SCR'+ 'IPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + OAS_query + '"><\/SCRIPT>');
        document.write('');
        function OAS_AD(pos) {
            if (OAS_version >= 11)
                OAS_RICH(pos);
            else
                OAS_NORMAL(pos);
        }

