function linke(url, odiv){
myAjax = new Ajax.Updater(odiv,url,{onLoading:fcarregando,onComplete:fcarrega});
}
function fcarregando(){
nmcrr=document.getElementById("mcarrega");nmcrr.innerHTML="<div style=\"margin-top:10px;margin-left:20px;\"><img src=\"imgs/crr.gif\" width=\"90\" height=\"20\" border=\"0\"></div>";
nmcrr.style.visibility='visible';
}
function scarregou(){
nscrr=document.getElementById("mcarrega");nscrr.innerHTML="";
nscrr.style.visibility='hidden';
}
function fcarrega(){
scarregou();
setTimeout("scarregou()", 100);
setTimeout("scarregou()", 1000);
setTimeout("scarregou()", 2000);
}

function ocultb(){
dvb=document.getElementById('balao');
dvb.style.display='none';
dvb.style.visibility='hidden';
}

function abredes(imagem, altura, larg, tit, urp){
ami = document.getElementById('amini').style;
ami.display="block";
ami.height=altura;
alti=altura-140;
//document.body.style.display='none';
document.getElementById('tudo').style.display='none';
document.getElementById('amini').innerHTML='<div align="center" style="margin-top:25px;cursor:default;"><table border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#333333" align="right"><img src="imgs/bf.gif" style="cursor:pointer"></td></tr><tr><td style="font-weight:bold;color:#FFF;text-align:center;">'+tit+'</td></tr><tr><td style="background:#FFFFFF url(\'imgs/fc.gif\');border:10px solid #FFFFFF;cursor:pointer;"><img border="0" src="'+urp+'/g_'+imagem+'" height="'+alti+'" width="'+larg+'"></td></tr><tr><td bgcolor="#333333" align="right"><img src="imgs/bf.gif" style="cursor:pointer"></td></tr></table></div>';
document.location='#';
}

function fechades(){
ami = document.getElementById('amini').style;
ami.display="none";
document.getElementById('tudo').style.display='inline';
}

function mst(ce, id){
dive=document.getElementById('mo'+id).style;
if(dive.visibility=='hidden'){
document.getElementById(id).src='imgs/ssm2.gif';
linke('exibe_fotos_equip.php?ce='+ce, 'mo'+id);
dive.display="block";
dive.visibility="visible";
}else{
document.getElementById(id).src='imgs/ssm.gif';
linke('nd.php', 'mo'+id);
dive.display="none";
dive.visibility="hidden";
}
}

