//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 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 href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(16);
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 = 'SOGO案開庭 章民強：徐、李有密約';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '章啟明：李恆隆偷走SOGO';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '賣SOGO進帳300億？章家駁斥';
	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 = '核四55件工程接近底標 環盟疑台電洩標';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '台電：四工程無法決標才議價';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '核一核廢乾式貯存 將送環評';
	rows[12].link = 'today-fo13.htm';
																										
	rows[13].text = '南科減振工程 南檢：確有弊端';
	rows[13].link = 'today-fo14.htm';
																										
	rows[14].text = '評委：不只要減振 還要顧及高鐵安全';
	rows[14].link = 'today-fo15.htm';
																										
	rows[15].text = '台鐵電聯車標案 牽引系統挨批';
	rows[15].link = 'today-fo16.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '財產申報 扁嫂增四千萬基金';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '總統府：扁嫂財產信託後未再買股';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '謝系立委：北高若挫敗 黨領導群應棄選2008';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '立院修法 唯一死刑罪 刑法全都廢';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '電價 半年內不漲';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '憲盟憲改版 國土指憲法規範範圍';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '特殊境遇婦女 扶助門檻降低';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '官方勸募 限重大災害、國際救援';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '民進黨奇襲 四機關預算解凍案付委';
	rows[9].link = 'today-p10.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "尼國反對黨推新總理 國會將恢復運作";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "抑制油價 美停貯戰備儲油";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "埃及度假勝地連環爆 死傷近百";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "車諾比核災變20週年";
	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 = "《中英對照讀新聞》Bush's childhood home in Texas now a museum 布希在德州的童年故居成為博物館";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '車出租撞死人 車商判刑';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '撞騎士肇逃 路人CPR搶救';
	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 = '12歲女童 涉謀殺一家3口';
	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 = '武夷山旅行團翻車 27輕重傷';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '假好心認養 惡毒情侶虐貓';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '阿祖志工 受刑人心靈捕手';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '捐血731次 李立德中區一哥';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '溫暖羊肉爐 接濟街友20載';
	rows[11].link = 'today-so12.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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 = '手術部位標示完整 不到八成';
	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 = 'NCC：解決MOD問題 須先修法';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '蘆洲李宅 光復節將開放 重現百年風華';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '菁英留學計畫學生批：看得到、用不到';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '四技二專考場 家長罵太遠';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '賽德克族正名：我們才是正統 太魯閣族批分化';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '繡眼畫眉等7野鳥 可望列台灣特有種';
	rows[10].link = 'today-life11.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '明早，建仔對魔鬼魟';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '朱鴻森 生涯首轟';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '恰恰復出 打中球已滿意';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《全中運》賴逸欣 大雞晚啼';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《全中運》神來一擲 周月晴鐵餅破大會';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《全中運》女單最後一役 許文馨硬碰詹詠然';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《全中運》聶品潔、林蔓繻 開五金店';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '日本力士 8月撲台';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《NBA》歐尼爾禁區發威 熱火再退公牛';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《NBA》安東尼犯規多 金塊連吞兩敗';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '《NBA》阿提斯特亂鬥挨禁 國王今少一將';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '《SBL》愛將腦震盪 達欣狀告李偉民';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '小貝愛車遭竊 車商搶送新車';
	rows[12].link = 'today-sp13.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '亞太中小企業 44%看好台灣';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '企業認中國市場有幫助 比例減半';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '經建會喊話 CPI年增率可保二';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '4月物價水準信心 創新低';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '兆豐金經營權 公股不讓中信金';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '想進Google 得過6關斬5將';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '《國情密碼》買屋設籍 中壢桃園最IN';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '雷曼兄弟：中國經濟硬著陸風險升高';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '微軟Windows Live今亮相';
	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(11);
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 = '台幣由升轉貶 小跌0.1分';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '雙卡逾放比 3月明顯升高';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '《理財Q&A》投資REITs 資金不必多';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '全懋京元電台曜 閃金光';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '奇美電 首季毛利率21.2% 稱霸';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '華寶2.72元 毛利率僅8.97%';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '高股息概念股 抗跌出線';
	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';
																										
}
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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '大雨特報 Rain後天秘密抵台';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '單眼皮勾魂不夠力？ 男星放膽割下去';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '王曉書 郭靜純 洪曉蕾 郁方 爭當5月新嫁娘';
	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 = '阿湯哥雙B寵千金 凱蒂餵奶他拍背';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = 'MTV電影獎入圍名單 星爺打布裘 章子怡性感拚艾芭';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '丹妮絲搶好友老公 熱吻邦喬飛吉他手';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '李準基獲空白合約 片酬自己填';
	rows[9].link = 'today-show10.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(10);
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 = '砂石短缺 防汛工程剉著等';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '進用身心障礙者 獎助限縮';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '端午飆龍舟 也賽愛心蛙';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '勞動文化園區 勞動節開幕';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '縣府楚門秀？ 泛藍議員批藍色恐怖';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '淡大遭檢舉 回填廢棄物排污水';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '戶政所換證忙翻 民眾洽公癡等';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '低收戶審查嚴 承辦員被當出氣筒';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '電機工毒步機場 闖關洩底';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '妻離家訴離 夫拴鍊虐打判10年';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '假書記官來電 詐科技新貴66萬';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '誤信中獎電話 婦人匯出592萬多';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '婦被騙領款換錢 警發現及時攔阻';
	rows[4].link = 'today-north5.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 = '中市正副議長賄選案 議員陳瑞德30萬交保';
	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 = '警2度開槍猛追 制伏偷蒜賊';
	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 = '《社會傳真》女學生車禍 疑因酒駕惹禍';
	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 = '1死3傷 攻擊路人嫌犯釋回 居民恐慌';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '貨輪撞漁船 海巡艇馳援6人獲救';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '高雄旅展 好康等你來A';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '報佳音 人工椎間盤手術 奇美醫院冠全台';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '報你知 治癒B肝不是夢 中醫師經驗分享';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '販毒 下游毒蟲逾200';
	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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《曹長青專欄》擋住對岸的共產細菌';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '記者vs.刑事訴訟法182條';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '捐書逃稅 錯在查核';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '車諾比帶來的變化';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '將軍，別把弟兄賣了！';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '舊金山和約五十四週年';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '請國民黨與民休養';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '新聞自由不能凌駕法律';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '校長說他壓力很大';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '人民幣壞了連馬關係';
	rows[9].link = 'today-o10.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '美麗減法術';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '跟時尚去看海';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '豔陽下 裸露美學';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '主打流行風 最in隱形手機';
	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 = '缺鐵性貧血 讓少女頭昏';
	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 = '人工植牙後 注意整修維護';
	rows[5].link = 'today-medicine6.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '最後開的花';
	rows[0].link = 'today-article1.htm';
																										
	rows[1].text = '韓國心．台灣情<br>三十年後的再發現─下';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '在聆聽中成長';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '終止生命之議';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '《跟我一起走》';
	rows[4].link = 'today-article5.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '首座台灣音樂文化園區 99年將在霧峰完工';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '台灣戲曲專科學校 成立國立「歌仔戲團」';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '英國國家芭蕾舞團 終極夢幻版《天鵝湖》8月來台';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '台灣美語教育普及 音樂劇《小熊維尼》加演英語場';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '《短打契訶夫》 列車上 盡現人生百態';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '柏油鋪路偏遇大雨 故宮東側開館再延';
	rows[5].link = 'today-art6.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '東方美人號 伴遊東部縱谷';
	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';
}