function SelectRandom()
  if not obj.medal.is_collapsed then
    selectrandomobject1(1.5,obj.medla.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 not obj.medal.is_collapsed then
        Set_Anim_Cur(obj.medla.id,4);
    end;    
end;

function SetParticles()
    if not obj.medal.is_collapsed then
      AddParticleToObject(obj.medla.id,"fonar",750,509);
      MoveEmiter("fonar",750,509);
      StartEmiter("fonar"); 
    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("fon_dark",true);
  return;end;
  if sender==33 then    
    Block_Show_Cur(false);
  return;end;

  if sender==41 then
    if obj_id==10 then
        speciale_action(2,obj_id)
        StartTimer(1219999,3)
    end;
    if obj_id==11 then
        speciale_action(2,obj_id)
        StartTimer(1229999,2)
    end;    
    if obj_id==12 then
        speciale_action(2,obj_id)
        StartTimer(1239999,4)
    end;        
  return;end;
  
  if sender==36 then
    if obj_id==1219999 then
        speciale_action(2,10)
        StartTravel(10,1,nil,nil,gad1);
    end;    
    if obj_id==1229999 then
        speciale_action(2,11)
        StartTravel(11,1,nil,nil,gad2);
    end;
    if obj_id==1239999 then
        speciale_action(2,12)
        StartTravel(12,1,nil,nil,gad3);
    end;            
  return;end;
  
  if sender == 1 then
    g_attachedID = attachedID;
    if obj_id == obj.medla.id then
        Set_Anim_Cur(obj.medla.id,3)
        StopEmiter("fonar")
        RemObjFromMouse()
        StoreObj(obj.medal.id,obj.medla.id,"325",285,350,"m1",323,217)
    return; end;    
    if obj_id == 1 then
        playeffect("step_room")
        RemObjFromMouse()
        jump("jmp_turma","turma",14,0);
    return; end;
    if obj_id == 2 then
        playeffect("step_room")
        RemObjFromMouse()    
        jump("jmp_turma","vhod_turmy",13,0);
    return; end;
  return ;end;
end

function SheetSwitched(nCount)
end;