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


function gameinput (sender,obj_id,attachedID)    
Buttons_T(sender,obj_id)
CursorTreatment(obj_id,sender,attachedID); 
  if sender == 30 then
    DeleteResource("tiger");
    DeleteResource("tiger5");     
    DeleteResource("tiger7");       
    setcurentleaf("mayor_house",8,0);    
    Block_Show_Cur(false);
    if flags.tiger then
      speciale_action(2,16)
      ActivateObject(17,false);
      Set_Anim_Cur(17,3);
      StopEmiter("tiger");
    end;
  return;end;
  
  
  if sender==50 then
      Block_Show_Cur(true);
      StartTimer(8882,1);
  return;end;
  
  if sender == 1 then

    if obj_id == 10 then
     flags.tiger = true;
        StoreObj(obj.stdwa.id,obj_id,"126",285,350,"stat",323,217)    
    return; end;
  return ;end;
  
  if sender == 100 then
  
    StartTimer(88811,2);
    if flags.volf and flags.vepr then
      open_tiger=false
      Block_Show_Cur(false);
      speciale_action(2,obj.stdwa.id);
      speciale_action(2,10)
      Set_Anim_Cur(10,4);
      speciale_action(2,7,true);
      speciale_action(2,9,true);
    end;    
  return; end;
  
  
  if sender == 36 then
    if obj_id == 88811 then
      Block_Show_Cur(false);
    return; end;
    if obj_id == 8882 then
      Block_Show_Cur(false);
     
      clear_satelite_leaf("mayor_house");
    return; end;
  return; end;

end
function SheetSwitched(nCount)
end;