// JavaScript Document

function trocaPrograma(idPrograma){
	with(document){
	/* esconde texto */
		getElementById('programa1').style.display='none';
		getElementById('programa2').style.display='none';
		getElementById('programa3').style.display='none';
		getElementById('programa4').style.display='none';
	/* mostra texto escolhido */
		getElementById('programa'+idPrograma).style.display='';
		getElementById('programa'+idPrograma).style.visibility='visible';
	/* in/ativa botao */
		getElementById('btPrograma1').className='guiaProgramaOFF';
		getElementById('btPrograma2').className='guiaProgramaOFF';
		getElementById('btPrograma3').className='guiaProgramaOFF';
		getElementById('btPrograma4').className='guiaProgramaOFF';
		getElementById('btPrograma'+idPrograma).className='guiaProgramaON';
	}
	void(0);
}

function addFlash(alocal,alarg,aalt) {
	var Objeto	= '<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="'+alarg+'" height="'+aalt+'">'
      + '<param name="movie" value="' + alocal + '">'
      + '<param name="quality" value="high">'
      + '<param name="wmode" value="transparent">'
	  + '<embed src="' + alocal + '" width="' + alarg + '" height="' + aalt + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>'
      + '</object>'
	   document.write(Objeto);
}

function addYoutube(ytURL,ytW,ytH){
	var objYouTube = '<object width="'+ytW+'" height="'+ytH+'">'
                    +'<param name="movie" value="'+ytURL+'" />'
                    +'<param name="allowFullScreen" value="true" />'
                    +'<param name="allowscriptaccess" value="always" />'
                    +'<embed src="'+ytURL+'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'+ytW+'" height="'+ytH+'"></embed>'
                  +'</object>'
	document.write(objYouTube);
}

function trocaTexto(objId,x,newText) { //v9.0
  with (document) if (getElementById && ((obj=getElementById(objId))!=null))
    with (obj) innerHTML = unescape(newText);
}

function fechaFloater(){
	document.getElementById('floaterRobo').style.visibility='hidden';
	document.getElementById('floaterRobo').style.display='none';
}

<!-- Begin
function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=10,height=10');");
}
// End -->