//Hierarchical Menu	Script FOLIOLE COPYRIGHT (C) 2005 TRINAKIE Nakagawa	Hiroyuki
var	fo_____	= {
	col: {
		CHAR_REVERSE: '#6280BC',
		BG:	'Gainsboro',
		INNER_LEFT_UP: 'White',
		INNER_RIGHT_DOWN: '#FFFFFF',
		OUTER_LEFT_UP: '#6280BC',
		OUTER_RIGHT_DOWN: '#FFFFFF',
		BG_REVERSE:	'#FFFFFF',
		CHAR: 'White',
		PARTITION: '#6280BC',
		SHADOW:	'#FFFFFF',
		BG_PRESSED:	'White'
	},
	cfg: {
		CELL_WIDTH:	100,
		CELL_HEIGHT: 16,
		CELL_PADDING: '0px 10px',
		IMG_PADDING: false,
		CELL_ALIGN:	'left',
		INNER_BORDER_WIDTH:	0,
		OUTER_BORDER_WIDTH:	0,
		PARTITION_WIDTH: 1,
		SHADOW_WIDTH: 0,
		OFFSET_RIGHT: 0,
		OFFSET_DOWN: 0,
		FONT_SIZE: 12,
		FONT_WEIGHT: 'bold',
		FONT_FAMILY: null,
		FONT_STYLE:	null,
		CELL_STYLE:	null,
		ARROW_OFFSET_RIGHT:	0,
		ARROW_OFFSET_DOWN: 0,
		CHAR_ARROW:	'',
		TARGET_WINDOW: '_blank'
	},
	is_child_horizontal: 0,
	hide_select_tag: 0,
	is_IE4IE5: document.all	&& document.compatMode != 'CSS1Compat',
	is_ver4: !document.getElementById,
	tmp_bread_crumbs: [],
	ary_bread_crumbs: [],
	tmp_list_ary: [],
	tmp_search_ary:	[],
	ary_numby_lay: [],
	id_strings:	'',
	ary_tsv_data: [],
	ary_padding: [],
	ary_select_tag:	document.getElementsByTagName('SELECT'),
	html_sitemap: ''
}
function fo_put_fo_item(tsv, lay, nm) {
	var	data_name =	nm ? nm: '';
	return fo_get_ary_data(tsv,	lay, data_name).join('<br \/>');
}
function fo_char2ent(str) {
	return str.replace(/[&"<>]/g,
	function(c)	{
		return {
			"&": "&amp;",
			'"': "&quot;",
			"<": "&lt;",
			">": "&gt;"
		} [c];
	});
}
function fo_get_coordinates(id)	{
	if (!document.getElementById(id)) return {
		x: 0,
		y: 0
	};
	var	xp = document.getElementById(id).offsetLeft;
	var	yp = document.getElementById(id).offsetTop;
	var	pr = document.getElementById(id).offsetParent;
	while (pr) {
		if (pr.offsetLeft) xp += pr.offsetLeft;
		if (pr.offsetTop) yp +=	pr.offsetTop;
		pr = pr.offsetParent;
	}
	return {
		x: xp,
		y: yp
	};
}
function fo_scroll_menu(fo)	{
	var	new_pos;
	var	tmp	= fo.SCROLLTOP;
	fo.SCROLLTOP = document.body.scrollTop;
	var	d =	fo.SCROLLTOP - tmp;
	var	cnts = fo.posID.slice(fo.ini_num_posID);
	for	(var i = 0;	i <	cnts.length; i++) {
		if (!document.getElementById(cnts[i])) continue;
		new_pos	= parseInt(document.getElementById(cnts[i]).style.top) + d;
		document.getElementById(cnts[i]).style.top = new_pos + 'px';
	}
}
function fo_make_numby_lay(ary,	lay, b1, b2) {
	if (!fo_____.ary_numby_lay[lay]) fo_____.ary_numby_lay[lay]	= 0;
	for	(var i = 0;	i <	ary.length;	i++) {
		if (ary[i][2] == "") {
			if (b1 == false) continue;
		} else if (ary[i][2] ==	"-") {
			if (b1 == false	&& b2 != true) continue;
		}
		fo_____.ary_numby_lay[lay]++;
	}
	for	(var i = 0;	i <	ary.length;	i++) {
		if (ary[ary[i][0]])	fo_make_numby_lay(ary[ary[i][0]], lay +	1, b1, b2);
	}
}
function fo_get_numby_lay(ary, b1, b2) {
	fo_____.ary_numby_lay =	[];
	fo_make_numby_lay(ary, 0, b1, b2);
	return fo_____.ary_numby_lay;
}
function fo_make_list_ary(ary) {
	for	(var i = 0;	i <	ary.length;	i++) {
		fo_____.tmp_list_ary[fo_____.tmp_list_ary.length] =	[ary[i][0],	ary[i][1], ary[i][2], ary[i][3]];
		if (ary[ary[i][0]])	{
			fo_make_list_ary(ary[ary[i][0]]);
		}
	}
}
function fo_list_ary(ary) {
	fo_____.tmp_list_ary = [];
	fo_make_list_ary(ary);
	return fo_____.tmp_list_ary;
}
function fo_get_list(ary, div) {
	var	html_all_link =	'';
	var	_div = div || '&nbsp;/&nbsp;';
	fo_____.tmp_list_ary = [];
	fo_make_list_ary(ary);
	var	link_ary = fo_____.tmp_list_ary;
	if (link_ary.length	!= 0) {
		for	(var i = 0;	i <	link_ary.length; i++) {
			if (link_ary[i][2] && link_ary[i][2] !=	'-') {
				html_all_link += '<a href="' + link_ary[i][2] +	'" target="';
				if (link_ary[i][3])	{
					html_all_link += link_ary[i][3];
				} else {
					html_all_link += '_self';
				}
				html_all_link += '">' +	link_ary[i][1] + '</a>'	+ _div;
			}
		}
	}
	return html_all_link;
}
function fo_make_search_ary(ary, key) {
	var	key_ary	= key.split(" ");
	var	tmp_ary	= [];
	var	avo_ary	= [];
	for	(var i = 0;	i <	key_ary.length;	i++) {
		if (key_ary[i] != "") {
			if (key_ary[i].indexOf("-")	!= 0) tmp_ary[tmp_ary.length] =	key_ary[i];
			else avo_ary[avo_ary.length] = key_ary[i].substring(1);
		}
	}
	for	(var i = 0;	i <	ary.length;	i++) {
		if (ary[i][10])	{
			if (judge_indexOf(ary[i][10], tmp_ary, avo_ary)) {
				fo_____.tmp_search_ary[fo_____.tmp_search_ary.length] =	[ary[i][1],	ary[i][2], ary[i][3], ary[i][10]];
			}
		}
		if (ary[ary[i][0]])	{
			fo_make_search_ary(ary[ary[i][0]], key);
		}
	}
}
function judge_indexOf(cmt,	tmp_ary, avo_ary) {
	for	(var i = 0;	i <	tmp_ary.length;	i++) {
		if (1 +	cmt.indexOf(tmp_ary[i])	== 0) return false;
	}
	for	(var i = 0;	i <	avo_ary.length;	i++) {
		if (1 +	cmt.indexOf(avo_ary[i])	!= 0) return false;
	}
	return true;
}
function fo_get_search(ary,	id,	elm, bol) {
	if (id && elm) document.getElementById(id).innerHTML = fo_get_search_result(ary, elm, bol);
	return false;
}
function fo_get_search_result(ary, str,	bol) {
	if (str	== '') return '';
	var	html_search_link = '';
	var	_div = '<br	\/>';
	fo_____.tmp_search_ary = [];
	fo_make_search_ary(ary,	str);
	var	link_ary = fo_____.tmp_search_ary;
	if (link_ary.length	!= 0) {
		for	(var i = 0;	i <	link_ary.length; i++) {
			if (link_ary[i][1] && link_ary[i][1] !=	'-') {
				html_search_link +=	'<a	href="'	+ link_ary[i][1] + '" target="';
				if (link_ary[i][2])	{
					html_search_link +=	link_ary[i][2];
				} else {
					html_search_link +=	'_self';
				}
				html_search_link +=	'">' + link_ary[i][0] +	'</a>';
				if (bol	!= false) html_search_link += '&nbsp;' + link_ary[i][3];
			}
			html_search_link +=	_div;
		}
	}
	return html_search_link;
}
function fo_make_bread_crumbs(ary, str,	cu)	{
	var	flg	= false;
	var	curLayNum =	cu || 1;
	for	(var i = 0;	i <	ary.length;	i++) {
		fo_____.tmp_bread_crumbs[curLayNum]	= ary[i];
		if (ary[i][0] == str) {
			flg	= true;
			break;
		}
		if (ary[ary[i][0]])	{
			fo_make_bread_crumbs(ary[ary[i][0]], str, ++curLayNum);	--curLayNum;
		}
	}
	if (flg) {
		for	(var i = 1;	i <= curLayNum;	i++) fo_____.ary_bread_crumbs[i] = fo_____.tmp_bread_crumbs[i];
		return;
	}
}
function fo_bread_crumbs(ary, id) {
	fo_____.tmp_bread_crumbs = [];
	fo_____.ary_bread_crumbs = [];
	fo_make_bread_crumbs(ary, id);
	return fo_____.ary_bread_crumbs;
}
function fo_get_bread_crumbs(ary, id, div) {
	var	_div = div || '&gt;';
	var	html_bread_crumbs =	'';
	var	ary_bread_crumbs = fo_bread_crumbs(ary,	id);
	if (ary_bread_crumbs.length	== 0) return 'WARNING! ID NOT FOUND<br \/>';
	for	(var i = 1;	i <	ary_bread_crumbs.length	- 1; i++) {
		var	lbl	= ary_bread_crumbs[i][1];
		var	url	= ary_bread_crumbs[i][2];
		var	tgt	= ary_bread_crumbs[i][3];
		if (!url) break;
		if (url	!= '-')	{
			html_bread_crumbs += '<a href="' + url + '"	target="';
			if (tgt) {
				html_bread_crumbs += tgt;
			} else {
				html_bread_crumbs += '_self';
			}
			html_bread_crumbs += '">' +	lbl	+ '</a>';
		} else {
			html_bread_crumbs += lbl;
		}
		html_bread_crumbs += '&nbsp;' +	_div + '&nbsp;';
	}
	html_bread_crumbs += ary_bread_crumbs[i][1];
	return html_bread_crumbs;
}
function fo_ary2tsv(ary, lay, n, str) {
	for	(var i = 0;	i <	ary.length;	i++) {
		if (!ary[i][0])	continue;
		fo_____.id_strings = str + ary[i][0] + "\t";
		var	regist_id_strings =	fo_____.id_strings;
		if (lay	> n) {
			for	(var j = 0;	j <	lay	- n; j++) {
				regist_id_strings += '0' + "\t";
			}
		}
		for	(var k = 1;	k <= 10; k++) {
			if (ary[i][k]) {
				regist_id_strings += ary[i][k];
			} else {
				if (k == 4 || k	== 5 ||	k == 8 || k	== 9) {
					regist_id_strings += 0;
				} else {
					regist_id_strings += '';
				}
			}
			if (k <	10)	regist_id_strings += "\t";
		}
		fo_____.ary_tsv_data[fo_____.ary_tsv_data.length] =	regist_id_strings;
		if (ary[ary[i][0]])	fo_ary2tsv(ary[ary[i][0]], lay,	n +	1, fo_____.id_strings);
	}
}
function fo_get_tsv_data(ary) {
	var	LAY	= fo_getLay(ary);
	fo_____.id_strings = '';
	fo_____.ary_tsv_data = [];
	fo_ary2tsv(ary,	LAY, 1,	'');
	return fo_____.ary_tsv_data;
}
function fo_put_tsv_tbl(ary, bdr) {
	var	LAY	= fo_getLay(ary);
	fo_____.id_strings = '';
	fo_____.ary_tsv_data = [];
	fo_ary2tsv(ary,	LAY, 1,	'');
	var	tsv_data = fo_____.ary_tsv_data;
	var	html_str = '<table ';
	html_str +=	bdr	? '	border="1">': '>';
	for	(var i = 0;	i <	tsv_data.length; i++) {
		tsv_data[i]	= fo_char2ent(tsv_data[i]);
		var	elm	= tsv_data[i].split("\t");
		html_str +=	'<tr>';
		for	(var j = 0;	j <	elm.length;	j++) {
			html_str +=	'<td>' + elm[j]	+ '</td>';
		}
		html_str +=	'</tr>';
	}
	html_str +=	'</table>';
	return html_str;
}
function fo_get_ary_data(tsv, lay, nm) {
	var	ary_tsv	= tsv;
	var	ary_js_line	= [];
	var	data_name =	(nm	&& typeof(nm) == 'string') ? nm: 'foliole_data';
	ary_js_line[0] = 'var '	+ data_name	+ '=[];';
	var	ary_frst_line =	ary_tsv[0].split("\t");
	if ((typeof(lay) !=	'number') || (lay <	1))	return null;
	var	LAY	= lay;
	for	(var i = 0;	i <	ary_tsv.length;	i++) {
		var	ary_tmp	= ary_tsv[i].split("\t");
		var	jis_lay;
		var	id_string =	data_name;
		for	(var j = 0;	j <	LAY; j++) {
			if (ary_tmp[j] != 0) {
				if (j == LAY - 1) {
					jis_lay	= LAY;
					break;
				} else {
					continue;
				}
			} else {
				jis_lay	= j;
				break;
			}
		}
		for	(var k = 0;	k <	jis_lay	- 1; k++) {
			id_string += "['" +	ary_tmp[k] + "']";
			var	flag = false;
			var	str_new_array =	id_string +	'=[];';
			for	(var m = 0;	m <	ary_js_line.length;	m++) {
				if (ary_js_line[m] == str_new_array) {
					flag = true;
					break;
				}
			}
			if (!flag) {
				ary_js_line[ary_js_line.length]	= str_new_array;
			}
		}
		id_string += "[" + id_string + ".length]=['" + ary_tmp[jis_lay - 1]	+ "',";
		for	(var m = LAY; m	<= ary_tmp.length -	1; m++)	{
			if (m == LAY + 3 ||	m == LAY + 4 ||	m == LAY + 7 ||	m == LAY + 8) {
				id_string += ary_tmp[m];
			} else {
				id_string += "'" + ary_tmp[m] +	"'";
			}
			if (m <	ary_tmp.length - 1)	{
				id_string += ",";
			} else {
				id_string += "];";
			}
		}
		ary_js_line[ary_js_line.length]	= id_string;
	}
	if (!nm	&& nm != false)	{
		for	(var n = 0;	n <	ary_js_line.length;	n++) {
			eval(ary_js_line[n]);
		}
	} else {
		for	(var n = 0;	n <	ary_js_line.length;	n++) {
			ary_js_line[n] = fo_char2ent(ary_js_line[n]);
		}
	}
	return (nm || nm ==	false) ? ary_js_line: foliole_data;
}
function fo_make_sitemap(ary, exp, typ)	{
	var	TYP	= (typ === false) ?	'style="list-style-type:none;"': '';
	fo_____.html_sitemap +=	'<ul ' + TYP + '>';
	for	(var i = 0;	i <	ary.length;	i++) {
		var	EXP	= ((exp	!= false) && ary[i][10]) ? '&nbsp;'	+ ary[i][10] : '';
		if (!ary[i][0] || !ary[i][2]) continue;
		fo_____.html_sitemap +=	'<li>';
		if (ary[i][2] != '-') {
			fo_____.html_sitemap +=	'<a	href="'	+ ary[i][2]	+ '" target="';
			if (ary[i][3]) {
				fo_____.html_sitemap +=	ary[i][3];
			} else {
				fo_____.html_sitemap +=	'_self';
			}
			fo_____.html_sitemap +=	'">' + ary[i][1] + '</a>' +	EXP;
		} else {
			fo_____.html_sitemap +=	ary[i][1] +	EXP;
		}
		if (ary[ary[i][0]])	fo_make_sitemap(ary[ary[i][0]],	exp, typ);
		fo_____.html_sitemap +=	'</li>';
	}
	fo_____.html_sitemap +=	'</ul>';
}
function fo_get_sitemap(ary, exp, typ) {
	fo_____.html_sitemap = '';
	fo_make_sitemap(ary, exp, typ);
	return fo_____.html_sitemap;
}
function fo_getWidth() {
	return window.innerWidth ||	document.body.parentNode.clientWidth ||	document.body.clientWidth || 800;
}
function fo_get_xposition(w, p)	{
	var	pos	= Math.floor((fo_getWidth()	- w) * p / 100);
	if (pos	< 0) pos = 0;
	return pos;
}
function fo_adjust_pos(fo, p) {
	var	lefp;
	var	tmp	= fo.WIDTH;
	fo.WIDTH = fo_getWidth();
	var	d =	Math.floor(p * (fo.WIDTH - tmp)	/ 100);
	var	elm	= fo.posID;
	for	(var i = 0;	i <	elm.length;	i++) {
		if (!document.getElementById(elm[i])) continue;
		lefp = parseInt(document.getElementById(elm[i]).style.left)	+ d;
		document.getElementById(elm[i]).style.left = lefp +	'px';
	}
}
function fo_jmpURL(url,	tgt) {
	if (tgt) {
		if (!top.frames[tgt]) {
			var	tarwin = window.open(url, tgt);
		} else {
			top.frames[tgt].location.href =	url;
		}
	} else {
		window.location.href = url;
	}
	return true;
}
function fo_setAry(ary,	n, def)	{
	var	ans	= [];
	var	n =	n || 1;
	if (ary	== null) {
		for	(var i = 0;	i <	n; i++)	{
			ans[i] = def;
		}
	} else if (typeof(ary) != 'object')	{
		for	(var i = 0;	i <	n; i++)	{
			ans[i] = ary;
		}
	} else {
		ans[0] = ary[0];
		for	(var i = 1;	i <	n; i++)	{
			if (ary[i] != null)	{
				ans[i] = ary[i];
			} else {
				ans[i] = def ||	(def !=	null) ?	def: ans[i - 1];
			}
		}
	}
	return ans;
}
function fo_setOpc(ary,	n, def)	{
	var	opc	= fo_setAry(ary, n,	def);
	var	ans	= [];
	for	(var i = 0;	i <	n; i++)	{
		if (opc[i] == 100) {
			ans[i] = '';
			continue;
		}
		var	mozopc = opc[i]	/ 100;
		ans[i] = opc[i]	? (';filter:alpha(opacity='	+ opc[i] + '); -moz-opacity:' +	mozopc)	: '';
	}
	return ans;
}
function fo_getLay(ary,	cu,	rc)	{
	var	curLayNum =	cu || 1;
	var	recLayNum =	rc || 1;
	for	(var i = 0;	i <	ary.length;	i++) {
		if (ary[ary[i][0]])	{
			recLayNum =	fo_getLay(ary[ary[i][0]], ++curLayNum, recLayNum);
			recLayNum =	Math.max(curLayNum,	recLayNum);	--curLayNum;
		}
	}
	return recLayNum;
}
function fo_swapCol(cid, mn, col1, col2, str) {
	var	fo = eval(mn);
	if (fo.timeID) clearTimeout(fo.timeID);
	var	ary	= str.split(':');
	var	actNod;
	var	num	= parseInt(ary[0]);
	for	(var i = num; i	< fo.LAY; i++) {
		actNod = document.getElementById(fo.actID[i]);
		if (actNod)	{
			if (fo.CELL_BGREP[i]) actNod.style.backgroundImage = 'url('	+ fo.CELL_BGREP[i] + ')';
			actNod.style.backgroundColor = fo.COL.BG[i];
			actNod.style.color = fo.COL.CHAR[i];
			fo.actID[i]	= null;
		}
	}
	fo.actID[num] =	fo.uniq	+ ary[num +	1];
	if (cid) {
		document.getElementById(cid).style.backgroundImage = '';
		document.getElementById(cid).style.backgroundColor = col1;
		document.getElementById(cid).style.color = col2;
		fo_gp_func_over();
	}
	fo.timeID =	setTimeout("fo_dispMenu('" + mn	+ "','"	+ str +	"')", fo.LAG);
}
function fo_dispMenu(mn, str) {
	var	fo = eval(mn);
	if (fo.timeID) clearTimeout(fo.timeID);
	var	ary	= str.split(':');
	var	aryid =	fo.NAME;
	var	num	= parseInt(ary[0]);
	for	(var i = num; i	< fo.LAY - 1; i++) {
		if (document.getElementById(fo.visiID[i])) {
			document.getElementById(fo.visiID[i]).style.visibility = 'hidden';
		}
	}
	if (num	== 0) {
		fo.visiID.length = 0;
		if (document.getElementById(aryid +	ary[num	+ 1])) {
			document.getElementById(aryid +	ary[num	+ 1]).style.visibility = 'visible';
			fo.visiID[num] = aryid + ary[num + 1];
		}
	} else {
		if (document.getElementById(aryid +	ary[num	+ 1])) {
			document.getElementById(aryid +	ary[num	+ 1]).style.visibility = 'visible';
			fo.visiID[num] = aryid + ary[num + 1];
		}
	}
}
function fo_hideMenu(mn) {
	var	fo = eval(mn);
	if (typeof(fo) != 'object')	return false;
	if (fo.timeID) clearTimeout(fo.timeID);
	fo_gp_func_out();
	fo.timeID =	setTimeout("fo_closeMenu('"	+ mn + "')", fo.LAG_OUT);
}
function fo_closeMenu(mn) {
	var	fo = eval(mn);
	if (fo.timeID) clearTimeout(fo.timeID);
	for	(var i = 0;	i <	fo.LAY;	i++) {
		if (document.getElementById(fo.visiID[i])) {
			document.getElementById(fo.visiID[i]).style.visibility = 'hidden';
		}
		if (document.getElementById(fo.actID[i])) {
			if (fo.CELL_BGREP[i]) document.getElementById(fo.actID[i]).style.backgroundImage = 'url(' +	fo.CELL_BGREP[i] + ')';
			document.getElementById(fo.actID[i]).style.backgroundColor = fo.COL.BG[i];
			document.getElementById(fo.actID[i]).style.color = fo.COL.CHAR[i];
			fo.actID[i]	= null;
		}
	}
}
function fo_slctMenu(id, col) {
	if (document.getElementById(id)) {
		document.getElementById(id).style.backgroundColor =	col;
	}
}
var	defMenu	= function(ary)	{
	this.ERRMSG	= '';
	if (fo_____.is_ver4) this.ERRMSG +=	'WARNING! JAVASCRIPT-VERSION NOT SUITABLE<br \/>';
	if (typeof(ary.data_array) != 'object')	this.ERRMSG	+= 'WARNING! DATA UNDEFINED<br \/>';
	if (typeof(ary.menu_name) != 'string') ary.menu_name = 'foliole';
	if (typeof(ary.color_array)	!= 'object') ary.color_array = [];
	if (this.ERRMSG) {
		document.write(this.ERRMSG);
		return;
	}
	this.SCRIPTNAME_IS = 'FOLIOLE';
	this.VERSION_IS	= '4.11-20071106-40115';
	this.RELEASED_AT = '06-Nov-2007';
	this.WIDTH = fo_getWidth();
	this.SCROLLTOP = document.body.parentNode.scrollTop	|| document.body.scrollTop;
	this.toAry = fo_setAry;
	this.NAME =	ary.menu_name;
	this.itm = ary.data_array;
	this.LAY = fo_getLay(this.itm);
	this.uniq =	'_'	+ this.NAME;
	this.COL = [];
	this.CFG = [];
	this.actID = [];
	this.posID = [];
	this.visiID	= [];
	this.cel = [];
	this.cnt = [];
	this.datacell =	datacell;
	this.container = container;
	this.F2POS = (this.LAY == 2	&& ary.fixed_2nd_pos) ?	true: false;
	if (ary.child_horizontal) {
		fo_____.is_child_horizontal	= 1;
		ary.INNER_BORDER_WIDTH = 0;
		ary.OUTER_BORDER_WIDTH = 0;
		ary.SHADOW_WIDTH = 0;
	} else {
		fo_____.is_child_horizontal	= 0;
	}
	fo_____.hide_select_tag	= ary.hide_select_tag;
	this.FRM = (typeof(ary.USE_FRAME) == 'object' && ary.USE_FRAME.length == 2)	? 1: 0;
	this.main_menu_frame = this.FRM	? top.frames[ary.USE_FRAME[0]].name: null;
	this.sub_menu_frame	= this.FRM ? top.frames[ary.USE_FRAME[1]].name:	null;
	this.isMMF = (window.name == this.main_menu_frame) ? 1:	0;
	if (this.FRM &&	!ary.TARGET_WINDOW)	ary.TARGET_WINDOW =	this.sub_menu_frame;
	for	(var x in fo_____.col) this.COL[x] = (ary.color_array[x] !=	null) ?	this.toAry(ary.color_array[x], this.LAY) : this.toAry(fo_____.col[x], this.LAY);
	for	(var x in fo_____.cfg) this.CFG[x] = (ary[x] !=	null) ?	this.toAry(ary[x], this.LAY) : this.toAry(fo_____.cfg[x], this.LAY);
	for	(var i = 0;	i <	this.CFG.TARGET_WINDOW.length; i++)	if (this.CFG.TARGET_WINDOW[i] == 'window') this.CFG.TARGET_WINDOW[i] = '';
	this.HEIGHT_PLUS = [];
	for	(var i = 0;	i <	this.LAY; i++) {
		if (this.CFG.CELL_PADDING[i]) {
			fo_____.ary_padding[i] = this.CFG.CELL_PADDING[i].split(/\s+/);
			if (fo_____.ary_padding[i].length <	3) {
				this.HEIGHT_PLUS[i]	= 2	* parseInt(fo_____.ary_padding[i][0]);
			} else {
				this.HEIGHT_PLUS[i]	= parseInt(fo_____.ary_padding[i][0]) +	parseInt(fo_____.ary_padding[i][2]);
			}
		} else {
			this.HEIGHT_PLUS[i]	= 0;
		}
	}
	this.position_x	= (typeof(ary.position_x) == 'number') ? ary.position_x: 0;
	this.position_y	= (typeof(ary.position_y) == 'number') ? ary.position_y: 0;
	this.isV = (ary.is_vertical	!= null) ? ary.is_vertical:	0;
	this.LAG = (typeof(ary.time_lag) ==	'number') ?	ary.time_lag: 5;
	this.LAG_OUT = (typeof(ary.time_lag_out) ==	'number') ?	ary.time_lag_out: this.LAG;
	this.GAP = (typeof(ary.root_gap) ==	'number') ?	ary.root_gap: 0;
	this.PTR = fo_____.is_IE4IE5 ? "hand": "pointer";
	this.ARW = (ary.IMG_ARROW != null) ? this.toAry(ary.IMG_ARROW, this.LAY, null) : this.toAry(null, this.LAY,	null);
	this.OPC = (ary.CELL_OPACITY !=	null) ?	fo_setOpc(ary.CELL_OPACITY,	this.LAY) :	fo_setOpc(null,	this.LAY, 100);
	this.PTIMG = (ary.PARTITION_IMG	!= null) ? this.toAry(ary.PARTITION_IMG, this.LAY, null) : this.toAry(null,	this.LAY, null);
	this.CELL_BGIMG	= (ary.CELL_BG_IMG != null)	? this.toAry(ary.CELL_BG_IMG, this.LAY,	null) :	this.toAry(null, this.LAY, null);
	this.CELL_BGREP	= (ary.CELL_BG_REP != null)	? this.toAry(ary.CELL_BG_REP, this.LAY,	null) :	this.toAry(null, this.LAY, null);
	for	(var i = 0;	i <	this.LAY; i++) if (this.CELL_BGIMG[i] || this.CELL_BGREP[i]) this.COL.BG[i]	= 'transparent';
	if (ary.POSITION_ID	!= null) {
		if (typeof(ary.POSITION_ID)	!= 'object') {
			this.posID[0] =	ary.POSITION_ID;
		} else {
			this.posID = this.toAry(ary.POSITION_ID, ary.POSITION_ID.length);
		}
	}
	this.ini_num_posID = this.posID.length;
	this.timeID	= null;
}
var	datacell = function() {
	this.id	= '';
	this.url = '';
	this.label = '';
	this.target	= '';
	this.width = 0;
	this.height	= 0;
	this.bgcolor = '';
	this.color = '';
	this.xpos =	0;
	this.ypos =	0;
	this.exp = '';
}
var	container =	function() {
	this.id	= '';
	this.xpos =	0;
	this.ypos =	0;
}
datacell.prototype.put_tbl_lef = function(upr_frame, light,	innwz, outwz) {
	if (fo_____.is_child_horizontal) return	"";
	var	TD_	= "<td style='background-color:";
	var	_TD	= "px'></td>";
	var	TB = "";
	TB += "<tr>";
	if (outwz) TB += TD_ + upr_frame + ";width:" + outwz + _TD;
	if (innwz) TB += TD_ + light + ";width:" + innwz + _TD;
	return TB;
}
datacell.prototype.put_tbl_rig = function(btm_frame, dark, shade, innwz, outwz,	shdwz) {
	if (fo_____.is_child_horizontal) return	"";
	var	TD_	= "<td style='background-color:";
	var	_TD	= "px'></td>";
	var	TB = "";
	if (innwz) TB += TD_ + dark	+ ";width:"	+ innwz	+ _TD;
	if (outwz) TB += TD_ + btm_frame + ";width:" + outwz + _TD;
	if (shdwz) TB += TD_ + shade + ";width:" + shdwz + _TD;
	TB += "</tr>";
	return TB;
}
datacell.prototype.put_div_line	= function(upr_frame, btm_frame, col_line, light, dark,	body, shade, innwz,	outwz, divwz, shdwz, ptimg)	{
	var	TD_	= "<td style='background-color:";
	var	_TD	= "'></td>";
	var	DIVWZ =	ptimg ?	divwz: divwz - 2;
	if (DIVWZ <	1) DIVWZ = 1;
	var	TB = "";
	if (fo_____.is_child_horizontal) {
		TB += TD_ +	col_line + ";width:" + DIVWZ + "px;";
		if (ptimg) {
			TB += "'><img src='" + ptimg + "' alt='' \/></td>";
		} else {
			TB += _TD;
		}
		return TB;
	}
	if (!ptimg && divwz	>= 3) {
		TB += "<tr>";
		if (outwz) TB += TD_ + upr_frame + _TD;
		if (innwz) TB += TD_ + light + _TD;
		TB += TD_ +	body + _TD;
		if (innwz) TB += TD_ + dark	+ _TD;
		if (outwz) TB += TD_ + btm_frame + _TD;
		if (shdwz) TB += TD_ + shade + _TD;
		TB += "</tr>";
	}
	TB += "<tr>";
	if (outwz) TB += TD_ + upr_frame + _TD;
	if (innwz) TB += TD_ + light + _TD;
	TB += TD_ +	col_line + ";height:" +	DIVWZ +	"px";
	if (ptimg) {
		TB += "'><img src='" + ptimg + "' alt='' \/></td>";
	} else {
		TB += _TD;
	}
	if (innwz) TB += TD_ + dark	+ _TD;
	if (outwz) TB += TD_ + btm_frame + _TD;
	if (shdwz) TB += TD_ + shade + _TD;
	TB += "</tr>";
	if (!ptimg && divwz	>= 2) {
		TB += "<tr>";
		if (outwz) TB += TD_ + upr_frame + _TD;
		if (innwz) TB += TD_ + light + _TD;
		TB += TD_ +	light +	_TD;
		if (innwz) TB += TD_ + dark	+ _TD;
		if (outwz) TB += TD_ + btm_frame + _TD;
		if (shdwz) TB += TD_ + shade + _TD;
		TB += "</tr>";
	}
	return TB;
}
container.prototype.put_tbl_upr	= function(upr_frame, btm_frame, light,	bg_img,	innwz, outwz, shdwz) {
	var	TD_	= "<td style='background-color:";
	var	_TD	= "'></td>";
	var	outcol = 1;
	if (innwz) outcol += 2;
	var	TB = "";
	if (fo_____.is_child_horizontal) {
		TB += "<table border='0' cellspacing='0' cellpadding='0' ";
		if (bg_img)	TB += "	style='background-image:url(" +	bg_img + ");'";
		TB += "><tr>";
		return TB;
	}
	TB += "<table border='0' cellspacing='0' cellpadding='0' ";
	if (bg_img)	TB += "	style='background-image:url(" +	bg_img + ");'";
	TB += ">";
	if (outwz) {
		TB += "<tr>";
		TB += TD_ +	upr_frame +	_TD;
		TB += TD_ +	upr_frame +	";height:" + outwz + "px;' colspan='" +	outcol + _TD;
		TB += TD_ +	upr_frame +	_TD;
		if (shdwz) TB += TD_ + "transparent;'" + _TD;
		TB += "</tr>";
	}
	if (innwz) {
		TB += "<tr>";
		if (outwz) TB += TD_ + upr_frame + _TD;
		TB += TD_ +	light +	_TD;
		TB += TD_ +	light +	";height:" + innwz + "px" +	_TD;
		TB += TD_ +	light +	_TD;
		if (outwz) TB += TD_ + btm_frame + _TD;
		if (shdwz) TB += TD_ + "transparent;'" + _TD;
		TB += "</tr>";
	}
	return TB;
}
container.prototype.put_tbl_btm	= function(upr_frame, btm_frame, light,	dark, shade, innwz,	outwz, shdwz) {
	if (fo_____.is_child_horizontal) return	"</tr></table>";
	var	TD_	= "<td style='background-color:";
	var	_TD	= "'></td>";
	var	outcol = 1;
	if (innwz) outcol += 2;
	var	TB = "";
	if (innwz) {
		TB += "<tr>";
		if (outwz) TB += TD_ + upr_frame + _TD;
		TB += TD_ +	light +	_TD;
		TB += TD_ +	dark + ";height:" +	innwz +	"px" + _TD;
		TB += TD_ +	dark + _TD;
		if (outwz) TB += TD_ + btm_frame + _TD;
		if (shdwz) TB += TD_ + shade + _TD;
		TB += "</tr>";
	}
	if (outwz) {
		TB += "<tr>";
		TB += TD_ +	upr_frame +	_TD;
		TB += TD_ +	btm_frame +	";height:" + outwz + "px;' colspan='" +	outcol + _TD;
		TB += TD_ +	btm_frame +	_TD;
		if (shdwz) TB += TD_ + shade + _TD;
		TB += "</tr>";
	}
	if (shdwz) {
		TB += "<tr>";
		if (outwz) TB += TD_ + "transparent;'" + _TD;
		if (innwz) TB += TD_ + "transparent;'" + _TD;
		TB += TD_ +	shade +	";height:" + shdwz + "px" +	_TD;
		if (innwz) TB += TD_ + shade + _TD;
		if (outwz) TB += TD_ + shade + _TD;
		TB += TD_ +	shade +	_TD;
		TB += "</tr>";
	}
	TB += "</table>";
	return TB;
}
defMenu.prototype.makeObj =	function() {
	if (this.ERRMSG) return;
	var	aryid =	this.NAME;
	var	WIDTH =	this.WIDTH;
	var	CH = [];
	var	CT = [];
	var	LB = [];
	var	sumHt =	[0];
	var	sumWz =	[0];
	var	ID = [];
	var	_STL = "</div>";
	var	xMOV = 0;
	var	yMOV = 0;
	for	(var i = 0;	i <	this.itm.length; i++) {
		ID[0] =	aryid +	'_'	+ (i + 1);
		LB[0] =	this.itm[i][0];
		var	STL_ = "<div style=\"";
		if (this.CFG.FONT_FAMILY[0]) STL_ += "font-family:"	+ this.CFG.FONT_FAMILY[0] +	";";
		if (this.CFG.FONT_STYLE[0])	STL_ +=	"font-style:" +	this.CFG.FONT_STYLE[0] + ";";
		STL_ +=	"font-size:" + this.CFG.FONT_SIZE[0] + "px;font-weight:" + this.CFG.FONT_WEIGHT[0];
		if (this.itm[i][1].indexOf("<img ")	== -1 || this.CFG.IMG_PADDING[0]) STL_ += ";padding:" +	this.CFG.CELL_PADDING[0];
		this.cel[LB[0]]	= new datacell();
		CH[0] =	this.cel[LB[0]];
		xMOV +=	this.itm[i][8] || 0;
		yMOV +=	this.itm[i][9] || 0;
		if (this.isV) {
			CH[0].xpos = this.position_x + xMOV;
			CH[0].ypos = this.position_y + sumHt[0]	+ i	* (this.GAP	+ 2	* (this.CFG.INNER_BORDER_WIDTH[0] +	this.CFG.OUTER_BORDER_WIDTH[0])) + yMOV;
		} else {
			CH[0].xpos = this.position_x + sumWz[0]	+ i	* (this.GAP	+ 2	* (this.CFG.INNER_BORDER_WIDTH[0] +	this.CFG.OUTER_BORDER_WIDTH[0])) + xMOV;
			CH[0].ypos = this.position_y + yMOV;
		}
		CH[0].id = [0, ID[0]];
		CH[0].label	= STL_ + ";\">"	+ this.itm[i][1] + _STL;
		CH[0].url =	this.itm[i][2];
		CH[0].target = this.itm[i][3] || this.CFG.TARGET_WINDOW[0];
		CH[0].height = this.itm[i][4] || this.CFG.CELL_HEIGHT[0];
		CH[0].height +=	this.HEIGHT_PLUS[0];
		CH[0].width	= this.itm[i][5] ||	this.CFG.CELL_WIDTH[0];
		CH[0].bgcolor =	this.itm[i][6] || this.COL.BG[0];
		CH[0].color	= this.itm[i][7] ||	this.COL.CHAR[0];
		CH[0].exp =	this.itm[i][10]	|| '';
		this.cnt[LB[0]]	= new container();
		CT[0] =	this.cnt[LB[0]];
		if (this.isV) {
			if (this.FRM) {
				CT[0].xpos = 0;
			} else {
				CT[0].xpos = CH[0].xpos	+ CH[0].width +	2 *	(this.CFG.OUTER_BORDER_WIDTH[0]	+ this.CFG.INNER_BORDER_WIDTH[0]) +	this.CFG.OFFSET_RIGHT[1];
			}
			if (this.F2POS)	{
				CT[0].ypos = this.position_y + yMOV;
			} else {
				CT[0].ypos = CH[0].ypos	+ this.CFG.OUTER_BORDER_WIDTH[0] + this.CFG.INNER_BORDER_WIDTH[0] -	this.CFG.OUTER_BORDER_WIDTH[1] - this.CFG.INNER_BORDER_WIDTH[1]	+ this.CFG.OFFSET_DOWN[1];
			}
		} else {
			if (fo_____.is_child_horizontal) {
				CT[0].xpos = this.position_x + this.CFG.OFFSET_RIGHT[1];
			} else {
				if (this.F2POS)	{
					CT[0].xpos = this.position_x + this.CFG.OUTER_BORDER_WIDTH[0] +	this.CFG.INNER_BORDER_WIDTH[0] - this.CFG.OUTER_BORDER_WIDTH[1]	- this.CFG.INNER_BORDER_WIDTH[1] + this.CFG.OFFSET_RIGHT[1];
				} else {
					CT[0].xpos = CH[0].xpos	+ this.CFG.OUTER_BORDER_WIDTH[0] + this.CFG.INNER_BORDER_WIDTH[0] -	this.CFG.OUTER_BORDER_WIDTH[1] - this.CFG.INNER_BORDER_WIDTH[1]	+ this.CFG.OFFSET_RIGHT[1];
				}
			}
			if (this.FRM) {
				CT[0].ypos = 0;
			} else {
				CT[0].ypos = CH[0].ypos	+ CH[0].height + 2 * (this.CFG.OUTER_BORDER_WIDTH[0] + this.CFG.INNER_BORDER_WIDTH[0]) + this.CFG.OFFSET_DOWN[1];
			}
		}
		sumWz[0] +=	CH[0].width;
		sumHt[0] +=	CH[0].height;
		CT[0].id = aryid + ID[0];
		if (this.itm[LB[0]]	&& this.itm[LB[0]].length >	0) {
			sumHt[1] = 0;
			for	(var j = 0;	j <	this.itm[LB[0]].length;	j++) {
				ID[1] =	'_'	+ (j + 1);
				LB[1] =	this.itm[LB[0]][j][0];
				var	STL_ = "<div style=\"";
				if (this.CFG.FONT_FAMILY[1]) STL_ += "font-family:"	+ this.CFG.FONT_FAMILY[1] +	";";
				if (this.CFG.FONT_STYLE[1])	STL_ +=	"font-style:" +	this.CFG.FONT_STYLE[1] + ";";
				STL_ +=	"font-size:" + this.CFG.FONT_SIZE[1] + "px;font-weight:" + this.CFG.FONT_WEIGHT[1];
				if (this.itm[LB[0]][j][1].indexOf("<img	") == -1 ||	this.CFG.IMG_PADDING[1]) STL_ += ";padding:" + this.CFG.CELL_PADDING[1];
				CH[0][LB[1]] = new datacell();
				CH[1] =	CH[0][LB[1]];
				if (!this.F2POS	&& this.isV	&& CT[0].xpos +	this.CFG.CELL_WIDTH[1] + 2 * (this.CFG.INNER_BORDER_WIDTH[1] + this.CFG.OUTER_BORDER_WIDTH[1]) > WIDTH)	CT[0].xpos = CH[0].xpos	- this.CFG.CELL_WIDTH[1] - 2 * (this.CFG.INNER_BORDER_WIDTH[1] + this.CFG.OUTER_BORDER_WIDTH[1]) - this.CFG.OFFSET_RIGHT[1];
				if (!this.F2POS	&& !this.isV &&	CT[0].xpos + this.CFG.CELL_WIDTH[1]	+ 2	* (this.CFG.INNER_BORDER_WIDTH[1] +	this.CFG.OUTER_BORDER_WIDTH[1])	> WIDTH) CT[0].xpos	= CH[0].xpos - this.CFG.CELL_WIDTH[1] +	CH[0].width;
				CH[1].id = [1, ID[0], ID[0]	+ ID[1]];
				CH[1].label	= STL_ + ";\">"	+ this.itm[LB[0]][j][1]	+ _STL;
				CH[1].url =	this.itm[LB[0]][j][2];
				CH[1].target = this.itm[LB[0]][j][3] ||	this.CFG.TARGET_WINDOW[1];
				CH[1].height = this.itm[LB[0]][j][4] ||	this.CFG.CELL_HEIGHT[1];
				CH[1].height +=	this.HEIGHT_PLUS[1];
				CH[1].bgcolor =	this.itm[LB[0]][j][6] || this.COL.BG[1];
				CH[1].color	= this.itm[LB[0]][j][7]	|| this.COL.CHAR[1];
				CH[1].exp =	this.itm[LB[0]][j][10] || '';
				CT[0][LB[1]] = new container();
				CT[1] =	CT[0][LB[1]];
				if (fo_____.is_child_horizontal) {
					CT[1].xpos = CT[0].xpos	+ this.CFG.OFFSET_RIGHT[2];
					CT[1].ypos = CT[0].ypos	+ CH[1].height + this.CFG.OFFSET_DOWN[2];
				} else {
					CT[1].xpos = CT[0].xpos	+ this.CFG.CELL_WIDTH[1] + 2 * (this.CFG.OUTER_BORDER_WIDTH[1] + this.CFG.INNER_BORDER_WIDTH[1]) + this.CFG.OFFSET_RIGHT[2];
					CT[1].ypos = CT[0].ypos	+ sumHt[1] + j * this.CFG.PARTITION_WIDTH[1] + this.CFG.OUTER_BORDER_WIDTH[1] +	this.CFG.INNER_BORDER_WIDTH[1] - this.CFG.OUTER_BORDER_WIDTH[2]	- this.CFG.INNER_BORDER_WIDTH[2] + this.CFG.OFFSET_DOWN[2];
				}
				sumHt[1] +=	CH[1].height;
				CT[1].id = aryid + ID[0] + ID[1];
				if (!this.FRM || !this.isMMF) this.makeRecurObj(this.itm[LB[0]][LB[1]],	CH,	CT,	0, ID);
			}
		}
	}
}
defMenu.prototype.makeRecurObj = function(LB1, CH, CT, N, ID) {
	var	ARYID =	this.NAME;
	var	WIDTH =	this.WIDTH;
	var	_STL = "</div>";
	if (LB1	&& LB1.length >	0) {
		var	sumHt =	0;
		for	(var q = 0;	q <	LB1.length;	q++) {
			ID[N + 2] =	'_'	+ (q + 1);
			var	LB2	= LB1[q][0];
			var	STL_ = "<div style=\"";
			if (this.CFG.FONT_FAMILY[N + 2]) STL_ += "font-family:"	+ this.CFG.FONT_FAMILY[N + 2] +	";";
			if (this.CFG.FONT_STYLE[N +	2])	STL_ +=	"font-style:" +	this.CFG.FONT_STYLE[N +	2] + ";";
			STL_ +=	"font-size:" + this.CFG.FONT_SIZE[N	+ 2] + "px;font-weight:" + this.CFG.FONT_WEIGHT[N +	2];
			if (LB1[q][1].indexOf("<img	") == -1 ||	this.CFG.IMG_PADDING[N + 2]) STL_ += ";padding:" + this.CFG.CELL_PADDING[N + 2];
			CH[N + 1][LB2] = new datacell();
			CH[N + 2] =	CH[N + 1][LB2];
			if (CT[N + 1].xpos + this.CFG.CELL_WIDTH[N + 2]	+ 2	* (this.CFG.OUTER_BORDER_WIDTH[N + 2] +	this.CFG.INNER_BORDER_WIDTH[N +	2])	> WIDTH) {
				CT[N + 1].xpos = CT[N].xpos	- this.CFG.CELL_WIDTH[N	+ 2] - 2 * (this.CFG.INNER_BORDER_WIDTH[N +	2] + this.CFG.OUTER_BORDER_WIDTH[N + 2]) - this.CFG.OFFSET_RIGHT[N + 2];
			}
			CH[N + 2].id = []; (CH[N + 2].id)[0] = N + 2; (CH[N	+ 2].id)[1]	= ID[0];
			for	(var i = 1;	i <	N +	3; i++)	{ (CH[N	+ 2].id)[i + 1]	= (CH[N	+ 2].id)[i]	+ ID[i];
			}
			CH[N + 2].label	= STL_ + ";\">"	+ LB1[q][1]	+ _STL;
			CH[N + 2].url =	LB1[q][2];
			CH[N + 2].target = LB1[q][3] ||	this.CFG.TARGET_WINDOW[N + 2];
			CH[N + 2].height = LB1[q][4] ||	this.CFG.CELL_HEIGHT[N + 2];
			CH[N + 2].height +=	this.HEIGHT_PLUS[N + 2];
			CH[N + 2].bgcolor =	LB1[q][6] || this.COL.BG[N + 2];
			CH[N + 2].color	= LB1[q][7]	|| this.COL.CHAR[N + 2];
			CH[N + 2].exp =	LB1[q][10] || '';
			CT[N + 1][LB2] = new container();
			CT[N + 2] =	CT[N + 1][LB2];
			if (fo_____.is_child_horizontal) {
				CT[N + 2].xpos = CT[N +	1].xpos	+ this.CFG.OFFSET_RIGHT[N +	3];
				CT[N + 2].ypos = CT[N +	1].ypos	+ CH[N + 2].height + this.CFG.OFFSET_DOWN[N	+ 3];
			} else {
				CT[N + 2].xpos = CT[N +	1].xpos	+ this.CFG.CELL_WIDTH[N	+ 2] + 2 * (this.CFG.OUTER_BORDER_WIDTH[N +	2] + this.CFG.INNER_BORDER_WIDTH[N + 2]) + this.CFG.OFFSET_RIGHT[N + 3];
				CT[N + 2].ypos = CT[N +	1].ypos	+ sumHt	+ q	* this.CFG.PARTITION_WIDTH[N + 2] +	this.CFG.OUTER_BORDER_WIDTH[N +	2] + this.CFG.INNER_BORDER_WIDTH[N + 2]	- this.CFG.OUTER_BORDER_WIDTH[N	+ 3] - this.CFG.INNER_BORDER_WIDTH[N + 3] +	this.CFG.OFFSET_DOWN[N + 3];
			}
			sumHt += CH[N +	2].height;
			CT[N + 2].id = '';
			for	(var j = 0;	j <	N +	3; j++)	{
				CT[N + 2].id +=	ID[j];
			}
			CT[N + 2].id = ARYID + CT[N	+ 2].id;
			this.makeRecurObj(LB1[LB2],	CH,	CT,	N +	1, ID);
		}
	}
}
defMenu.prototype.putMenu =	function() {
	if (this.ERRMSG) return;
	var	CH = [];
	var	CT = [];
	var	LB = [];
	var	zx;
	for	(var i = 0;	i <	this.itm.length; i++) {
		LB[0] =	this.itm[i][0];
		CH[0] =	this.cel[LB[0]];
		CT[0] =	this.cnt[LB[0]];
		//zx=this.itm.length-i;
		zx = i + 1;
		if (LB[0]) {
			var	cellid = this.uniq + CH[0].id[1];
			var	idSTR =	CH[0].id.join(':');
			var	PTR	= (CH[0].url &&	CH[0].url != '-') ?	this.PTR: 'default';
			this.posID[this.posID.length] =	CH[0].id[1];
			if (!this.FRM || this.isMMF) {
				document.write("<div id='" + CH[0].id[1] + "' style='position:absolute;left:" +	CH[0].xpos + "px;top:" + CH[0].ypos	+ "px;z-index:"	+ zx + ";'>", CT[0].put_tbl_upr(this.COL.OUTER_LEFT_UP[0], this.COL.OUTER_RIGHT_DOWN[0], this.COL.INNER_LEFT_UP[0],	this.CELL_BGIMG[0],	this.CFG.INNER_BORDER_WIDTH[0],	this.CFG.OUTER_BORDER_WIDTH[0],	this.CFG.SHADOW_WIDTH[0]), CH[0].put_tbl_lef(this.COL.OUTER_LEFT_UP[0],	this.COL.INNER_LEFT_UP[0], this.CFG.INNER_BORDER_WIDTH[0], this.CFG.OUTER_BORDER_WIDTH[0]),	"<td id='" + cellid	+ "' ",	" width='" + CH[0].width + "' height='"	+ CH[0].height + "'	", " style='text-align:" + this.CFG.CELL_ALIGN[0] +	";cursor:" + PTR + ";color:" + CH[0].color + ";background-color:" +	CH[0].bgcolor +	this.OPC[0]);
				if (this.CELL_BGREP[0])	document.write(";background-image:url("	+ this.CELL_BGREP[0] + ")");
				if (this.CFG.CELL_STYLE[0])	document.write(";" + this.CFG.CELL_STYLE[0]);
				document.write(";' nowrap='nowrap' ");
				if (CH[0].url) {
					if (this.FRM &&	this.isMMF && top.frames[this.sub_menu_frame]) {
						document.write(" onmouseover='fo_swapCol(\"" + cellid +	"\",\""	+ this.NAME	+ "\",\"" +	this.COL.BG_REVERSE[0] + "\",\"" + this.COL.CHAR_REVERSE[0]	+ "\",\"" +	idSTR +	"\");top.frames[\""	+ this.sub_menu_frame +	"\"].fo_swapCol(" +	null + ",\"" + this.NAME + "\"," + null	+ "," +	null + ",\"" + idSTR + "\");' ");
					} else {
						document.write(" onmouseover='fo_swapCol(\"" + cellid +	"\",\""	+ this.NAME	+ "\",\"" +	this.COL.BG_REVERSE[0] + "\",\"" + this.COL.CHAR_REVERSE[0]	+ "\",\"" +	idSTR +	"\");' ");
					}
					if (CH[0].url != '-') {
						document.write(" onclick='return fo_jmpURL(\"" + CH[0].url + "\",\"" + CH[0].target	+ "\");' ",	" onmousedown='fo_slctMenu(\"" + cellid	+ "\",\"" +	this.COL.BG_PRESSED[0] + "\");'	");
					}
				}
				if (this.itm[LB[0]]) {
					var	arw_posx = this.CFG.OUTER_BORDER_WIDTH[0] +	this.CFG.INNER_BORDER_WIDTH[0] + CH[0].width - 10 +	this.CFG.ARROW_OFFSET_RIGHT[0];
					var	arw_posy = this.CFG.OUTER_BORDER_WIDTH[0] +	this.CFG.INNER_BORDER_WIDTH[0] + CH[0].height *	0.5	+ this.CFG.ARROW_OFFSET_DOWN[0];
					var	zidx = zx +	1;
					if (this.ARW[0]) {
						arw_posy -=	3;
						document.write("><div style='position:absolute;left:" +	arw_posx + "px;top:" + arw_posy	+ "px;z-index:"	+ zidx + ";'><img src='" + this.ARW[0] + "'	\/></div>");
					} else {
						arw_posy -=	this.CFG.FONT_SIZE[0] /	2;
						document.write("><div style='position:absolute;left:" +	arw_posx + "px;top:" + arw_posy	+ "px;font-size:" +	this.CFG.FONT_SIZE[0] +	";z-index:"	+ zidx + ";'>" + this.CFG.CHAR_ARROW[0]	+ "</div>");
					}
				} else {
					document.write(">");
				}
				document.write(CH[0].label + "</td>", CH[0].put_tbl_rig(this.COL.OUTER_RIGHT_DOWN[0], this.COL.INNER_RIGHT_DOWN[0],	this.COL.SHADOW[0],	this.CFG.INNER_BORDER_WIDTH[0],	this.CFG.OUTER_BORDER_WIDTH[0],	this.CFG.SHADOW_WIDTH[0]), CT[0].put_tbl_btm(this.COL.OUTER_LEFT_UP[0],	this.COL.OUTER_RIGHT_DOWN[0], this.COL.INNER_LEFT_UP[0], this.COL.INNER_RIGHT_DOWN[0], this.COL.SHADOW[0], this.CFG.INNER_BORDER_WIDTH[0], this.CFG.OUTER_BORDER_WIDTH[0], this.CFG.SHADOW_WIDTH[0]), "</div>");
			}
		}
		zx = this.itm.length + 1;
		if (this.itm[LB[0]]	&& this.itm[LB[0]].length >	0) {
			this.posID[this.posID.length] =	CT[0].id;
			if (!this.FRM || !this.isMMF) {
				document.write("<div id='" + CT[0].id +	"' style='visibility:hidden;position:absolute;left:" + CT[0].xpos +	"px;top:" +	CT[0].ypos + "px;z-index:" + zx	+ ";'>", CT[0].put_tbl_upr(this.COL.OUTER_LEFT_UP[1], this.COL.OUTER_RIGHT_DOWN[1],	this.COL.INNER_LEFT_UP[1], this.CELL_BGIMG[1], this.CFG.INNER_BORDER_WIDTH[1], this.CFG.OUTER_BORDER_WIDTH[1], this.CFG.SHADOW_WIDTH[1]));
				var	sumHt =	0;
				for	(var j = 0;	j <	this.itm[LB[0]].length;	j++) {
					LB[1] =	this.itm[LB[0]][j][0];
					CH[1] =	CH[0][LB[1]];
					if (LB[1]) {
						var	cellid = this.uniq + CH[1].id[2];
						if (this.CFG.PARTITION_WIDTH[1]	&& j !=	0) {
							document.write(CH[1].put_div_line(this.COL.OUTER_LEFT_UP[1], this.COL.OUTER_RIGHT_DOWN[1], this.COL.PARTITION[1], this.COL.INNER_LEFT_UP[1], this.COL.INNER_RIGHT_DOWN[1], this.COL.BG[1], this.COL.SHADOW[1], this.CFG.INNER_BORDER_WIDTH[1], this.CFG.OUTER_BORDER_WIDTH[1], this.CFG.PARTITION_WIDTH[1],	this.CFG.SHADOW_WIDTH[1], this.PTIMG[1]));
						}
						var	idSTR =	CH[1].id.join(':');
						var	PTR	= (CH[1].url &&	CH[1].url != '-') ?	this.PTR: 'default';
						document.write(CH[1].put_tbl_lef(this.COL.OUTER_LEFT_UP[1],	this.COL.INNER_LEFT_UP[1], this.CFG.INNER_BORDER_WIDTH[1], this.CFG.OUTER_BORDER_WIDTH[1]),	"<td id='" + cellid	+ "' ",	" width='" + this.CFG.CELL_WIDTH[1]	+ "' height='" + CH[1].height +	"' ", "	style='text-align:"	+ this.CFG.CELL_ALIGN[1] + ";cursor:" +	PTR	+ ";color:"	+ CH[1].color +	";background-color:" + CH[1].bgcolor + this.OPC[1]);
						if (this.CELL_BGREP[1])	document.write(";background-image:url("	+ this.CELL_BGREP[1] + ")");
						if (this.CFG.CELL_STYLE[1])	document.write(";" + this.CFG.CELL_STYLE[1]);
						document.write(";' nowrap='nowrap' ");
						if (CH[1].url) {
							document.write(" onmouseover='fo_swapCol(\"" + cellid +	"\",\""	+ this.NAME	+ "\",\"" +	this.COL.BG_REVERSE[1] + "\",\"" + this.COL.CHAR_REVERSE[1]	+ "\",\"" +	idSTR +	"\");' ");
							if (CH[1].url != '-') {
								document.write(" onclick='return fo_jmpURL(\"" + CH[1].url + "\",\"" + CH[1].target	+ "\");' ",	" onmousedown='fo_slctMenu(\"" + cellid	+ "\",\"" +	this.COL.BG_PRESSED[1] + "\");'	");
							}
						}
						if (this.itm[LB[0]][LB[1]])	{
							if (fo_____.is_child_horizontal) {
								var	arw_posx = this.CFG.OUTER_BORDER_WIDTH[1] +	this.CFG.INNER_BORDER_WIDTH[1] + (this.CFG.CELL_WIDTH[1] + this.CFG.PARTITION_WIDTH[1])	* j	+ this.CFG.CELL_WIDTH[1] - 10 +	this.CFG.ARROW_OFFSET_RIGHT[1];
								var	arw_posy = this.CFG.OUTER_BORDER_WIDTH[1] +	this.CFG.INNER_BORDER_WIDTH[1] + CH[1].height *	0.5	+ this.CFG.ARROW_OFFSET_DOWN[1];
							} else {
								var	arw_posx = this.CFG.OUTER_BORDER_WIDTH[1] +	this.CFG.INNER_BORDER_WIDTH[1] + this.CFG.CELL_WIDTH[1]	- 10 + this.CFG.ARROW_OFFSET_RIGHT[1];
								var	arw_posy = this.CFG.OUTER_BORDER_WIDTH[1] +	this.CFG.INNER_BORDER_WIDTH[1] + sumHt + this.CFG.PARTITION_WIDTH[1] * j + CH[1].height	* 0.5 +	this.CFG.ARROW_OFFSET_DOWN[1];
							}
							var	zidx = zx +	1;
							if (this.ARW[1]) {
								arw_posy -=	3;
								document.write("><div style='position:absolute;left:" +	arw_posx + "px;top:" + arw_posy	+ "px;z-index:"	+ zidx + ";'><img src='" + this.ARW[1] + "'	\/></div>");
							} else {
								arw_posy -=	this.CFG.FONT_SIZE[1] /	2;
								document.write("><div style='position:absolute;left:" +	arw_posx + "px;top:" + arw_posy	+ "px;font-size:" +	this.CFG.FONT_SIZE[1] +	";z-index:"	+ zidx + ";'>" + this.CFG.CHAR_ARROW[1]	+ "</div>");
							}
						} else {
							document.write(">");
						}
						sumHt += CH[1].height;
						document.write(CH[1].label + "</td>", CH[1].put_tbl_rig(this.COL.OUTER_RIGHT_DOWN[1], this.COL.INNER_RIGHT_DOWN[1],	this.COL.SHADOW[1],	this.CFG.INNER_BORDER_WIDTH[1],	this.CFG.OUTER_BORDER_WIDTH[1],	this.CFG.SHADOW_WIDTH[1]));
					}
				}
				document.write(CT[0].put_tbl_btm(this.COL.OUTER_LEFT_UP[1],	this.COL.OUTER_RIGHT_DOWN[1], this.COL.INNER_LEFT_UP[1], this.COL.INNER_RIGHT_DOWN[1], this.COL.SHADOW[1], this.CFG.INNER_BORDER_WIDTH[1], this.CFG.OUTER_BORDER_WIDTH[1], this.CFG.SHADOW_WIDTH[1]), "</div>");
			}
			if (!this.FRM || !this.isMMF) this.putRecurMenu(this.itm[LB[0]], CH[0],	CT[0], zx, 1);
		}
	}
}
defMenu.prototype.putRecurMenu = function(LB1, CH1,	CT1, ZX, N)	{
	for	(var p = 0;	p <	LB1.length;	p++) {
		var	LB2	= LB1[p][0];
		var	CH2	= CH1[LB2];
		var	CT2	= CT1[LB2];
		var	sumHt =	0;
		ZX++;
		if (LB1[LB2] &&	LB1[LB2].length	> 0) {
			this.posID[this.posID.length] =	CT2.id;
			document.write("<div id='" + CT2.id	+ "' style='visibility:hidden;position:absolute;left:" + CT2.xpos +	"px;top:" +	CT2.ypos + "px;z-index:" + ZX +	";'>", CT2.put_tbl_upr(this.COL.OUTER_LEFT_UP[N	+ 1], this.COL.OUTER_RIGHT_DOWN[N +	1],	this.COL.INNER_LEFT_UP[N + 1], this.CELL_BGIMG[N + 1], this.CFG.INNER_BORDER_WIDTH[N + 1], this.CFG.OUTER_BORDER_WIDTH[N + 1], this.CFG.SHADOW_WIDTH[N + 1]));
			for	(var q = 0;	q <	LB1[LB2].length; q++) {
				var	LB3	= LB1[LB2][q][0];
				var	CH3	= CH2[LB3];
				if (LB3) {
					var	cellid = this.uniq + CH3.id[N +	2];
					if (this.CFG.PARTITION_WIDTH[N + 1]	&& q !=	0) {
						document.write(CH3.put_div_line(this.COL.OUTER_LEFT_UP[N + 1], this.COL.OUTER_RIGHT_DOWN[N + 1], this.COL.PARTITION[N +	1],	this.COL.INNER_LEFT_UP[N + 1], this.COL.INNER_RIGHT_DOWN[N + 1], this.COL.BG[N + 1], this.COL.SHADOW[N + 1], this.CFG.INNER_BORDER_WIDTH[N + 1], this.CFG.OUTER_BORDER_WIDTH[N + 1], this.CFG.PARTITION_WIDTH[N	+ 1], this.CFG.SHADOW_WIDTH[N +	1],	this.PTIMG[N + 1]));
					}
					var	idSTR =	CH3.id.join(':');
					var	PTR	= (CH3.url && CH3.url != '-') ?	this.PTR: 'default';
					document.write(CH3.put_tbl_lef(this.COL.OUTER_LEFT_UP[N	+ 1], this.COL.INNER_LEFT_UP[N + 1], this.CFG.INNER_BORDER_WIDTH[N + 1], this.CFG.OUTER_BORDER_WIDTH[N + 1]), "<td id='" + cellid +	"' ", "	width='" + this.CFG.CELL_WIDTH[N + 1] +	"' height='" + CH3.height +	"' ", "	style='text-align:"	+ this.CFG.CELL_ALIGN[N	+ 1] + ";cursor:" +	PTR	+ ";color:"	+ CH3.color	+ ";background-color:" + CH3.bgcolor + this.OPC[N +	1]);
					if (this.CELL_BGREP[N +	1])	document.write(";background-image:url("	+ this.CELL_BGREP[N	+ 1] + ")");
					if (this.CFG.CELL_STYLE[N +	1])	document.write(";" + this.CFG.CELL_STYLE[N + 1]);
					document.write(";' nowrap='nowrap' ");
					if (CH3.url) {
						document.write(" onmouseover='fo_swapCol(\"" + cellid +	"\",\""	+ this.NAME	+ "\",\"" +	this.COL.BG_REVERSE[N +	1] + "\",\"" + this.COL.CHAR_REVERSE[N + 1]	+ "\",\"" +	idSTR +	"\");' ");
						if (CH3.url	!= '-')	{
							document.write(" onclick='return fo_jmpURL(\"" + CH3.url + "\",\"" + CH3.target	+ "\");' ",	" onmousedown='fo_slctMenu(\"" + cellid	+ "\",\"" +	this.COL.BG_PRESSED[N +	1] + "\"); '");
						}
					}
					if (LB1[LB2][LB3]) {
						if (fo_____.is_child_horizontal) {
							var	arw_posx = this.CFG.OUTER_BORDER_WIDTH[N + 1] +	this.CFG.INNER_BORDER_WIDTH[N +	1] + (this.CFG.CELL_WIDTH[N	+ 1] + this.CFG.PARTITION_WIDTH[N +	1])	* q	+ this.CFG.CELL_WIDTH[N	+ 1] - 10 +	this.CFG.ARROW_OFFSET_RIGHT[N +	1];
							var	arw_posy = this.CFG.OUTER_BORDER_WIDTH[N + 1] +	this.CFG.INNER_BORDER_WIDTH[N +	1] + CH3.height	* 0.5 +	this.CFG.ARROW_OFFSET_DOWN[N + 1];
						} else {
							var	arw_posx = this.CFG.OUTER_BORDER_WIDTH[N + 1] +	this.CFG.INNER_BORDER_WIDTH[N +	1] + this.CFG.CELL_WIDTH[N + 1]	- 10 + this.CFG.ARROW_OFFSET_RIGHT[N + 1];
							var	arw_posy = this.CFG.OUTER_BORDER_WIDTH[N + 1] +	this.CFG.INNER_BORDER_WIDTH[N +	1] + this.CFG.PARTITION_WIDTH[N	+ 1] * q + sumHt + CH3.height *	0.5	+ this.CFG.ARROW_OFFSET_DOWN[N + 1];
						}
						var	zidx = ZX +	1;
						if (this.ARW[N + 1]) {
							arw_posy -=	3;
							document.write("><div style='position:absolute;left:" +	arw_posx + "px;top:" + arw_posy	+ "px;z-index:"	+ zidx + ";'><img src='" + this.ARW[N +	1] + "'	\/></div>");
						} else {
							arw_posy -=	this.CFG.FONT_SIZE[N + 1] /	2;
							document.write("><div style='position:absolute;left:" +	arw_posx + "px;top:" + arw_posy	+ "px;font-size:" +	this.CFG.FONT_SIZE[N + 1] +	";z-index:"	+ zidx + ";'>" + this.CFG.CHAR_ARROW[N + 1]	+ "</div>");
						}
					} else {
						document.write(">");
					}
					sumHt += CH3.height;
					document.write(CH3.label + "</td>",	CH3.put_tbl_rig(this.COL.OUTER_RIGHT_DOWN[N	+ 1], this.COL.INNER_RIGHT_DOWN[N +	1],	this.COL.SHADOW[N +	1],	this.CFG.INNER_BORDER_WIDTH[N +	1],	this.CFG.OUTER_BORDER_WIDTH[N +	1],	this.CFG.SHADOW_WIDTH[N	+ 1]));
				}
			}
			document.write(CT2.put_tbl_btm(this.COL.OUTER_LEFT_UP[N	+ 1], this.COL.OUTER_RIGHT_DOWN[N +	1],	this.COL.INNER_LEFT_UP[N + 1], this.COL.INNER_RIGHT_DOWN[N + 1], this.COL.SHADOW[N + 1], this.CFG.INNER_BORDER_WIDTH[N + 1], this.CFG.OUTER_BORDER_WIDTH[N + 1], this.CFG.SHADOW_WIDTH[N + 1]),	"</div>");
			this.putRecurMenu(LB1[LB2],	CH2, CT2, ZX, N	+ 1);
		}
	}
}
function fo_gp_func_over() {
	if (!fo_____.hide_select_tag) return;
	if (!document.getElementsByTagName || fo_____.ary_select_tag.length	== 0) return;
	for	(var i = 0;	i <	fo_____.ary_select_tag.length; i++)	fo_____.ary_select_tag[i].style.visibility = 'hidden';
}
function fo_gp_func_out() {
	if (!fo_____.hide_select_tag) return;
	if (!document.getElementsByTagName || fo_____.ary_select_tag.length	== 0) return;
	for	(var i = 0;	i <	fo_____.ary_select_tag.length; i++)	fo_____.ary_select_tag[i].style.visibility = 'visible';
}