loadresource("data\\4\\5\\vent.png","vent",2 );
loadresource("data\\4\\5\\0009.jpg","ventil_police6",6 );
loadresource("data\\inventary\\krta.png","kartochka" ,3 );

AddObjForCur()

-- Corners={}
-- Corners["xl"]=142
-- Corners["yl"]=37
-- Corners["xr"]=142+670
-- Corners["yr"]=37+563


addactivobjecttogame( 4,"vent",232,414,"","",0,0,823,0,143,17); --карточка1
Set_Anim_Cur(4,4);
NewObj("krtch","kartochka",2000,2000,"125"); --карточка2
NewObj("krthc","vent",232,419,"125",680,0,143,33); --карточка2
speciale_action(2,obj.krthc.id);
addstaticobjecttogame( 6,"vent",142,34 ,"",0,0,680,567); --рамка
CloseBtnX,CloseBtnY=Coords(6)

SetFlagsForSatButtons()

CloseWidth=34
CloseHeight=34

CreateCloseBtn(CloseBtnX,CloseBtnY);
addstaticobjecttogame( 8,"ventil_police6",152,47 ,"",0,0,650,543); --фон

if flags.card_access then
    speciale_action(2,4);
    Set_Anim_Cur(4,3);
    speciale_action(2,obj.krthc.id);
    Set_Anim_Cur(obj.krthc.id,4)
end;

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