function X(e){if(e==null)return 0;else return e.offsetLeft+X(e.offsetParent);}
function Y(e){if(e==null)return 0;else return e.offsetTop+Y(e.offsetParent);}
function menu(ind, coluna, evnt, ver, offset){
 var e=document.getElementById("mn"+ind).style;
 var xOffset=0,yOffset=0;
 if(menu.arguments.length>4)if(coluna)yOffset=offset;else xOffset=offset;
 if(evnt){
  var event_tag=document.getElementById("div"+ind);
  e.left=X(event_tag)+xOffset+(coluna?event_tag.offsetWidth:0)+"px";
  e.top=Y(event_tag)+yOffset+(coluna?0:event_tag.offsetHeight-2)+"px";
 }
 e.visibility=ver?"visible":"hidden";
 document.getElementById("div"+ind).className=ver?"divModActiv":"divMod";
}
function bg(t,s){t.className=s?'divMenuActiv':'divMenu';}
function bg2(t,s){t.className=s?'divMenuModActiv':'divMenuMod';}
function bg3(t,s){t.className=s?'divModActiv':'divMod';}
function mn(t){window.location=t;}
function wopen(s){window.open(s,"detalhe","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=400,top=50,left=50")}
function detalhe(d,t){wopen("popup_detalhe.php?d="+d+"&t="+t)}
function detalhe2(c){wopen("campanha_detalhe.php?c="+c)}
function detalhe3(s){wopen("servico_detalhe.php?s="+s)}
