//===========================================================================
//基本設定
//==================== 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','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('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.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 class=block2L_tdb><A class=block2La href="#" onClick=open("http://www.libertytimes.com.tw/Service/weekly.htm","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=810,height=643")>生活週報</A></TD>');
document.write('	</TR>');

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=no,menubar=no,scrollbars=no,resizable=no,width=810,height=643")>住宅生活</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(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 = '馬英九捐款明細 最快3天內公布';
	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 = '目前小輸3% 在誤差範圍內 陳菊民調 趕上黃俊英';
	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(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '候選人辦摸彩抽LV 可能涉賄';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '中央總預算 初審凍結1100億';
	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 = '胡喚SHIRLEY 邵會張眼皮';
	rows[4].link = 'today-p5.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 = "731部隊翻版／日二戰老兵坦承 在菲活體解剖";
	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 = "《中英對照讀新聞》German police get their phoney US Highway Patrolman 德國警方逮捕假冒的美國高速公路警察";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(15);
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 = '偷警加油卡 醉漢盜刷400公升';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '爸媽不給買 闊少偷單車';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '偷1根甘蔗 2少年裁定收容';
	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 = '醫師護士亂搞 偷生兩子認養';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '假警誆帳號 司機失百萬';
	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 = '曾獲300助學金 回饋母校百萬';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '一場「髓緣」 永結不散';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '身障者打保齡 洗溝也歡喜';
	rows[14].link = 'today-so15.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(14);
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 = '造價逾億／台製鋼鋁豪華遊艇 12.2交船';
	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 = '眼皮跳20年 三叉神經作怪';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '同練太極 淡大教授神仙夫妻';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '人不服務枉少年 超優團隊出列';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '雷電交加劈柴山 高雄異象民眾慌';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '禁止體罰 聯合國來台發表研究';
	rows[12].link = 'today-life13.htm';
																										
	rows[13].text = '安全疑慮未除 若貿然通車 消基會 揚言發動拒乘高鐵';
	rows[13].link = 'today-life14.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '建仔加持 基層棒運募得87萬';
	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 = '響尾蛇、釀酒人互換3選手';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '林鴻遠、陳家偉 牛隊有興趣';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '亞運爭金 我拚前五';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《美津濃100週年馬拉松接力賽》吳文騫壓陣 後來居上';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '小牛捕蜂 飆9連勝';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '遠南運動會 台灣「金」店開張';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '職撞大賽 吳珈慶今年首度封王';
	rows[9].link = 'today-sp10.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('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 = '檢舉賄選獎金 已發3.5億';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 11;
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-show1.htm';
																										
	rows[1].text = '金馬帝后慶功 城城鬆口認了名模 周迅急閃密會男友';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '新科影后淡泊名利 小女人周迅 愛情擺第一';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '連莊影帝苦盡甘來 偶像郭富城 熬成實力演員';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '林志玲會首富 林百里來插花';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '劉嘉玲落寞1秒 狂歡整晚';
	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 = '3漢闖貝克漢豪宅 上演綁架驚魂記';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '韓劇海外取景 後遺症湧現';
	rows[10].link = 'today-show11.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》市長選舉不應流為藍綠與族群對抗';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》股市向前走';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》謊言是無窮無盡的！';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

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

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

menu = getMenu('center');
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 = '千人志工會師 189人榮耀';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '魅力北港 報馬仔搶鮮報';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '峰谷國小50歲 老校友喜相逢';
	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 = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '草鞋公藝陣 少年仔當寶';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '戴清連辭世 陳總統親往弔唁';
	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 = '失聯70年 來台尋親碰運氣';
	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(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 = '扁馬兩案 都應不受理';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = 'Checkers Vs.馬小九';
	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 = 12;
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-fashion1.htm';
																										
	rows[1].text = '渾身是勁 隔層包';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '泡澡美容  Happy Bath Day';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '善用刷具 打造完美妝容';
	rows[3].link = 'today-fashion4.htm';
																										
	rows[4].text = '007電影回顧 靚車全蒐羅';
	rows[4].link = 'today-fashion5.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '10大床上地雷  別誤踩';
	rows[0].link = 'today-family1.htm';
																										
	rows[1].text = '喜歡上網交友  見面後就沒下文';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '消費大事週報';
	rows[2].link = 'today-family3.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 14;
menu.parentMenu = 'supplement';
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-medicine1.htm';
																										
	rows[1].text = '多和孩子言語互動 才不會大隻雞晚啼';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '中醫減肥重辨症  體質不同 處方不一';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '照護失智患者  不要傷了他的自尊';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '腎臟病患求好  事前評估、孕期監控不能少';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '骨科微創手術 有助術後復原';
	rows[5].link = 'today-medicine6.htm';
																										
	rows[6].text = '積極儲備孤兒藥 不因罕病就忽略';
	rows[6].link = 'today-medicine7.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(2);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '年輕的聲音 文壇新活力<br>第二屆 林榮三文學獎 頒獎典禮實況';
	rows[0].link = 'today-article1.htm';
																										
	rows[1].text = '剝開小說世界的邏輯蕊芯<br>第二屆 林榮三文學獎 短篇小說獎決審紀錄';
	rows[1].link = 'today-article2.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 16;
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 = '打造台灣為新秀的美好舞台<br>朱宗慶打擊樂團將舉辦世界打擊樂大賽';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '創作本質的淨化與超越  朱為白個展';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '青溪金環獎作品  展現軍人鐵漢柔情';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '哈爾濱冰上特技舞蹈嘉年華  下月炫技登場';
	rows[3].link = 'today-art4.htm';
																										
}
menu = null;

menu = getMenu('travel');
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 = '輕舟優雅划過小江戶  日本千葉縣佐原';
	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';
}