//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(9);
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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '上年度 機要費核銷 7成6不合規定';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '府方君悅人員 查黑中心近日約談';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '府︰國、民執政 一樣做法';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '黎文正未獲扁接見 怒撕陳情書';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '北纜案新發現 顏萬進向廠商 長期索機票';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '南港展覽館弊案 馬稱無關都審延宕';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '白住事件 鄭麗文：最慢一個月搬家';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '3立委喝花酒 國民黨嚴厲告誡';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '弊案效應 4國家公園處長輪調';
	rows[8].link = 'today-p9.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "以軍添9死 打不下真主黨";
	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 = "兩項重症 未來有藥醫";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Germany to ban smoking in public places from 2007 德國公共場所2007年開始禁菸";
	rows[6].link = 'today-int7.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 = '超速超載 7年級7死';
	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 = '南迴案今起訴 4萬字述謀殺經過';
	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 = '惡男勒殺13歲小女友 判刑17年8月';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '開30槍堵贓車 匪中彈亡';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '擔心他自殺   賣"假農藥" 救人反被告';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = 'SOGO火警 3400人緊急疏散 今天暫停營業';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '偵查不力 檢察官當庭致歉';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '以為被罵 2對情侶街頭幹架';
	rows[11].link = 'today-so12.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 = '台中市國小 嘉市崇文國小 教師甄試 18題完全一樣';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '國道烏龜車罰6000-12000 10月加強取締';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '健保眷口數 明年起降為0.7';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '台鐵ATP系統 慢速會熄火';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '肌萎天使 天天送餐濟孤老';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '馬偕義診團 仁心仁術行醫友邦';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '愛心越國界 楊貴媚號召助失學兒';
	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 = '全台逾400萬成人 吞雲吐霧';
	rows[9].link = 'today-life10.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '15號鋒砲 超越泰山';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '建仔明捕魚 拚4連勝';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '職棒代訓選拔 42人參加';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '2009高雄世運會 謠傳主辦權不保';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '籌委會斥無稽 籌辦進度沒延誤';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《洛杉磯網賽》18愛司 阿格西逆轉晉8';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '歐冠盃資格 AC米蘭未卜';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《JAGUAR菁英挑戰賽》一桿進洞 張澤鵬當老二';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '福本弘佳 原是台妹';
	rows[8].link = 'today-sp9.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '庫存影響 台積下修Q3獲利';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '90奈米製程 面臨價格競爭';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '外資看好長線 建議低進';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '俄羅斯外匯存底 衝到世界第3';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = 'Q2房產指數 價漲量增';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '美參議員 推動對中課關稅';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '美經濟成長 6月開始減緩';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '台新金買彰銀 張秀蓮：未參與';
	rows[7].link = 'today-e8.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 = '上半年雙卡轉銷呆帳 破千億';
	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 = '32吋電視面板 9月恐缺貨';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = 'TV只旺Q4 考驗業者';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '聯詠︰最差一季已過';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '松下控DVD侵權 中環︰炒冷飯';
	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 = '填補黑洞 健保費率擬漲16％';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(16);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '大小S要補稅3000萬    徐媽媽沒否認';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '和劉文正搞斷背 霍正奇：阿彌陀佛喲';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '陳昇連唱4小時 樂手輪流跑廁所';
	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 = '劉嘉玲動動嘴 千萬落袋';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '野台今開唱 藝人樂團暖身K歌';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '王力宏捐500萬 代父成立慈善基金';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '明道怪癖多 不適合當男友';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '裴帥當太王 智友夫唱婦隨';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '金楨勳訪台 野蠻娃娃打頭陣';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '妮可 荷莉貝瑞 克莉絲汀帶球走';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '蔡明亮黑眼圈 入圍威尼斯影展';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '挑戰大自然 納米比亞沙漠拍5年';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '洪曉蕾挺5月肚 生日趴大搞鹹溼';
	rows[15].link = 'today-show16.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(12);
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 = '夫婦飛車行搶 10分鐘落網';
	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 = '查稅大軍 下月巡徵4大商圈';
	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';
																										
	rows[11].text = '1153學生 補領市長獎';
	rows[11].link = 'today-taipei12.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-north1.htm';
																										
	rows[1].text = '腿綁海洛因 毒步數走光';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '網友報明牌 女會計匯錢賭馬被騙72萬';
	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 = '朱木炎上網遭「色」計， 人頭戶判6個月';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '歐巴桑刊指壓廣告 裝26歲稱技術好';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '社會傳真／超商暗藏脫衣陪酒 二度查獲';
	rows[8].link = 'today-north9.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '疑售偽禁農藥 中縣查獲2家';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '15歲蹺家妹 單日接客20人';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '搗口湖艷窟 逮7越女';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '搖頭丸免費送 藥頭培養小毒蟲';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '腳踏車撞機車 學生判賠上百萬';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '社會傳真／宴選民涉賄 4人判刑';
	rows[5].link = 'today-center6.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 = '非法設基地台43處 代辦業者被逮';
	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 = '七夕16歲藝術節 有如國際嘉年華';
	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 = '綠色象牙塔';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '直航 台灣所得降至中國水準';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '因應WTO談判破裂之道';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '解散派系？秀逗！';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '黎文正與林毅夫';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '公開出賣台灣？';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '縣太爺太招搖';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '手寫母語／一個退學生';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '大聲說客／尋無頭路';
	rows[9].link = 'today-o10.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '名店名菜大破解<br>漢來池畔餐廳 文烤芝麻鯧魚';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '七夕情人節 感情升溫全攻略';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '大台中遊車河 浪漫百分百';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '夜遊南台 情人散步道';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '全台車震地點 赤裸大公開';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '艷夏出遊 曬後爽膚SOS!!';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '大錯特錯不要來！<br>日曬護膚禁忌６大問';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '貧窮貴公主 姚采穎<br>塗鴉記錄青春';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '拉風掀背車款 超值TOP10<br>新鮮人4輪嚴選';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '生日禮物 一週提案';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '糖尿病患別把罪惡感吃下去了';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '不吃蔥花的女人';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}
