//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('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(11);
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';
																										
	rows[8].text = '亞洲最多勝 建仔只花2年';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '朴贊浩 單局挨同一人2發滿貫';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '建仔牽制  謝菲爾德怕漏接';
	rows[10].link = 'today-fo11.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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 = '負面消息多 王麗萍辭倒扁總部職務';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '《星期人物》侯友宜 不管顏色 秉持警察專業';
	rows[7].link = 'today-p8.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 = "日探討CO2封存技術 效益驚人風險卻未知";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "跨越宗教的網路愛情 英回教少女嫁印度郎";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "反恐亡魂更甚911";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中英對照讀新聞》Chinese court introduces computer system to decide prison sentences 中國法院用電腦系統量刑";
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = "《中日對照讀新聞》米&#22269;&#29987;牛肉&#12398;「牛丼」復活<br>美國產牛肉的「牛丼」復活";
	rows[9].link = 'today-int10.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 = '消防菜鳥CPR救活斷氣老翁';
	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';
																										
}
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 = '拖車卡道 莒光追撞 海線停駛8小時';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '德磁浮列車撞維修車 23死';
	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 = 'SUPER酷教師 熱力四射';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '史懷哲教師獎 首見老外';
	rows[6].link = 'today-life7.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(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 = '蔣宸&#35921;、曾雅妮 快意奪冠';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '江宏傑 21歲組 霸日本';
	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(6);
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';
																										
}
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 = '台北3C展 液晶電視拚低價';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '中秋禮盒 百貨業掀大戰';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '油價重挫 市場估60美元守不住';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '涉弊 惠普董事長鄧恩辭職';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '9月營收亮眼 茂德歡慶十週年';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '巴菲特網拍座車 賣7.32萬美元';
	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 = '王建民18勝 力爭勝投王';
	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 = '和平天使江美琪 歌聲融合紅綠配';
	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 = '意難忘吸金10億 say goodbye';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '黃小柔 豪宅當25歲生日禮';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '機車妹王怡仁  抬腿窮摳腳';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '琳西玩完82天激戀 淚彈哭回多金郎';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '凱莉男友不婚頭 安娜賈西亞嫁保鑣';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '李孝莉嫁李瑞鎮 老爸說No';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '織田裕二  阿部寬  福山雅治<br>日本黃金3熟男 只談戀愛不結婚';
	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(9);
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 = '讀經背誦 難不倒5歲娃';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '陳維英入祀孔廟 87年來首位';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '北縣消防局長顏振嘉 口頭請辭獲准';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '樹林軟網比賽 縣府︰砸錢整建網球場';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '集遊法民間版 改為報備制';
	rows[8].link = 'today-taipei9.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 = '沒收到罰單 裁罰異議成功';
	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(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 = '報案借錢 騙警謊話連篇';
	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(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 = '相約殉情只有女送命 男判刑2年';
	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';
																										
}
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 = '倒扁數學之二';
	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(13);
	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 = '看完花火 順遊台21線';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '華航小舖任你選<br>愛心放送不間斷';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = 'Taipei Walker<br>跳蚤市場節 挖寶撿便宜';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '到京華城周邊<br>嘗嗆辣川味 甜蜜糕點';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '妙不可言<br>傳統麵點新風味';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '日式居家風情 Deco一點靈';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '和室零污垢<br>聰明清潔法 大會串';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '10分鐘上手！<br>SALON級美髮吹整術';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '變髮DIY<br>吹鬈吹直都OK！';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '知己知彼 百戰百勝<br>了解你的競爭優勢';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '健康醫療--<br>男人要有精力 女人要有卵力';
		rows[11].link = 'today-weekly12.htm';
																											
		rows[12].text = '花編--<br>想我珍貴的垃圾們';
		rows[12].link = 'today-weekly13.htm';
																											
	}
	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';
}