menuArray = new Array(
"0|index|Добро пожаловать в Бретань",
	"1|hebergement|Размещение",
		"2|hotels|Отели",
			"3|armor|Кот д'Армор",
				"4|auchateau|Hotel Au Chateau Du Val 3* - Planguenoul",
				"4|legeorges|Le Georges  3* - Pleneuf Val Andre",
				"4|lasalle|Le Manoir de la Salle  3* - Plurien",
				"4|lesdineux|Les Dineux  3* - Tremeur",
				"4|lagapa|L’Agapa 3* - Perros-Guirec",
				"4|aiguemarine|Aigue Marine 3* - Treguer",
				"4|ausaintyves|Au Saint-Yves 2* - Perros-Guirec",
				"4|beausite|Castel Beau Site 3* - Perros-Guirec",
				"4|plagedelamer|La Plage et de la Mer 2* - Tregastel",
				"4|letoeno|Le Toeno 2* - Trebeurden",
				"4|saintsamson|Golf Hotel de Saint-Samson 2* - Pleumeur Bodou",
				"4|desbains|Des Bains 3* - Lancieux",
			"3|finistere|Финистер",
				"4|keralloret|Auberge de Keralloret 2* - Guesseny",
				"4|legulfstream|Le Gulf Stream 3* - Roscoff",
				"4|devivre|Le Temps de vivre 3* - Roscoff",
				"4|ducentre|Hotel du Centre 2* - Roscoff",
				"4|thalassa|Thalassa - Camaret Sur Mer",
				"4|thalasstonic|Thalasstonic 3* - Douarnenez",
				"4|kerveoch|L’auberge de Kerveoc’h 2* - Douarnenez",
				"4|vallombreuse|Le Clos de Vallombreuse 3* - Douarnenez",
				"4|legoyen|Le Goyen 3* - Audierne",
				"4|lekeransquer|Le Ker Ansquer 3* - Pouldreuzic",
				"4|lesvaniel|Domaine de Lesvaniel 2* - Landudec",
				"4|abbatiale|Le Grand Hotel Abbatiale 3* - Benodet",
				"4|legradlon|Le Gradlon 3* - Quimper",
				"4|capcoz|Hotel de la pointe de Cap Coz 2* - Fouesnant",
				"4|monalisa|Mona Lisa 2* - Fouesnant",
				"4|locean|L’Ocean 3* - Concarneau",
				"4|ajoncsdor|Les Ajoncs d’Or 2* - Pont-Aven",
				"4|chezpierre|Chez Pierre 2* - Nevez",
				"4|villatrimen|La Villa Tri Men 3* - Сен-Марин",
			"3|illietvillen|Иль-и-Вилен",
				"4|lejerzual|Le Jerzual 3* - Динан",
				"4|kyriadplage|Kyriad St Malo Plage 3* - Сен-Мало",
				"4|lesormes|Les Ormes 3* - Epiniac",
				"4|louvre|Hotel Du Louvre 3* - Сен-Мало",
				"4|oceania|Hotel Oceania 3* Сен-Мало",
				"4|alba|Hotel L'Alba 3* Сен-Мало",
				"4|jersey|Le Jersey 2* - Сен-Мало",
				"4|lamalouiniere|La Malouiniere des Longchamps 3* - St Jouan Des Guerets",
				"4|lestilleuls|Les Tilleuls 2* - Dinard",
				"4|leroiarthur|Le Roi Arthur 3* - лес Броселианд",
				"4|ghdesthermes|Le Grand Hotel de Thermes 4* - Сен-Мало",
				"4|coqgadby|Le Coq Gadby 4* - Рен",
				"4|lantinea|L’Antinea 3* - Сен-Мало",
				"4|lavillefromoy|La Villefromoy 3* - Сен-Мало",
				"4|lecentral|Le Central - Сен-Мало",
				"4|ghlucienbarriere|Le Grand Hotel Lucien Barriere 4* - Dinard",
			"3|morbihan|Морбиан",
				"4|kerniaven|Les Chaumieres de Kerniaven 4* - Hennebont",
				"4|celtique|Le Celtique 3* - Carnac",
				"4|tumulus|Le Tumulus 3* - Carnac",
				"4|europa|Europa 3* - Quiberon",
				"4|laurent|Hotel du Golf de St Laurent 3* - Ploermel",
				"4|miramar|Le Miramar 4* - Arzon",
				"4|cobh|Hotel Le Cobh 3* - Ploermel",
				"4|lebono|Hostellerie Abbatiale 3* - Ле Боно",
				"4|locguenole|Chateau de Locguenole 4* - Лорьян",
				"4|leroof|Le Roof 3* - Ван",
		"2|residences|Резиденции",
			"3|locgueran|Chateau de Locgueran 3* - Одьерн",
			"3|eurogreen|Residence - Hotel Eurogreen 3* - Беноде",
			"3|rpevdouarnenez|Residence Pierre et Vacances - Дуарнен",
			"3|rpevfouesnant|Residence Pierre et Vacances - Фуэнан-ле Гленан",
			"3|lafalaise|Villas La Falaise 3* - Динан",
			"3|domainedesornes|Residence Le Domaine des Ornes - Доль-де-Бретань",
			"3|vpevportcrouesty|Village Pierre et Vacances - Порт-Круэсти",
			"3|rpevbelleile|Residence Pierre et Vacances - Бель-Иль-ан-Мер",
			"3|maeva|Residence Maeva - Перрос-Гирек",
			"3|cotesdarmor|Residence Les Cotes d'Armor - Плестен-Ле-Грев",
			"3|arvro|Residence Ar Vro - St Cast Le Guildo",
			"3|orionmaeva|Residence Orion Maeva Saint Malo - St Malo",
			"3|reinemarine|Residence Reine Marine - St Malo",
			"3|carquois|Residence De La Carquois - Sables D'Or Les Pins",
			"3|grandlarge|Residence Les Grand Large - Trevou treguignec",
			"3|euromer|Residence Euromer - ile Tudy",
			"3|hauts|Residence Les Hauts De Bellangenets - Clohars Carnoet",
			"3|moulin|Residence Le Village Du Moulin - Sizun",
			"3|plage|Residence De La Plage - St Nic",
			"3|roiarthur|Les Cottages du Roi Arthur - Ploermel",
			"3|maevaorion|Residence Maeva-Orion - Carnac",
			"3|maisons|Les Maisons Du Chateau Du Val - Planguenoual",
			"3|gauguin|Villa Gauguin - Clohars Carnoet",
			"3|moulin|Residence Le Village Du Moulin - Suzin",
			"3|conquet|Residence Des Iles Le Conquet - Le Conquet",
			"3|morgat|Residence Pierre Vacances Cap Morgat - Crozon",
			"3|gildas|Residence Vacantel Sarzeau-Saint Gildas - Sarzeau",
			"3|quiberon|Residence Vacantel Quiberon - Quiberon",
			"3|penestin|Residence Les Iles Penestin - Penestin",
			"3|goelia|Residence Goelia La Voile D'Or - Ile Aux Moines",
		"2|villas|Виллы",
			"3|labergerie|Вилла Villa La Bergerie",
			"3|lelogis|Вилла Villa Le Logis",
			"3|lagarde|Вилла Villa La Garde",
			"3|tysantezanna|Вилла Villa Ty Santez Anna",
			"3|quietandsea|Вилла Villa Quiet and Sea - Pouldu",
			"3|kersaliou|Вилла Villa Kersaliou",
			"3|lachaumiere|Вилла Villa La Chaumiere - Baud",
			"3|guernevez|Вилла Villa Guernevez",
			"3|argranch|Вилла Villa Ar Granc'h",
			"3|macareux|Вилла Villa Macareux",
			"3|lesemaphore|Вилла Villa Le Semaphore - St Cast Le Guildo",
			"3|bellevue|Вилла Villa Le Royal Bellevue - St Cast Le Guildo",
			"3|lacorbinais|Вилла Villa La Corbinais - Saint Michel De Plenan",
			"3|chenevert|Вилла Villa Le Chene Vert - St Cast Le Guildo",
			"3|penguen|Вилла Villa Pen Guen - St Cast Le Guildo",
			"3|laplage|Вилла Apartement de la Plage - St Cast Le Guildo",
			"3|jasmin|Вилла Villa Jasmin - St Cast Le Guildo",
			"3|troispierres|Вилла Villa Les Trois Pierres - Erquy",
			"3|morieux|Вилла Villa Morieux - Morieux",
			"3|laigrette|Вилла Villa L Aigrette - Hillion",
			"3|guingamp|Вилла Villa La Moulin Du Vieux Guingamp - Begard",
			"3|genets|Вилла Villa Les Genets - Plelo",
			"3|tiarmor|Вилла Villa Ti Ar Mor - Plerin",
			"3|delaplage|Вилла Residence De La Plage - Plerin",
			"3|marine|Вилла Villa Marine - Tregueux",
			"3|grenouillere|Вилла Villa La Grenouillere - Lantic",
			"3|lhote|Вилла Villa L'Hote - Treguidel",
			"3|veuzit|Вилла Villa Le Veuzit - Lannebert",
			"3|bettina|Вилла Villa Bettina - Plouha - Plouha",
			"3|olivier|Вилла Maison De L Olivier - Plouha",
			"3|coat|Вилла Villa Ty Bihan Coat - Plougrescant",
			"3|perros|Вилла Villa Ty Bihan Perros - Perros Guirec",
			"3|menez|Вилла Villa Menez Ar Seas - Plouider",
			"3|typors|Вилла Villa Ty Pors - Brignogan Plage",
			"3|groas|Вилла Villa Beg Ar Groas - Plouneour Trez",
			"3|tyfanch|Вилла Villa Ty Fanch - Plouneour Trez",
			"3|kerheol|Вилла Villa Kerheol - Plouguerneau",
			"3|tybian|Вилла Villa Ty Bian - Plouguerneau",
			"3|apollinaire|Вилла Villa Le Logis d'Apollinaire - Peaule",
		"2|hotelsdecharme|Очаровательные и традиционные отели",
			"3|armor|Кот д'Армор",
				"4|rigourdaine|Manoire de Rigourdaine 2* - Плуэ-сюр-Ранс",
				"4|vaumadeuc|Manoire de Vaumadeuc 4* - Плеван",
				"4|lavoiledor|La Voile d'Or 3* - Cабль-д'Ор-ле-Пэн",
				"4|lekermoor|Le Ker Moor 3* - Сен-Ке-Портриё",
				"4|lekloys|Le K'Loys 3* - Памполь",
				"4|brelidy|Chateau de Brelidy 3* - Брэлиди",
				"4|feuxdesiles|Les Feux des Iles 3* - Перрос-Гирек",
				"4|leprintania|Le Printania 3* - Перрос-Гирек",
				"4|letiallannec|Le Ti al Lannec 3* - Треберден",
			"3|finistere|Финистер",
				"4|leghdesbains|Le Grand Hotel des Bains 4* - Локирек",
				"4|lebritanny|Le Brittany 3* - Роскоф",
				"4|letalabardon|Le Talabardon 3* - Роскоф",
				"4|labaiedesanges|La Baie des Anges 3* - Ландеда",
				"4|letijan|Le Ti Jan ar C'hafe 2* - Уэссан",
				"4|stmathieu|Hostellerie de la Pointe St Mathieu - Плугонвелан",
				"4|saintemarine|Sainte-Marine 3* - Сент-Марин",
				"4|larmoric|L'Armoric 3* - Беноде",
				"4|lesgrandesroches|Les Grandes Roches 3* - Трегунк",
				"4|armendu|&laquo;Путь художников: Ar Men Du&raquo; 3* - Невез",
			"3|illeetvillen|Иль и Вилен",
				"4|lepenroc|Le Pen Roc 3* - Шатобург",
				"4|armilin|Ar Milin 3* - Шатобург",
				"4|duchateau|Du Chateau 3* - Комбург",
				"4|lecontinental|Le Continental 3* - Канкаль",
				"4|franceetchateaubriand|France et Chateaubriand 2* - Сен-Мало",
				"4|lebroceliande|Le Broceliande 3* - Сен-Мало",
				"4|lacite|La Cite 3* - Сен-Мало",
				"4|lebeaufort|Le Beaufort 3* - Сен-Мало",
				"4|lascott|L'Ascott 3* - Сен-Мало",
				"4|cunningham|Manoir du Cunningham 3* - Сен-Мало",
				"4|rance|Manoir de la Rance 3* - Плертюи",
			"3|morbihan|Морбиан",
				"4|fontaines|Les Trois Fontaines - Локмарьяке",
				"4|lelogisdeparc|Le Logis de Parc er Greo - Аррадон",
				"4|lesvenetes|Les Venetes - Аррадон",
				"4|lavillakerasy|La Villa Kerasy - Ван",
				"4|rochevilaine|Domaine de Rochevilaine - Билье",
		"2|maisons|Замки/Гостевые дома",
			"3|desblosses|Chateau des Blosses – Мон-Сен-Мишель",
			"3|lahayediree|La Haye d’Iree – Мон-Сен-Мишель",
			"3|delavillouyere|Chateau de la Villouyere – Рен",
			"3|boisglaume|Chateau du Bois Glaume – Рен",
			"3|boschet|Chateau du Boschet – Рен",
			"3|valdarguenon|Chateau du Val d'Arguenon - Сен-Каст-ле-Гилдо",
			"3|hazaie|Manoir Hazaie - Ле Валь-Андре",
			"3|bonabry|Chateau de Bonabry - Сен-Бриё",
			"3|kermezen|Chateau de Kermezen - Трегье",
			"3|lezhildry|Chateau de Lezhildry - Трегье",
			"3|kergrech|Manoir de Kergrec'h - Трегье",
			"3|rosmapamon|Demeure de Rosmapamon - Перрос-Гирек",
			"3|guilguiffin|Chateau de Guilguiffin - Кемпер",
			"3|launay|Chateau du Launay - Плоердю",
			"3|kerlarec|Chateau de Kerlarec - Кемперле",
			"3|talhouet|Chateau de Talhouet - Рошфор-ан-Тер",
			"3|delafoltiere|Chateau de la Foltiere - Мон Сен-Мишель",
			"3|delaballue|Chateau de la Ballue - Марш-де-Бретань",
			"3|desormes|Domaine Des Ormes - Dol De Bretagne",
			"3|vieuville|La Vieuville - Cancale",
			"3|mallet|La Petite Ville Mallet - Saint-Malo",
			"3|iduna|La Villa Iduna - Saint-Malo",
			"3|fleuri|La Malouiniere Du Mont Fleuri - Saint-Malo",
			"3|ruisselee|Manoir De La Ruisselee - Paimpont",
			"3|freslonniere|Domaine De La Freslonniere - Le Rheu",
			"3|pin|Le Chateau Du Pin - Iffendic",
			"3|cadreuc|La Cadreuc - Pleudihen Sur Rance",
			"3|chataigneraie|La Chataigneraie - Pleudihen Sur Rance",
			"3|duprince|Le Clos Du Prince - Quintin",
			"3|rozmaria|Le Manoir De Roz Maria - Quintin",
			"3|gourio|Manoir De La Ville Gourio - Lamballe",
			"3|demeure|La Demeure De La Ville Blanche - Guingamp",
			"3|queffiou|Auberge Du Queffiou - Tonquedec",
			"3|troezel|Troezel Vras - Kerbors",
			"3|neach|Pen An Neach - Plouegat Moysan",
			"3|brini|Manoir De Roch Ar Brini - Morlaix",
			"3|youdig|Auberge Du Youdig - Brennilis",
			"3|vras|Domaine De Rugornou Vras - Brasparts",
			"3|gazarbik|Gaz Ar Bik - Brasparts",
			"3|izella|Kerguidy Izella - Plogoff",
			"3|kerdanet|Manoir De Kerdanet - Poullan Sur Mer",
			"3|lelogis|Le Logis Du Stang - Quimper",
			"3|hippolyte|Путь художников: Maison d’Hyppolite - Quimperle",
			"3|loreeducap|Loree Du Cap - Pont Croix",
			"3|tymat|Ty Mat - Inzinzac Lochrist",
			"3|villamarie|La Villa Marie - Quiberon",
			"3|bois|Le Moulin Du Bois - Berric",
			"3|saintfiacre|Manoir De Saint Fiacre - Malansac",
			"3|pastourelle|La Pastourelle - Thehillac",
			"3|m|Маршрут - Гостевые дома - Ренн",
		"2|fluviale|Речной туризм",
	"1|thalasso|Талассотерапия",
		"2|thalassocarte|Центры талассотерапии",
			"3|belleile|Бель-Иль-ан-Мер",
			"3|benodet|Беноде",
			"3|carnac|Карнак",
			"3|dinard|Динар",
			"3|douarnenez|Дуарненэ",
			"3|portcrouesty|Мирамар-Порт Круэсти",
			"3|roscoff|Роскоф",
			"3|saintmalo|Сен-Мало",
			"3|labaule|Ля Боль",
			"3|quiberon|Киброн",
			"3|perrosguirec|Перрос-Гирек",
		"2|abc|Азбука талассотерапии",
		"2|programs|Оздоровительные программы",
	"1|sport|Спорт",
		"2|golf|Гольф в Бретани",
	"1|curiosites|Достопримечательности",
		"2|argoat|Аргоат, лесной край",
		"2|patreligieux|Религиозное наследие",
		"2|patmaritime|Традиции освоения моря",
		"2|phares|Маяки",
		"2|parcs|Парки и сады",
		"2|citesdart|Города искусств Бретани",
		"2|saintmalo|Сен-Мало и окрестности",
		"2|brest|Брест и окрестности",
		"2|quimper|Кемпер и окрестности",
		"2|vannes|Ван и окрестности",
	"1|excursions|Экскурсии",
		"2|randonnee|Пешие прогулки",
		"2|excursion1|Экскурсия в Бретань и Мон-Сен-Мишель",
		"2|excursion2|Составьте свой маршрут путешествия по Бретани",
	"1|gastronomie|Гастрономия",
		"2|plats|Традиционные блюда",
		"2|boissons|Бретонские напитки",
	"1|histoire|История",
		"2|peintres2|Художники в Бретани",
		"2|peintres|Русские художники в Бретани",
			"3|benua|Александр Николаевич Бенуа (1870-1960)",
			"3|lansere|Евгений Евгеньевич Лансере (1875-1946)",
			"3|tarkhov|Николай Александрович Тархов (1871 – 1930)",
			"3|zinoviev|Александр Зиновьев (1889- 1977)",
			"3|grischenko|Алексей Грищенко (1883-1977)",
			"3|tereshkovich|Константин Терешкович (1902-1978)",
			"3|kuznetsov|Константин Кузнецов (1863-1936)",
			"3|serebriakova|Зинаида Евгеньевна Серебрякова (1884–1967)",
	"1|information|Полезная информация",
		"2|press|Пресс-релиз \"Легендарная Бретань\"",
		"2|fetes|Праздники и фестивали",
	"1|actualites|Новости",
//	"1|addresses|Полезные адреса",
	"1|professionnels|Контакты",
		"2|bretagne|Наши партнеры в Бретани",
		"2|maisondelabretagne|Бретонский Дом в Париже",
	"1|reservation|Бронирование",
	"1|commande|Заказ брошюры",
	"1|sitemap|Карта сайта",
	"1|files|Служебные файлы",
		"2|menu|menu.js",
"||"
);


function shortMenu() {
  var item, section, j, path;
  path = LocalAddress.split("/");
  for(i = 0; i < menuArray.length; i++) {
    item = menuArray[i].split("|");
    if(item[0] == "1") {
      j = 1;
      section = item[1];
      if(item[1] == "curiosites") item[2] = "Достопримечатель-<br>ности";
      if(item[1] == "information") item[2] = "Полезная<br>информация";
      if(section == "files") continue;
      document.write("<tr><td height=22><img src=\""+Homedir+"images/puce_menu.gif\" width=19 height=6></td>");
      document.write("<td height=22><a href=\""+Homedir+item[1]+"\" class=\"lienMenu\">"+item[2]+"</a></td></tr>");
    }
  }
}

function createMenu() {
  var item, section, j, path;
  path = LocalAddress.split("/");
  for(i = 0; i < menuArray.length; i++) {
    item = menuArray[i].split("|");
    if(item[0] == "1") {
      j = 1;
      section = item[1];
      if(item[1] == "curiosites") item[2] = "Достопримечатель-<br>ности";
      if(item[1] == "information") item[2] = "Полезная<br>информация";
      if(section == "files") continue;
      document.write("<tr><td height=22><img src=\""+Homedir+"images/puce_menu.gif\" width=19 height=6></td>");
      document.write("<td height=22><a href=\""+Homedir+item[1]+"\" class=\"lienMenu"+((item[1]==path[0])?((item[1]=="hebergement" && path.length>2)?(""):("Sel")):(""))+"\">"+item[2]+((item[1]=="hebergement")?(":"):(""))+"</a></td></tr>");
    }
    if(item[0] == "2" && section == "hebergement") {
      if(section == "files") continue;
      document.write("<tr><td height=22><img src=\""+Homedir+"images/niet.gif\" width=19 height=6></td>");
      document.write("<td height=22><a href=\""+Homedir+section+"/"+item[1]+"\" class=\"lienMenu1"+((item[1]==path[1])?("Sel"):(""))+"\">"+item[2]+"</a></td></tr>");
      j++;
    }
  }
}

function ChildMap(userpath, hlevel) {
  var item, string = "<p class='ListBleu'>", level, j = 0, path, current_path = new Array(), current_level = 0;
  if(!hlevel) hlevel = 0;
  if(userpath == "/") {
    level = 0;
  } else {
    if(userpath) path = userpath.split("/");
    else path = LocalAddress.split("/");
    current_path = path;
    current_path = current_path.slice(0, -1);
    for(i = 0; i < path.length-1; i++) {
      do {
        j++;
        item = menuArray[j].split("|");
        if((item[0] == i+1) && (item[1] == path[i])) {
          level = item[0];
          break;
        }
      } while(j < menuArray.length);
    }
  }
  current_level = level;
  j++;
  do {
    item = menuArray[j].split("|");
    if(item[1] == "files" || item[0] <= level) {
      document.write(string+"</p>");
      return;
    }
    if(current_level == item[0]) {
      current_path[current_path.length-1] = item[1];
    } else if(current_level > item[0]) {
      for(k = 0; k < current_level - item[0]; k++) current_path = current_path.slice(0, -1);
      current_path[current_path.length-1] = item[1];
      current_level = item[0];
    } else {
      current_path[current_path.length] = item[1];
      current_level = item[0];
    }
    for(k = 0; k < item[0] - level; k++) string += "· ";
    string += " <a href=\""+Homedir+current_path.join("/")+"\""+((current_level - level <= hlevel)?("style=\"color:#e06e00;\""):(""))+">"+item[2]+"</a><br>";
    j++;
  } while (j < menuArray.length);
}

function getChildren(userpath) {
  var i, j, item, children = new Array();
  j = 0;
  if(userpath) path = userpath.split("/");
  else path = LocalAddress.split("/");
  for(i = 0; i < path.length-1; i++) {
    do {
      j++;
      item = menuArray[j].split("|");
      if((item[0] == i+1) && (item[1] == path[i])) {
        break;
      }
    } while(j < menuArray.length);
  }
  do {
    j++;
    if(!menuArray[j]) return children;
    item = menuArray[j].split("|");
    if(item[0] == i+1) children[children.length] = Array(item[1], item[2]);
    if(item[0] <= i) return children;
  } while(1);
}

function getNeighbours() {
  var i, j, item, path, children = new Array();
  j = 0;
  path = LocalAddress.split("/");
  if(path.length <= 2) return children;
  for(i = 0; i < path.length-2; i++) {
    do {
      j++;
      item = menuArray[j].split("|");
      if((item[0] == i+1) && (item[1] == path[i])) {
        break;
      }
    } while(j < menuArray.length);
  }
  do {
    j++;
    if(!menuArray[j]) return children;
    item = menuArray[j].split("|");
    if(item[0] == i+1) {
      if(item[1] != path[path.length-2]) children[children.length] = Array(item[1], item[2]);
      else children[children.length] = Array("", item[2]);
    }
    if(item[0] <= i) return children;
  } while(1);
}

function hNeighboursList(aclass, sclass) {
  var children = getNeighbours();
  for(i = 0; i < children.length; i++) {
    if(i != 0) document.write(" | ");
    document.write(((children[i][0])?("<a class=\""+aclass+"\" href=\"../"+children[i][0]+"\">"+children[i][1]+"</a>"):("<span class='"+sclass+"'>"+children[i][1]+"</span>")));
  }
}

function hChildrenList(aclass) {
  var children = getChildren();
  for(i = 0; i < children.length; i++) {
    if(i != 0) document.write(" | ");
    document.write("<a class=\""+aclass+"\" href=\""+children[i][0]+"\">"+children[i][1]+"</a>");
  }
}

function vChildrenList() {
  var children = getChildren();
  document.write("<table>");
  for(i = 0; i < children.length; i++) {
    document.write("<tr><td valign=\"top\"><img src=\""+Homedir+"images/icon.gif\" alt=\"\" width=\"11\" height=\"13\" border=\"0\"></td><td><a href=\""+children[i][0]+"\">"+children[i][1]+"</a></td></tr>");
  }
  document.write("</table>");
}

function getCurrent() {
  path = LocalAddress.split("/");
  if(path[0] == "hebergement") {
    if(path[1]) return path[1];
    else return path[0];
  }
  else return path[0];
}

function getPath() {
  var i, j, item, path, href, returnpath = new Array();
  j = 0;
  path = LocalAddress.split("/");
  if(path.length == 2) {
    item = menuArray[0].split("|");
    returnpath[returnpath.length] = Array("../", item[2]);
    return returnpath;
  }
  for(i = 0; i < path.length-2; i++) {
    do {
      j++;
      item = menuArray[j].split("|");
      if((item[0] == i+1) && (item[1] == path[i])) {
        href = "";
        for(k = 0; k < path.length - i - 2; k++) href += "../";
        returnpath[returnpath.length] = Array(href, item[2]);
        break;
      }
    } while(j < menuArray.length);
  }
  return returnpath;
}

function hPath(aclass) {
  var path = getPath();
  for(i = 0; i < path.length; i++) {
    document.write("<a class=\""+aclass+"\" href=\""+path[i][0]+"\">"+path[i][1]+"</a>");
    document.write("<span class='"+aclass+"'> > </span>");
  }
}

function OpenMap()
{
  wnd = window.open("bbb", "bbb", "width=700,height=529,status=yes,toolbar=no,menubar=no,location=no,channelmode=no,directories=no,resizable=no,fullscreen=no");
  wnd.document.write("<html><head><title>Бретань</title></head><body style=\"margin:0px;\">");
	wnd.document.write("<object classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0 width=700 height=529 id=map1 align=middle>");
	wnd.document.write("<param name=allowScriptAccess value=sameDomain />");
	wnd.document.write("<param name=movie value=/map1.swf />");
	wnd.document.write("<param name=quality value=high />");
	wnd.document.write("<param name=bgcolor value=#ffffff />");
	wnd.document.write("<embed src=/map1.swf quality=high bgcolor=#ffffff width=700 height=529 name=map1 align=middle allowScriptAccess=sameDomain type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer />");
	wnd.document.write("</object></body></html>");
  wnd.document.close();
}

