//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
path = '';
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('生活週報'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','living','family','medicine','article','young','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="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '中籍配偶擬改入境後抽驗';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '境管局官員：機場面談不可撤';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '焦點評論／新舊措施雙管齊下 勝過自撤國安要塞';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '逾三成不知中國不民主 王丹批台灣媒體誤導對中認知';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '中國若開採東海油田 日將反制';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '日本外相 舉歷史動亂 批中國帝國<br>中國回罵 日本說三道四 極不恰當';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '美沖繩駐軍將移防關島 促日負擔75億美元費用';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '兩岸政策 美要求台灣信守承諾';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '美日澳外長會議 鎖定中國議題';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '東沙南沙 擬恢復駐軍';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '遭藍軍圍剿 李傑：不想幹了';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '李登輝 5月訪日';
	rows[11].link = 'today-fo12.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '318遊行 扁呂蘇游不缺席';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '台銀18％代墊款 政府欠款423億';
	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 = '拾荒年銷200萬以上 才課到稅';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '雙卡改差別利率 四月起實施';
	rows[6].link = 'today-p7.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 = '聯邦法官: Google須交網路搜尋紀錄';
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = '英擬改革BBC 娛樂節目打先鋒';
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = '對抗H5N1 匈研發疫苗';
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = '《中英對照讀新聞》Aussie toilet seats also bulking up 澳洲人的馬桶座也擴大';
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-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 = '換妻俱樂部玩6P 老婆懷孕 不知誰的種';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '性侵女同學? 校外客教室尋仇';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '319子彈 黃維藩說詞反覆';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '319槍擊案 立院演出肥皂劇';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '回饋鄉里 年年捐500萬';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '南非美女搭錯車 熱心員警送上路';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '超級大獅頭 挑戰世界No.1';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = 'SD彩妝達人 6尺大漢繞指柔';
	rows[11].link = 'today-so12.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '8成免洗筷 含二氧化硫';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '自備筷子 50家餐廳享優惠';
	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 = 'ETC案 2官商複訊 1交保1釋回';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '指考擬加考公民與社會變10科';
	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 = '愛滋CRF07_BC亞型 來自雲南毒窟';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '78歲玉米伯 傳古早味做身體勇';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '85歲活菩薩 開業61年醫人無數';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '蓮華池園區 美得蛙蛙叫';
	rows[11].link = 'today-life12.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《WBC》多明尼加 率先晉四';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《WBC》日大勝墨西哥 保住生機';
	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 = '《HBL》新榮終結能仁';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《HBL》蚊子發威 南山衝衝衝';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《HBL》小綠綠差點絆倒淡商';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《HBL》全心出擊 淡商嗆海山';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '陳金鋒 首度上場守備';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '巴林站屈居老二 大舒：下一站會更好';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '太平洋人壽網賽 辛吉絲 爆冷擒戴姊';
	rows[10].link = 'today-sp11.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(8);
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 = '我今年經濟 德銀上修至5%';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '金鼎證質疑動機 開發金強調值得';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '南亞科12吋廠 動土';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '檢舉企業盜版 獎金千萬';
	rows[7].link = 'today-e8.htm';
																										
}
menu = null;

menu = getMenu('stock');
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-stock1.htm';
																										
	rows[1].text = '《理財Q&A》器官捐贈者 無法獲醫療理賠';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '小型生技股 錢途不可限量';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '溫家寶喊話 人民幣勁揚';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '傳獲大單 益通攻上千元';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '雙卡利率沒上限 金融股吐怨氣';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '國際鋼價 漲勢確立';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '新力宣布 11月發售PS3';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '《期指觀測站》電子期 短線趨強';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '《國際股市》歐股連漲5天 港股大漲';
	rows[9].link = 'today-stock10.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(17);
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 = '阿姑2億豪宅 保全大陣仗';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '摩天輪太暴力 NCC：不改善就罰';
	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 = '凱特買按摩棒係金A';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '妮可列特秀大婚戒 情定麥可波頓';
	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 = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '海岸三不管 漂流木先撿先贏';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '三山國王文化節開鑼 歡迎來作客';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '新店中安便橋動線不良 民眾不滿';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '聽障阿遠 網住惜物者的心';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '幼兒教育券 4/15前申請';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '捷運新路線初步規劃案 民生汐止線出爐';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '身障者停車優惠縮水? 捷運公司：可退費';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '賭客前說她抓耙 婦抓狂';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '訂貨不付錢 扮女人施故技';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '認養葡萄樹 體驗植栽樂';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'ㄅㄨㄅㄨ車藏毒 3歲子漏口風';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '車輪漏氣 5竊嫌帶槍毒被逮';
	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(9);
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 = '檢方相驗／台電人員墜谷 4人非溺斃 研判墜谷時已慘死';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '邊坡樹救了他 醉漢僅臉受傷';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '狂偷電纜線 嘉市10公里路一片漆黑';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '台電被偷怕 偏遠地區改用鋁線';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '小6中輟生 當起傳播小姐';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '合法回收場 起出贓車引擎蓋';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '冒牌LV 櫻桃包上竟有笑臉';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '疑食物中毒 14國中生鬧肚疼';
	rows[8].link = 'today-center9.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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 = '灑熱血、拚魔獸 線上HOT遊戲';
	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';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	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].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '好品味　　　→';
		rows[1].submenu = 'living';
		rows[1].link = 'today-living1.htm';
	
		rows[2].text = '家庭兩性　　→';
		rows[2].submenu = 'family';
		rows[2].link = 'today-family1.htm';
	
		rows[3].text = '健康醫療　　→';
		rows[3].submenu = 'medicine';
		rows[3].link = 'today-medicine1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.htm';
	
		rows[5].text = '青春美　　　→';
		rows[5].submenu = 'young';
		rows[5].link = 'today-young1.htm';
	
		rows[6].text = '藝術文化　　→';
		rows[6].submenu = 'art';
		rows[6].link = 'today-art1.htm';
	
		rows[7].text = '休閒旅遊　　→';
		rows[7].submenu = 'travel';
		rows[7].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
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-fashion1.htm';
																										
	rows[1].text = '型男美女出馬 買氣狂飆';
	rows[1].link = 'today-fashion2.htm';
																										
}
menu = null;

menu = getMenu('living');
menu.layer = 14;
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-living1.htm';
																										
}
menu = null;

menu = getMenu('family');
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-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 = 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-medicine1.htm';
																										
	rows[1].text = '治療兒童便秘<br>飲食須重視三F';
	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 = 17;
menu.parentMenu = 'supplement';
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-article1.htm';
																										
	rows[1].text = '藤堂先生';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '預知 死亡紀事';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '冬季戀歌';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '在語言的國度裡逃亡';
	rows[4].link = 'today-article5.htm';
																										
	rows[5].text = '另類先驅漫畫放話<br>法國安古蘭國際漫畫節';
	rows[5].link = 'today-article6.htm';
																										
	rows[6].text = '開啟二十世紀新理性之夢';
	rows[6].link = 'today-article7.htm';
																										
	rows[7].text = '審視苦難 反思族恨';
	rows[7].link = 'today-article8.htm';
																										
	rows[8].text = '小城故事多';
	rows[8].link = 'today-article9.htm';
																										
	rows[9].text = '新聞短波';
	rows[9].link = 'today-article10.htm';
																										
}
menu = null;

menu = getMenu('young');
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 = '相親必成 結婚命中率最高';
	rows[0].link = 'today-young1.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 19;
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 = 'NSO成軍以來 知名度最高的客席指揮<br>紐約愛樂音樂總監馬捷爾：激發團員對音樂最初的熱情';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '永恆的觀照<br>展出倪朝龍50年創作';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '由視象到心象 陳炳義油畫多變景物';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '移民與新殖民記憶的新台灣色彩<br>中山北路變身燕子之城';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '羅曼菲養病<br>得意門生許芳宜代舞《尋夢》';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '傳藝中心展出傳統纏花';
	rows[5].link = 'today-art6.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 20;
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;

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;
}
//====================  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,700);
}

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,700);
}

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';
}