function Buttons_T(sender,obj_id)
ButtonTreatment(obj_id,10001,10002,10003,CloseBtnX,CloseBtnY,34,34,sender,"electro",false)  
end;

function gameinput (sender,obj_id,attachedID)    
CursorTreatment(obj_id,sender,attachedID);
Buttons_T(sender,obj_id)

  if sender == 30 then
      DeleteResource("ventil_turma_2");
      DeleteResource("ventil_turma_3");
      DeleteResource("ventil_turma_4");  
      DeleteResource("m2");        
    setcurentleaf("electro",19,0);    
    Block_Show_Cur(false);
    if flags.ventil_turma then
      StopEmiter("ventil_turma");
      speciale_action(2,13);
    end;
  return;end;
  
  if sender==50 then
      Block_Show_Cur(true);
      StartTimer(8883,1.5);  
  return;end;
  
  if sender == 1 then

    if obj_id == obj.meddaw.id then
    flags.ventil_turma = true;
     StoreObj(obj.meddwa.id,obj_id,"325",335,350,"m2",290,217)     
    return; end;
  return ;end;
  
  if sender == 100 then

  return; end;
  
  if sender == 36 then
    if obj_id == 8883 then
      
      clear_satelite_leaf("electro");
    return; end;
  return; end;
  

end
function SheetSwitched(nCount)
end;