//===========================================================================
//基本設定
//==================== 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','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(9);
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 = 'WHO宣達團活躍日內瓦';
	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 = '重啟人事案 扁擬釋橘營2席監委';
	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 = '產經新聞︰李登輝9月訪日';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "蒙特內哥羅獨立否 今分曉";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "抗老化抗癌 韓國泡菜有夠神？";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "愛情白皮書…「邂逅百選」鼓吹婚姻";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "黑髮才最in…金髮尤物 日本退燒";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "哥大目標1276億台幣 美名校募款大車拚";
	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 = "《中英對照讀新聞》Economy class syndrome not due to pressure-study 研究指稱，經濟艙症候群並非肇因於壓力";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '300元交保！ 司法史奇聞';
	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 = '攀108層天梯 晉升大法師';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '送粽傳母愛 受扶兒開心';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '銀髮婆婆 掃街10年不嫌累';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '園遊會「雞」緣 1對變16隻';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '「兩口犬，白腳底」動物蒙冤';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '走出毀容陰霾 寶珠迎向陽光';
	rows[10].link = 'today-so11.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-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';
																										
	rows[8].text = '國中生指控老師 用簡化字教學';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '基測作文模擬考 近半不及格';
	rows[9].link = 'today-life10.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '邦斯714轟 追上貝比';
	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 = '《NBA》搶七攤牌 主場看好';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《2006世界盃足球賽》C組死亡之組？ 球迷不認同';
	rows[9].link = 'today-sp10.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '外資看台股 休兵再攻8000';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '短線基金 獲利了結<br>長線基金 按兵不動';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '南韓匯改 發展東北亞金融中心';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '開發金 可能讓吳春台辭職';
	rows[3].link = 'today-e4.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(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 = '信樂團自由K歌 粉絲飆唱搖落去';
	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 = '高文音出嫁 彭愛佳文定';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '《4A自由創意獎》王瑞：廣告動人 如被閃電擊中';
	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 = '梁朝偉樸實誠懇 20年始終如一';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '時尚教父洪偉明 打造名模王國';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '休葛蘭拒套牢 潔蜜瑪開罵逼婚';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '荷莉熱戀呷幼齒 休傑克曼尷尬睡芬姬';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '坎城影展 崔岷植帶頭嗆韓國政府';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '韓劇收視走跌 海外價超所值';
	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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '羅斯福路 30日起機車禁停騎樓';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '求職媒合率 8年來首次破3成5';
	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';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '少年狂想記 變造媽咪車牌躲罰單';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '與狼共事 遭非禮全都錄';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '駕駛吊車搖又晃 員警攔檢偷兒現形';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '小三生戲水 一夜未歸…溺斃出海口';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '宜蘭分屍案 死者家屬駁斥情殺說';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '大園命案偵破 3嫌因酒帳痛毆死者';
	rows[5].link = 'today-north6.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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-center1.htm';
																										
	rows[1].text = '中市警局 非法外勞擠爆 男女同室';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '投警2車夾擊 開槍逮女毒販';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '追砍車行老闆 嫌犯反被打傷';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '騎車赴考 考生撞護欄不治';
	rows[4].link = 'today-center5.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 = '越南漁船遇難 請求我協助搜救';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '2公噸大茶壺 叫它台灣第1名';
	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 = '管電台？ 先管Cable！';
	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 = '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(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '手機+網路+3G Y世代這樣Call';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '姐姐系飾品風格<br>金色女神';
	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 = '2006年 國際引擎大賞';
	rows[4].link = 'today-fashion5.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
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 = '愛人劈腿  要懂冷靜以對';
	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';
																										
	rows[5].text = '行動學習夏令營';
	rows[5].link = 'today-family6.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
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 = '洗腎腎友 食在要用心';
	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 = 16;
menu.parentMenu = 'supplement';
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-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';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
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 = '演唱偶像帕華洛帝詠嘆調《Nessun Dorma》<br>羅素華生一炮而紅';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '現代優雅都會女性特質<br>比利時羅莎舞團帶《Rain》來台';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '日本現代舞踊<br>「德本流鈴蘭會」三度來台';
	rows[3].link = 'today-art4.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
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';
}