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)  
Buttons_T(sender,obj_id)  
CursorTreatment(obj_id,sender,attachedID);
 if sender==33 then
  if obj_id==777879 then
    del_object_from_game(777879)
  return;end;
 return;end;
  if sender == 30 then
    DeleteResource("shitok");
    DeleteResource("shitok_5");
    if flags.shitok then
        Block_Show_Cur(true);
        setcurentleaf1("electro",19,0);    
      StartTimer(5123,1.5);
    return;end;
    Block_Show_Cur(false);
    setcurentleaf("electro",19,0);    
  return;end;
  
  if sender == 1 then
    if obj_id == 2 then
      if attachedID ~= -1 then
        RemObjFromMouse()
      end;
      clear_satelite_leaf("electro");
    return; end;
    if obj_id == 5 then
      speciale_action(2,5,true);
      speciale_action(2,7)
      flags.pred_udal=true;
      playeffect("probka_out")
      Set_Anim_Cur(7,4)
    return; end;
    if obj_id == 6 or obj_id == 7 then
      if obj.predo ~= nil and attachedID == obj.predo.id then
        RemObjFromMouse()
        UnStoreObj(attachedID);
        Block_Show_Cur(true);
        speciale_action(2,4,true);
        flags.shitok = true;
        playeffect("probka")
      return; end;
      CreatePlashechka(900000,"472")
    return; end;
  return ;end;
  
  if sender == 16 then
    if obj_id == 4 then
       AddGlobalFade(777879,0)
      SetAlfa(777879,0,1,1)        
      StartTimer(8883,1.5);
    return; end;
  return; end;
  
  if sender == 15 then
    if obj_id == 5 then
      ActivateObject(6,true);
    return; end;
  return; end;
  
  if sender == 100 then
    StartTimer(88811,1);
  return; end;
  
  if sender == 36 then
    if obj_id == 88811 then
      Block_Show_Cur(false);
      CreatePlashechka(900000,"472")
    return; end;    
    if obj_id == 8883 then
      
      clear_satelite_leaf("electro");
    return; end;
  return; end;
  

end
function SheetSwitched(nCount)
end;