loadresource("data\\5\\1\\0002.png","postbox3",3);
loadresource("data\\5\\1\\postbox.png","postbox",4);
loadresource("data\\5\\1\\0007.jpg","postbox7",7);
loadresource("data\\inventary\\pincet.png","pincet",6);

--set_activ_free_leaf("postbox");
-- Block_Show_Cur(false);
counter=0
AddObjForCur()
Corners={}
Corners["xl"]=88
Corners["yl"]=8
Corners["xr"]=88+585
Corners["yr"]=8+601
addstaticobjecttogame(3,"postbox3",90 ,9  ,""); --рамка
CloseBtnX,CloseBtnY=Coords(3)

SetFlagsForSatButtons()

CloseWidth=34
CloseHeight=34

CreateCloseBtn(CloseBtnX,CloseBtnY);


NewObj("pinct","pincet",2000,2000,"61"); --пинцет
NewObj("pintc","postbox",262,368,"61",559,0,49,114); --пинцет
if not flags.bulavka_in then
speciale_action(2,obj.pintc.id);
end;
if flags.bulavka_in then
Set_Anim_Cur(obj.pintc.id,4)
end;
addstaticobjecttogame(5,"postbox",212,354,"",0,0,325,245); --открытый ящик
if not flags.bulavka_in then
speciale_action(2,5);
end;
addactivobjecttogame(6,"postbox",332,377,"","",0,0,325+0,0,50,125); --булавка
addactivobjecttogame(16,"postbox",338,378,"","",0,0,325+50,0,76,125); --булавка
addactivobjecttogame(26,"postbox",350,378,"","",0,0,325+126,0,106,125); --булавка
speciale_action(2,6);
speciale_action(2,16);
speciale_action(2,26);

Activ={
327,366,
437,366,
437,420,
327,420
}

CreatePolygon(8,4,"Activ")
Set_Anim_Cur(8,4)
if flags.bulavka_in then
    speciale_action(2,8);
end;
addstaticobjecttogame(7,"postbox7",98 ,18 ,"",0,0,565,581); --фон

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