loadresource("data\\5\\11\\0005.png","portal_lock1",1005);
loadresource("data\\5\\11\\0006.png","portal_lock2",1006);
loadresource("data\\5\\11\\0009.png","portal_lock5",1009);
loadresource("data\\5\\11\\0012.png","portal_lock8",1012);
loadresource("data\\5\\11\\0013.png","portal_lock18",1012);
loadresource("data\\5\\11\\0013.jpg","portal_lock9",1013);
loadresource("data\\5\\11\\svet.png","portal_svet",1012);
--set_activ_free_leaf("portal_lock");    
-- Block_Show_Cur(false);

SetFlagsForSatButtons()
AddObjForCur()

-- Corners={}
-- Corners["xl"]=29
-- Corners["yl"]=32
-- Corners["xr"]=29+974
-- Corners["yr"]=32+604

ForEye1={
0,0,
0,1,
1,1,
1,0
}

ForEye2={
0,0,
0,1,
1,1,
1,0
}

addactivobjecttogame(1018,"portal_lock18",350,373,"",""); --морда
speciale_action(2,1018)
addstaticobjecttogame(1005,"portal_lock1",27 ,34 ,""); --рамка
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(1015,"portal_svet",112,0,"");
speciale_action(2,1015)
visible=false;

Fields={135,135+111,135+111*2,135+111*3,135+111*4,135+111*5,135+111*6}


addactivobjecttogame(1006,"portal_lock2",556,165,"",""); --ключ1
addactivobjecttogame(1007,"portal_lock2",667,165,"",""); --ключ2
addactivobjecttogame(1008,"portal_lock2",778,165,"",""); --ключ3
addactivobjecttogame(1009,"portal_lock5",112,165,"",""); --ключ4
addactivobjecttogame(1010,"portal_lock5",223,165,"",""); --ключ5
addactivobjecttogame(1011,"portal_lock5",334,165,"",""); --ключ6


addactivobjecttogame(1052,"portal_lock8",423,440,"",""); --морда
    Set_Anim_Cur(1052,4);
    OnMouseOver(1052)

CreatePolygon(9000000,4,"ForEye1")
CreatePolygon(9000001,4,"ForEye1")

AddParticleToObject(9000000,"tiger_eye1",498 ,528);
MoveEmiter("tiger_eye1",498 ,528);
StartEmiter("tiger_eye1");

AddParticleToObject(9000001,"tiger_eye2",530 ,528);
MoveEmiter("tiger_eye2",530 ,528);
StartEmiter("tiger_eye2");

for i=1006,1011,1 do
   -- Set_Anim_Cur(i,4);
    OnMouseOver(i)
end;

mvis=false

addstaticobjecttogame(1013,"portal_lock9",39 ,42 ,"",0,0,954,584); --фон
Block_Show_Cur(true)
WaitRender();