loadresource("data\\8\\12\\0005.png",   "seyf_kartina_05",1005);
loadresource("data\\8\\12\\0006.png",   "seyf_kartina_06",1006);
loadresource("data\\8\\12\\0008.png",   "seyf_kartina_08",1008);    
loadresource("data\\8\\12\\seyf_kartina.png",   "seyf_kartina",1009);
loadresource("data\\8\\12\\0047.jpg",   "seyf_kartina_47",1047);
loadresource("data\\inventary\\vot_ono.png","vot_ono",1048);

SetFlagsForSatButtons()
AddObjForCur()

addstaticobjecttogame(1005,"seyf_kartina_05",140,8  ,""); --рамка
CloseBtnX,CloseBtnY,SkipBtnX,SkipBtnY,HelpBtnX,HelpBtnY=Coords(1005)


HelpWidth=36
HelpHeight=36
CreateHelpBtn(HelpBtnX,HelpBtnY,36,36);



if flags.kamin_puzzle and not flags.safe_complete then
    AddSkipBtn(SkipBtnX,SkipBtnY);
end;


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


NewObj("merdn","vot_ono",2000,2000,"246",nil,nil,nil,nil,"2008"); --заветная ВЕЩЬ --1048
NewObj("mernd","seyf_kartina",309,471,"246",499,0,264,73); --заветная ВЕЩЬ --1048
speciale_action(2,obj.mernd.id);
addstaticobjecttogame(1006,"seyf_kartina_06",240,0  ,""); --открытый сейф
speciale_action(2,1006);
addstaticobjecttogame(1007,"seyf_kartina",138,474,"",0,0,374,161); --листок
if not flags.kamin then
  speciale_action(2,1007);
end;
addstaticobjecttogame(1008,"seyf_kartina",526,473,"",986,0,23,55); --подложка для 6 пары
addstaticobjecttogame(1009,"seyf_kartina",528,475,"",986,157,21,29); --нажата верхняя 6 пары
speciale_action(2,1009);
addactivobjecttogame(1010,"seyf_kartina",528,475,"","",0,0,986,123,21,34); --кнопка верхняя 6 пары
addstaticobjecttogame(1011,"seyf_kartina",529,496,"",986,55,20,34); --нажата нижняя 6 пары
speciale_action(2,1011);
addactivobjecttogame(1012,"seyf_kartina",529,496,"","",0,0,986,89,20,34); --кнопка нижняя 6 пары

addstaticobjecttogame(1013,"seyf_kartina",526,403,"",986,0,23,55); --подложка для 5 пары
addstaticobjecttogame(1014,"seyf_kartina",528,405,"",986,157,21,29); --нажата верхняя 5 пары
speciale_action(2,1014);
addactivobjecttogame(1015,"seyf_kartina",528,405,"","",0,0,986,123,21,34); --кнопка верхняя 5 пары
addstaticobjecttogame(1016,"seyf_kartina",529,426,"",986,55,20,34); --нажата нижняя 5 пары
speciale_action(2,1016);
addactivobjecttogame(1017,"seyf_kartina",529,426,"","",0,0,986,89,20,34); --кнопка нижняя 5 пары

addstaticobjecttogame(1018,"seyf_kartina",526,333,"",986,0,23,55); --подложка для 4 пары
addstaticobjecttogame(1019,"seyf_kartina",528,335,"",986,157,21,29); --нажата верхняя 4 пары
speciale_action(2,1019);
addactivobjecttogame(1020,"seyf_kartina",528,335,"","",0,0,986,123,21,34); --кнопка верхняя 4 пары
addstaticobjecttogame(1021,"seyf_kartina",529,356,"",986,55,20,34); --нажата нижняя 4 пары
speciale_action(2,1021);
addactivobjecttogame(1022,"seyf_kartina",529,356,"","",0,0,986,89,20,34); --кнопка нижняя 4 пары

addstaticobjecttogame(1023,"seyf_kartina",526,263,"",986,0,23,55); --подложка для 3 пары
addstaticobjecttogame(1024,"seyf_kartina",528,265,"",986,157,21,29); --нажата верхняя 3 пары
speciale_action(2,1024);
addactivobjecttogame(1025,"seyf_kartina",528,265,"","",0,0,986,123,21,34); --кнопка верхняя 3 пары
addstaticobjecttogame(1026,"seyf_kartina",529,286,"",986,55,20,34); --нажата нижняя 3 пары
speciale_action(2,1026);
addactivobjecttogame(1027,"seyf_kartina",529,286,"","",0,0,986,89,20,34); --кнопка нижняя 3 пары

addstaticobjecttogame(1028,"seyf_kartina",526,193,"",986,0,23,55); --подложка для 2 пары
addstaticobjecttogame(1029,"seyf_kartina",528,195,"",986,157,21,29); --нажата верхняя 2 пары
speciale_action(2,1029);
addactivobjecttogame(1030,"seyf_kartina",528,195,"","",0,0,986,123,21,34); --кнопка верхняя 2 пары
addstaticobjecttogame(1031,"seyf_kartina",529,216,"",986,55,20,34); --нажата нижняя 2 пары
speciale_action(2,1031);
addactivobjecttogame(1032,"seyf_kartina",529,216,"","",0,0,986,89,20,34); --кнопка нижняя 2 пары

addstaticobjecttogame(1033,"seyf_kartina",526,123,"",986,0,23,55); --подложка для 1 пары
addstaticobjecttogame(1034,"seyf_kartina",528,125,"",986,157,21,29); --нажата верхняя 1 пары
speciale_action(2,1034);
addactivobjecttogame(1035,"seyf_kartina",528,125,"","",0,0,986,123,21,34); --кнопка верхняя 1 пары
addstaticobjecttogame(1036,"seyf_kartina",529,146,"",986,55,20,34); --нажата нижняя 1 пары
speciale_action(2,1036);
addactivobjecttogame(1037,"seyf_kartina",529,146,"","",0,0,986,89,20,34); --кнопка нижняя 1 пары

addstaticobjecttogame(1038,"seyf_kartina",330,227,"",763,0,89,87); --ручка повернута
speciale_action(2,1038);
addactivobjecttogame(1039,"seyf_kartina",332,227,"","",0,0,852,0,87,89); --ручка
Set_Anim_Cur(1039,4)

addstaticobjecttogame(1045,"seyf_kartina_08",566,134,""); --символы1
addstaticobjecttogame(1044,"seyf_kartina_08",566,202,""); --символы2
addstaticobjecttogame(1043,"seyf_kartina_08",566,273,""); --символы3
addstaticobjecttogame(1042,"seyf_kartina_08",566,342,""); --символы4
addstaticobjecttogame(1041,"seyf_kartina_08",566,412,""); --символы5
addstaticobjecttogame(1040,"seyf_kartina_08",566,483,""); --символы2


addstaticobjecttogame(1046,"seyf_kartina",563,126,"",939,0,47,49); --плашка1
addstaticobjecttogame(1047,"seyf_kartina",563,196,"",939,0,47,49); --плашка2
addstaticobjecttogame(1048,"seyf_kartina",563,266,"",939,0,47,49); --плашка3
addstaticobjecttogame(1049,"seyf_kartina",563,336,"",939,0,47,49); --плашка4
addstaticobjecttogame(1050,"seyf_kartina",563,406,"",939,0,47,49); --плашка5
addstaticobjecttogame(1051,"seyf_kartina",563,476,"",939,0,47,49); --плашка6

addstaticobjecttogame(1053,"seyf_kartina",148+368,14+60,"",374,0,125,504);


addstaticobjecttogame(1052,"seyf_kartina_47",148,21 ,"",0,0,620,610); --закрытый сейф

if flags.safe_complete then
      speciale_action(2,1007);
      speciale_action(2,obj.mernd.id);
      Set_Anim_Cur(obj.mernd.id,4)
      speciale_action(2,1006);
    --set_text(2001,"1012")
    HideHelp()
    --HideSkip()
    --speciale_action(2,10011)      
end;


Block_Show_Cur(true)
WaitRender();