loadresource("data\\8\\7\\0002.png",     "mayor_wind2" , 2);

loadresource("data\\8\\7\\doski_all.png",     "doski_all" , 4);
loadresource("data\\inventary\\doski.png","mayor_wind11", 11);
loadresource("data\\8\\7\\op_win.jpg",   "mayor_wind10",10);


Block_Show_Cur(false);
AddObjForCur()
addstaticobjecttogame( 3,"mayor_wind2" ,83 ,11 ,""); --рамка
CloseBtnX,CloseBtnY=Coords(3)

SetFlagsForSatButtons()

CloseWidth=34
CloseHeight=34

CreateCloseBtn(CloseBtnX,CloseBtnY);


NewObj("dosk","mayor_wind11" ,5000,5000,"161"); --доски



  addactivobjecttogame(9,"doski_all" ,179,17  ,"","",0,0,0,0,339,627);
addstaticobjecttogame(10,"doski_all" ,134,30,"",339,0,243,596);
 addactivobjecttogame(11,"doski_all" ,137,292,"","",0,0,582,340,427,97);
addstaticobjecttogame(12,"doski_all" ,130,286,"",582,0,319,340);
 addactivobjecttogame(13,"doski_all" ,137,425 ,"","",0,0,339,795,427,163);
addstaticobjecttogame(14,"doski_all" ,114,485,"",582,437,296,134);
addstaticobjecttogame(15,"doski_all" ,132,63 ,"",339,596,449,199);

speciale_action(2,10)
speciale_action(2,12)
speciale_action(2,14)

counter=0;
Set_Anim_Cur(9,4)
Set_Anim_Cur(11,4)
Set_Anim_Cur(13,4)

addactivobjecttogame(20,"mayor_wind10" ,88 ,16 ,"","",0,0,0,0,536,613); --голое коно

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

WaitRender();