//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
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'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','living','family','medicine','article','young','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="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '泛綠批藍︰中國馬前卒';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '國民黨：中方表達不解而非不滿';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '馬在英餐會 染紅又染黑';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '修憲議題 綠擬納國旗國號';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '溝通廢統論 美台距離拉近';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '會診兩岸經貿政策 全民經發會下月登場';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '幽靈宴會 外使當擋箭牌';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '中國水底潛艦通道 曝光';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '軍購解套…愛國者二型先升級';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '美向台灣發警語：中國對弱者絕不手軟';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '台灣意象票選出爐 布袋戲、玉山、101最台';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '美軍不願漆我國旗 福衛三號發射生變';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '國際科展 我奪數理化第一';
	rows[12].link = 'today-fo13.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '公務員月退 延到60歲25年資';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = 'NCC委員 蘇揆今全數任命';
	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';
																										
}
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 = '脫紐獨立 托克勞公投未過關';
	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 = '《中英對照讀新聞》Marriage Builds wealth  more than being single-study 研究顯示：婚姻比單身積蓄更多財富';
	rows[7].link = 'today-int8.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 = '一條龍身分證 又遭詐用';
	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 = '假車禍擄女 5嫌勒贖50萬';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '咬斷體溫計 男嬰吞玻璃嚥水銀';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '托保母2小時 3月嬰暴斃';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '老婆破門抓姦 台灣冷氣工嚇逃忘穿褲';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '肇逃投案 辯稱事後喝酒';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '與兄口角弟爆瓦斯 8輕重傷2命危';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '日本拳擊新人王 台日混血兒';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '澳洲籍台灣孤兒 1天內找到親姊姊';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '遊民食神 3阿嬤烹調愛之味';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '逾10億健康捐 未進國庫';
	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 = '教部保證 孩子有飯吃有書唸';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '高鐵融資額度擬再增655億元';
	rows[6].link = 'today-life7.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '《青棒菁英賽》鏖戰13局 西苑晉8';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '詹姆斯 本季第4次大三元';
	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 = '《HBL》三重大驚奇 幹掉能仁';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '日產障礙 等著老虎克服';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '北京奧運聖火傳遞 蔡辰威訪中表立場';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《冬季奧運》絲蜜古恩 首位雙金得主';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '《卡達公開賽》力拚7局 小莊止於8強';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '涉侵權 棒協秘書長林宗成被訴';
	rows[11].link = 'today-sp12.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 = 'PS3在台亮相 帶動代工商機';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '多媒體電腦展 23日登場';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '遊戲業者大團結 成立產業振興會';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '安田哲彥 台灣美食大粉絲';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '美庫存激增 油價跌破58美元';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '公股事業人事佈局 人事擺不平 掌舵者長期出缺';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '我發明專利核准數 全球第3';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '中科今年產值 可達1200億';
	rows[7].link = 'today-e8.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '《理財Q&A》預約信託 提前籌措退休金';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '金管會將以MA監控中信金';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '日經上看21000點 漲幅32％';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '晶片電阻廠 Q1業績翻紅';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '國巨Q4獲利佳 評等獲調升';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '長華奪冠 每股賺12.81元';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '跨足太陽能光電 科風接單1億';
	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 = '《期指觀測站》多頭突圍 量須逾1300億';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '《國際股市》歐股午盤上揚 泰國大漲';
	rows[11].link = 'today-stock12.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(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '小S夫妻 大放育嬰假 牽手打牙祭';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '左孝虎好小子 奉子成婚趕流行';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = 'Jolin不記仇 情定舊冤家';
	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 = '帕吉歐愛搞車震 情事全都露';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '伊莎貝拉感人 老外落淚';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '倖田來未 雙峰UPUP男人挺';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '朴宣英柳秀榮與失智老人同樂';
	rows[10].link = 'today-show11.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 = '《鏗鏘集》兩千三百萬人vs. 一通電話！';
	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 = '連署罵同行 5牙醫被起訴';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '惡作劇？ 3店家遭彈擊';
	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';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '國中生遭勒索 被校方關起來';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '中國偷渡男 個個帶身分證、健保卡';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '辦綠卡去美國 詐騙電話玩英的';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '掛羊頭賣狗肉！投顧公司對賭台股指數';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '學生談判 兩票人街頭互砍';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '停車糾紛 沿街砸車全都錄';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '假裝調查員騙錢 被識破';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '社會傳真／賊搜刮校園 偷電腦還挑新的';
	rows[7].link = 'today-north8.htm';
																										
}
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 = '沒錢，就去搶 2嫌4小時搶3人';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '毒品丟滿地 260多名搖頭客進警局';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '女醉客開車衝撞民宅 1死3傷';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '家暴常客在我家… 可參加高風險家庭關懷輔導';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '社會傳真／拖鞋露餡 超商搶嫌被逮了';
	rows[5].link = 'today-center6.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-south1.htm';
																										
	rows[1].text = '涉向色情業收賄 南市2警收押';
	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 = '愛的代價 外遇判賠40萬遮羞費';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '栽槍玄案 檢察官調查員全否認';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '醫療糾紛 動刀前麻醉病患休克';
	rows[8].link = 'today-south9.htm';
																										
	rows[9].text = '誰下毒手 女董案鎖定財務糾紛';
	rows[9].link = 'today-south10.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 = '馬英九玩什麼馬戲';
	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(8);
	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 = 'living';
		rows[1].link = 'today-living1.htm';
	
		rows[2].text = '家庭兩性　　→';
		rows[2].submenu = 'family';
		rows[2].link = 'today-family1.htm';
	
		rows[3].text = '健康醫療　　→';
		rows[3].submenu = 'medicine';
		rows[3].link = 'today-medicine1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.htm';
	
		rows[5].text = '青春美　　　→';
		rows[5].submenu = 'young';
		rows[5].link = 'today-young1.htm';
	
		rows[6].text = '藝術文化　　→';
		rows[6].submenu = 'art';
		rows[6].link = 'today-art1.htm';
	
		rows[7].text = '休閒旅遊　　→';
		rows[7].submenu = 'travel';
		rows[7].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('living');
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('family');
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('medicine');
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('article');
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('young');
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;

menu = getMenu('art');
menu.layer = 19;
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 = 20;
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 = '10：00PM 後的運動美樂地';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '午夜後星出沒<br>夜貓子運動場！';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '表帶換造型<br>心情大不同';
		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 = '卡哇伊水果風來襲';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '滿足大不同 猜一猜，我的最愛是什麼？';
		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;
}
//====================  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,700);
}

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,700);
}

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';
}