loadresource("data\\6\\1\\0002.png","jama3",3);
loadresource("data\\6\\1\\yama1.png","yama1",7);
loadresource("data\\6\\1\\yama2.png","yama2",8);
loadresource("data\\6\\1\\0007.jpg","jama8",8);



proval=false
AddObjForCur()
addstaticobjecttogame(3,"jama3",91,40,""); --рамка
CloseBtnX,CloseBtnY=Coords(3)
-- Corners={}
-- Corners["xl"]=89
-- Corners["yl"]=37
-- Corners["xr"]=89+775
-- Corners["yr"]=37+578
SetFlagsForSatButtons()

CloseWidth=34
CloseHeight=34

CreateCloseBtn(CloseBtnX,CloseBtnY);



addstaticobjecttogame(10,"yama2",186,138,"",320,0,302,244); 
addstaticobjecttogame(11,"yama2",213,132,"",212,462,234,245);
addstaticobjecttogame(12,"yama2",217,0  ,"",622,0,394,381);
addstaticobjecttogame(13,"yama2",393,0  ,"",0,0,320,335);
addstaticobjecttogame(14,"yama2",499,0  ,"",622,381,263,414);
addstaticobjecttogame(15,"yama2",549,0  ,"",0,462,212,351);
addstaticobjecttogame(16,"yama2",371,281,"",0,335,480,127);
addstaticobjecttogame(17,"yama2",451,325,"",212,707,335,72);
addstaticobjecttogame(18,"yama1",96,44,"",0,0,765,501);

counter=0;
for i=10,18,1 do
    speciale_action(2,i)
end;



addactivobjecttogame(7,"yama1",96,56,"","",0,0,0,501,765,512); --яма
Set_Anim_Cur(7,4)
addstaticobjecttogame(8,"jama8",99,47,"",0,0,755,558); --фон

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

addfade(501,0);

effect_jama = false;