--loadresource("data\\0\\4\\0000.png","p_0000",3 );
loadresource("data\\0\\4\\0002.png","p_0002",3 );
loadresource("data\\inventary\\med_o.png","p_0004",3 );
loadresource("data\\0\\4\\p_big.png","p_big",3 );
loadresource("data\\0\\4\\0010.jpg","p_0010",3 );

SetFlagsForSatButtons()
AddObjForCur()

-- Corners={}
-- Corners["xl"]=449
-- Corners["yl"]=68
-- Corners["xr"]=975
-- Corners["yr"]=600


Activ={
492,298,
712,241,
920,319,
700,397
}


SetFlagsForSatButtons()


addstaticobjecttogame(12,"p_0002",437,58 ,"");
CloseBtnX,CloseBtnY=Coords(12)

CloseWidth=34
CloseHeight=34

CreateCloseBtn(CloseBtnX,CloseBtnY);
NewObj("med","p_0004",2000,2000,"2011",nil,nil,nil,nil,"2001");
addstaticobjecttogame(15,"p_big",612,261,"",538,0,165,190);
addstaticobjecttogame(16,"p_big",440,128,"",0,0,538,462);
addstaticobjecttogame(17,"p_big",474,160,"",703,0,316,191);
addstaticobjecttogame(18,"p_big",497,211,"",703,191,278,128);
addstaticobjecttogame(19,"p_big",509,246,"",703,319,281,101);

if not flags.posilka then
    for i=13,19,1 do
        speciale_action(2,i)
    end;
end;
CreatePolygon(21,4,"Activ")
Set_Anim_Cur(21,4)
if flags.posilka then
    Set_Anim_Cur(21,3);
    speciale_action(2,21)
    ActivateObject(15,true)
    Set_Anim_Cur(15,4);
end;

addstaticobjecttogame(20,"p_0010",440+9,68,"",0,0,525-9,532-10);

WaitRender()

  if s_obj>0 then
  AddObjToMouse(s_obj)
  s_obj=0
  end;