function Buttons_T(sender,obj_id)
    ButtonTreatment(obj_id,10001,10002,10003,CloseBtnX,CloseBtnY,34,34,sender,"laborator",false)  
end;

function gameinput (sender,obj_id,attachedID) 
Buttons_T(sender,obj_id)
CursorTreatment(obj_id,sender,attachedID);    
  if sender == 30 then
      Block_Show_Cur(false);
      DeleteResource("tatoo2");
      DeleteResource("tatoo3");
      DeleteResource("tatoo4");           
    setcurentleaf("laborator",2,0);
    if flags.tatoo then
      UnStoreObj(obj.photo.id);    
      flags.help_tatoo = true;
      flags.comics4=true
      speciale_action(2,20);
      Set_Anim_Cur(20,2);
    AddParticleToObject(20,"p4",265,339);
    MoveEmiter("p4",265,339);
    StartEmiter("p4");        
      IfTableClose()
      CreatePlashechka(900050,"128")
    end;
    Block_Show_Cur(false);
  return;end;
  
  if sender == 1 then
    
    if obj_id == 5 then
        RemObjFromMouse()
        Set_Anim_Cur(5,3);
        speciale_action(2,4,true);
        Set_Anim_Cur(4,2);
    return; end;
    
    if obj_id == 4 then
        RemObjFromMouse()        
        Block_Show_Cur(true);
        flags.tatoo = true;
        clear_satelite_leaf("laborator");
    
    return; end;
  return ;end;
  
  
end
function SheetSwitched(nCount)
end;