//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','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-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.ntat.gov.tw/" target=_blank>台北市國稅局</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(14);
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 = '中央300餘人 特別費全以單據報銷';
	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 = '胡邵感情 自然流露';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '頂替演女主角 邵一砲而紅';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '三度赴奇美 一度下跪 廖俊傑向胡夫婦致歉';
	rows[12].link = 'today-fo13.htm';
																										
	rows[13].text = '刊登車禍血淋淋照片 北市府研擬懲處蘋果日報';
	rows[13].link = 'today-fo14.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '郝總部防抹黑 組抓鬼大隊';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '謝廣告第三集 續打政績牌';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '謝諷馬「罰得多、領得多」';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '弊案衝擊 藍綠不看壞選情';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '勞工權益 四人皆允諾保障';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '黃營燭光會 為邵曉鈴祈禱';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '張忠謀：陳總統交代任務已達成';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '《白樂崎專欄》國務費案起訴之後 藍綠陣營 各有歧見待決';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '河內宣言 期待杜哈回合復談';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '布希介紹張忠謀：他也是德州人';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '美中較勁 峰會搶地盤';
	rows[11].link = 'today-p12.htm';
																										
	rows[12].text = '美：發展潔淨能源 中：核電加倍擴增';
	rows[12].link = 'today-p13.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-int1.htm';
																										
	rows[1].text = "朝核問題／APEC峰會籲重啟六方會談";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "美俄簽訂雙邊WTO協議";
	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 = "有此一說／新月前後7天 股市最會漲？！";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中英對照讀新聞》Is this the perfect comedy face？ 這是張完美的喜劇臉嗎？";
	rows[8].link = 'today-int9.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 = '30年榮辱 天下第一所要搬了';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '賭債飆漲 陳純甄:絕非6千萬';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '被人倒債 異想切開ATM提款';
	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';
																										
	rows[10].text = '瘖啞人報案 簡訊嘛A通';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '古惑仔械鬥 16歲少年慘死';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '政大校狗遭虐 差點送命';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 8;
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-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 = '翁啟惠：中研院主力 博士將逾7成';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '獅子座流星雨失色 麒麟座爭輝';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 9;
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 = '增菘瑋企圖心超強 成長倍增';
	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';
																										
	rows[9].text = '大阪撞翻天 林沅君封后';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '網壇一姐 詹詠然笑納雙冠';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '延長加班 伍茲3連霸夢碎';
	rows[11].link = 'today-sp12.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'G20部長會 籲各國放寬匯率彈性';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = 'G20力促IMF、世銀改革';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '台灣金服 下月拍賣167件不動產';
	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 = '台証證林克孝總遇大事 升任副董';
	rows[5].link = 'today-e6.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 = 11;
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 = '琪拉愛跟風 明年古堡完婚';
	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 = '蔡康永vs.侯佩岑鬥笑 上演「如果恨」';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = 'Jolin熱吻Elva 圓滿完成不可能任務';
	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 = '大韓民國電影大賞 駭人怪物提9中6 大贏家';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '中谷美紀松子 百變大挑戰';
	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 = 10;
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 = 10;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(4);
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 = '跟著垃圾跑 有趣！ 獎環保義工 溫馨！';
	rows[3].link = 'today-taipei4.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 11;
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 = '撞死路人 酒駕害 6歲女陪葬';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '科技高手過濾線索 助警擒兇揪狼';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '警局理髮師 彭正男操刀16年 警伯叫好';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '搞怪咖啡廳 店名叫快倒閉 生意可好';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '走私中國魚貨 1.5公噸全數拍賣';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '卡拉OK噪孽連2分鐘 罰3千';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '去甜柿節 遵守交管堵2小時';
	rows[6].link = 'today-north7.htm';
																										
}
menu = null;

menu = getMenu('center');
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-center1.htm';
																										
	rows[1].text = '邁向第25年 二萬多人舒跑';
	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';
																										
	rows[6].text = '推車挨撞 男子獲理賠200萬';
	rows[6].link = 'today-center7.htm';
																										
}
menu = null;

menu = getMenu('south');
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 = '障礙技能競賽 劉紀妙、劉建暉勇奪亞季軍';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '婚姻美滿 老夫妻相處有道';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '重劃區新大樓票源 勝負關鍵';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '大員文化館開幕 荷治時期再現';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '工藝課刺瞎眼 學生應提國賠';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '包商偷接水管 3天盜43萬元';
	rows[5].link = 'today-south6.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 = '日本憲法第76條';
	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 = 12;
	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 = 12;
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 = '熱門星造型 細黑髮帶v.s.鮑伯短髮';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '台北入鏡';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '設計台灣';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '時尚馬甲 掌握性感分寸';
	rows[3].link = 'today-fashion4.htm';
																										
	rows[4].text = '開架美妝 為妳精算美麗';
	rows[4].link = 'today-fashion5.htm';
																										
	rows[5].text = '秋冬寢具 放送黑金暖流';
	rows[5].link = 'today-fashion6.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 13;
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 = '丈夫家暴又愛賭 不想維持婚姻';
	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 = 14;
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-medicine1.htm';
																										
	rows[1].text = '大部分氣喘兒長大  症狀會減輕或痊癒';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '維生素B5 有助對抗疲勞';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '兒童有分離焦慮  父母耐心引導 別強迫';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '想要長壽又健康  良好飲食習慣不能少';
	rows[4].link = 'today-medicine5.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 15;
menu.parentMenu = 'supplement';
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-article1.htm';
																										
	rows[1].text = '遇見花';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '腋下一隻獸';
	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';
																										
	rows[6].text = '愛讀書《流浪集》';
	rows[6].link = 'today-article7.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 16;
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 = '北市府亂了<br>文化局活動 演出史上最荒謬開幕晚會';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '基洛夫芭蕾舞團 舞星閃耀天際<br>《吉賽兒》開場 薇煦諾娃擔綱';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '基洛夫芭蕾賞析會 十張最高票價票券 現場送';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '大菁藍染 展現基隆在地夢想';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '鋼強與溫柔的共振';
	rows[4].link = 'today-art5.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 17;
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;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}