var TREE_FORMAT = [
0, 
0, 
false, 
[], 
[9, 9, 9], 
true, 
['images/dash_lmb.gif', 'images/dash_lmb_open.gif', 'images/dash_lms.gif'], 
[9, 9], 
[0, 9, 24, 27, 36, 45, 54, 63, 72], 
"", 
'treeNodeRich0',
['treeNodeRich0', 'treeNodeRich1', 'treeNodeRich2'], 
true, 
[1, 0, 2, 0, 0, 0], 
false, 
[], 
[19, 16], 
false, 
true, 
[200, 100], 
true, 
true, 
["#F8F8F8", "#F0F0F0", ""],
196,
"top",
[18, 10]
];


var TREE_NODES1 = [
  ['О компании', 'index.shtml', null, 
    ['Филиал &laquo;Звездный&raquo;', 'filial_zvezdnyi.shtml', null], 
    ['Стандарты качества', 'about.shtml', null], 
    [{id:13}, 'Лучшие сотрудники', 'staff.shtml', null],
    ['Вакансии', 'vacancy.shtml', null], 
    ['Партнеры', 'partners.shtml', null],
    [{id:14}, 'Контакты', 'contacts.shtml', null],
    [{id:15}, 'Новости', 'news.php', null],
    [{id:16}, 'Анонсы', 'anons.shtml', null]],
  [{id:21}, 'Наши услуги', 'srvc_common.shtml', null, 
    ['Ипотека', 'srvc_ipoteka.shtml', null, 
      ['условия и преимущества', 'srvc_ipoteka_pre.shtml', null], 
      ['требования к заемщику', 'srvc_ipoteka_treb.shtml', null], 
      ['общие параметры ипотечных кредитов', 'srvc_ipoteka_param.shtml', null], 
      ['документы', 'srvc_ipoteka_doc.shtml', null], 
      [{id:215}, 'военная ипотека', 'srvc_ipoteka_military.shtml', null], 
      ['наши партнеры', 'srvc_ipoteka_prtnr.shtml', null], 
      ['заявка на ипотеку', 'srvc_ipoteka_req.shtml', null]], 
    ['Вторичный рынок', 'srvc_sale_room.shtml', null, 
      [{id:231}, 'предложение', 'srvc_sale_room.shtml', null], 
      ['спрос', 'baza_buy.shtml', null], 
      ['оценка жилья', 'srvc_sale_estimate.shtml', null]], 
//    ['Коммерческая недвижимость', 'srvc_commerce.shtml', null, 
//      [{id:221}, 'коммерческий отдел', 'srvc_commerce.shtml', null], 
//      ['предложения о сотрудничестве', 'srvc_commerce_offer.shtml', null], 
//      ['доверительное управление', 'srvc_commerce_trusting.shtml', null], 
////      ['каталог недвижимости', 'baza_commerce.shtml', null]
//	],
//    ['Лизинг', 'srvc_lizing.shtml', null, {format:{folders:[null, null, 'images/dash_lmb.gif']}}], 
    ['Аренда', 'srvc_arenda.shtml', null, {format:{folders:[null, null, 'images/dash_lmb.gif']}}], 
    ['Перевод в нежилой фонд', 'srvc_commerce_perevod.shtml', null, {format:{folders:[null, null, 'images/dash_lmb.gif']}}], 
    ['Загородная недвижимость', 'srvc_zagorod.shtml', null, {format:{folders:[null, null, 'images/dash_lmb.gif']}}], 
    ['Новостройки', 'srvc_new_building.shtml', null, {format:{folders:[null, null, 'images/dash_lmb.gif']}}], 
    ['Свой дом', 'srvc_myhouse.shtml', null, 
      ['образцы', 'srvc_myhouse_smpl.shtml', null], 
      ['наши партнеры', 'srvc_myhouse_prtnr.shtml', null]], 
    [{id:241}, 'Ландшафтное проектирование', 'srvc_landscape.shtml', null, {format:{folders:[null, null, 'images/dash_lmb.gif']}}], 
    [{id:251}, 'Ремонтно-отделочные работы', 'srvc_repair_work.shtml', null, {format:{folders:[null, null, 'images/dash_lmb.gif']}}] 
//    ['Недвижимость Финляндии', 'srvc_fin.shtml', null, 
//      ['законы', 'srvc_fin_law.shtml', null], 
//      ['цены', 'srvc_fin_price.shtml', null], 
//      ['каталог недвижимости', 'baza_fin.shtml', null]], 
//    [{id:29}, 'Специальные предложения', 'srvc_spec.shtml', null, {format:{folders:[null, null, 'images/dash_lmb.gif']}}], 
//    ['Специальные предложения', 'srvc_spec.shtml', null, 
//    [{id:291}, 'Таунхаузы в Павловске', 'srvc_spec.shtml?spec=pavlovsk', null], 
//      [{id:292}, 'Пенобетонный завод', 'srvc_spec.shtml?spec=zavod01', null]
//	]
  ], 
  ['Каталог недвижимости', 'baza.shtml', null, 
//    [{id:2520}, 'Коммерческая недвижимость', 'baza_commerce.shtml', null, {format:{folders:[null, null, 'images/dash_lmb.gif']}}],
//      [{id:2521}, 'аренда', 'baza_commerce_arenda.shtml', null], 
//      [{id:2522}, 'продажа', 'baza_commerce_sale.shtml', null], 
//      [{id:2525}, 'земельные участки', 'baza_commerce_land.shtml', null], 
//      [{id:2523}, 'эксклюзивы', 'baza_commerce_exlz.shtml', null],
//      [{id:2524}, 'продажа бизнеса', 'baza_commerce_sellbiz.shtml', null]],
    ['Жилая недвижимость', 'baza_sale_1k.shtml', null,
      [{id:2531}, 'продажа комнат', 'baza_sale_room.shtml', null], 
      [{id:2532}, 'продажа 1-комн. квартир', 'baza_sale_1k.shtml', null], 
      [{id:2533}, 'продажа 2-комн. квартир', 'baza_sale_2k.shtml', null], 
      [{id:2534}, 'продажа 3-комн. и больше квартир', 'baza_sale_3k.shtml', null],
      [{id:2535}, 'покупка квартир', 'baza_buy.shtml', null]],
    [{id:261}, 'Загородная недвижимость', 'baza_land.shtml', null, {format:{folders:[null, null, 'images/dash_lmb.gif']}}], 
//    [{id:271}, 'Недвижимость Финляндии', 'baza_fin.shtml', null, {format:{folders:[null, null, 'images/dash_lmb.gif']}}], 
    [{id:262}, 'Новостройки', 'baza_new_building.shtml', null, {format:{folders:[null, null, 'images/dash_lmb.gif']}}], 
    ['Аренда', 'baza_arenda.shtml', null,
      [{id:2631}, 'сдам', 'baza_arenda.shtml', null], 
      ['сниму', 'baza_arenda_snimu.shtml', null]]], 
  ['Справочник', 'guide.shtml', null, 
    ['ПИБ', 'guide_pib.shtml', null], 
    ['паспортные службы', 'guide_passtable.shtml', null], 
    ['налоговые инспекции', 'guide_nalog.shtml', null], 
    ['агентства приватизации районных администраций', 'guide_privatz.shtml', null], 
    ['государственная регистрация прав на недвижимость', 'guide_gbr.shtml', null], 
    ['районные органы жилищного обмена', 'guide_homexchg.shtml', null], 
    ['межведомственная комиссия по вопросам перепланировки квартир', 'guide_pereplan.shtml', null], 
    ['РОНО', 'guide_rono.shtml', null], 
    ['список нотариусов', 'guide_notarius.shtml', null]], 
  ['Оставить заявку', 'srvc_req.shtml', null, 
    [{id:2712}, 'ипотека', 'srvc_ipoteka_req.shtml', null], 
    [{id:2711}, 'аренда/покупка/продажа', 'srvc_arenda_sell_buy_req.shtml', null], 
    ['оценка стоимости перевода в нежилой фонд', 'srvc_commerce_req.shtml', null], 
    [{id:2713}, 'оценка стоимости жилья', 'srvc_sale_estimate.shtml', null]], 
];

function exp(node, treenum) {
	if (treenum==1) {
		tree1.selectNode(node.index);
		while (node) {
			if (!node.expanded) node.treeView.expandNode(node.index);
			node = node.parentNode;
		}
	}
	if (treenum==2) {
		tree2.selectNode(node.index);
		while (node) {
			if (!node.expanded) node.treeView.expandNode(node.index);
			node = node.parentNode;
		}
	}
	if (treenum==3) {
		tree3.selectNode(node.index);
		while (node) {
			if (!node.expanded) node.treeView.expandNode(node.index);
			node = node.parentNode;
		}
	}
}

function run_movie(arg,w,h,c) 
{
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+w+'" HEIGHT="'+h+'" id="'+arg+'" ALIGN=""><PARAM NAME=movie VALUE="'+arg+'.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#'+c+'> <param name="wmode" value="transparent"> <EMBED src="'+arg+'.swf" quality=high bgcolor=#'+c+' WIDTH="'+w+'" HEIGHT="'+h+'" NAME="'+arg+'" wmode=transparent ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
}

function menu_left_bar(w,h,txt) 
{
document.write('<br><table width="'+w+'" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td height="'+h+'" class="lmenusprtr" background="images/bgbar_05_lmenuseprtr.gif" style="background-repeat:repeat-x">'+txt+'&nbsp;&nbsp;&nbsp;</td></tr></table>');
}

function SwitchDIV(s,h) {
	ss = document.getElementById(s).style;
	hh = document.getElementById(h).style;

	if (ss.display == 'block' ) {
		ss.display = 'none';
		hh.display = 'block';
	} else if ( ss.display == 'none' ) {
		ss.display = 'block';
		hh.display = 'none';
	}
	return false;
}
function SwitchDIVExp(span) {
	view_h = document.getElementById("view_house").style;
	view_s = document.getElementById("view_stairs").style;
	view_w = document.getElementById("view_window").style;
	view_p = document.getElementById("view_plan").style;
	view_a = document.getElementById("view_add").style;
	view_h.display = (view_h.display=="none" && span=="view_house") ? "inline-block" : "none";
	view_s.display = (view_s.display=="none" && span=="view_stairs") ? "inline-block" : "none";
	view_w.display = (view_w.display=="none" && span=="view_window") ? "inline-block" : "none";
	view_p.display = (view_p.display=="none" && span=="view_plan") ? "inline-block" : "none";
	view_a.display = (view_a.display=="none" && span=="view_add") ? "inline-block" : "none";

	var oImg = document.getElementById("MainImg");
	if(oImg) oImg.src = "images/1x1.gif";
	return false;
}
function SwitchDIVExpL(span) {
	view_h = document.getElementById("view_land").style;
	view_p = document.getElementById("view_plan").style;
	view_a = document.getElementById("view_add").style;
	view_h.display = (view_h.display=="none" && span=="view_land") ? "inline-block" : "none";
	view_p.display = (view_p.display=="none" && span=="view_plan") ? "inline-block" : "none";
	view_a.display = (view_a.display=="none" && span=="view_add") ? "inline-block" : "none";

	var oImg = document.getElementById("MainImg");
	if(oImg) oImg.src = "images/1x1.gif";
	return false;
}
