//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.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(17);
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 = '紅軍佔道 站前80線公車改道';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '紅潮奔流 沖垮商家業績';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = 'NEWS98轉播施令？ NCC交檢調認定';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '北市不行 看看巴黎經驗<br>70萬人示威 4千警搞定';
	rows[12].link = 'today-fo13.htm';
																										
	rows[13].text = '北市不行 瞧瞧南市作法<br>柔性勸導後 警方強勢執法';
	rows[13].link = 'today-fo14.htm';
																										
	rows[14].text = '紅衫軍久圍不退 民眾搖頭';
	rows[14].link = 'today-fo15.htm';
																										
	rows[15].text = '電音派對、煙火秀 活力國慶';
	rows[15].link = 'today-fo16.htm';
																										
	rows[16].text = '臨圍不亂 友邦元首為扁打氣';
	rows[16].link = 'today-fo17.htm';
																										
}
menu = null;



menu = getMenu('int');
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 = "血腥鑽石 未演先轟動";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "參觀現代藝術 來滑透明管";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "《中英對照讀新聞》Huntington Beach, California, takes 'Surf City' rivalry with Santa Cruz to lawyers 加州亨廷頓海灘為爭「衝浪之都」頭銜找律師卯上聖塔克魯茲";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "北韓核試 美不排除軍事制裁";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "平壤驚天一爆 改寫亞洲均勢";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "南韓經援，斷炊／核爆烏雲 遮蔽南韓「陽光」";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "爆規模太小 研判局部失敗";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "金正日搗蛋 反助安倍破冰";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "秀韓文展笑顏 昭惠夫人贏人心";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 2;
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-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 = '逃亡 16年 殺警槍擊要犯落網';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '憲兵疑遭虐 返家服毒亡';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '金門發現200枚榴砲藥筒';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '遠離文明 阿米許人在台灣  小白帽引好奇';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '遠離文明 錫安山重造伊甸園';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '里港靈糧堂 弱勢課輔爆滿';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '捨棄百萬年薪 投身做公益';
	rows[13].link = 'today-so14.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 8;
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-life1.htm';
																										
	rows[1].text = '全球首例  宋麗英 終極分化細胞 成功複製小鼠';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '546億賣給Google  Youtube合夥人開心說喜訊';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '連假最後一天 中山高、雪隧 出奇好走';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '雪隧會診 又發現新滲水處';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '中油今降2角 台塑還在觀望';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '18號颱成形 距台3000公里';
	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';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '老虎VS.運動家 強投之爭';
	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 = '松&#22338;轉隊費 上看10億';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '猴子擋龍王好投 主投7.1局無關勝敗';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '日職月底再討論 開放亞洲特別名額';
	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 = '球技大解碼 攻守全面 費德爾地表最強';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '前年度冠軍告誡阿隆索 勿輕忽大舒逆轉能力';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '暴龍選秀狀元亮相 巴格納尼8分4籃板';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = 'NBA歐洲移訓賽 打出球星鬥志';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '台灣男足今戰伊朗';
	rows[13].link = 'today-sp14.htm';
																										
	rows[14].text = '攻下非洲最高峰 台灣隊返國';
	rows[14].link = 'today-sp15.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '亞太富豪 24%財產投資股票';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '郵政利率調漲 優惠房貸升至3.1%';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '詹庭禎 深諳金融遊戲規則';
	rows[2].link = 'today-e3.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'LPL再季虧百億 悲觀看明年';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '聯詠、原相9月營收 創新高';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '台系面板廠業績佳 期待Q4豐收';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '歐股午盤上揚 星泰大漲';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '股訊要覽';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '宏達電前9月EPS約38元';
	rows[5].link = 'today-stock6.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 = 11;
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-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 = 'Jolin蔡幫烤肉趣 幼齒男護花';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '中國網站搶先盜賣吳克群 歌迷傻眼';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '方文琳拒吃回頭草 悄相親';
	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 = '芭黎絲G奶A錢 飆漲35倍搶不到';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = 'Rain免費Song票 黃牛坑賺8千倍';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '潔西諾曼明天開唱 催票急';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '宋承憲下月退伍 北韓爆出變數';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '金宣兒 張東健 30世代稱帝后';
	rows[13].link = 'today-show14.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》追究踐踏中華民國的元凶共犯';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》無法無天！';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》圍城流島';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 10;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
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 = '民眾罵 塞車訊息 LED看板看不到';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '帶著愛情故事 274對新人走入禮堂';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '鶯歌老街 公廁不足樓梯陡峭';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '連假急診病患 多是腸胃炎';
	rows[5].link = 'today-taipei6.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '傾家蕩產 善心嬤孫為流浪狗找家';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '疑飆車上快速道 3少年受傷';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '苗縣裝飾陶瓷 精緻再出發';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '升旗淨灘嘉年華 桃竹苗歡樂慶雙十';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '大吃大喝後 火燒心症狀多';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '健康身心靈 精神病友動起來';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '收假前夕 風城藝文展演湧人潮';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '不想生不搶日 國慶寶寶少了';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '愛之鴿放飛 25對新人樂婚';
	rows[8].link = 'today-north9.htm';
																										
	rows[9].text = '候鳥季小心疫疫 無尾港食源計畫喊停';
	rows[9].link = 'today-north10.htm';
																										
}
menu = null;

menu = getMenu('center');
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死6傷';
	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 = '單親媽被撞死 留下3子女';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '偷渡找愛人 中國姊妹花被逮';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '瘦男連犯搶案 遭壯碩女踹倒';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '借20萬 唉！她匯30多萬手續費';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '民宅大火 險！緊鄰瓦斯分裝場';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '休假員警眼尖 認出毒嫌涉竊案';
	rows[9].link = 'today-center10.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '火山泥損田 萬丹農民擬求國賠';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '都蘭山藝術節 後山樂聲揚';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '小林咖啡 香醇濃郁台灣味';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '西拉雅首部紀錄片 部落向日爭收藏';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '客戶殺老闆 偵辦不積極？';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '莽夫頻家暴 妻訴離獲准';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '北縣前消防局長 韓家致歉';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '美麗的招潮蟹';
	rows[7].link = 'today-south8.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 5;
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-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';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 12;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 12;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(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 = '秋冬 新娘妝3趨勢';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '豪華SUV駕乘新體驗 Lexus RX400h';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 13;
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-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';
																										
	rows[5].text = '芝麻青花菜';
	rows[5].link = 'today-family6.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 14;
menu.parentMenu = 'supplement';
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-medicine1.htm';
																										
	rows[1].text = '別讓寶寶當針包  打疫苗前 多與醫師討論';
	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';
																										
	rows[6].text = '孩童腸胃炎  喝稀釋運動飲料反惡化';
	rows[6].link = 'today-medicine7.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 15;
menu.parentMenu = 'supplement';
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-article1.htm';
																										
	rows[1].text = '窗外';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '那一夜在台北';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '突然出櫃在那個夏天';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '疑惑的橘';
	rows[4].link = 'today-article5.htm';
																										
	rows[5].text = '人類的素性';
	rows[5].link = 'today-article6.htm';
																										
	rows[6].text = '愛讀書《法式裸露》';
	rows[6].link = 'today-article7.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '維也納少年合唱團自力救濟 莫札特團出訪台灣';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '空中小飛人 贏得滿堂采';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '郭博州的漂泊美學';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '提供紓壓管道 綠光劇團表演學堂 重新開課';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '國際二大秋拍 系列登場';
	rows[4].link = 'today-art5.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '聆聽埃及金字塔與神殿傳說';
	rows[0].link = 'today-travel1.htm';
																										
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}