//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (!showWeekly)
{
	menuNames = menuNames.concat(new Array('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 class=block2L_tdb><A class=block2La href="#" onClick=open("http://www.libertytimes.com.tw/Service/weekly.htm","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=810,height=643")>生活週報</A></TD>');
document.write('	</TR>');

document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="#" onClick=open("http://www.libertytimes.com.tw/Service/house.htm","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=810,height=643")>住宅生活</A></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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '特別費風暴／藍委告翁岳生 綠委咬26人';
	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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '李促台聯 開拓非綠選票';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '問鼎2008？ 蘇揆語帶玄機';
	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 = 'B2匿蹤技術 美間諜洩密中國';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '中國新娘 獲准搭艦往返烏坵';
	rows[11].link = 'today-p12.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
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-int1.htm';
																										
	rows[1].text = "加國總理提議承認魁北克 加拿大國中國";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "推翻99.9％相同說？新圖譜：每人ＤＮＡ有10％差異";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "太空打小白球 誇口三年才落地";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "《中英對照讀新聞》Want to spice up a golf game ？Add tasty tees 想為高爾夫球比賽增添趣味？來點美味可口的球座";
	rows[4].link = 'today-int5.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(17);
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 = '掃蕩命理詐騙 一舉破5集團';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '319案 彈殼無不符問題／李昌鈺：批評者若非知識不夠 就是「找我麻煩」';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = 'La new另3球員到案／「帶老婆和小蔡吃消夜 怎可能談打假球」';
	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';
																										
	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';
																										
	rows[14].text = '網友宣傳助阿嬤 香腸攤爆紅';
	rows[14].link = 'today-so15.htm';
																										
	rows[15].text = '孝順小幫手 伴母當清潔工';
	rows[15].link = 'today-so16.htm';
																										
	rows[16].text = '助身障者就業 手屈一指';
	rows[16].link = 'today-so17.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '追偽藥／截獲4萬顆假善胃得錠';
	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 = '台灣人創辦第一所大學／停學60年  延平學院決復校';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '裝水壓監測系統／雪隧滲水 日專家說安啦';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '無障礙黑名單 10建物上榜';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '交部新家隔音差 惹火部長';
	rows[6].link = 'today-life7.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 = '射箭、女排磨刀 亞運拚金';
	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 = '熱棒18安 球感來得慢';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '南韓拚3連霸 視我眼中釘';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '逆轉擒王 爵士7連勝';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = 'PGA大滿貫賽 伍茲7連霸';
	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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '雷曼兄弟最新預測 美升至5.5%後暫停升息';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '新光投信：台股後年上看萬點';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '升降不明 宜選防禦性投資標的';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '信託 保家產傳財富 有一套';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '東南亞股市 未來一年依舊看俏';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '旺季來臨 新興亞洲哈燒';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '《理財Ｑ＆Ａ》父母贈與子女111萬內 免稅';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '貿協國企班 畢業超搶手';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = 'ITI 操兩年 經貿、外語功力大增';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '陳智亮 因失敗而成功';
	rows[9].link = 'today-e10.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '主計處：今年經濟成長 上修至4.39%';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '傳產夜班外勞 明年開放一萬名';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '柏南克、保羅森下月訪中 施壓經改';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '營建秀題材 中低價股舞';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '越南將入WTO效應／儒鴻、聚陽 可望衣錦還鄉';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '樂觀明年 中鋼盤價開平高盤';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '近五月最大手筆 外資再加碼136億';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '損害對手信譽 鴻海被重罰156萬';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '《國際股市》英法午盤續跌';
	rows[8].link = 'today-stock9.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '藥價黑洞案 涉圖利？健保局遭搜索';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(10);
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 = '亡夫留遺產 出專輯狂撈<br>富婆甄妮錢滾錢 投資鑽2億';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '吳宇森挺林志玲 強調小喬地位重';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '亞太影展揭幕 韓國偶像壓境<br>金楨勳大胃王 美食掃光光';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '金馬影后捉對廝殺 李心潔周迅 2度對決<br>劉嘉玲斯琴高娃 2次逐馬';
	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 = '芭黎絲開轟趴狂high 厝邊報警';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '王識賢 張鳳書 峇里島做人砸鍋';
	rows[9].link = 'today-show10.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 = '《自由談》穿著Prada的惡魔';
	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(5);
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 = '要200萬只籌到1萬 丹丹爭取自由 難！';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '娼妓文化節 性感辣辣雞先暖身';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '尋短高中生缺課 家長不知情';
	rows[4].link = 'today-taipei5.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '泡麥當勞抓手機賊 漢堡吃到怕';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '攜菸過量通關辱罵關員 立委杜文卿被聲請簡判';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '新加坡遊客遊六福村 買到偽票進警局';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '10多人打進餐廳廚房 客人照吃飯';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '３鐵棍客蘇澳打傷人 分別求重刑';
	rows[4].link = 'today-north5.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
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 = '幽靈學生？ 中洋分班敗部復活';
	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 = '垃圾車撞傷童 國賠753萬';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '鹿港警前進高縣 查獲偽酒私菸';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-south1.htm';
																										
	rows[1].text = '2國中女生 「搖頭」昏迷';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '勾結父女友打繼母 2人判刑';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '高縣機車解體工廠 查獲贓車';
	rows[3].link = 'today-south4.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '產業升級的迷思';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '＜澄社評論＞政治的「絕地馬拉松」';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '海洋立國應有的行動';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '建立超車車道權威';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '獵殺招潮蟹';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '還夏馨女士一份情';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '湊齊了又如何';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '環保不能喊爽';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '馬團隊不用心';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '勞保健保保誰？';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '人民的血汗錢';
	rows[10].link = 'today-o11.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

//====================  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';
}