

var iframeids=["tirteudo"]

function dyniframesize() {

var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){

if (document.getElementById){ //begin resizing iframe procedure

dyniframe[dyniframe.length] = document.getElementById(iframeids[i]);
if (dyniframe[i] &&!window.opera){

dyniframe[i].style.display="block"
if (dyniframe[i].contentDocument && dyniframe[i].contentDocument.body.offsetHeight) //ns6 syntax
dyniframe[i].height = dyniframe[i].contentDocument.body.offsetHeight+20;
else if (dyniframe[i].Document && dyniframe[i].Document.body.scrollHeight) //ie5+ syntax
dyniframe[i].height = dyniframe[i].Document.body.scrollHeight+20;
}
}

}

//document.main.style.height=dyniframe;

}

if (window.addEventListener)
window.addEventListener("load", dyniframesize, false)
else if (window.attachEvent)
window.attachEvent("onload", dyniframesize)
else
window.onload=dyniframesize


//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=8,0,24,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="flashVars" value="'+vars+'">');
	document.write('<param name="salign" value="cc"/>');
	document.write('<param name="bgcolor" value="'+background+'">');
    document.write('<embed src="'+swf+'" quality="best" width="'+largura+'" height="'+altura+'" flashVars="'+vars+'" scale="noscale" salign="ct" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>');
    document.write('</object>');
}

