//===========================================================================
//基本設定
//==================== 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','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 = '台聯指棄權反映沉默多數';
	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(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '拉艦案 傳喚現退役將領 查軍購決策核心';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '台開案再傳趙玉柱 查未曝光帳戶';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '司法黃牛案 陳哲男、梁柏薰對質';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '原民長老 籲新憲設原民專章';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '張俊宏遭檢舉 涉超貸案';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '扁：碰上政治大地震';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '媒體擅報災情 中國擬嚴懲';
	rows[6].link = 'today-p7.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(10);
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 = "默認以色列 巴勒斯坦建國方案達共識";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "2009年中日開戰 美前國防高官出書預測";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "愛女生or愛男生 打娘胎注定？";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "菲國反政府示威";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "半噸人 瘦91公斤";
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = "《中英對照讀新聞》Big screens cause World Cup chaos in football-mad Bangladesh 大螢幕在掀起世界盃足球瘋的孟加拉造成混亂";
	rows[9].link = 'today-int10.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 = '黃信介長子 驗DNA敗訴';
	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 = '領養30年 跨海為她找父母';
	rows[9].link = 'today-so10.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 = '中友百貨鼓勵多產 第3胎獎6萬';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '減稅、產假、工時 生育三大誘因';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '保障病人隱私 醫院匿「名」';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '北市昨36.2度 飆今年新高';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '沙塵暴挾菌 較平日增6倍';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '公幼留園延托  10人開班';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '台師大60鐵騎 環台自我挑戰';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '優酪乳糖多熱量高 喝多傷身';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '員工旅遊 28人群聚感染流感';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '台灣民間信仰 老外如數家珍';
	rows[9].link = 'today-life10.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《2006世界盃足球賽》森巴舞進8強';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《2006世界盃足球賽》胖羅 史上最強進球王';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《2006世界盃足球賽》PK戰 烏軍蛋洗瑞士';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《2006世界盃足球賽》8強戰 費戈可上場對英格蘭';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《2006世界盃足球賽》托提 擺脫4年夢魘';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《2006世界盃足球賽》小貝神射 值72億';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《2006世界盃足球賽》爭議罰球 各說各話';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '獅敗 熊在家登基';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '等了3年 熊首冠到手';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '王宇佐 溫布頓勝場開張';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '建仔深夜嗆塞揚名投';
	rows[10].link = 'today-sp11.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'eBAY台灣帳號 遭中國駭客盜用';
	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 = 'GDP成長率 台綜院上修至4.18%';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '紐約原油漲破72美元';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '首季房地產領先指標 小幅下滑';
	rows[10].link = 'today-e11.htm';
																										
	rows[11].text = '台、歐盟進行雙邊諮商會談';
	rows[11].link = 'today-e12.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(16);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '出國消費 善用付款組合';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '國外刷卡 須額外付1.55至2.3%';
	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 = '歐銀將加快升息 台幣升6.5分';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '6月營收 廣達、仁寶攀高';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = 'NB配備NAND 下月問市';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '技術領先 大立光旺季可期';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '兆赫看好下半年 實施庫藏股';
	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 = '中美晶Q3漲價 年底衝產能';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = '杭特：看好下半年安控市場';
	rows[13].link = 'today-stock14.htm';
																										
	rows[14].text = '《期指觀測站》摩台結算 留意行情轉折';
	rows[14].link = 'today-stock15.htm';
																										
	rows[15].text = '《國際股市》歐股午盤小跌 日本收高';
	rows[15].link = 'today-stock16.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 = '周董化身魔術師 暴龍扮空中飛人';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '陳建寧解放凸肚 飛紅髮魔女附身';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '陳奕被女生脫褲 受創穿2件內褲';
	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 = '張國柱迷翁倩玉 合作燃愛火';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '韓流推手尹錫湖 登台慶八大喬遷';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '布裘私密照遭竊下禁令 阿湯哥9800萬賣女碰壁';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '李多海愛花心男 台灣找My Boy';
	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 = 'Twins迷大遲到 空拋溫翠蘋熱場';
	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 = '《今日社論》慎防「經續會」暗度陳倉';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》散戲之後！';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》拋棄總統的方法';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '修車兼改槍 黑手被捕';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '軍人遭同袍撞傷 獲國賠337萬';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '藝人李登才夫婦被訴';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '污泥1.5米深 疑直潭淨水場排放';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '掩埋場所在村里 明年起免徵垃圾費';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '晚上10點-早上6點 動力機械施工 不准「噪」次';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '抓小不抓大？ 6類違規廣告無法管';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '夏天 看見草蟬';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '里民中心辦桌 板橋公所認不妥';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '小精靈變裝賽 自強創「藝」大贏家';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '送餐志工 老人、喜憨兒不落人後';
	rows[10].link = 'today-taipei11.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '牌照撤銷 車被開單處分撤銷';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '卸推土機意外搞軌 司機緩刑';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '撞死人留燈罩 ２少難逃法網';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '3男2女疑洗劫網友 勒索沒錢再毒打';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '2少帶刀準備搶超商 苗警攔獲';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '解送通緝犯脫逃 頭份警將受處分';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '泰女做白工求援 3人蛇現形被訴';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '《社會傳真》老翁查看自宅施工 墜樓不治';
	rows[7].link = 'today-north8.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '向警套資料 假檢長踢鐵板';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '改造工業彈頭 兵工廠被抄';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '闖入管制車道 2貨櫃司機當竊嫌送辦';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '走私銷毀 獼猴當場落淚';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '利用愛滋勒贖 判刑8年6月';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '丈夫家暴外遇 越娘訴離獲准';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '人事異動／中打中心 4副組長升組長';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '社會頻道／飛車搶劫 2嫌上街被查獲';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-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 = '6隻傷癒海龜 重返大海';
	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';
																										
	rows[8].text = '惡婿…不滿遭數落 揮刀砍岳父';
	rows[8].link = 'today-south9.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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 = '踢進32強，沒那麼難！';
	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';
																										
	rows[10].text = '空大研究所 有必要';
	rows[10].link = 'today-o11.htm';
																										
	rows[11].text = '圖書館何必改名文化所';
	rows[11].link = 'today-o12.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'Super Mini 歐裔悄悄變大';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '短褲英雄';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '日本美妝 熱門話題';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '智慧型手機  資訊生活好幫手';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '天氣熱 花草也要換季';
	rows[0].link = 'today-family1.htm';
																										
	rows[1].text = '希望婚後財產共管<br>怕女友不悅';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '無監護權家長成長團體';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '別用消費滿足孩子';
	rows[3].link = 'today-family4.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '角膜缺氧<br>隱形眼鏡族 須防眼紅又乾澀';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '多焦點黃色人工水晶體<br>老人家視界更清晰';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '壓瘡久不處理<br>一旦壞死 需截肢';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '台灣環境惡化<br>小兒過敏性鼻炎逐年增加';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '合格肝臟移植醫院<br>七月起 免事前審查';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '健康錦囊有法寶<br>兒童旅遊保平安';
	rows[5].link = 'today-medicine6.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
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-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';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '貝嘉舞團驚艷  為台灣設計精華版';
	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 = 'NSO 2007新樂季  攀登理查史特勞斯高峰';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '日本建築師渡邊誠演講';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '陳奇祿 台灣首創文建會主委';
	rows[5].link = 'today-art6.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '吮指回味 新加坡美食';
	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';
}