function mkFlash(arq,wid,hei){
document.write('<object type="application/x-shockwave-flash" data="'+arq+'" width="'+wid+'" height="'+hei+'">');
document.write('<param name="movie" value="'+arq+'">');
document.write('<param name="menu" value="false">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent">');
document.write('</object>');
}

function mkJO(arq,wid,hei,vai,edi){
document.write('<object id="fjo" type="application/x-shockwave-flash" data="'+arq+'" width="'+wid+'" height="'+hei+'">');
document.write('<param name="movie" value="'+arq+'">');
document.write('<param name="menu" value="false">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent">');
document.write('<param name="flashvars" value="xmlFile=informatex/'+edi+'/paginas.xml'+vai+'">');
document.write('</object>');
}


function exp(obj){ 
if(document.getElementById(''+obj+'').style.display=="block"){ 
document.getElementById(''+obj+'').style.display = "none"; 
} else { 
document.getElementById(''+obj+'').style.display = "block"; 
}
}


function informatex(){
if(document.getElementById('informatex_shw').style.display=="none"){
document.getElementById('informatex_shw').style.display = "block";
} else {
document.getElementById('informatex_shw').style.display = "none";
}
}






function imprimir(act,id){
ok = "nao";
if(act=="htm"){
url = ""+id+".asp";
nom = ""+id+"";
alt = 555;
lar = 700;
ok = "ok";
}

if(act=="boletim"){
url = "imprime_boletim.asp";
nom = "imprime_boletim";
alt = 555;
lar = 770;
ok = "ok";
}
if(act=="comunicados"){
url = "imprime_comunicados.asp?id="+id+"";
nom = "imprime_comunicados_"+id+"";
alt = 555;
lar = 770;
ok = "ok";
}
if(act=="saladeaula"){
url = "imprime_saladeaula.asp?id="+id+"";
nom = "imprime_saladeaula_"+id+"";
alt = 555;
lar = 770;
ok = "ok";
}
if(act=="comunicacaointerna"){
url = "imprime_comunicacaointerna.asp?id="+id+"";
nom = "imprime_comunicacaointerna_"+id+"";
alt = 555;
lar = 770;
ok = "ok";
}
if(ok=="ok"){
bai = screen.height;
dir = screen.width;
cim = (bai-alt)/2;
esq = (dir-lar)/2;
window.open(url,nom,'toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,maximize=no,top='+cim+',left='+esq+',width='+lar+',height='+alt+''); 
}
}




var trailimage=["", 5, 5]
var offsetfrommouse=[-21000,-21000] 
var displayduration=0 
if (document.getElementById || document.all)
document.write('<div id="trailimageid" class="popup"><img id="imgtrailx" src="'+trailimage[0]+'" border="0" width="'+trailimage[1]+'px" height="'+trailimage[2]+'px"></div>')
function gettrailobj(){
if (document.getElementById)
return document.getElementById("trailimageid").style
else if (document.all)
return document.all.trailimagid.style
}
function truebody(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function shwtrail(im,wi,he,al){
document.getElementById("imgtrailx").src=""+im+""
document.getElementById("imgtrailx").width=""+wi+""
document.getElementById("imgtrailx").height=""+he+""
gettrailobj().display="block"
if(al=="E"){
offsetfrommouse=[40,-(he/2)] 
} else {
offsetfrommouse=[(wi-(wi*2))-40,-(he/2)] 
}
document.onmousemove=followmouse
}
function hidetrail(){
gettrailobj().display="none"
gettrailobj().left="0px"
gettrailobj().top="-21000px"
document.onmousemove=""
document.getElementById("imgtrailx").src=""
document.getElementById("imgtrailx").width="5"
document.getElementById("imgtrailx").height="5"
offsetfrommouse=[-21000,-21000] 
}
function followmouse(e){
var xcoord=offsetfrommouse[0]
var ycoord=offsetfrommouse[1]
if (typeof e != "undefined"){
xcoord+=e.pageX
ycoord+=e.pageY
}
else if (typeof window.event !="undefined"){
xcoord+=truebody().scrollLeft+event.clientX
ycoord+=truebody().scrollTop+event.clientY
}
var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
if (xcoord+trailimage[1]+3>docwidth || ycoord+trailimage[2]> docheight)
gettrailobj().display="none"
else 
gettrailobj().display="block"
gettrailobj().left=xcoord+"px"
gettrailobj().top=ycoord+"px"
}



