//===========================================================================
//基本設定
//==================== 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','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="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(8);
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 = '市場預料 中油下週漲1.5∼2元';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '中油新董座潘文炎：放任虧損 中油將萬劫不復';
	rows[7].link = 'today-fo8.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 = '檢方調SOGO帳冊 比對禮券編號';
	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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "ＡＷＢ賄海珊案 霍華德出庭 推說不知情";
	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 = "流離80載 巨石像將重返復活島";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "兩速食店 反式脂肪 美高過他國";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Sunscreen makers accused of lying to consumers 防曬產品製造商被控向消費者說謊";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '前海巡副隊長 求刑15年';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '搶農會喊「臥倒」 憲兵洩底';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '再搜北市養工處 8官員聲押';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '當車詐保險金 報竊解體走私';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '恐嚇女F4椰奶廣告業主 日文教師落網';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '火燒屋 父抱兒跳樓開生路';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '翻車瀉鹽酸 駕駛命危';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '大學生發起 濟貧音樂會';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '啟智兒戲院看電影 好樂';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '天使的滋味…殘友創業賣蛋糕';
	rows[9].link = 'today-so10.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 = '一天800大卡 一週減1.5kg';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '台糖精煉白糖調漲8.63％';
	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 = '福衛雙嬌 護星天使';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '阻遠通執行ETC 宇通抗告被駁回';
	rows[10].link = 'today-life11.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '梅達斯 320勝';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '郭泓志 中繼吞首敗';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '王建民連兩場不優 球迷好憂';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '急雨打斷職棒賽程 週六、日四隊雙重戰';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '羅迪克 晉八強';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '聯邦盃攻韓 為男網復仇';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '日巡賽重燃戰火 葉偉志還在熱機';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '硬槓全聯盟第一 騎士代價慘「痛」';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '中華奧會主席 改採委員投票制';
	rows[8].link = 'today-sp9.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '外資占台股逾3成 創新高';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '外資加碼台股 匯入逾4兆元';
	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 = '代辦貸款廣告不實 重罰5公司';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '37吋液晶電視 將跌破5萬';
	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 = '今年台灣經濟 外資看好';
	rows[8].link = 'today-e9.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '擺脫美10年公債拖累 債市Q2醞釀彈升';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '火險5.1降6％ 擴保第三責任';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '《理財Q&A》信用不良 才影響車、房貸';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '漿貨吃緊 大摩喊進造紙股';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '成本上揚 永豐餘要漲10∼15%';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = 'Xbox360熱賣 超出預期';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '佳能、普立爾 Q2拚歷史新高';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '奇偶先漲 等待龍頭陞泰';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '新普能量滿 笑傲NB電池';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '海德威研通 列警示股';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '《期指觀測站》多方掌控 拉回站買方';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '《國際股市》韓股大漲 印度續重挫';
	rows[12].link = 'today-stock13.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 = '新婚張鳳書趴趴走 沒空嘿咻';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '李明依批伊為代言 拿兒子炒新聞';
	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 = 'NCC不發聲 投資新頻道 業者損失慘重';
	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 = '杜琪峰狠批華仔 白癡愛擺pose';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '莫文蔚9月想婚？先當傳愛信差';
	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 = '80歲小熊維尼 星光大道留名';
	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(8);
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 = '士林平等里 交30萬才給水';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '攔截火併 警堵23古惑仔';
	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';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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 = '崖邊逼賣淫 人蛇就地摧花';
	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 = '揚言割小馬哥LP 男寄刀片不起訴';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '獲報有人持偽鈔 苗警７分鐘破案';
	rows[5].link = 'today-north6.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 = '全台打工 8中國人士 仁愛山區曝光';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '吃壞肚子？六輕1、20名外勞送醫';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '公廁婦人命案 錄像、抓痕…假釋男王理治犯案';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '吞公款 籌女兒醫藥費 法官減刑';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '吞公款豐盟董事李銀福遭管收';
	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(6);
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 = '風箏衝浪 東港海灘 high';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '謊稱設廠 他，吸金上億 只剩百元';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '6歲女童 疑遭2男子性侵';
	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(9);
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';
																										
}
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 = '到花蓮 感受薰衣草紫色魔力';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '東台灣擁抱山水放輕鬆';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '只有我最搖擺 全民扭腰擺臀學SALSA';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '主題餐廳揮汗飆SALSA';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '前進舞蹈教室 挑戰SALSA';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '跟著老師輕鬆學好SALSA';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '水晶女孩梁又琳<br>童心未泯收集趣';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '立吞餐廳 站著吃進日本味兒';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '男妝初級班<br>3堂課教你變帥';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '多款經典遊戲同時移植<br>X BOX 360 全面進攻';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '生日禮物 一週提案';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '產後大補帖<br>要營養也要瘦身';
		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,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';
}