WriteToConsole("1___11 \n")

loadresource("data\\1\\11\\0005.png","border"     ,1005);
loadresource("data\\1\\11\\0022.png","digit"      ,1022);
loadresource("data\\1\\11\\0027.jpg","door"       ,1027);
loadresource("data\\1\\11\\plashki.png","plashki"  ,1006);
loadresource("data\\1\\11\\skip_not_act.png","skip_not_act"  ,1050);


check=false
AddObjForCur()
SetFlagsForSatButtons()

-- Corners={}
-- Corners["xl"]=135
-- Corners["yl"]=110
-- Corners["xr"]=135+708
-- Corners["yr"]=110+502


addstaticobjecttogame(1000,"plashki"  ,156,370,"",0,143,227,367-143); --ручка открыта
speciale_action(2,1000);
addstaticobjecttogame(1001,"plashki"   ,156,370,"",227,234,454-227,385-234); --ручка полуоткрыта
speciale_action(2,1001);
addactivobjecttogame(1002,"plashki"       ,160,374,"","",0,0,0,396,221,478-396); --ручка
Set_Anim_Cur(1002,4);

addstaticobjecttogame(1005,"border"     ,136,107,""); --рамка
CloseBtnX,CloseBtnY,SkipBtnX,SkipBtnY,HelpBtnX,HelpBtnY=Coords(1005)


HelpWidth=36
HelpHeight=36

if flags.cod then

  CreateHelpBtn(HelpBtnX,HelpBtnY,36,36);
  speciale_action(2,1050);
  AddSkipBtn(SkipBtnX,SkipBtnY);
end;

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



addstaticobjecttogame(1006,"plashki",394,175,"",9,13,53,42); --наж кн1
speciale_action(2,1006);
addactivobjecttogame(1007,"plashki" ,392,173,"","",0,0,79,11,53,42); --кн1
addstaticobjecttogame(1008,"plashki",454,175,"",9,13,53,42); --наж кн2
speciale_action(2,1008);
addactivobjecttogame(1009,"plashki" ,452,173,"","",0,0,79,11,53,42); --кн2
addstaticobjecttogame(1010,"plashki",514,175,"",9,13,53,42); --наж кн3
speciale_action(2,1010);
addactivobjecttogame(1011,"plashki" ,512,173,"","",0,0,79,11,53,42); --кн3
addstaticobjecttogame(1012,"plashki",574,175,"",9,13,53,42); --наж кн4
speciale_action(2,1012);
addactivobjecttogame(1013,"plashki" ,572,173,"","",0,0,79,11,53,42); --кн4
addstaticobjecttogame(1014,"plashki" ,394,343,"",9,81,53,42); --наж кн5
speciale_action(2,1014);
addactivobjecttogame(1015,"plashki"       ,392,341,"","",0,0,79,81,53,42); --кн5
addstaticobjecttogame(1016,"plashki"     ,454,343,"",9,81,53,42); --наж кн6
speciale_action(2,1016);
addactivobjecttogame(1017,"plashki"       ,452,341,"","",0,0,79,81,53,42); --кн6
addstaticobjecttogame(1018,"plashki"     ,514,343,"",9,81,53,42); --наж кн7
speciale_action(2,1018);
addactivobjecttogame(1019,"plashki"       ,512,341,"","",0,0,79,81,53,42); --кн7
addstaticobjecttogame(1020,"plashki"     ,574,343,"",9,81,53,42); --наж кн8
speciale_action(2,1020);
addactivobjecttogame(1021,"plashki"       ,572,341,"","",0,0,79,81,53,42); --кн8
-- for i=1006,1021,1 do
    -- Set_Anim_Cur(i,4)
-- end;
addstaticobjecttogame(1028,"digit"      ,408,248,""); --цифры
addstaticobjecttogame(1029,"digit"      ,467,248,""); --цифры
addstaticobjecttogame(1030,"digit"      ,527,248,""); --цифры
addstaticobjecttogame(1031,"digit"      ,587,248,""); --цифры
addstaticobjecttogame(1023,"plashki"        ,403,244,"",160,28,38,73); --пл1
addstaticobjecttogame(1024,"plashki"        ,462,244,"",160,28,38,73); --пл2
addstaticobjecttogame(1025,"plashki"        ,522,244,"",160,28,38,73); --пл3
addstaticobjecttogame(1026,"plashki"        ,582,244,"",160,28,38,73); --пл4
if flags.cod then
  addstaticobjecttogame(1040,"plashki"        ,564,371+8,"",225,0,512-225,226); --лист
end;
addstaticobjecttogame(1027,"door"       ,145,119,"",0,0,688,482); --фон

Block_Show_Cur(true)