//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('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 class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '李不以「誰上誰下」思考問題';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '焦點評論／拉李倒扁 第三勢力意圖奪權';
	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';
																										
	rows[8].text = '恐怖行動 美兩週前已掌握';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '美國航空開盤重挫12.8% 歐洲股市午盤慘綠';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '空中炸機 波金卡計畫翻版';
	rows[10].link = 'today-fo11.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '女陪酒25% 牛郎店5% 營業稅率 有性別';
	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 = '前日本海將川村純彥：只要台灣人民有堅強抵抗意志 中國不可能以飛彈征服台灣';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '涉洩密 日自衛隊員自縊身亡';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '黃志芳訪真主黨 以不以為意';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '叩關聯合國 我兩案併陳';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '索羅門總理今訪台';
	rows[11].link = 'today-p12.htm';
																										
	rows[12].text = '國民黨暫緩申請陳雲林來台';
	rows[12].link = 'today-p13.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "共和黨 倒打民主黨";
	rows[0].link = 'today-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 = "《中英對照讀新聞》Designer creates floating bed 設計師製作出浮床";
	rows[4].link = 'today-int5.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(9);
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 = '兩匪開槍50秒搶農會37萬';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '腳尾飯造假 王育誠等判賠325萬';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '通緝犯拒捕 同夥開車衝撞 1警重傷';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '「殺」石車橫行 曾祖孫接連慘死家門';
	rows[8].link = 'today-so9.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '淡水河浩劫／10萬尾魚暴斃 屍漂10公里';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '戴奧辛毒害 彰縣鴨農提國賠3000萬';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '桑美撲中國 台輪脫錨 8台灣人失蹤';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = 'ETC喊拆 高公局擬委遠通暫管';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '藉橘營倒郭？ 鄭文燦︰怎麼可能';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '小兄弟錯用CPR      救活溺水么弟';
	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 = '黃蛇入侵 嘉義30萬戶大停電';
	rows[9].link = 'today-life10.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(13);
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 = '《TPGA台豐公開賽》葉偉志 破最低桿紀錄';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《美業餘女子高球賽》台灣雙姝 僅余珮琳晉32';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '5國職籃 拚亞洲一哥';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '陳純甄：多次想尋死';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '冠中冠撞球賽 趙豐邦晉4';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '美夢7移師香港 練罰球';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '《第19屆亞洲10瓶保齡球賽》台灣開張 男雙摘銀';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '《洛杉磯女網賽》戴姊復出失利 小威晉級';
	rows[12].link = 'today-sp13.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '年銷售逾225億 開店e點靈 商機滾滾來';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '露天市場 三年不收交易費';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '陳樹沈潛十年 重返證券圈';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '卡債催收 嚴禁騷擾恐嚇';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '台灣環保績效 優於美、荷';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '抑制通膨 南韓升息一碼';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '外匯高手選拔 開發金趁機選人';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '內有高手 陳樹表示將「主外」';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '施顏祥升政次 謝發達接常次';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '保險滲透度 台灣全球第一';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '台灣金服將拍賣環華證金股票';
	rows[10].link = 'today-e11.htm';
																										
	rows[11].text = '台銀標售不動產 進帳33.54億元';
	rows[11].link = 'today-e12.htm';
																										
	rows[12].text = '東京居民購買力 全球第一';
	rows[12].link = 'today-e13.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '外資壓境 台幣升1.91 角';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '小摩︰投資原油、基本金屬';
	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 = '《理財Q&A》日股若大跌   即可進場承接';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '奇美電︰Q3將強烈復甦';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '遊戲類股 橘子、網龍火熱';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '廣達8月營收 法人樂觀';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '聯電四買茂德 陳民良疑猜';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '宏達電7月營收溜滑梯';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '美升息止步 外資回流台股';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '《期指觀測站》下檔有限 逢回站買方';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '《國際股市 》歐股午盤大跌 泰國下挫';
	rows[12].link = 'today-stock13.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 = '英阻炸機恐怖陰謀 逮21嫌';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '白冰冰爆江淑娜有小孩   江蕙挺妹回嗆 活見鬼！';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '暴龍闢官網搶粉絲  狂挖F3牆腳';
	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 = '張勛傑走天下 玩鯨魚練膽';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '陶&#21894;黏女友共餐 粉碎情變說';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '阿妹生日快樂  要記者張口道賀';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '頂颱風 趕搭BOSS時尚風';
	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 = '基音金三角 飆高音夠Power';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '基音隨俗 戴黃色腕帶';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = 'Rain被唱衰 粉絲灌爆搞飛機網站';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '柴崎幸慶生 帶妻夫木聰見老爸';
	rows[14].link = 'today-show15.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(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 = '月底建置85％？ 街道家具無影';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '外籍配偶語言班 9月免費開課';
	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';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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 = '2億400萬交投顧 老董失聯';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '夥男友打前夫 搶殘障津貼';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '冒牌警政署科長 騙退休校長100萬';
	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';
																										
	rows[7].text = '堵女友新歡 持空氣槍毆打恐嚇';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '基隆民宅氣爆 疑因經濟問題自殺';
	rows[8].link = 'today-north9.htm';
																										
	rows[9].text = '社會傳真／洗車場涉囤積汽油 老闆送辦';
	rows[9].link = 'today-north10.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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 = '朴子農藥行 查獲16噸偽農藥';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '同步掃蕩地下油行 雲嘉有斬獲';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '通信行偽造證件辦門號 逮3嫌';
	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 = '社會傳真／劫殺老夫婦  2狠兇死刑定讞';
	rows[5].link = 'today-center6.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 = '偽鈔集團流竄 專找小店攤洗錢';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '8少搶超商 橫行南部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 = '生活留白';
	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(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(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	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-weekly1.htm';
																											
		rows[1].text = '菊島風情畫 有呷又有玩';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '美味小館 苦盡甘來';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '夏日芒果 妝點鮮滋味';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '中-當季芒果 香甜入菜最IN';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '南-金黃饗宴 濃郁果香好開胃';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '礦石之鄉 古早滋味懷舊風';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '客家風味小點 嘗在地滋味';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '涼夏3大肩情 DIY全都露！';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '2006中華美食展全攻略';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '白目是別人 對你的形容詞嗎？';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '生日禮物 一週提案';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	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';
}