//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('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 = 0;
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 = '游錫&#22531;：憲改版本 中執會拍板';
	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 = '連戰花1725萬 沒發票';
	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 = 1;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '國慶大會 國安單位強烈建議停辦';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '紅軍台東席開40桌 大啖海鮮';
	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 = 'IDF改良版翔昇機 首次試飛';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '蘇揆拚經濟 籲回台投資';
	rows[5].link = 'today-p6.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 3;
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-int1.htm';
																										
	rows[1].text = "油路大戰 美中印掐緊海路";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "北韓核試恫嚇 南韓籲重啟六方會談";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "美狎少男議員是gay 自爆曾遭性侵";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "土耳其逃兵大搞飛機 非武裝劫機案 歐陸虛驚";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "《中英對照讀新聞》Look, Mum, I've bought a car on eBay for £9,000 媽，妳看，我用9000英鎊在eBay買了輛車";
	rows[5].link = 'today-int6.htm';
																										
}
menu = null;

menu = getMenu('so');
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-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 = '女碩士生 每月8萬上網徵包養';
	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 = '紅繩互綁 父擁9歲兒投海';
	rows[8].link = 'today-so9.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 8;
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-life1.htm';
																										
	rows[1].text = '華航：不會拿飛安開玩笑';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '省錢冒風險 航空界不認同';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '查浮報藥價 檢搜12家大醫院';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '藥價調查失真 健保局難卸責';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '中秋烤肉看過來：竹籤竹叉 9成含二氧化硫';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '小港機場台勤工會 明起無限期罷工';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '高鐵制服秀 新LOGO也亮相';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '立委又促降價 中油：再降 3年內會倒';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '即時動態定位 追蹤一把罩';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '海外充電 台灣囝仔創意發光';
	rows[10].link = 'today-life11.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 9;
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-sp1.htm';
																										
	rows[1].text = '高球峰會 企業發聲盼改革';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '台灣高球公開賽 查拉西亞 捲土重來';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '洲際盃 11月台中開打';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '桌球世界排名 莊智淵重返前10';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '莎娃 明年打聯邦盃';
	rows[5].link = 'today-sp6.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 6;
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 = '歐盟將對Intel提反壟斷訴訟';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '家庭理財 大型支出有備無患';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '9月海外基金  一菲沖天';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '油隱憂 能源基金保守為宜';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '月投資一萬 15年可能變500萬';
	rows[5].link = 'today-e6.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 7;
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-stock1.htm';
																										
	rows[1].text = 'Ajax網路地圖';
	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 = '產業發展套案 2015年每人GDP三萬美元';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '道瓊指數收盤 創歷史新高';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '在中就醫醫藥費 可列舉減稅';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《國情密碼》台灣留美學生最多 留英激增';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '陞泰前三季 賺回一個股本';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '環天19日上櫃 撼動GPS族群';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = 'LPL虧損未減 Q3恐再賠百億';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '華映傳喜訊 月績創新高';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '《國際股市》歐股午盤漲 韓菲重挫';
	rows[12].link = 'today-stock13.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '以王建民為師 閃靈︰建仔 我來了！';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = 'Akemi海削千萬 中文2266';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = 'Jolin火辣墓仔埔 預告勁豹流行風';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '陶&#21894;Joanna好得很 李蒨蓉掛保證';
	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 = '上戶彩忙愛森田剛 伊藤婚頭逼退山田優';
	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';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 4;
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 = '《自由談》TAI-WANG';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》末路狂花？';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 10;
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 = 10;
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 = '中和國中兼課老師請假 5老師代課';
	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 = 11;
menu.parentMenu = 'region';
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-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';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 12;
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 = '雲林斃死豬集團 9人求刑';
	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 = '鬧區行搶婦人 抓到1搶匪';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '包抄嘉市賭窟 逮捕29賭客';
	rows[4].link = 'today-center5.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
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-south1.htm';
																										
	rows[1].text = '花錢享瘦 荷包消瘦 身材依舊';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '台灣的代名詞';
	rows[2].link = 'today-south3.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '先有大投資 才有大溫暖';
	rows[0].link = 'today-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';
																										
	rows[10].text = '問題在法令';
	rows[10].link = 'today-o11.htm';
																										
	rows[11].text = '種樹不養樹';
	rows[11].link = 'today-o12.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 12;
	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 = 12;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(2);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '惡魔穿什麼妝';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '區慶現象 拼精品！';
	rows[1].link = 'today-fashion2.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-family1.htm';
																										
	rows[1].text = '做愛推拖找藉口  是不是出軌？';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '獨角仙與爸爸經';
	rows[2].link = 'today-family3.htm';
																										
}
menu = null;

menu = getMenu('medicine');
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-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';
																										
	rows[5].text = '百萬紅唇族 口腔篩檢不到五％';
	rows[5].link = 'today-medicine6.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 15;
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-article1.htm';
																										
	rows[1].text = '小川洋子進行式 第42屆谷崎潤一郎獎得主揭曉';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '蝴蝶再夢';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '移動，安定騷動的靈魂';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '文壇女將 寶刀未老  《星字鍵》再創文學銷售佳績';
	rows[4].link = 'today-article5.htm';
																										
	rows[5].text = '我沒有家，我的家就是咖啡館  紅外套（Giubbe Rosse）咖啡';
	rows[5].link = 'today-article6.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 16;
menu.parentMenu = 'supplement';
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-art1.htm';
																										
	rows[1].text = '台灣采風樂坊曼妙樂音  揚名蘇格蘭';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '劇場設計在墨爾本KFIVE美術館';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '故宮獲贈《西魏佛雕四面像》';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '作家妹尾河童來台 舉辦簽書會';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '法國鋼琴家胡米耶  首度來台';
	rows[5].link = 'today-art6.htm';
																										
	rows[6].text = '帶空白腦袋去看《魔笛狂想》';
	rows[6].link = 'today-art7.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 17;
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';
}