//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = 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'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','living','family','medicine','article','young','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 href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A 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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '主、次要敵人論 是向中國交心？ 吳澧培批馬︰投降主義';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '馬嗆中：不給國際空間 連我也會反';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '議員批馬假招商：市府不該出錢';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '叩關世衛名稱 八成民眾︰台灣';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '囂張國際騙徒 直闖領務局';
	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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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].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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-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 = '阿根廷 軍事政變30周年';
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = '侏儒河馬保保亮相';
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = '睪丸細胞有如幹細胞？';
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = '《中英對照讀新聞》Double kidney transplants mooted 雙腎臟移植列入討論';
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = '《中英對照讀新聞》小泉首相、&#22269;&#20250;&#12391;&#12398;外&#26469;語&#12398;濫用&#12395;喝 小泉首相出言斥喝國會中外來語的濫用';
	rows[9].link = 'today-int10.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 = '噴漆洩憤 毀損判無罪';
	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 = '肌萎小巨人 6萬喪葬費濟貧';
	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(7);
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 = '醫療奉獻9人1團體得獎';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '青年公共參與獎 10人奪殊榮';
	rows[6].link = 'today-life7.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 = '2分鋒砲 降獅';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '林英傑 今先發煎火腿';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '胡金龍 未來之星第4名';
	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 = 'NCCA 雙奇爭鋒 康乃狄克險勝';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '班華勒斯巴掌建功';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《國際高中籃球賽》台灣隊挺進冠軍戰';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '8強排名 不敗北體第一';
	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 = '消防、電梯 社區公安指標';
	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';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《品牌故事》多普達 具優質DNA 智慧型手機黑馬';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '家具展首務 轉向小而美';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '2018年 每人GDP３萬美元';
	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 = '銀行員工對盈餘貢獻度 台銀 每人貢獻盈餘223萬';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '一銀 還在協調';
	rows[6].link = 'today-stock7.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 = '晨操口令 阿蘭姊引吭聲 30年起床號';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '小S夫婦結婚秀 阿妹帶頭唱 鬧洞房';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '小豬 Makiyo 臉紅心跳舊情綿綿';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '200萬禮金 許俏妞不客氣收了';
	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 = '斷背山全球大賣 藍迪奎德求償3億';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '莎嬸尬摩里斯 床上拚真功夫';
	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';
																										
}
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(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 = '偵破台越人蛇集團 救出4越女';
	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 = '前頭城鎮長索回扣案 高院判刑14年';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '《社會短波》竹警據報 陳清雄家查獲手槍';
	rows[5].link = 'today-north6.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 = '藏身大樓改造槍械 人贓俱獲';
	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 = '員警巡邏 工寮內逮5毒蟲';
	rows[5].link = 'today-center6.htm';
	rows[5].type = '社會傳真';
																										
	rows[6].text = '山坡整地 挖土機壓死工人';
	rows[6].link = 'today-center7.htm';
	rows[6].type = '社會傳真';
																										
	rows[7].text = '酒後騎單車 男子陳屍水溝';
	rows[7].link = 'today-center8.htm';
	rows[7].type = '社會傳真';
																										
	rows[8].text = '酒駕撞倒騎士 國中生命危';
	rows[8].link = 'today-center9.htm';
	rows[8].type = '社會傳真';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '根留台灣 豪元名揚國際';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '偏財神顯靈 彩迷償債建廟';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '毒…中輟生送辦';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '臭油味 環局取樣檢驗 重罰中油30萬';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '百分百好彩頭 菜頭莖葉 1眠大1吋';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '佯買彩券 他，搶走55張吉時樂';
	rows[5].link = 'today-south6.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '萊絲正在圍堵小馬的盟友';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '軍購為誰?';
	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 = 'Mandarin Airlines 也辦不到';
	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(8);
	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 = 'living';
		rows[1].link = 'today-living1.htm';
	
		rows[2].text = '家庭兩性　　→';
		rows[2].submenu = 'family';
		rows[2].link = 'today-family1.htm';
	
		rows[3].text = '健康醫療　　→';
		rows[3].submenu = 'medicine';
		rows[3].link = 'today-medicine1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.htm';
	
		rows[5].text = '青春美　　　→';
		rows[5].submenu = 'young';
		rows[5].link = 'today-young1.htm';
	
		rows[6].text = '藝術文化　　→';
		rows[6].submenu = 'art';
		rows[6].link = 'today-art1.htm';
	
		rows[7].text = '休閒旅遊　　→';
		rows[7].submenu = 'travel';
		rows[7].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('living');
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('family');
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('medicine');
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('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('young');
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;

menu = getMenu('art');
menu.layer = 19;
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 = 20;
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 = '苗栗卓蘭親子遊<br>西坪里賞花採果樂淘淘';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '親子天堂 甜蜜草莓園';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '讓居家變溫馨的鄉村魔法';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '假日逗貓樂<br>輕鬆拍攝7祕訣';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '明星愛狗經 講不完<br>賈永婕的嬌嬌狗走失驚魂記！';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '假日擺平你的孩子 10大提案';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '動動腦<br>陪孩子一起聰明玩耍';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '數位電子相簿功能<br>讓你盡情拍照 隨存隨看';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '先評估 後教育<br>培養孩子的先天優勢';
		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;
}
//====================  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';
}