function SelectRandom()
    if not obj.kyst.is_collapsed then
       selectrandomobject1(1.5,obj.kyts.id,false);
    return;end;    
    if not flags.lebedkatwo and obj.racha~=nil and obj.racha.is_collapsed then 
       selectrandomobject1(1.5,7,false);
    return;end;        
	 not_hint=true
 CreatePlashechka(900000,"10005")
return;end;

function SetCursors()
    ItemsCur={}
    PointingItems={}
    if not obj.kyts.is_collapsed then
        Set_Anim_Cur(obj.kyts.id,4);
    end;
    if not flags.lebedkatwo  then
        Set_Anim_Cur(7,2);
    end;
    Set_Anim_Cur(13,11);
    if flags.is_spirit and flags.firsthell then
      Set_Anim_Cur(11,14);
    end;
end;

function SetParticles()
  AddParticleToObject(12,"gorza",392,200);
  MoveEmiter("gorza",392,180);
  StartEmiter("gorza");
    if not obj.kyts.is_collapsed then
      AddParticleToObject(obj.kyts.id,"kyst",95,535);
      MoveEmiter("kyst",95,535);
      StartEmiter("kyst");
    end;
    if not flags.lebedkatwo then
      AddParticleToObject(7,"lebedkatwo",178,383);
      MoveEmiter("lebedkatwo",178,383);
      StartEmiter("lebedkatwo");
    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_storm",true);
     playeffect("fon_groza",true);
  return;end;
  if sender==33 then
      Block_Show_Cur(false);
  return;end; 
  if sender == 1 then
    g_attachedID = attachedID;
    if obj_id == obj.kyts.id then
      StoreObj(obj.kyst.id,obj_id,"99",335,350,"kist",290,217)
      StopEmiter("kyst");
    return; end;
    if obj_id == 11 then
        playeffect("step_street")
        RemObjFromMouse()     
        jump("obryv","to_another_world",20,0);
    return; end;
    if obj_id == 7 then
        RemObjFromMouse()
        s_obj=attachedID
        Set_Sat("lebedkatwo",17,1,"obryv")        
    return; end;
    if obj_id == 13 then
      playeffect("step_street")
      RemObjFromMouse()     
      jump("obryv","tropa_obryva",16,0);
    return; end;
  return; end;
  
  if sender == 16 then
    if obj_id==51 or obj_id==52 then
        speciale_action(2,obj_id,true,5);
    end;
    if obj_id == 8 then
      speciale_action(2,9,true,3);
    return; end;
    if obj_id == 9 then
      speciale_action(2,10,true,3);
    return; end;
    if obj_id == 10 then
      speciale_action(2,11,true,3);
    return; end;
    if obj_id == 11 then
      ActivateObject(11,true);
      Set_Anim_Cur(11,14);
      Block_Show_Cur(false);
        CreatePlashechka(900000,"3032")    
    return; end;
    
  return; end;
  
  if sender==15 then
      if obj_id==51 or obj_id==52 then
        speciale_action(2,obj_id,true,5);
    end;
  return;end;
  
  if sender == 36 then   
    if obj_id == 27 then
     Block_Show_Cur(true);
      speciale_action(2,8,true,3);
      speciale_action(2,51,true,5)
        speciale_action(2,52,true,5)
    return; end;
  return; end;
  
end
function SheetSwitched(nCount)
end;