function SelectRandom()

  if obj.bolts~=nil and (not obj.bolts.is_collapsed) then
     selectrandomobject1(1.5,obj.bolst.id);
  return;end;
   not_hint=true
CreatePlashechka(900000,"10005")

return;end;

function ActionsJump (atID)
    StRot50_1=true
    StopRotate(5)
    StopRotate(6)
end;

function SetParticles()
    AddParticleToObject(1,"FlyList3",100,0);
    MoveEmiter("FlyList3",100,0);
    StartEmiter("FlyList3");
    AddParticleToObject(4,"water3",506,263);
    MoveEmiter("water3",506,263);
    StartEmiter("water3");
    if not obj.bolst.is_collapsed then
        AddParticleToObject(obj.bolst.id,"bolts",781,603);
        MoveEmiter("bolts",781,603);
        StartEmiter("bolts");
    end;
end;

function SetCursors()
    ItemsCur={}
    PointingItems={}
    if not obj.bolts.is_collapsed then
        Set_Anim_Cur(obj.bolst.id,4);
    end;
    Set_Anim_Cur(1,14);
    Set_Anim_Cur(2,11);
end;

function gameinput (sender,obj_id,attachedID)   
CursorTreatment(obj_id,sender,attachedID); 
  if sender==100 then
      SetParticles()
      SetCursors()
      BlockCursor(false)
      playeffect("fon_see",true);
      StRot50_1=false
      VPr1=true
      VPr2=true
      RotateObject(5,0,10,4)
      RotateObject(6,0,-10,4)
  return;end;
  
  if sender==7 and not StRot50_1 then
    if obj_id==5 then
        if VPr1 then
            VPr1=false
            RotateObject(5,10,0,4)
        else
            VPr1=true
            RotateObject(5,0,10,4)
        end;
    end;
    if obj_id==6 then
        if VPr2 then
            VPr2=false
            RotateObject(6,-10,0,4)
        else
            VPr2=true
            RotateObject(6,0,-10,4)
        end;
    end;    
  return;end;
  

  
  if sender==33 then    
    Block_Show_Cur(false);
  return;end;
  if sender == 36 then
    if obj_id==2221 then
      StartTimer(1223,25)
      StartTravel(222,1,nil,nil,flySeagulsp1);
    return;end;   
    if obj_id==2222 then
      StartTimer(1223,22)
      StartTravel(223,1,nil,nil,flySeagulsp2);
    return;end;   
    if obj_id==2223 then
      StartTimer(1223,28)
      StartTravel(224,1,nil,nil,flySeagulsp3);
    return;end;         
  return; end;
  if sender == 1 then
    g_attachedID = attachedID;
        if obj_id == obj.bolst.id then
            clicking_now=true
            RemObjFromMouse()
            --StoreObj(attachedID);     
            StopEmiter("bolts");            
            flags.help_bolts = true;
        StoreObj(obj.bolts.id,obj_id,"57",335,350,"bolti",247,228)
        return;end;    
    if obj_id == 1 then
       playeffect("step_street")
        RemObjFromMouse()  
      -- ActionsJump()
      jump("jmp_prichal","parom",9,0);
    return; end;
    if obj_id == 2 then
      playeffect("step_street")
        RemObjFromMouse()
      -- ActionsJump()    
      jump("jmp_prichal","street",3,0);
    return; end;
  return ;end;
  

  
  if sender==14 then
    AddObjToMouse(obj_id,attachedID)
  return; end;
end

function SheetSwitched(nCount)
end;