//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
path = '';
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-north0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('生活週報'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
menuNames2 = new Array('north','center','south','fashion','living','family','medicine','article','young','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '我向美說明 台灣傾中 不符美利益';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '美官員︰盼確保兩岸現狀不變';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '新聞幕後／四不一沒有 中國騙美 美騙台灣';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '呂批馬 忘了中國威脅';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '美兩岸政策 本土社團籲檢討';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '日商售中直升機 日學者批愚蠢';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '新春占國運 國泰民安 上上籤';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '3人大樂透 各抱走3.2億';
	rows[7].link = 'today-fo8.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '孫運璿一度病危 未脫險境';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '我入世衛 美議員致函支持';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '菲駐台代表處 被指帳目不清';
	rows[2].link = 'today-p3.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '漫罵穆罕默德？ 敘、沙召回大使';
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = '中國禁藝伎 牽扯二戰回憶錄';
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = '雅子離婚話題 搬上媒體';
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = '哈利納粹照 導致反猶攻擊';
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = 'IAEA︰伊朗核問題非立即威脅';
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = '《國際索隱》布希轉型外交 推動美式民主';
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = '《中英對照讀新聞》Eating vegetables lowers blood pressure吃蔬菜可降血壓';
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '64年前領養契約曝光 尋親夢圓';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '狂賊持刀奪槍 銬警逃逸';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '購物台主持人 愛犬失而復得';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '肯亞台裔女義工 被控性侵５男童';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '胡志強控週刊案 今傳林志玲作證';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '頸纏絲巾絞機 洗衣婦斷頭';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '陳哲男妻 查出七千萬財產未申報';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '北市健身館全面體檢 北縣三分館安全堪虞';
	rows[7].link = 'today-so8.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '國道車潮 明天還有一波';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '香港3人疑染禽流感 檢驗呈陰性';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '台鐵誤點退費條件 消基會促放寬';
	rows[2].link = 'today-life3.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '詹姆斯大三元 騎士7連勝';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = 'NBA新秀對抗賽 名單公布';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《泛太平洋女網賽》網球甜辛 闖八強';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '極地王林義傑 週日凱歸';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '阪神春訓 林威助11轟';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '洋基卡諾 不打經典';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '澳洲高球賽 雙姝排頭';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '世界女籃賽 我籤運差';
	rows[7].link = 'today-sp8.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '科技股領軍 紅盤蓄勢待發';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '日歐美股市 春節期間齊漲';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '國際油價 小幅波動';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '百貨公司業績旺旺來';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '線上遊戲營業額 成長1到2成';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '電子零組件今年產值 上看6351億';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '蘇嘉全︰打造台灣北海道';
	rows[6].link = 'today-e7.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '剩餘年終獎金 優先償債吧!';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '現金超過百萬 選高收益債券';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '富邦投信遭裁罰 恐衝擊股債市';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '6天春假結束 銀行今起營業';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '歐股午盤下跌 東京大漲';
	rows[4].link = 'today-stock5.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台股今開紅盤 可望收紅';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '陳澤杉簽Jolin 搶燕姿';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '同居T結新歡 蔡淑臻牌桌排寂寞';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '機車明道踢球解悶 心繫環島';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '施易男 過年在家哭愛犬';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '方念華不甩跳槽說 靳秀麗告別主播台';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '陳凱倫突破49魔咒 感恩過日';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = 'YOYO新春樂 小朋友High翻天';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '性向遭質疑 蔡一傑打太極';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '克隆尼露鳥照 嚇跑小金人？';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '007開拍 丹尼爾沒女伴';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '深田恭子爆紅 深田涼子耍A';
	rows[10].link = 'today-show11.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《今日社論》掙脫「四不一沒有」的枷鎖 台灣才能出頭天';
	rows[0].link = 'today-s1.htm';
																
	rows[1].text = '《自由談》新願景';
	rows[1].link = 'today-f1.htm';
																
	rows[2].text = '《鏗鏘集》當機立斷，快刀割除';
	rows[2].link = 'today-f2.htm';
																
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '北部新聞　　→';
	rows[0].submenu = 'north';
	rows[0].link = 'today-north0.htm';

	rows[1].text = '中部新聞　　→';
	rows[1].submenu = 'center';
	rows[1].link = 'today-center0.htm';

	rows[2].text = '南部新聞　　→';
	rows[2].submenu = 'south';
	rows[2].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('north');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '年假尾聲大晴天 竹苗景點塞爆';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '迎施茂林 花監年味濃';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '金門航站 候補一位難求';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '桃園街頭 民眾亂堆垃圾';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '黑色蘿蔔 民眾爭睹好彩頭';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '苗警查贓 起出大批天公爐';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '瘋大樂透 警員翻出壓箱寶';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '義警身亡 子女就學金無著';
	rows[7].link = 'today-north8.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '初五迎財神 人潮湧向財神廟';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '中山高員林路段 車流順暢';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '寒梅怒放 梅峰農場一片繽紛';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '換腎成功 大林慈濟一日兩例';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '男子烈火焚身 前妻否認縱火';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '4盜狹橋攔車 夫婦被搶16萬';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '擺手搖臀 有氧運動輕鬆享瘦';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '新社九庄媽 今入新厝';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '六堆客家春祭 鼓舞人心';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '屏東熱博會 湧入10萬人次';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '高縣娃娃節 國外偶戲壓軸';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '春節掛病號 急診室忙翻天';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '鹿耳社區魚飾 搶搶滾';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '仁壽宮祈福卡 金閃閃';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '社會傳真／色情徵友 國小男老師送辦';
	rows[6].link = 'today-south7.htm';
																
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台灣賣身契';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '《黃天麟專欄》反分裂法 VS. 國統綱領';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '阿扁仔 挺下去';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '誰沒誠信？';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '誰要國統？';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '不回頭 不擴大';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '四國演義';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '台灣人真無助';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '守歲 跨年';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '廢台灣省車牌';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '《曹長青專欄》孫中山不是國父';
	rows[10].link = 'today-o11.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(8);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '好品味　　　→';
		rows[1].submenu = 'living';
		rows[1].link = 'today-living1.htm';
	
		rows[2].text = '家庭兩性　　→';
		rows[2].submenu = 'family';
		rows[2].link = 'today-family1.htm';
	
		rows[3].text = '健康醫療　　→';
		rows[3].submenu = 'medicine';
		rows[3].link = 'today-medicine1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.htm';
	
		rows[5].text = '青春美　　　→';
		rows[5].submenu = 'young';
		rows[5].link = 'today-young1.htm';
	
		rows[6].text = '藝術文化　　→';
		rows[6].submenu = 'art';
		rows[6].link = 'today-art1.htm';
	
		rows[7].text = '休閒旅遊　　→';
		rows[7].submenu = 'travel';
		rows[7].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('living');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('young');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 19;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 20;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(11);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '聰明消費 讓你省到、買到還賺到！';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '現在你不理財<br>將來財不理你';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '買玩具也要精打細算';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '大學生耍花樣<br>把博物館 變飛遜了！';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '獅頭山走春 森呼吸 博好彩頭';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '從頭到腳 就是要這麼放鬆';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '鏡子迷宮裡的旋轉木馬';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '聞樂起舞 Hip-Hop 狂飆';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '腸保健康 快樂過新年';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '他不是故意不乖<br>而是有學習障礙';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '超mini 小小說年度展';
		rows[10].link = 'today-weekly11.htm';
																											
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,700);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,700);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}