loadresource("data\\19\\3\\0002.png","provoda_2",2);
loadresource("data\\19\\3\\provoda_b1.png","provoda_b1",3);
loadresource("data\\19\\3\\provoda_b2.png","provoda_b2",4);
loadresource("data\\19\\3\\0007.jpg","provoda_7",7);

--set_activ_free_leaf("provoda");
AddObjForCur()

addstaticobjecttogame(3,"provoda_2",54 ,69 ,""); --рамка
CloseBtnX,CloseBtnY=Coords(3)
SetFlagsForSatButtons()

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


addstaticobjecttogame(4,"provoda_b1",88 ,165,"",0,0,774,316); --провода в изоленте
speciale_action(2,4);
addstaticobjecttogame(5,"provoda_b1",88 ,124,"",0,316,774,357); --только левый
speciale_action(2,5);
addactivobjecttogame(6,"provoda_b2",88 ,124,"","",0,0,0,0,774,357); --провода

speciale_action(2,6);
addactivobjecttogame(7,"provoda_b2",88 ,166,"","",0,0,0,357,774,230); --нету
set_pixel_check(7,false)
Set_Anim_Cur(7,4)
addstaticobjecttogame(8,"provoda_7",87 ,76 ,"",0,0,774,443); --бг

if flags.provoda_inelectro then
    Set_Anim_Cur(7,3)
    speciale_action(2,7);
    speciale_action(2,6);
    set_pixel_check(6,false)
    Set_Anim_Cur(6,4)
end;

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

WaitRender();