//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
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('supplement'));
	titles = titles.concat(new Array('生活副刊'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','work','gender','family','article','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>');
}
if (false)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tdb><A class=block2La href="#" onClick=open("http://www.libertytimes.com.tw/Service/weekly.htm","","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=810,height=643")>生活週報</A></TD>');
	document.write('	</TR>');
}
if (false)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tdb><A class=block2La href="#" onClick=open("http://www.libertytimes.com.tw/Service/house.htm","","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=810,height=707")>住宅生活</A></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('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.ntat.gov.tw/" target=_blank>台北市國稅局</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 = '試委促依行政程序法 終止18％';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '18％改革原案 綠今提復議';
	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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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';
																										
}
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 = "2006年時代風雲人物 就是「你」";
	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 = "《中英對照讀新聞》Days numbered for counterfeiters at Paris market 巴黎市場的仿冒品業者來日無多";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(18);
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 = '上網求職 保險電話狂CALL';
	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 = '5404家投注站 逾8成沒開過頭獎';
	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 = '3神父公證 遺產還教會';
	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 = '歡喜小天使 守護腦麻同學';
	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';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = 'SUV排戴奧辛濃度 是焚化爐10倍';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '4D影像 窺探哺乳動物子宮內日記';
	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 = '冷氣團今減弱 明回溫';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '常喝優酪乳 肥胖多一點';
	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';
																										
	rows[10].text = '全校九學童 虎井國小最迷你';
	rows[10].link = 'today-life11.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 = 'ING台北國際馬拉松／肯亞黑色閃電 雙破紀錄衛冕';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '逾11萬人有空 明年還要跑';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '麥迪遜大亂鬥 尼克、金塊 10人罰出場';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '台北國際馬拉松/都3年了…人車衝突無解';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '亞洲隊險勝 龔怡萍差點成罪人';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '強恕回穩 K掉中道';
	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';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '中銀工會堅持29日罷工';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '中信金退出兆豐金董監改選 各方搶進';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '賴洋助 晶片卡後台霸主';
	rows[2].link = 'today-e3.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 = '耗資150億 東森媒體總部動工';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '一週股市觀測站／十日線攻防戰 本週焦點';
	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(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '兩Mel倒楣 性事被公開<br>老梅車震 蹦出29歲私生女<br>媚兒碧床功讚 艾迪虧大';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '權相佑趴趴走 24小時夜未眠';
	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 = 'Akemi偕男友共享鍋貼 各付各的';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '北市府抽15% 小巨蛋想賺也難';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '金鐘系列預測之五／戲劇節目、迷你劇集獎<br>聖稜 草山戲劇節目搶鍍金';
	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';
																										
	rows[10].text = '當西方遇見東方 專訪提姆．麥可法蘭';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '庄頭藝術家 逗陣來熱鬧';
	rows[11].link = 'today-show12.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(4);
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';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-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';
																										
}
menu = null;

menu = getMenu('center');
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-center1.htm';
																										
	rows[1].text = '歲末義剪 園遊會溫暖受扶兒';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '18寄養家庭 投縣府致敬';
	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';
																										
}
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 = '東山咖啡豆 出現冒牌貨';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '企圖攜子燒炭 判刑5年半';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '年輕人聚賭 K他命助興 一粒眠共享';
	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 = '徹查走路工 逼出影武者';
	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(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 = 'work';
		rows[1].link = 'today-work1.htm';
	
		rows[2].text = '兩性異言堂　→';
		rows[2].submenu = 'gender';
		rows[2].link = 'today-gender1.htm';
	
		rows[3].text = '家庭親子　　→';
		rows[3].submenu = 'family';
		rows[3].link = 'today-family1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.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(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '代言人魅力 吸人氣拉買氣';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '派對季 妝扮指南';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '時尚在亞洲';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = 'VIP的鑰匙';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-family1.htm';
																										
	rows[1].text = '女同事搭便車 老婆心裡不舒坦';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '檸檬皮泡腳 最佳SPA';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '此蟲非彼蟲';
	rows[3].link = 'today-family4.htm';
																										
	rows[4].text = '消費大事週報';
	rows[4].link = 'today-family5.htm';
																										
}
menu = null;

menu = getMenu('work');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-work1.htm';
																										
	rows[1].text = 'OL的洗頭極樂術';
	rows[1].link = 'today-work2.htm';
																										
	rows[2].text = '辦公室臉部運動';
	rows[2].link = 'today-work3.htm';
																										
	rows[3].text = '秘書的悲鳴';
	rows[3].link = 'today-work4.htm';
																										
	rows[4].text = '仙人掌刺小人';
	rows[4].link = 'today-work5.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '第二屆 林榮三文學獎 散文獎決審會議紀錄<br>時代多樣性 書寫無界限';
	rows[0].link = 'today-article1.htm';
																										
}
menu = null;

menu = getMenu('gender');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-gender1.htm';
	
	rows[1].text = '床戰後 總要喘口氣嘛';
	rows[1].link = 'today-gender2.htm';
	
	rows[2].text = '更年期男人 你性福嗎?';
	rows[2].link = 'today-gender3.htm';
	
	rows[3].text = '愛情與詐欺';
	rows[3].link = 'today-gender4.htm';
	
	rows[4].text = '出言威脅，以子逼婚';
	rows[4].link = 'today-gender5.htm';
	
	rows[5].text = '愛情幸運星';
	rows[5].link = 'today-gender6.htm';
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '橫跨歐亞的傳奇國度--土耳其 Turkey';
	rows[0].link = 'today-travel1.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,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';
}