function SelectRandom()
  if obj.bagor~=nil and not obj.bagor.is_collapsed then
    selectrandomobject1(1.5,obj.bagro.id,false);
  return;end;
   not_hint=true
CreatePlashechka(900000,"10005")
return;end;

function SetCursors()
    ItemsCur={}
    PointingItems={}
    Set_Anim_Cur(1,14);
    Set_Anim_Cur(2,11);
    if obj.bagor~=nil and not obj.bagor.is_collapsed then
        Set_Anim_Cur(obj.bagro.id,4)
    end;
end;

function SetParticles()
    AddParticleToObject(4,"fakel_perehod",17,201);
    MoveEmiter("fakel_perehod",17,201);
    StartEmiter("fakel_perehod");
    if obj.bagor~= nil and not obj.bagor.is_collapsed then
        AddParticleToObject(obj.bagro.id,"bagor",125,393);
        MoveEmiter("bagor",125,393);
        StartEmiter("bagor");
    end;
end;

function ActionsJump ()
    
end;

function gameinput (sender,obj_id,attachedID) 
CursorTreatment(obj_id,sender,attachedID);
  if sender==100 then
    SetParticles()
    SetCursors()
    BlockCursor(false)
    playeffect("fire",true);
  return;end;
  if sender==33 then    
    Block_Show_Cur(false);
  return;end;
  if sender==36 then
    if obj_id==222111 then
        flySn1 = {"InstantiationOfLine", 2, 250, 900, 250, -200, 25, false};
    return;end;
  return;end;
  if sender==42 then
    if obj_id==222 then
        StartTimer(222111,10)
    return;end;
  return;end;
  if sender == 1 then
    g_attachedID = attachedID;
    if obj_id == obj.bagro.id then
        StoreObj(obj.bagor.id,obj.bagro.id,"114",335,350,"bagor",247,228)
        StopEmiter("bagor")
    return; end;    
    if obj_id == 1 then
      playeffect("step_room")
        RemObjFromMouse()
      jump("jmp_mayor_house","mayor_house",8,0);
    return; end;
    if obj_id == 2 then
      playeffect("step_room")
        RemObjFromMouse()
      jump("jmp_mayor_house","secret_room",7,0);
    return; end;
  return ;end;

end

function SheetSwitched(nCount)
end;