function resizeIframe() {

  try {
	
     frame = document.getElementById('conteudo');
	

     // Get the document within the frame. This is where you will fail with 'permission denied'

     // if the document within the frame is not from the same domain as this document.

     // Note: IE uses 'contentWindow', Opera uses 'contentDocument', Netscape uses either.

     innerDoc = (frame.contentDocument) ? frame.contentDocument : frame.contentWindow.document;
	
	

     // Resize the style object, if it exists. Otherwise, resize the frame itself.

     objToResize = (frame.style) ? frame.style : frame;
	


     // Resize the object to the scroll height of the inner document body. You may still have 

     // to add a 'fudge' factor to get rid of the scroll bar entirely. With a plain-vanilla 

     // iframe, I found Netscape needs no fudge, IE needs 4 and Opera needs 5... 

     // Of course, your mileage may vary.

	
	if(innerDoc=="[object]"){
	tamanho = innerDoc.body.scrollHeight;
	}else{
	tamanho = innerDoc.body.offsetHeight;
	}
	objToResize.height = Number(tamanho);
	document.getElementById('topo').focus();
}

  catch (e) {

     window.status = '';
	

  }

}
//CHAMA FLASH
function callFlash(swf,largura,altura,id_objeto,wmode,background,vars){
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+largura+'" height="'+altura+'" align="middle" id="'+id_objeto+'">');
    document.write('<param name=movie value="'+swf+'">');
    document.write('<param name="allowScriptAccess" value="sameDomain">');
	document.write('<param name="quality" value="best">');
    document.write('<param name="menu" value="false">');
	document.write('<param name="wmode" value="'+wmode+'">');
	document.write('<param name="scale" value="noscale"/>');
	document.write('<param name="bgcolor" value="#ffffff">');
	document.write('<param name="FlashVars" value="'+vars+'">');
    document.write('<embed src="'+swf+'" quality="best" id="'+id_objeto+'" width="'+largura+'" wmode="'+wmode+'" background="'+background+'" height="'+altura+'" FlashVars="'+vars+'" scale="noscale" salign="t" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>');
    document.write('</object>');
}

function altura(tamanho){

		document.getElementById('site').style.height = Number(tamanho+120);

}

function verificaPlugin(){
	if(confirm("Seu plugin do flash está desatualizado.\r\nPara visualizar este site você deve instalar a versão 8.0 ou superior\r\nPara atualizar o plugin clique em OK ?")){
		var desktop = window.open("http://www.macromedia.com/go/getflashplayer");
		desktop.focus();
	}
}
rol = 0
function rola(pos){
	if(pos<3){
		rol+=50
		}
	if(pos==3){
		rol-=50
	}
	if(rol<0){
		rol = 0
	}
	
	window.scroll(0,rol)
	if(rol>document.body.scrollTop){
		rol = document.body.scrollTop
		}
	}
	
function popUp(endereco,nome,largura,altura,rolagem){
	var desktop = window.open (endereco,nome, "status=no,scrollbars="+rolagem+",width="+largura+", height="+altura+",left=100,top=100")
	desktop.focus();
}

function setFlashVar(name, value) {
    if (window.cabecalho) { // for IE
       	cabecalho.SetVariable(name, value); // IE automatically creates global variables for elements with id attributes (yuck!)
    } else if (document.cabecalho) { // for mozilla
        document.embeds["cabecalho"].SetVariable(name, value); 
    }
}
function size(tamanho,n){
	document.getElementById('case_flash').style.height = tamanho+"px";
	setFlashVar('frame',n);
}
function trocaLinha(n){
	setFlashVar('frame', n);
}