//===========================================================================
//基本設定
//==================== 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(7);
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 = '趙建銘 保釋金加碼700萬';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '陳幸妤出庭…沒幫上忙';
	rows[6].link = 'today-fo7.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '高鐵沙崙站弊案 2官員聲押';
	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 = '國民黨退出經續會 王不以為然';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '美：簽FTA 台要調整政策';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '法輪功學員哀悼受難者';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '漢光萬彈齊發 火網殲敵';
	rows[10].link = 'today-p11.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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].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 = "《中英對照讀新聞》A dig for a metro station uncovers a long-lost port in Istanbul 捷運車站挖掘工程發現了伊斯坦堡一個消失已久的港口";
	rows[5].link = 'today-int6.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '上天下地 警官4擒紀嫌';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '掃黑 飆仔首度列治平對象';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '砂石大盜竄逃 警開7槍驚險追捕';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '海巡前隊長 涉包庇兼差';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '北縣警索賄 包庇色情業   再追出9官警涉案';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '三人同枕眠 姊夫誘姦小姨';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '搜索大都會公車   檢方約談16人';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '鬧機案 華航處理無不當';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '徐媽忍痛 勉同學完成遺志';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '不放棄 癱瘓兒奇蹟站起';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '騎單車上班 喜憨兒勇敢「麵」對人生';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '精通八音樂器 郭添財彈笑人間';
	rows[12].link = 'today-so13.htm';
																										
}
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 = '選填志願人數減 錄取名額卻沒差 考不到100分 也能進大學';
	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 = 'ETC公益方案 達成率低';
	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 = '72度殺菌 牛奶更營養';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '關心孕婦 避免早產兒';
	rows[10].link = 'today-life11.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '吳偲佑 連勝破功';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '全壘打爭霸 重砲今開轟';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '陽仲壽先發 3支0';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '巨怪11K 不敵一朗快腿';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '單挑梅達斯 火箭人勝出';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '頭錘案輕判 席丹罰社區服務3天';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '台灣隊輸義 教頭給80分';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '墾丁盃國際衝浪賽 比基尼選美';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《世界大學女壘賽》打美樂 台灣預賽第一';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '周東昱 亞運初體驗';
	rows[9].link = 'today-sp10.htm';
																										
}
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 = '金管會對中信辜家下重手';
	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 = '外資回流 台股大漲166點';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '天然氣最快下週調漲15%';
	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 = '美元走貶 台幣升1.57角';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '《理財Q&A》妻欠卡債 不影響老公轉貸';
	rows[9].link = 'today-e10.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'MOTO財報佳 手機族群沾光';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '研華、瑞傳、艾訊 上半年EPS逾三元';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '億光看好LED 第四季增產';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '獲利轉揚？ 面板五虎帶頭漲';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '南科華亞科 Q2獲利創新高';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '外資點名 DRAM股漲回報';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '投信：股市買點浮現';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '否認鴻海淡出 建漢股價三溫暖';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '《期指觀測站》逆價差轉正 偏多氣氛上升';
	rows[8].link = 'today-stock9.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(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '裴帥發威 攻進台灣教科書';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = 'Hebe學Jay當狡兔 躲狗覓新窟';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '王心凌臉紅 讚張棟樑吻功好';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = 'Elva新輯悄開工 金主砸錢等回收';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '罵5566就送帽子 服飾店怪招拉業績';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '貢寮海洋音樂祭鳴槍 台日中5大團 灑熱情帶頭瘋';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '恩師爆料 章子怡長短腳 跑步像瘸子';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '網友批英文差 言言堅持CNN主播夢';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '艾迪墨菲媚兒碧 9月再婚送作堆';
	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 = '大鐘獎評審內容外洩 e覽無遺';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '日導林雅行 拍出九份鄉愁';
	rows[13].link = 'today-show14.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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '廟門前摔車 搶匪束手就擒';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '撈女遇臨檢 情急忘穿底褲';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '五分埔轉運卸貨 月撈數百萬';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '台大醫院2億新地下道 行人懶得走';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '2020台北申奧 謝長廷：再難也要逐夢';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '吐司達人 飆創意 比手藝';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '首批冬候鳥鷹斑鷸 飛抵關渡';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '雙厝奇緣 北桃串情';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '大熱天移樹 捷運公司挨批';
	rows[8].link = 'today-taipei9.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(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 = '吸收少女搞援交 處女皮條狼猛嚐鮮';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '試槍過癮 少年再買一把';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '迅雷對象全國掃蕩／桃園警除3害';
	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(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '蘭花直銷吸金 生技公司28人被訴';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '高一女生的愛心 電腦高手沈芯菱 獎金做公益';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '蔦松大排5億元工程 疑涉圍標';
	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 = '姊妹販毒 運將運毒兼當下線';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '社會頻道／涉賄選 蔡永常被判當選無效';
	rows[6].link = 'today-center7.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '早產兒動11次刀 爸媽永不放棄';
	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';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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 = '黑金纜車話從頭';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '721空戰50週年省思';
	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';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '嘉義中埔 自然生態遊<br>尋訪鐵甲武士獨角仙';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '全家大小到中埔<br>暑假旅程好充實';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '舊時地新食趣 古蹟餐廳尋美味<br>特色建築 漾動新生命';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '古宅用餐 嘗美味懷思古情';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '舊時光新風華 交織優雅浪漫';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '古蹟餐廳 打造南台歷史新美學';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '美景美食 再創古蹟新氣象';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '王心凌挑食 PASTA微笑入味';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '微笑男孩 張棟樑<br>愛食和風PASTA';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '挑對隱形眼鏡藥水<br>眼睛健康不隱形';
		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';
}
