//===========================================================================
//基本設定
//==================== 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(13);
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 = '12勝！ 大聯盟第二';
	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 = '政院回應：經續會保有自主性';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '扁：堅持本土與弱勢關懷';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '北市府台北導覽 強銷省籍情結';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '抗議中共暴行 法輪功學員靜坐';
	rows[12].link = 'today-fo13.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '朝府開13槍 有再犯之虞<br>張漢明 羈押禁見';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '單一選區 立委衝鋒<br>遷籍卡位 藍綠爆「內戰」';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '傳國民黨喬好選區 就喊倒閣';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '多人搶、無人愛 各21選區';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '國民黨中常委改選 立委大贏家';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '人搶人，亂 狗咬人，痛';
	rows[5].link = 'today-p6.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 = "熱浪襲歐美 逾220死";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "抗暑大作戰 各國如臨大敵";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "以黎瘋狂殺戮 萊絲重回中東";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "黑洞不存在？科學家新看法";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "銀髮族生日當天 高風險時刻";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "泰國新國際機場首航test";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "三重銀河影像";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中英對照讀新聞》Race breakthrough for French TV 法國電視台的種族突破";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中日對照讀新聞》日本人&#12398;&#23551;命、6年&#12406;&#12426;縮&#12416;<br>日本人的壽命 6年來首度縮短";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-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 = '自白救婚姻 黃福來「迎新生」';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '《星期人物》不卑不亢 高碧霞建功不居功';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '妒夫殺情敵 屍綁水泥沉溪';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '裸男臥屍 腳吊護欄疑遭情殺';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '狗賊落網 百萬名犬回家';
	rows[9].link = 'today-so10.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '社區家庭關懷站 全國統一專線啟動';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '動漫祭開鑼 近3萬漫迷塞爆台大';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '挑戰1006階梯 侯友宜：比破案還興奮';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '冰河遺物台灣山椒魚 玉山現蹤';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '小丑魚復育 美夢成真';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '屏東伯大尼 17憨兒尋爸媽';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '牙齒銀行 年底設立';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '榜首李應成 拒絕南征北討';
	rows[8].link = 'today-life9.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '建仔最不會K人 勝投數第2';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '嘟嘟10勝';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '喬伊夜襲 象對獅止敗';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '一掃貧打低氣壓 鯨神勇';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '建民信民 同日發威';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '世界少棒亞太區錦標賽 冠軍賽泡湯 我拒領獎';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '伍茲去年賺32億 體壇首富';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '賴冠華霸林道 給接班人上一課';
	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';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '美經濟降溫 油價重挫1.7%';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '高油價 美經濟衰退風險倍增';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = 'IMF：美經濟正在軟著陸';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '外資非自資投資 免證所稅';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '勞保紓困貸款 逾欠近31億';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '奇美搶推22吋寬螢幕顯示器';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '面板二線廠 Q2虧聲連連';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '五大超商 自願省電5∼10%';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '台灣精密機械業 出口值世界第三';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '台資研發飛機 橫跨大西洋';
	rows[9].link = 'today-e10.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-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 = '貨幣市場基金 投資新選擇';
	rows[4].link = 'today-stock5.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(13);
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 = '孫燕姿小巨蛋雪恥 Jolin耍帥幫腔';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '6000次痴心 李聖傑唱不停';
	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 = '狂fun熱力比基尼美女．海灘型男選拔賽<br>唐林曬太陽當黑美人 李妍瑾穿比基尼較靚';
	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 = '妮可拋夫造反 小布挺裘莉使壞';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '國民藝人 高麗代表魅力無敵';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '嵐門票超熱門 上千歌迷熬夜搶買';
	rows[12].link = 'today-show13.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 = '《星期專論》台灣人應該唱「Made In Taiwan」的國歌';
		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(9);
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 = '遲來32年 小兒麻痺陳義銘捧市長獎';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '浪漫七夕 花海「聲」情獻愛';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '搖滾、爵士 詮釋望春風';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '未收到通知沒驗車 車主挨罰';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '國際帆船亞洲錦標賽 新加坡李德仁暫領先';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '寶藏巖讀窟 新移民觀點';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '郝龍斌︰更換節能路燈';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '謝長廷︰催生甘蔗公園';
	rows[8].link = 'today-taipei9.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 = '糊塗警察 防盜碼誤烙身分證字號';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '土地公廟前拉皮條 廟後私娼寮';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '郵局人員機警 報警救受騙婦人60萬';
	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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '迅雷小隊長 越區摸魚用餐';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '行政瑕疵 小隊長記2申誡';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '南投小神捕 5分鐘找到失竊車';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '投131線 路面下陷 卡車翻覆';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '警搗元長毒窟 4毒販就逮';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '社會傳真／與大貨車對撞 酒駕男子死亡';
	rows[5].link = 'today-center6.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '學生當志工 查贓車扮神捕';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '員警被狗咬又被罵 飼主判賠8千元';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '86歲史悠傳 練就水上漂奇功';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '花火映波光 澎湖夜未眠';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '忘憂花季 寵物走秀湊熱鬧';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '府城做16歲 180人轉大人';
	rows[5].link = 'today-south6.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-o1.htm';
																										
	rows[1].text = '台北藝術中心的35億';
	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 = '有怪獸--綠色恐怖份子vs.台北有隻狗';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '膽大妄為的「假新聞」';
	rows[8].link = 'today-o9.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 = '台東金針山忘憂花季<br>一覽金黃遍地';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '金針山頂覽海景<br>山間民宿享悠然';
		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 = '台北站前商圈 席捲美食瘋潮';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '異國佳肴 美味無法擋';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = 'Old衣帽耍新意<br>化身居家小幫手';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '老店滋味 搶攻饕客胃';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '花香滿屋<br>夏季香花大觀園';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '拈花惹草有撇步<br>栽種疑問大會診！';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '健康醫療<br>如果你家有青少年要整形';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '花編特集<br>炎夏中的七夕';
		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';
}