loadresource("data\\19\\4\\shitok.png","shitok",2);
loadresource("data\\19\\4\\0005.jpg","shitok_5",5);

AddObjForCur()
addstaticobjecttogame(3,"shitok",187,41 ,"",0,0,723,583); --рамка
CloseBtnX,CloseBtnY=Coords(3)

SetFlagsForSatButtons()

CloseWidth=34
CloseHeight=34
CreateCloseBtn(CloseBtnX,CloseBtnY);


addstaticobjecttogame(4,"shitok",552,230,"",827,0,104,212); --нов
speciale_action(2,4);
addactivobjecttogame(5,"shitok",552,230,"","",0,0,723,0,104,212); --стар
Set_Anim_Cur(5,4);

Activ={
191+357,46+184,
191+357+88,46+184,
191+357+88,46+184+198,
191+357,46+184+198
}

CreatePolygon(7,4,"Activ")
speciale_action(2,7)
addstaticobjecttogame(6,"shitok_5",191,46 ,"",0,0,713,571); --бг

if flags.pred_udal then
    Set_Anim_Cur(5,3);
    speciale_action(2,5)
    speciale_action(2,7)
    Set_Anim_Cur(7,4);
end;

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

WaitRender();