//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = false;
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-taipei0.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'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','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 class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La 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(12);
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 = '獨派反嗆 雙方混戰一場';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '民盟台南倒扁 爆發衝突';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '受難者家屬氣憤：施褻瀆先靈';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '基層串連挺扁：泛藍麥擱亂';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '綠營評估…扁有驚無險';
	rows[11].link = 'today-fo12.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(4);
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';
																										
	rows[3].text = '飛虎紀念館成立 陳香梅剪綵';
	rows[3].link = 'today-p4.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-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 = "安倍晉三表態 問鼎日相";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "斯里蘭卡內戰砲聲隆隆";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》September 11 - what year? 30 percent of Americans don't know 911─哪一年？3成的美國人不知道";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中日對照讀新聞》生卵&#12406;&#12388;&#12369;&#12390;&#12505;&#12531;&#12484;&#30423;&#12416; 扔完生蛋偷賓士";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '還有高人幫陳純甄喬債';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '假官辦拖吊 1輛車賺5千';
	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';
																										
	rows[8].text = '八斗子貧戶驚喜 3天有新家';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '憨女痴盼癌母歸 情深惹人憐';
	rows[9].link = 'today-so10.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '中油桶裝瓦斯也漲了';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '光華號包車 鐵道迷圓夢';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '微笑之鄉 鹿港小鎮奪冠';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '阻誤診 罕基會籲醫師勇戰權威';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = 'ABC英語史懷哲 讚台灣兒童好學';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '肝基會12歲 救3.7萬病患';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '四技二專今放榜 錄取率68％';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '連玄周燁都沒上榜 南韓亞運陣容有多強?';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '海峽盃高中籃賽 金甌險勝清華 解心結';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '職撞排名第200站 阿順、神童 翻盤晉16強';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《TPGA台豐公開賽》阿信手感差 照樣獨走';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《亞洲10瓶保齡球賽》女子3人賽 台灣連霸';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '建仔 明再挑戰勝投王';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '阿福拚10勝 差點中暑';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '黃忠義99轟';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '曾兆豪大曲球 象吃苦頭';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '不滿阿扁遭釋出 象迷今抗議';
	rows[10].link = 'today-sp11.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(6);
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 = '中國下半年 將採其他宏觀調控';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '曹為實 要幫台灣人多賺點錢';
	rows[5].link = 'today-e6.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '不畏炸機 油價小升';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '基本面支撐 歐股不怕空襲';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '日股、歐美小型股 最具漲相';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '美元走勢疲軟 美股持續震盪';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '新興市場 下半年依舊看好';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '新興債市 掌握三高';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '泰股利空出盡 10月現曙光';
	rows[7].link = 'today-stock8.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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '李亞鵬證實愛女唇裂 將捐款助兔寶寶';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '王菲產檢已知情 李亞鵬堅生李嫣';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '實踐大學備取? 言言說謊不打草稿';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '183 F.I.R.同門鬩牆 隔街挑釁叫陣';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '張韶涵錯認五月天 迷糊媽媽也放砲';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '娜姊MV女兒嫌 珍娜露半球搏版面';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '烏瑪硬挺下墜球 黑面伊娃狗不理';
	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 = '阿部寬 堤真一熟男飆魅力';
	rows[9].link = 'today-show10.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(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '亞太傳統藝術節 蘭陽踩街樂';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '三峽藍染節 老街屋展風華';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '搶救水獺生命大作戰';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '收費佈告欄 市民要求設置';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '取締未清狗糞 成效不彰';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '淡水河搭渡輪 救生衣超難穿';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '捷運蘆洲站工地 沒下雨淹大水';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '冷氣機滴水 上月檢舉案激增';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '龍山寺地下街生意差 市府卸責';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '二度七夕 大稻埕碼頭煙火秀';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(10);
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 = '手機搞鬼捉弄女老師 2國中生險挨罰';
	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 = '職業賭場開張3天 楊梅警方破獲';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '山老鼠又犯 警搜出400公斤裸銅';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '手機賊現形 連賣10支手機洩底';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '赴中探親中風 老翁小三通返金';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '連搶3超商 得手不多又被撞';
	rows[8].link = 'today-north9.htm';
																										
	rows[9].text = '社會傳真／檳榔攤藏色 中國女脫光陪酒';
	rows[9].link = 'today-north10.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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 = '天才小獅王 4歲緯宬活靈活現';
	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 = '藥局販售偽藥 捐錢緩起訴';
	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 = 14;
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 = '湖西青螺溼地 輕艇運動蓬勃';
	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 = '600萬建濕地 不到2年再花40萬拆掉';
	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(8);
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 = '《李筱峰專欄》中國仿台灣產品，台灣冒中國國名';
	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';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	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 = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].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('family');
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('medicine');
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('article');
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('art');
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('travel');
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;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '林道訪幽探險<br>高雄三民原鄉探索';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '越野山林 感受原鄉風光';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '遊友蚋 探礦坑戲水趣';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '吃喝友蚋 擋不住的暢快感受';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '天母新光商圈<br>異國美食風正發燒';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '美印妙滋味 料理魔法好神奇';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = 'BUBU女 不可不知 機車6事';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '3步祕技 單身男子部屋';
		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 = '健康醫療--<br>痘痘地圖從生長部位看健康狀況';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '花編--<br>騙子在我家窗外上班';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	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,600);
}

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,600);
}

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';
}