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


function ActionsJump (atID)
    StRot50_0=true
    StopRotate(6)
end;

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

function SetParticles()
    AddParticleToObject(1,"FlyList3",100,0);
    MoveEmiter("FlyList3",100,0);
    StartEmiter("FlyList3");
    if not obj.blvkin.is_collapsed then
      AddParticleToObject(100,"bulavka",685,540);
      MoveEmiter("bulavka",685,540);
      StartEmiter("bulavka");
    end;
end;

function gameinput (sender,obj_id,attachedID) 
CursorTreatment(obj_id,sender,attachedID); 
  if sender==33 then    
    Block_Show_Cur(false);
  return;end;

  if sender==100 then
    StRot50_0=false
    SetParticles()
    SetCursors()
    BlockCursor(false)
    RotateObject(6,0,-5,4)
    JR1=true;  
  return;end;
  
  if sender==7 and not StRot50_0 then
        if obj_id==6 then
          if JR1 then
            JR1=false
            RotateObject(6,-5,0,4)
          else      
              JR1=true
              RotateObject(6,0,-5,4)
          end;
        end        
  return;end;
  
  if sender == 1 then
    g_attachedID = attachedID;
    if obj_id == 100 then
      StopEmiter("bulavka");
      StoreObj(obj.blvkin.id,obj_id,"46",335,350,"bulavka",247,228)
      flags.help_bulavka = true;   
      flags.bulavka = true;      
    return; end;      
    if obj_id == 1 then
        playeffect("step_street")
        RemObjFromMouse() 
        jump("jmp_mayor_portal","mayor_portal",5,0);
    return; end;
    if obj_id == 2 then
       playeffect("step_street")
        RemObjFromMouse()    
      jump("jmp_mayor_portal","street",3,0);
    return; end;
  return ;end;
end

function SheetSwitched(nCount)
end;     