//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 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('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 href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(10);
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 = '我13項農產品商標 中國蟑螂搶註冊';
	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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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 = '歐盟函WHO 支持台灣入會';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '改良型IDF 將展開地面測試';
	rows[8].link = 'today-p9.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "改善形象 美護照擬附公民守則";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "宗教反恐高峰會 達賴開示";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "中國劃東海禁航區 日將抗議";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "查德威脅關閉油管 槓上世銀";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "南韓推廣英才教育 學科分類";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "日版「伊頓公學」作育精英";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Cut off by floods,Czech man survives on frogs 遭洪水阻絕，捷克男子靠吃青蛙生存";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(16);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '向母要不到錢 4口自殺';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '向父借錢未果 夫妻尋死';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '生命的課題 家長該教育';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '臥軌求償法 台鐵「催生」遏死';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '落石砸遊覽車 婦人枉斷魂';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '搶165噸鋼材 3鐵盜客落網';
	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 = '歌唱擂台達人 熟唱4000首歌';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '7旬鹽工 好管「鹹」事一輩子';
	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 = '腦麻認養貧童 20年不輟';
	rows[15].link = 'today-so16.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 = '無線電追蹤 穿山甲年移範圍70公頃';
	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';
																										
}
menu = null;

menu = getMenu('sp');
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-sp1.htm';
																										
	rows[1].text = '洋基能否擋雙城 今看建仔';
	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 = '愛力克 一安打完封兄弟';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '二軍回來的山豬 很嚇人';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《SBL》獸傷 達欣暗爽';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《SBL》田壘驅獸 摘下得分王';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '76人著魔 晉級多舛';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '2020申奧最大罩門…缺乏國際大賽經驗';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '《美LPGA武富士菁英賽》收尾零柏忌 歐秋阿封后';
	rows[10].link = 'today-sp11.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '卡債風暴 當舖、地下錢莊業績增2成';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '地下錢莊吸血 借百萬月息60萬';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '市場預料美續升息';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '佈局金融股 Q3好時機';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '個人破產法 金融股反彈隱憂';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '高階鋁質電容 近期將調漲';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '聯發科月績 達預期水準';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '收購傳言激勵 威盛股價走強';
	rows[7].link = 'today-e8.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 = '中油擬每公升漲2.5元 政院不接受';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '梁家輝扮酷警 老NG臉扭曲';
	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 = '大S不嫁 仔仔緊迫盯人';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '馮光榮有新歡? 馬妞酸口祝福';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '手持攝影師Jake 杜可風接班人';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '比基尼惹火上身 摩莉9.6億最高貴 姬賽兒黑油油最經典';
	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 = 'KAT-TUN搖錢 30億跑不掉';
	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 = 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 = '泰國潑水節 熱情不怕冷';
	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 = '三重馬拉松賽 3500人雨中奔跑';
	rows[7].link = 'today-taipei8.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 11;
menu.parentMenu = 'region';
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-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';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 12;
menu.parentMenu = 'region';
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-center1.htm';
																										
	rows[1].text = 'GPS追贓車 抄出解體廠';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '家暴／煮飯、做愛 迫妻2選1';
	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';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '警伯坐鎮 山上國中近10年沒中輟生';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '找回文化認同 排灣女孩重返校園';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '勇警鍾禾杰 3年抓150個通緝犯';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '為紅毛猩猩造樹 誰最行？';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '搶檳榔攤 高屏連傳4起';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '三輕火警 再生窯燒2次';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '釣客落海 9級浪搜救難';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '飛車衝撞 1死4輕重傷';
	rows[7].link = 'today-south8.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 = 'Dear Boss';
	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 = 'SOGO柔性斬首';
	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 = 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 = 'Beach Girl 出色一夏';
	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 = '不做作的性感  休閒迷你裙';
	rows[3].link = 'today-fashion4.htm';
																										
	rows[4].text = 'MP3+外接喇叭正流行';
	rows[4].link = 'today-fashion5.htm';
																										
}
menu = null;

menu = getMenu('family');
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-family1.htm';
																										
	rows[1].text = '如果分手 老公揚言讓我好看';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '台南安南國中 義賣書法籌學費';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '消費大事週報';
	rows[3].link = 'today-family4.htm';
																										
}
menu = null;

menu = getMenu('medicine');
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 = '分心症<br>藥物治療 更要教育配合';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '補充抗氧化劑<br>無法預防子癇前症';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '慢性病患<br>防治中風 須更積極';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '吃維骨力治關節炎？<br>醫界看法仍歧異';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '美國英文教授<br>在台手術 減重回鄉';
	rows[4].link = 'today-medicine5.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 15;
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-article1.htm';
																										
	rows[1].text = '雨途';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '《流理台下的骨頭》';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '稍感停頓——<br>途中，給小草';
	rows[3].link = 'today-article4.htm';
																										
}
menu = null;

menu = getMenu('art');
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 = '故宮正館整建換邊做<br>東側4月底擇日開放 交通路線大變更';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '正館整建工程不拖時限 故宮新任副院長 丁著';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '修改監察人建議報告 毫無懲處<br>兩廳院董事會 卯勁為藝術總監平珩背書';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '台新藝術獎 雲門再度以《狂草》獲獎';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '春暖花開 中華民國依依歌唱舞蹈協會 今晚演出';
	rows[4].link = 'today-art5.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 = '日本名古屋<br>古城轉型與移動物語';
	rows[0].link = 'today-travel1.htm';
																										
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	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';
}