function SelectRandom()

  if not flags.postbox and (obj.blvkin~=nil and obj.blvkin.is_collapsed) then
     selectrandomobject1(1.5,3);
  return;end;  
  if not flags.portal_lock then
     selectrandomobject1(1.5,5);
  return;end;
   not_hint=true
CreatePlashechka(900000,"10005")
return;end;

function SetCursors()
    ItemsCur={}
    PointingItems={}
    Set_Anim_Cur(10,11);
    if not flags.postbox then
        Set_Anim_Cur(3,2);
    end;
    if not flags.portal_lock then
        Set_Anim_Cur(5,2);
    end;
    if flags.portal_lock then
      Set_Anim_Cur(11,14);
    end;
end;

function SetParticles()
    AddParticleToObject(10,"FlyList5",-100,500);
    MoveEmiter("FlyList5",-100,500);
    StartEmiter("FlyList5");
    if not flags.postbox then
      AddParticleToObject(3,"postbox",121,285);
      MoveEmiter("postbox",121,285);
      StartEmiter("postbox");
    end;
    if not flags.portal_lock then
      AddParticleToObject(5,"polka",514,397);
      MoveEmiter("polka",514,397);
      StartEmiter("polka");
    end;
end;

function ActionsJump ()
    
end;

function gameinput (sender,obj_id,attachedID)        
CursorTreatment(obj_id,sender,attachedID);
    if sender==100 then
        SetParticles()    
        SetCursors()
        Block_Show_Cur(false);
        playeffect("fon_street",true);
    return;end;
    
    if sender == 1 then
        
        g_attachedID = attachedID;
    if obj_id == 5 then
        RemObjFromMouse()
        IsMiniGame=true    
        WriteToConsole("sender= "..sender.."obj_id= "..obj_id.."\n")
        Set_Sat("portal_lock",5,11,"mayor_portal")    
    return; end;
  
    if obj_id == 10 then
        playeffect("step_street")
        RemObjFromMouse()
        jump("mayor_portal","jmp_mayor_portal",50,0);
    return; end;
  
  if obj_id == 11 then
    flags.is_jumping = false;
    playeffect("step_street")
    RemObjFromMouse() 
    jump("mayor_portal","mayor_yard",6,0);
    if flags.mayor_wind and not flags.mayor_wind_not_first and flags.is_jumping then
        speciale_action(2,10);
        Set_Anim_Cur(10,1);
        speciale_action(2,9);
    end;
  return; end;
  
  if obj_id == 3 then
    s_obj=attachedID          
    RemObjFromMouse()
    Set_Sat("postbox",5,1,"mayor_portal")    
  return; end;
return; end;  


end
function SheetSwitched(nCount)
end;