//===========================================================================
//基本設定
//==================== 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','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-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(11);
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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '9、10月是台美關係關鍵期';
	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';
																										
	rows[4].text = '倒扁內訌 賀：我還是發言人嗎';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '倒扁怒火陣 對準總統府坐';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '挺扁救台灣 找回民進黨魂';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '噤口令？ 蔡煌瑯：過度聯想';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '國民黨挪黨產挹注選將';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '中國觀光客來台 不按指紋';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '前進聯合國 台南人發聲';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '郝龍斌摔傷 臉縫六針';
	rows[11].link = 'today-p12.htm';
																										
	rows[12].text = '謝長廷訪溫哥華 後援會擠爆';
	rows[12].link = 'today-p13.htm';
																										
	rows[13].text = '呂嗆中國：別干預台灣內政';
	rows[13].link = 'today-p14.htm';
																										
	rows[14].text = '蘇揆拚治安支票 藍軍批跳票';
	rows[14].link = 'today-p15.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(9);
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 = "音樂神童   14歲作曲逾百";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "癌末媽媽 單騎6760公里募款";
	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 = "南韓老兵 反北韓、美國大遊行";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中英對照讀新聞》Daily doses of painkillers increase impotence risk 每日服止痛劑增加陽痿風險";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中日對照讀新聞》沖&#32260;&#12391;&#12399;肥&#28288;問題&#12364;深刻化 日本琉球的肥胖問題嚴重";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(19);
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 = '黑Ｔ映粉頰 少女志工好樣';
	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 = '84歲通緝被捕 「我很驕傲」';
	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 = '網狼囚女大學生 自認沒錯 銬著變態冷笑';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '誣告性騷擾 判賠150萬';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '新光保全讚啦 李昌鈺建議產品銷美';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '調監視畫面緝賊 被偷還要付錢';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '鐵血教官退休 當憨兒靠山';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '自修變醫生 他，只有國小學歷';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '結婚72年 愛鬥嘴 有本事不傷和氣';
	rows[14].link = 'today-so15.htm';
																										
	rows[15].text = '半截門牙 照吃不誤 投資基金 算是健身';
	rows[15].link = 'today-so16.htm';
																										
	rows[16].text = '男童頻呢喃 怎會這樣呢？';
	rows[16].link = 'today-so17.htm';
																										
	rows[17].text = '蚯蚓開畫展 罕病人捧場';
	rows[17].link = 'today-so18.htm';
																										
	rows[18].text = '迷毒羔羊 記錄9段戒毒血淚史';
	rows[18].link = 'today-so19.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 8;
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-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 = '補習班 擬禁收6歲以下幼童';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '男性頸圍逾41.5CM 65％有嚴重睡眠呼吸中止';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '高醫大 培育5胚胎幹細胞';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '神話野鳥 黑嘴端正名馬祖燕鷗';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '龍鳳瀑布公告免門票 私收清潔費';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '記錄鍬形蟲 張永仁樂當野人';
	rows[9].link = 'today-life10.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(17);
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 = '掌聲久違了 A–Rod雙響砲';
	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 = '胡金龍入選2A明星隊';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '蟄伏2年 黃欽智復出';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '老搭檔相挺 曾兆豪10勝';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '姜建銘 今力抗洋砲伍茲';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '扳倒歐洲冠軍 女壘晉8強';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '象二軍測試會 曾華偉胞弟試身手';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '鮑威爾 拚百米 向錢衝';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '捷猛士 拒歸隊';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '夢7 銅牌作收';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '費德爾 直落三淘汰韓曼';
	rows[13].link = 'today-sp14.htm';
																										
	rows[14].text = '伍茲 搶攻5連勝';
	rows[14].link = 'today-sp15.htm';
																										
	rows[15].text = '大舒預言F1 巴西站決勝負';
	rows[15].link = 'today-sp16.htm';
																										
	rows[16].text = 'ING馬拉松 花蓮暖身賽';
	rows[16].link = 'today-sp17.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '福特將出售Aston Martin品牌';
	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 = '廣達Q4出貨大增 外資調升評等';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = 'PC產業相關股 表現亮眼';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '半年報攻防戰 本週焦點';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '15檔增資股上市 殺傷力不大';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '營運回春 新銀行紛傳獲利佳音';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '華邦電︰Q3營運比預期好';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '致新七折私募 引進策略夥伴';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '台股政治利空 法人不擔心';
	rows[10].link = 'today-e11.htm';
																										
	rows[11].text = '傳呂桔誠想回台銀 財部頭痛';
	rows[11].link = 'today-e12.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 = '餵毒性侵 網狼囚虐大學女39天';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(17);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'Rain 張東健 30秒男男愛 撥髮絲撩慾火';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '三立新約談不攏 陳雅琳密謀跳槽東森';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '姚采穎貼身熱舞 Duncan臉紅心跳';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '周侯戀玩完 周董認了';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '比基尼美女 NO.1 潘佳湲卡哇伊出線';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '評審怎麼說／潘佳湲 身材好臉蛋美';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '莫文蔚撒嬌耍花槍 陶&#21894;公然奪愛';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = 'MTV封神榜萬人演唱會／眾星狂亂舞 歌迷 High到厥';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '扎娃娃 養小鬼 電視台走火入魔';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '中天訪台大美學住戶 造假？';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = 'Tiffany玩趴 眾星銀光四射';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '建築師Gehry 劈腿玩珠寶';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '布蘭妮炒飯當主廚  泰瑞按摩棒助性';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '芭黎絲車多嫌麻煩爬車頂';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '蔡明亮成功獵獅 全靠烏瑪翻案';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '嘉西絲三點全裸 解救猶太人';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '朱芷瑩搶戲搶眼 比湯唯竄紅快';
	rows[16].link = 'today-show17.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 = 10;
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 = 10;
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-taipei1.htm';
																										
	rows[1].text = '山林花園 與螢火蟲有約';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '斜紋夜盜蟲改吃茶 坪林茶減產20％';
	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';
																										
}
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 = '酒駕1罪挨2罰 異議成功省了5萬1';
	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 = '4人結夥搶超商 最大才19歲';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '藥局賣假威而鋼 負責人認錯獲緩刑';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '行車糾紛開2槍 竹東警方逮到人';
	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(13);
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 = '戲水困沙洲 空勤救回6孩童';
	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';
																										
	rows[8].text = '打工偷雞排 高中生投案';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '贈品包藏毒品 離職員警被逮';
	rows[9].link = 'today-center10.htm';
																										
	rows[10].text = '3竊嫌剝電纜線 人贓俱獲';
	rows[10].link = 'today-center11.htm';
																										
	rows[11].text = '公布前女友裸照 男子被訴';
	rows[11].link = 'today-center12.htm';
																										
	rows[12].text = '死者頭七 情夫偷車賊落網';
	rows[12].link = 'today-center13.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 13;
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-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 = '自己重婚說受虐 老公訴離，駁';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '不該…查明惡狼行徑 更三審判刑';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '不服…資遣懷孕員工 立朗敗訴';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '不明…興達港區漁會 理事被打傷';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '不妙…抗議中拉扯警 民眾被函送';
	rows[8].link = 'today-south9.htm';
																										
	rows[9].text = '不爽…超車惹上惡煞 騎士圍毆';
	rows[9].link = 'today-south10.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-o1.htm';
																										
	rows[1].text = '直打2758進聯合國';
	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';
																										
	rows[11].text = '你好玩 我怕怕';
	rows[11].link = 'today-o12.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 12;
	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 = 12;
	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-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 = '終結臭摸摸 飄香對策GO！';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '叮嚀特效藥 癢癢不再來';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '鋁試不爽的DIY狂想曲';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '改造陽台 巧手布置綠意 祕密花園';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '瓦楞紙 變身美麗壁掛時鐘';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '瓦楞紙 裝飾活用技法';
		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';
}