//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = 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'));
}
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('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
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-fo1.htm';
																										
	rows[1].text = '陸委會沈痛：國家主權問題能表決嗎';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '若過關 民進黨團主張提覆議';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '藍強力護航 1.1兆錢坑法案付委';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '二屆真調會 政院通令 不必配合';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '扁：一時紛擾，無礙台美關係';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '興揚之旅成就 呂蘇游推崇';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '扁轉述 格達費歡迎台灣 赴利國建灘頭堡';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '誰准扁過夜，傳印尼總統要查';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '扁挺黃志芳：外交官有說謊特權';
	rows[9].link = 'today-fo10.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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].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';
																										
}
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 = "同棟7人腦瘤 澳鐵腕封大樓";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "3大罪狀 南韓起訴黃禹錫";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "日飛彈機密又外流";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "偷油引爆油管 奈及利亞近200人炸死";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Italy's transgender MP fights toilet \"apartheid\" 跨性議員 奮戰「廁所隔離」";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '李泰安散心   8警柔性伴遊';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '陳氏冤死? 死後仍出血';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '雙李搞軌? 警逐戶尋新證人';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '歹徒晝劫資源回收場';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '性侵女模疑案 消防署擬告李全教';
	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 = '美司槓微軟 控告msn侵權';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '13500元育嬰津貼發半年    婦女團體：太少太短';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '8成單親媽解慾 秘密男友好棒';
	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 = '開靈車打零工 獨養5子女';
	rows[14].link = 'today-so15.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '太誇張！操行成績 負110分';
	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';
																										
}
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 = '林根基 JPGA兩回合第三';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '納達爾 紅土50連勝';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '不良債權 可售給資產管理公司';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '中國經濟失衡 將衝擊香港';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '美減稅法案效期 延至2010年';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '扁過境巴譚 為南進打氣';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '美元對歐元 1年來最低';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '創新高 白金每英兩1302美元';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '台企銀增資 財部不認購';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '金馬買賣人民幣 央行鬆綁';
	rows[7].link = 'today-e8.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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].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 = '美股重挫 拖累亞股';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '《期指觀測站》追價有限 走勢陷入整理格局';
	rows[5].link = 'today-stock6.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(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 = '鍾麗緹35歲開嗓 老公寫歌傳情';
	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 = '唐治平吞小嫻 太high撐帳篷';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '華視氣象新聞 收視雙破35年新低';
	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 = '凱蒂律師爸不靈 阿湯哥贍養費砍3.5億';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '塔克風光時刻 片酬多成龍3.2億';
	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(7);
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';
																										
	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';
																										
}
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 = '砰！ 婦人斷臂：快救我老公';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '女友疑遭性侵 男子打死同學 判４年６月';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '押女討20萬情債 一場羅生門';
	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 = '中警雲林出擊 拂曉進竹林 衝破外勞窩';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '廢耕農地倒廢棄物 大林逮11人';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '專搶早餐店 3人吃牢飯';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '子彈穿包廂打死人 陳韋志被訴';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '嘉義市明華里 參選人吳樹根等10人釋回';
	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 = '欠債不還綁架債主 4人判刑';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '電腦網路卡找失主 小偷認罪';
	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 = '緝凶草率駁火？  隊長投書駁斥';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '蜈蚣陣遶境 信眾爭睹';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '63收容人 皈依佛門';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '斃死豬外流案 檢方起訴11人';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '國道連環撞 岡山塞爆';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '兩悍匪逞兇 騎士命危';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '假檢官相親 騙婚騙財';
	rows[6].link = 'today-south7.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '二二八母親';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '堅忍的興揚之旅';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '馬戲團苦肉計';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '不做異鄉人';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '無主的孤魂？';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '保護弱勢漁民';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '誠實外交？';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '母親節救母語';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '神秘e主業會';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '中國思想作怪';
	rows[9].link = 'today-o10.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(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 = '花草 蕾絲 普普風<br>打造一室美好年代';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '苗栗縣公館鄉 陶瓷•美景•美食';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '原鄉美食 園藝薈萃<br>黃金小鎮';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '輕鬆暢遊台６線';
		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 = '夏天來了，該減肥了';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '為什麼火氣這麼大？為什麼火氣這麼大？';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '乾乾淨淨 了結心結';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '就這樣消失在茫茫人海';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	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-house1.htm';
																											
		rows[1].text = '購屋抗通膨 店面、套房最當紅';
		rows[1].link = 'today-house2.htm';
																											
		rows[2].text = '小空間也要住出品味！';
		rows[2].link = 'today-house3.htm';
																											
		rows[3].text = '前衛建築師的風水solution';
		rows[3].link = 'today-house4.htm';
																											
		rows[4].text = '慾望城市 頂樓也能享受鳥語花香';
		rows[4].link = 'today-house5.htm';
																											
		rows[5].text = '精銳仰極 阿拉伯極盡奢華風';
		rows[5].link = 'today-house6.htm';
																											
		rows[6].text = '拾穗 面對千坪公園';
		rows[6].link = 'today-house7.htm';
																											
		rows[7].text = '桃園中正商圈 交通便利 吸引台北客 增值潛力看好';
		rows[7].link = 'today-house8.htm';
																											
		rows[8].text = '貼出一面的奢華與浪漫';
		rows[8].link = 'today-house9.htm';
																											
		rows[9].text = '精心打造入厝好禮';
		rows[9].link = 'today-house10.htm';
																											
		rows[10].text = '2房住家 開啟新生活';
		rows[10].link = 'today-house11.htm';
																											
		rows[11].text = '建商協助裝潢 可以總坪數計算嗎？';
		rows[11].link = 'today-house12.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';
}