loadresource("data\\20\\11\\0005.png","zamok_in_world05",1005);
loadresource("data\\20\\11\\zamok_in_world.png","zamok_in_world",1006);
loadresource("data\\20\\11\\0028.jpg","zamok_in_world28",1028);

SetFlagsForSatButtons()
AddObjForCur()

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


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


AddSkipBtn(SkipBtnX,SkipBtnY);


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


addstaticobjecttogame(1006,"zamok_in_world",596,168,"",401,144,71,72); --зеленые 
addstaticobjecttogame(1007,"zamok_in_world",718,242,"",401,144,71,72); --зеленые 
addstaticobjecttogame(1008,"zamok_in_world",721,103,"",401,144,71,72); --зеленые 
addstaticobjecttogame(1009,"zamok_in_world",595,32 ,"",401,144,71,72); --зеленые 
addstaticobjecttogame(1010,"zamok_in_world",235,95 ,"",401,144,71,72); --зеленые 
addstaticobjecttogame(1011,"zamok_in_world",595,307,"",401,0,71,72); --розовые
addstaticobjecttogame(1012,"zamok_in_world",476,98 ,"",401,0,71,72); --розовые
addstaticobjecttogame(1013,"zamok_in_world",476,237,"",401,0,71,72); --розовые
addstaticobjecttogame(1014,"zamok_in_world",362,313,"",401,0,71,72); --розовые
addstaticobjecttogame(1015,"zamok_in_world",477,375,"",401,72,71,72); --салатовые
addstaticobjecttogame(1016,"zamok_in_world",234,237,"",401,72,71,72); --салатовые
addstaticobjecttogame(1017,"zamok_in_world",358,31 ,"",401,72,71,72); --салатовые
addstaticobjecttogame(1018,"zamok_in_world",357,167,"",401,72,71,72); --салатовые

SetObjectPosition(1011,358,31);
SetObjectPosition(1006,595,32);
SetObjectPosition(1015,235,95);
SetObjectPosition(1007,476,98);
SetObjectPosition(1016,721,103);
SetObjectPosition(1008,357,167);
SetObjectPosition(1012,596,168);
SetObjectPosition(1017,234,237);
SetObjectPosition(1009,476,237);
SetObjectPosition(1013,718,242);
SetObjectPosition(1010,362,313);
SetObjectPosition(1018,595,307);
SetObjectPosition(1014,477,375);

addstaticobjecttogame(1019,"zamok_in_world",312,73 ,"",0,0,401,399); --круг центра
SetHotPoint(1019,201,200);
addstaticobjecttogame(1020,"zamok_in_world",431,6  ,"",0,0,401,399); --круг правый
SetHotPoint(1020,201,200);
addstaticobjecttogame(1021,"zamok_in_world",192,6  ,"",0,0,401,399); --круг левый
SetHotPoint(1021,201,200);

addactivobjecttogame(1022,"zamok_in_world",518,411,"","",0,0,0,399,113,106); --нажата право центр круг
addactivobjecttogame(1023,"zamok_in_world",390,412,"","",0,0,113,399,113,105); --нажата лево центр круг
addactivobjecttogame(1024,"zamok_in_world",145,82 ,"","",0,0,401,216,102,115); --нажата верх левый круг
addactivobjecttogame(1025,"zamok_in_world",144,207,"","",0,0,506,331,102,114); --нажата низ левый круг
addactivobjecttogame(1026,"zamok_in_world",778,81 ,"","",0,0,401,331,105,114); --нажата верх правый круг
addactivobjecttogame(1027,"zamok_in_world",778,210,"","",0,0,226,399,105,112); --нажата низ правый круг

naveli={}

for i=1022,1027,1 do
    --OnMouseOver(i)
    naveli[i]=false
  --  Set_Anim_Cur(i,4)
end;
addstaticobjecttogame(1028,"zamok_in_world28",94 ,17 ,"",0,0,849,611); --бг

Block_Show_Cur(true)
WaitRender();
