//===========================================================================
//基本設定
//==================== 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','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="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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '扁：確保國防 馬也有責 馬：為民把關 天經地義';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '府方期待多互動 馬不排斥再會';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '新聞眼／有無元首歷練 視野層次大不同';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '預算解凍案  綠盼朝野各讓一步';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '四不一沒有／馬：總統應信守四不一沒有 扁：台海現狀新四不一沒有';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '中華民國／馬：遵行中華民國憲法 扁：憲法一台已在地化';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '經濟民生／馬：開放中國觀光客來台 扁：兩岸開放要兼顧國安';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '馬幾度想插話…扁堵回去';
	rows[7].link = 'today-fo8.htm';
																										
}
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 = '兩岸外交競逐 助長太平洋島國貪瀆';
	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 = '軍方43處營改土地 停止標售';
	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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "塔克辛宣布勝選 提議和解";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "北韓至少有3到6枚核彈";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "身障友登峰 機器裝背負使命";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "委內瑞拉原油 願每桶定價50美元";
	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 = "法印聯合軍演";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中英對照讀新聞》Israeli convicted over penis enlargement scam 陰莖增大騙局 以色列人遭判刑";
	rows[8].link = 'today-int9.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 = '6萬元嫌少 幫兇幹譙吐實';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '棺木店老闆綁案偵破 預謀勒贖逮4嫌';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '宣布參選里長 住家工廠被轟5槍';
	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 = '高雄長庚醫療烏龍 「&#21652;嚓」整形名醫攝護腺';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '藝人葉雯墜海死';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '黃志成冤賠1693萬創紀錄';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '嘉義梅山梅北村11弄之家 住8戶像1家';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '離家34年 棄嬰返台尋根';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '高二生遺愛 父母捐百萬助學';
	rows[11].link = 'today-so12.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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 = '高雄榮總護士 逾1/3過重';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '醫師︰兒童受虐 父母多隱匿事實';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '健保費 這10家醫療院所最會A';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '醫改會呼籲 兒童吃成人藥 粉危險';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = 'ETC、台鐵計軸器弊案成箭靶 法務部長：大案辦太慢';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '公務員選才 教部建議採計鄉土語言';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '知本震出堰塞湖？ 媒體搞烏龍';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '老人之家網路掃墓 阿嬤淚漣漣';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '室內不吸菸 名媛帶球聲援';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '員工中午喝酒咆哮 中市府頒佈禁酒令';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '北市營養午餐 廉價蔬肉餵學童';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '中小學廁所 重男輕女';
	rows[12].link = 'today-life13.htm';
																										
	rows[13].text = '基測作文 擬提高至18分';
	rows[13].link = 'today-life14.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-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 = '籃網滅火12連勝';
	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 = '費德爾 又稱王';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《Kraft Nabisco錦標賽》薇柏吻金盃';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《職撞大賽第一站》傅哲偉如獲神助 敲進四強';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '《南方貝爾菁英賽》米寇森衛冕 桿數創新低';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '反轉薛慶光 挑戰顛倒人生';
	rows[11].link = 'today-sp12.htm';
																										
}
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 = '金管會不排除約談辜仲<img src='+path+'imgtoday/today-word2.gif border=0>';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '財部︰若辜違法 解除總座職務';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '僅4%基金 五年都獲利';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '雙重打擊 台幣貶1.26角';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '益通連12月新高 茂迪回神';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '京元電：封測Q2漲價仍難';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '車市3月業績再掉3成';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '碟片權利金降3成 業者︰不滿意';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '鋼鐵漲聲響 大演噴出秀';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = 'Napa引爆需求 散熱模組聚熱';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '《期指觀測站》季線若站穩 推升波不遠';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《國際股市》歐股午盤走揚 日港印爆紅';
	rows[7].link = 'today-stock8.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(16);
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 = '莫文蔚宣傳費 少楊丞琳500萬';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '王力宏捨阿妹 夜會帽子男';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '國光幫幫忙亮雪茄 罰5萬';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '何戎走秀15秒 飯碗不保';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '阿湯哥控制狂 從片場總管到臥房';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '羅比玩車震 紅粉佳人吃電腦炒飯';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '櫻井翔家世顯赫 一家都是資優生';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = 'Rain初戀被甩 一談情就發抖';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '輪舞曲海外版稅 高達3.6億';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = 'w-inds.奪冠 倖田來未燒未退';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '冰原歷險記2 台美票房逞威風';
	rows[15].link = 'today-show16.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(11);
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 = '移動污染源 聯合稽查 首日 50輛機車不合格';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '傳統藝術季 彈撥揭序曲';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '天母水道祭 週六踩街';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '紅橋映綠野 水車公園富生機';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '清明做草粿 土城千人體驗';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '擬改自辦 環狀捷運線陷兩難';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '華僑贈模型直升機 救難利器';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '市長有夢 湳仔溝變板橋運河';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '中央駐在所裁撤 新店盼設派出所';
	rows[10].link = 'today-taipei11.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-north1.htm';
																										
	rows[1].text = '苗廢營區漂流木大盜 逮兩嫌';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '為錢莊仲介 女債主報案 運將賠慘了';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '被詐200萬 向錢莊借貸 婦尋死獲救';
	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';
																										
	rows[7].text = '社會傳真／巡佐力擒逃逸外勞 代籌機票';
	rows[7].link = 'today-north8.htm';
																										
}
menu = null;

menu = getMenu('center');
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-center1.htm';
																										
	rows[1].text = '劉邦暄兄弟溺水案 工地主任被訴';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '離分局百公尺 飛車盜照搶';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '毒蟲毒癮發作 小學生也搶';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '挑戰50度斜坡 翻車壓死乘客';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '暴力遣返外勞 2人起訴';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '4國中生持棍 圍毆同學';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '社會傳真／殺同居男友 女子被起訴';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '借e點光 盲用電腦 讓視障者也能玩MSN';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '乳牛結核病 2酪農戶驗出8頭病例';
	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 = '買兇兩次槍殺親姊 2嫌判刑';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '中國漁船頻越界 南沙守軍驅離';
	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(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '主帥辯論 降低社會成本';
	rows[0].link = 'today-o1.htm';
	rows[0].type = '扁馬會 頭家說話';
																										
	rows[1].text = '可貴的民主';
	rows[1].link = 'today-o2.htm';
	rows[1].type = '扁馬會 頭家說話';
																										
	rows[2].text = '馬主席應該多讀書';
	rows[2].link = 'today-o3.htm';
	rows[2].type = '扁馬會 頭家說話';
																										
	rows[3].text = '一中各表可行嗎？';
	rows[3].link = 'today-o4.htm';
	rows[3].type = '扁馬會 頭家說話';
																										
	rows[4].text = '難得的平衡報導';
	rows[4].link = 'today-o5.htm';
	rows[4].type = '扁馬會 頭家說話';
																										
	rows[5].text = '台灣人民要有志氣';
	rows[5].link = 'today-o6.htm';
	rows[5].type = '扁馬會 頭家說話';
																										
	rows[6].text = '一廂情願的馬統論';
	rows[6].link = 'today-o7.htm';
	rows[6].type = '扁馬會 頭家說話';
																										
	rows[7].text = '給孕婦一個車位！';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '《林保華專欄》國共論壇過氣，中共統戰受挫';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '惡毒的「生化遺毒」';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '不是誰的衛生署';
	rows[10].link = 'today-o11.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '時尚，從頭開始';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '粉紅夏妝';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '腰飾潮流 腰女風情婀娜浪漫';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '行動電腦<br>平板電腦接班人';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '老公外遇 老婆當自強';
	rows[0].link = 'today-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';
																										
	rows[4].text = '抽背課文 發揮同窗愛';
	rows[4].link = 'today-family5.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '控制體重 從小做起';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '治療兒童腦瘤<br>遊憩性治療安撫幼小心靈';
	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';
																										
}
menu = null;

menu = getMenu('article');
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-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';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
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 = '當陳俊明遇上姚淑芬<br>激發《明日世界之天堂海》前衛驚嘆';
	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';
																										
	rows[5].text = '潛意識符碼刷圖  陳志誠繪畫展';
	rows[5].link = 'today-art6.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '華美滄桑尋佛境<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;
}
//====================  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';
}