//===========================================================================
//基本設定
//==================== 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('supplement'));
	titles = titles.concat(new Array('生活副刊'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','work','gender','family','article','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>');
}
if (true)
{
	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=yes,menubar=no,scrollbars=no,resizable=no,width=810,height=643")>生活週報</A></TD>');
	document.write('	</TR>');
}
if (true)
{
	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=yes,menubar=no,scrollbars=no,resizable=no,width=810,height=707")>住宅生活</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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '檢辯激戰憲法52條 下週裁定是否續審';
	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 = '二度探視 扁心情沉重';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '赴美申請學校 陳致中：會儘快返台';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '國務費案 檢指控四大罪狀';
	rows[8].link = 'today-fo9.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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 = '18%改革案 國親翻臉 民進黨將提復議';
	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';
																										
}
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 = "Wii遙控器傳災情 任天堂回收";
	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 = "智商高易成素食者";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "日防衛廳升級 提升安保";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "中英對照讀新聞 Left-handers \"think\" more quickly  左撇子思考比較快";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-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 = 'VUVU走了 腦麻童淚送';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '86歲書法家 捐一生作品義賣';
	rows[8].link = 'today-so9.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 = '費基擬擴大逾  萬人健保費將調漲';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '4年4億，教部重金彌補台灣學';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '擠軌非事故！高鐵元旦通車有望';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '中興大學知名生化教授，張邦彥撤銷Cell雜誌論文';
	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';
																										
	rows[7].text = '醫學7傑，獲王民寧學術獎';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '亂調的銀牌';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '揮別亞運 錢薇娟想奧運';
	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';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '明年全球投資 股優於債';
	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 = 'OPEC明年減產 拉抬油價';
	rows[6].link = 'today-e7.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-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';
																										
}
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(15);
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 = 'S.H.E絕活大火併 Selina跳艷舞 辣勁飆第一';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '長頸鹿上身 陳昇耍嫩掀童趣';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '扭斷腳踝韌帶? 蕭亞軒飆淚打石膏';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '黃金甲三大ㄎㄚ  台灣首映全到齊';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '權帥不穿襪 尷尬擁淚娃兒';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '李奧納多帝１風光 戀情見光';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '基特熱戀貝兒 勝過抱MVP';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '芭黎絲白賊7 否認吸毒';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '伊東美&#21682;醉茫茫 好友幹架忘光光';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '安聖基 朴重勳 雙帝撂倒趙寅成';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '梁詠琪哈紐約半裸帥男';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '杜德偉濕身救童 命喪急流';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '于美人當煮婦 2個老公捧場';
	rows[14].link = 'today-show15.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 = '畢旅秀政績 馬市長有憾無悔';
	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 = '兒童育樂中心 5老樹完成命名';
	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(8);
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 = '吉隆、大世界有線電視收視費 微降';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '施政上軌道 選舉支票待兌現';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '見人就砍 與警對峙10小時';
	rows[7].link = 'today-north8.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 = '小手DIY 薑餅屋喜樂送暖';
	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 = '輪胎刺客 出沒太平 30車遭殃';
	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(8);
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 = '法拍屋判拆 買主獲國賠191萬';
	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 = '台糖取消關廠計畫    待命復工';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '高雄婦人裸屍案 疑熟人所為';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '李泰安說溜嘴 供詞矛盾';
	rows[7].link = 'today-south8.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 = '國際化VS.中國化';
	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 = 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 = 'work';
		rows[1].link = 'today-work1.htm';
	
		rows[2].text = '兩性異言堂　→';
		rows[2].submenu = 'gender';
		rows[2].link = 'today-gender1.htm';
	
		rows[3].text = '家庭親子　　→';
		rows[3].submenu = 'family';
		rows[3].link = 'today-family1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.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 = 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('work');
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('article');
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('gender');
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('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';
}