hidden_finished=false

if not flags.hidden_garderob then
  SetActivLeaf("garderob");
  
  SetCurrentRM("menu");
  addactivobjecttogame(7700001,"",3000 ,3000,"",""); --переключалка
  AddSheet(7700001,"re","",3000,3000,207,79,"spisok",141,629,576,139,72,60,5,0,0,0,7000034,5);
  AddButtonToSheet("re",7000031,"clues3","clues2","clues1",nil,397,630,188,68,true);
  SetCurrentRM("main");
  
  NewObj("vorob","garderob" ,249,3  ,"97",570,407,48,25); --воробей
  AddElement("re",obj.vorob.id);
  addstaticobjecttogame(2,"garderob" ,0  ,584,"",418,448,152,73); --пивная кружка
  addstaticobjecttogame( 3,"garderob" ,970,572,"",565,360,54,24); --вилка
  NewObj("peresh","garderob" ,604,128,"9",500,362,28,45); --перо
  AddElement("re",obj.peresh.id);

  NewObj("pesoch","garderob" ,752,364,"108",418,372,61,70); --песочные часы
  AddElement("re",obj.pesoch.id);
  set_pixel_check(obj.pesoch.id,false)
  addstaticobjecttogame( 7,"garderob" ,854,462,"",580,296,78,31); --ножницы

  addstaticobjecttogame(12,"garderob",0  ,357,"",296,365,113,192); --ветка сакуры

  NewObj("kist","garderob",880,452,"99",449,311,103,32); --кисть
  AddElement("re",obj.kist.id);

  NewObj("sgra","garderob",652,617,"92",185,505,79,16); --сигара
  AddElement("re",obj.sgra.id);
  addstaticobjecttogame(18,"garderob",533,500,"",200,830,170,137); --моток провода
  NewObj("rulet","garderob",479,596,"106",842,178,78,46); --рулетка
  AddElement("re",obj.rulet.id);
  addstaticobjecttogame(20,"garderob",282,292,"",378,309,66,48); --шестеренка
  addstaticobjecttogame(21,"garderob",706,533,"",183,394,100,97); --утюг
  NewObj("jajco","garderob",552,428,"96",867,148,53,19); --расческа
  AddElement("re",obj.jajco.id);
 set_pixel_check(obj.jajco.id,false)
  addstaticobjecttogame(24,"garderob",946,334,"",931,95,72,98); --скоросшиватель

  addstaticobjecttogame(27,"garderob",297,23 ,"",102,538,175,138); --вешалка

  NewObj("kamen","kamen",2000,2000,"152"); --пробирка
  NewObj("prbkr","garderob",752,384,"152",415,627,58,35); --пробирка
  AddElement("re",obj.prbkr.id);

  addstaticobjecttogame(31,"garderob",558,35 ,"",296,306,74,56); --фара
  NewObj("glob","garderob",496,26 ,"109",180,306,114,83); --глобус
  AddElement("re",obj.glob.id);

  addstaticobjecttogame(34,"garderob",268,480,"",0,769,195,198); --рама

  addstaticobjecttogame(40,"garderob40",0,0 ,""); --дверка
  NewObj("pomad","garderob",270,497,"105",148,167,41,11); --помада
  AddElement("re",obj.pomad.id);
set_pixel_check(obj.pomad.id,false)
  NewObj("roga","garderob",262,57 ,"63",861,0,66,142); --маска
  AddElement("re",obj.roga.id);

  addstaticobjecttogame(54,"garderob",56 ,223,"",726,157,111,87); --попугай

  NewObj("buling","garderob",889,251,"110",265,195,70,59); --шар для боулинга
  AddElement("re",obj.buling.id);
  addstaticobjecttogame(57,"garderob",490,126,"",725,0,136,157); --шарф
  NewObj("brosh","garderob",670,371,"98",240,195,25,47); --брошь
  AddElement("re",obj.brosh.id);

  addstaticobjecttogame(65,"garderob",823,8  ,"",143,195,94,109); --доска для дартс
  NewObj("binok","garderob",812,45 ,"93",92,306,86,225); --бинокль
  AddElement("re",obj.binok.id);
  addstaticobjecttogame(67,"garderob67",0,0,""); --чемоданы
  addstaticobjecttogame(68,"garderob",880,205,"",580,0,144,290); --зонт
  addstaticobjecttogame(69,"garderob",128,256,"",360,0,220,305); --конь
  addstaticobjecttogame(70,"garderob",76 ,91 ,"",0,306,93,463); --веник для пыли

  addstaticobjecttogame(72,"garderob",619,59 ,"",216,0,144,193); --клетка

  addstaticobjecttogame(74,"garderob",663,30 ,"",143,0,73,162); --хлыст

  NewObj("ranec","garderob",139,53 ,"95",0,0,143,306); --рюкзак
  AddElement("re",obj.ranec.id);

  addstaticobjecttogame(81,"garderob81",0  ,0  ,""); --бг
return; end;
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
if flags.hidden_garderob then
  SetActivLeaf("garderob");
  
  SetCurrentRM("menu");
  addactivobjecttogame(7700001,"",3000 ,3000,"",""); --переключалка
  AddSheet(7700001,"re","",3000,3000,207,79,"spisok",141,629,576,139,72,60,5,0,0,0,7000034,5);
  AddButtonToSheet("re",7000031,"clues3","clues2","clues1",nil,397,630,188,68,true);
  SetCurrentRM("main");
  
  addstaticobjecttogame(1,"garderob" ,249,3  ,"",570,407,48,25); --воробей ---------
  addstaticobjecttogame(2,"garderob" ,0  ,584,"",418,448,152,73); --пивная кружка
  addstaticobjecttogame( 3,"garderob" ,970,572,"",565,360,54,24); --вилка
  addstaticobjecttogame(4,"garderob" ,604,128,"",500,362,28,45); --перо-----------------

  addstaticobjecttogame(6,"garderob" ,752,364,"",418,372,61,70); --песочные часы--------
  NewObj("paucha","garderob" ,854,462,"256",580,296,78,31); --ножницы
  AddElement("re",obj.paucha.id);
set_pixel_check(obj.paucha.id,false)
  NewObj("saku","garderob",0  ,357,"258",296,365,113,192); --ветка сакуры
  AddElement("re",obj.saku.id);
set_pixel_check(obj.saku.id,false)
  addstaticobjecttogame(15,"garderob",880,452,"",449,311,103,32); --кисть---------

  addstaticobjecttogame(17,"garderob",652,617,"",185,505,79,16); --сигара--------
  NewObj("kabele","garderob",533,500,"264",200,830,170,137); --моток провода
  AddElement("re",obj.kabele.id);
  addstaticobjecttogame(19,"garderob",479,596,"",842,178,78,46); --рулетка--------
  NewObj("shstrk","garderob",282,292,"250",378,309,66,48); --шестеренка
  NewObj("shstr1","garderob82",2000,2000,"250");
  AddElement("re",obj.shstrk.id);
  set_pixel_check(obj.shstrk.id,false)
  addstaticobjecttogame(21,"garderob",706,533,"",183,394,100,97); --утюг
  addstaticobjecttogame(22,"garderob",552,428,"",867,148,53,19); --расческа------

  NewObj("papkab","garderob",946,334,"257",931,95,72,98); --скоросшиватель
  AddElement("re",obj.papkab.id);

  NewObj("plechy","garderob",297,23 ,"260",102,538,175,138); --вешалка
  AddElement("re",obj.plechy.id);
set_pixel_check(obj.plechy.id,false)
  addstaticobjecttogame(29,"garderob",536,515,"",244,258,57,25); --пробирка--------

  NewObj("fara","garderob",558,35 ,"252",296,306,74,56); --фара
  AddElement("re",obj.fara.id);
  addstaticobjecttogame(32,"garderob",496,26 ,"",180,306,114,83); --глобус----------

  NewObj("ramych","garderob",268,480,"87",0,769,195,198); --рама
  AddElement("re",obj.ramych.id);

  addstaticobjecttogame(40,"garderob40",0,0 ,""); --дверка
  addstaticobjecttogame(41,"garderob",270,497,"",148,167,41,11); --помада-------

  addstaticobjecttogame(47,"garderob",262,57 ,"",861,0,66,142); --маска-----------

  NewObj("popuga","garderob",56 ,223,"253",726,157,111,87); --попугай
  AddElement("re",obj.popuga.id);

  addstaticobjecttogame(56,"garderob",889,251,"",265,195,70,59); --шар для боулинга------
  NewObj("sharf","garderob",490,126,"251",725,0,136,157); --шарф
  AddElement("re",obj.sharf.id);
  addstaticobjecttogame(58,"garderob",670,371,"",240,195,25,47); --брошь--------------

  NewObj("darts","garderob",823,8  ,"255",143,195,94,109); --доска для дартс
  AddElement("re",obj.darts.id);
  addstaticobjecttogame(66,"garderob",812,45 ,"",92,306,86,225); --бинокль-----------
  addstaticobjecttogame(67,"garderob67",0,0,""); --чемоданы
  NewObj("zontb","garderob",880,205,"31",580,0,144,290); --зонт
  AddElement("re",obj.zontb.id);
  NewObj("konina","garderob",128,256,"259",360,0,220,305); --конь
  AddElement("re",obj.konina.id);
  addstaticobjecttogame(70,"garderob",76 ,91 ,"",0,306,93,463); --веник для пыли

  NewObj("kleta","garderob",619,59 ,"262",216,0,144,193); --клетка
  AddElement("re",obj.kleta.id);
set_pixel_check(obj.kleta.id,false)
  NewObj("hlyst","garderob",663,30 ,"261",143,0,73,162); --хлыст
  AddElement("re",obj.hlyst.id);
set_pixel_check(obj.hlyst.id,false)
  addstaticobjecttogame(78,"garderob",139,53 ,"",0,0,143,306); --рюкзак----------------

  addstaticobjecttogame(81,"garderob81",0  ,0  ,""); --бг  
end;

