//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = 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'));
}
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 = '我官員：台灣需要WHO 非貓熊';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '聯電疑轉單和艦 造成損失 投資人可求償';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '佈局中國 聯電早有動作';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '聯電算盤：台灣接單 中國出貨';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '聯電，被自己打敗';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '資金如何「乾坤大挪移」 美籍華裔藏鏡人 是關鍵';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '檢察官：投資中國 應受法律規範';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '聯電疑違規登陸 最重可罰2500萬';
	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 = '總預算擬刪400億 創民進黨執政新高';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '泛藍再封殺 軍購、監委人事案出局';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '公營行庫13％改革方案出爐';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '國民黨11廉能委員名單敲定';
	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 = '破紀錄 歌劇魅影上演7486場';
	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 = '美性別歧視官司 求償448億';
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = '《中英對照讀新聞》Swedish immigration authority blasted for celebrating asylum rejections 慶祝尋求庇護人士被拒，瑞典移民局挨轟';
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '國地標售竄改標單案 約談3建商';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '無薪夫妻多產 寶貝6天使';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '25歲少婦濫生 6年棄6娃';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '照料罹精神病母姊弟 少女阿蓮獨扛家計';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '救主忠狗寶寶 高市議員黃淑美暫領養';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '愛心協力車 腦麻女騎樂無比';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '印勞棄嬰 6歲娃難落籍';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '抄賭場 逮12越女賭客';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '一氧化碳中毒4屍5命 文定前夕情侶殞命';
	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 = '人力仲介公司 詐上千萬保險金';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '暴力討債 酒色引誘後詐賭';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '指紋換身分證釋憲案 司法新聞頭條';
	rows[13].link = 'today-so14.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台鐵訂票系統 又癱了';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '春節疏運情報--高乘載時段 北高六小時抵達';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '坪林交流道開放與否 下週分曉';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '網路訂房 取消不退費？';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '亞太數位網 違法播中國衛星節目';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '菸害防制法修正案 本會期難過';
	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 = '中國廉價皮草飾品 台灣15元買得到';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '大學學測 21日看考場';
	rows[10].link = 'today-life11.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '連4場逾45分 小布神蹟';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '莫瑞絲摩 爆冷出局';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '台電先盛後衰 連敗不止';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《高中棒球聯賽》李居冠 勝利代名詞';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《職棒動態》陳致鵬 與誠泰簽約';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '牛開訓 3連霸 3要求 3願望';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '鋒仔回來打球 大郭訝異';
	rows[7].link = 'today-sp8.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '穆迪：台灣債信評等維持Aa3';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '投資新口號 瑞銀建議 放眼JUICE';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '去年稅收超徵1846億 新高';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '年節暫停催收 卡債族開心過好年';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '清潔服務 掃出億元商機';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '金價飆上550.5美元';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '《理財Q&A》黃金、日股 仍可投資';
	rows[6].link = 'today-e7.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 = '卡債噬利 金控表現差';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '蔡篤恭：今年是DRAM旺旺年';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '平面顯示器產值 2008年破千億美元';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '微星太陽能筆電 CES受好評';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '民營製造業 鴻海連5霸';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '面板雙虎目標價外資比高';
	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 = '中國圖謀2020年解決台灣';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
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-show1.htm';
																										
	rows[1].text = '年關傳跳票 藝人皮皮剉';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '雙J香江上演大復合';
	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 = '異性戀看斷背山五大要訣';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '女星甩肉健健美 卡麥蓉不吃糖 翹臀珍舉啞鈴';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '飯島直子對牛談情 砸3000萬';
	rows[11].link = 'today-show12.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 = '工會下通牒 新海瓦斯不調薪 18日罷工';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '送舊迎新 板橋北門街蓋住商大樓';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '電塔為鄰 中和青年市社區連署促遷';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '汪！汪！汪！大佳河濱公園金泰段集合 狗狗公園 月底落成';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '預算審得慢 部分議員泡湯心思飛得快';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '買乾貨好過年 漂亮的不食在';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '旅加35年 廖淑媛證明客語仍溜';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '松山區 好沈重 里長太操勞 4年掛5個';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '社福高風險家庭 E化管理';
	rows[10].link = 'today-taipei11.htm';
																										
	rows[11].text = '酒精火鍋爆炸 店長判罰6000元';
	rows[11].link = 'today-taipei12.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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 = '藍鷹高球場總經理 行車糾紛遭刺死案 被告二審改判無期刑';
	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 = '光碟難服法曹 王少康尋仇殺人判14年';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '組人頭公司詐貸4億餘 8嫌判刑';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '過馬路遭輾 婦魂斷砂石車下';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '社會傳真／交大研究生 心臟病發猝死';
	rows[6].link = 'today-north7.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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 = '8旬翁錢盡中國 娶細姨夢碎';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '涉賄 投縣長夫人被起訴';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '涉行賄 口湖4人被判刑';
	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';
																										
	rows[7].text = '張榮味獲交保 首次簽到';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '社會傳真／逮仿冒酒 查獲埤頭1酒廠';
	rows[8].link = 'today-center9.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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 = '歲末酒駕多 3小時查獲84件';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '重建南亞災區 13師生愛心遠征';
	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 = '離島輕鬆行 6輸運計畫 出爐';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '社會傳真／偷竊 變賣電線 當場被逮';
	rows[6].link = 'today-south7.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 = '新潮流大唱反調<bt>蘇貞昌不宜沈默';
	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';
																										
	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(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(2);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '2006北美車展Start！<br>總裁親上陣';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '時尚東遊記';
	rows[1].link = 'today-fashion2.htm';
																										
}
menu = null;

menu = getMenu('living');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '打造科技時尚生活 有撇步<br>丟掉老氣家電';
	rows[0].link = 'today-living1.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '卡奴族理債 要先理心';
	rows[0].link = 'today-family1.htm';
																										
	rows[1].text = '斷絕網路之戀<br>卻感到很失落';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '「最重要」 意味著什麼？';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '和老婆不和？ 別扯進我';
	rows[3].link = 'today-family4.htm';
																										
	rows[4].text = '去除雙面膠 善用去光水';
	rows[4].link = 'today-family5.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '冬季護膚 保濕最重要';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '學會求愛技巧<br>銀髮族也能很性福';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '生薑抗寒暖身<br>陪你度過寒冬';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '步行<br>世界上最好的運動';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '脂肪細胞多寡<br>青春期前是關鍵';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '擁有四條輸尿管<br>感染、結石機率較高';
	rows[5].link = 'today-medicine6.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '馬伕';
	rows[0].link = 'today-article1.htm';
																										
	rows[1].text = '台灣舞曲<br>江文也的故事-下';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '花蓮南濱的蒸汽火車回憶<br>與LDK58的初次相見';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '流動在靜止中的歲月';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '對策對政策';
	rows[4].link = 'today-article5.htm';
																										
	rows[5].text = '《無所事事的藝術》';
	rows[5].link = 'today-article6.htm';
																										
}
menu = null;

menu = getMenu('young');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '2006金銀剔透開運彩妝';
	rows[0].link = 'today-young1.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 19;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'NSO攀高峰新考驗<br>挑戰華格納全本《尼布龍根的指環》';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '史博館年度端好菜<br>「妮基．德．桑法勒的異想世界」值得期待';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '吳念真執導《她與她生命中的男人們》<br>要觀眾繼續又哭又笑';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '台北雙年展「之間」定調<br>王俊傑及丹．卡麥隆雙策展人找尋模糊地帶';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '由實景到幻想 張韻明彩筆真淳浮現';
	rows[4].link = 'today-art5.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 20;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '異國情調 馬尼拉採擷';
	rows[0].link = 'today-travel1.htm';
																										
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
//====================  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';
}