/* 
	the format of the tree definition and
	the link definitions
*/

var LINKS = [
	'/tigra_menu/winforst_cont.htm|content|/tigra_menu/winforstpro_head.htm|header',
	'/tigra_menu/winforst_cont.htm|content|/tigra_menu/winforstpro_head.htm|header',
	'/tigra_menu/winforst_wirueberuns.htm|content|/tigra_menu/winforstpro_head.htm|header',
	'/news_new/german/news_cont.htm|content|/tigra_menu/winforstpro_head.htm|header',
	'/tigra_menu/winforst_pro32.htm|content|/tigra_menu/winforstpro_head.htm|header',
	'/accessories/german/accessories_cont1.htm|content|/tigra_menu/winforstpro_head2.htm|header',
	'/accessories/german/accessories_cont2.htm|content|/tigra_menu/winforstpro_head2.htm|header',
	'/accessories/german/accessories_cont3.htm|content|/tigra_menu/winforstpro_head2.htm|header',
	'/accessories/german/accessories_cont4.htm|content|/tigra_menu/winforstpro_head2.htm|header',
	'/accessories/german/accessories_cont5.htm|content|/tigra_menu/winforstpro_head2.htm|header',
	'/accessories/german/accessories_cont6.htm|content|/tigra_menu/winforstpro_head2.htm|header',
	'/tigra_menu/winforst_pro_net.htm|content|/tigra_menu/winforstpro_head.htm|header',
	'/downloads/german/downloads_cont.htm|content|/tigra_menu/winforstpro_head.htm|header',
	'/contacts/german/contacts_cont.htm|content|/tigra_menu/winforstpro_head.htm|header',
	'/infomaterial_form_cont.htm|content|/tigra_menu/winforstpro_head.htm|header',
	'/partners/german/partners_cont.htm|content|/tigra_menu/winforstpro_head.htm|header'
]

function ols (o_item) {
	hrefArr = LINKS[o_item.n_id].split("|");
	// content must be only entry in history
	if (eval("top." + hrefArr[3] + ".location.pathname!='" + hrefArr[2] + "'")) {
		eval("top." + hrefArr[3] + ".location.replace('" + hrefArr[2] + "')");
	}
	if (eval("top." + hrefArr[1] + ".location.pathname!='" + hrefArr[0] + "'")) {
		eval("top." + hrefArr[1] + ".location.href='" + hrefArr[0] + "'");
	}
	onItemSelectHandler(o_item);
	return true;
}

var TREE2_ITEMS = [
	['WinforstPro', null, {'hs':'ols','hc':'rootNoClose'},
		['Home', null, {'hs':'ols'}, null],
		['Wir über uns', null, {'hs':'ols'}, null],
		['News', null, {'hs':'ols'}, null],
		['WinforstPro 32', null, {'hs':'ols'},
			['Holz', null, {'hs':'ols'}, null],
			['Logistik', null, {'hs':'ols'}, null],
			['Betrieb', null, {'hs':'ols'}, null],
			['Controlling', null, {'hs':'ols'}, null],
			['Kommunikation', null, {'hs':'ols'}, null],
			['Organisation', null, {'hs':'ols'}, null]
		],
		['WinforstPro net.logistik', null, {'hs':'ols'}, null],
		['Downloads', null, {'hs':'ols'}, null],
		['Vertriebspartner', null, {'hs':'ols'}, null],
		['Informationen anfordern', null, {'hs':'ols'}, null],
		['Links', null, {'hs':'ols'}, null]
	]
];

var TREE1_ITEMS = [
	['Latschbacher', 'http://www.latschbacher.com', {'tw':'_top','hc':'rootNoClose'},
		['SignuMat', 'http://www.signumat.com', {'tw':'_top'}],
		['WinforstPro Mobile', 'http://www.winforstpromobile.com', {'tw':'_top'}]
	]
];

