//===========================================================================
//基本設定
//==================== 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(12);
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 = '趙玉柱 不甘寂寞 惹出大麻煩';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '趙建銘 身陷弊案 賠上黨形象';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '買台開當天 倍利當機…簡硬買沒打折股票';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '謝清志收押 蘇揆准辭';
	rows[11].link = 'today-fo12.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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 = '前AIT主席卜睿哲 拜會扁馬';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '許世楷：台灣不需定抗日紀念日';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '民調協調破局 綠營高市初選回原點';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '台聯北市選戰中心成立';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '中央日報將停刊 工會抗議';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '追產到底 台糖告糖協';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '有給職資政顧問 扁擬逕行停聘';
	rows[11].link = 'today-p12.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "北韓片面取消試車 南北韓鐵路貫通夢碎";
	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 = "賓拉丹︰穆沙維沒涉入911";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Malaysia to decide against outlawing marital rape 馬來西亞決定不立法禁止婚姻強暴";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '案發前 李泰安曾找藥頭買FM2';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '陳氏死不到2小時 李泰安急奔台東';
	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 = '超命大！ 29樓跳下僅骨折';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '分家成仇 兄檢舉偷雞 弟持棒扁兄';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '林國棟接任北縣警局長';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '虎口餘生 輪機長餘悸猶存';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '貪瀆收賄 前檢察官宋宗儀 5案共判47年';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '特級志工黃聖師 1年出勤300次';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '天使跳舞奪冠 肌肉男大功臣';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '情侶蛇 先後被捕 成全牠 一起放生';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '送愛到柬埔寨 民眾回響 滿滿兩貨櫃';
	rows[14].link = 'today-so15.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '印尼家族8人7死 禽流感疑人傳人';
	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';
																										
}
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 = '丘昌榮 一棒打垮象';
	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 = '王建民先發日 5.28皇家 6.2打虎';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '副將出頭 熱火輕鬆打';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = 'NBA選秀 暴龍中籤王';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '陳信安重返裕隆 大演個人秀';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '許晉哲處女秀 奏捷';
	rows[9].link = 'today-sp10.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '亞股首重台日 歐股值得留意';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '新興市場資金 加速失血';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '佐立克 將轉戰華爾街';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '股市撮合 擬改最佳市價制';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '渣打併遠銀？ 張清山口風緊';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '經建會︰掌握企業客製化商機';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '台北電腦展 參展家數創新高';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '台灣Cable Modem  全球出貨市佔率第1名';
	rows[8].link = 'today-e9.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(17);
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 = '日經濟成長率 IMF估2.75%';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '台幣貶2分 短線難脫震盪';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '歐日股市 下半年投資核心';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '《理財Q&A》理財三原則 獲利有一套';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '明基處分達方 Q2可轉盈';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '下月旺季 法人看好封測雙雄';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '中國廠挹注 不織布廠成長';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '和大大股東釋股 拉攏國外客戶';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '觀光股 晶華鳳凰表現佳';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '營建股本益比 上看10倍';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = '逢低布局 台股期待除權息行情';
	rows[13].link = 'today-stock14.htm';
																										
	rows[14].text = '鎳價上揚 中國不鏽鋼廠明漲價';
	rows[14].link = 'today-stock15.htm';
																										
	rows[15].text = '《期指觀測站》美股未止跌 電子難樂觀';
	rows[15].link = 'today-stock16.htm';
																										
	rows[16].text = '《國際股市》歐股午盤重挫 日跌深反彈';
	rows[16].link = 'today-stock17.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
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-t1.htm';
																										
	rows[1].text = '李泰安 改列殺人案被告';
	rows[1].link = 'today-t2.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 = '周董背著侯佩岑 劈腿Hebe';
	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 = '未成年學開車 劉品言又擺烏龍';
	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 = '大S勾引江口洋介 坐大腿獻吻';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '楊紫瓊相約張震 遊蒙地卡羅';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '姜至奐爆瘦 30針眼疤曝光';
	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(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 = '國中教甄 43缺額比去年少';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '陶博館馬賽克創作賽 3組全上榜';
	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(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 = '戀上18招脫衣孃 癡心漢向警局贖人';
	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(11);
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 = '再搜6廠商 陳清秀胞弟聲押';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '雲林1候選人涉賄交保 聲明退選';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '義竹岸腳村發放民生物資 約談1人';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '肇事又劫財 被害人枉死';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '飲水機驚爆 老榮民外出逃一劫';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '孩子待哺 20歲小爸爸搶超商';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '改裝空氣槍 玩家違槍砲條例';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '當庭驗特徵 通姦罪證確鑿';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '22嫌3天偷14個香爐 香灰露餡';
	rows[9].link = 'today-center10.htm';
																										
	rows[10].text = '涉入賄選 警官陳榮燦判無罪';
	rows[10].link = 'today-center11.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 = '電話詐騙 婦人提巨款回家 被警攔阻騙局';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '椰葉砸傷 老婦人申請國賠';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '國中第一次學測 27、28日登場';
	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(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 = '台灣kap世衛';
	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 = 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(4);
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';
																										
	rows[2].text = '性感 超man男兒';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '手機加值服務 即時影音歡唱無限';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
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-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';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
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-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';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
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 = '美國最棒 小說出爐？ 好書排名 不必盡信';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '經典掌中輕';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '法蘭西之謎  淺談法國媒體金童BHL';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '銀河流域，文曲星動';
	rows[4].link = 'today-article5.htm';
																										
	rows[5].text = '當天才遇見心靈捕手';
	rows[5].link = 'today-article6.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
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-art1.htm';
																										
	rows[1].text = '河洛歌子戲團15週年慶<br>推新戲《良弓吟》';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '關懷弱勢兒童 奇威發起慈善音樂會';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '挑戰少年青銅達人<br>宗博館推出爵鼎聰明';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '台灣音樂火車頭<br>作曲家錢南章、李哲藝分有新作首演';
	rows[4].link = 'today-art5.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';
}