//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = true;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
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 = '交部：傾向受贈 收歸國營';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = 'ＥＴＣ迷霧 更大更濃了';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = 'PHS超低電磁波廣告 惹惱GSM業者';
	rows[10].link = 'today-fo11.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "破炸機陰謀 救回2700人命";
	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 = "《中英對照讀新聞》Don't use strange computers for transactions while travelling 旅行時不要用不明電腦進行線上交易";
	rows[5].link = 'today-int6.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '炒飯當A片賣 模特兒女友翻臉';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '女體餐盤招男嚐 中市促銷筍討罵';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '誣指減肥名醫用禁藥  「蘋果」爆料人送法辦';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '虐妻惡夫 還要孩子罵媽媽「狗」';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '母女、女婿 上吊身亡';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '松山機場 又挖出未爆彈';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '男童遇襲 霸王肘退敵';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '水塘競泳 嘉義２童溺斃';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '撞成植物人 警員判賠1083萬元';
	rows[9].link = 'today-so10.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-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 = '27日出現兩個月亮？ 網路謠言啦';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '淡水河魚屍 初排除工業毒害';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '桶裝瓦斯 中油經銷商偷漲';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '穆西納14勝 2度落空';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '挑戰三冠王 林恩宇失利';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '蔡英峰9勝 50萬入袋';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '英傑對羅德 球速出不來';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《世界大學棒球賽》完封捷克 4連勝';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '亞洲職籃大賽 輸得難看';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '海峽盃高中籃賽  寶島男女雙贏';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《TPGA台豐公開賽》最低桿紀錄 又翻新';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '亞洲保齡球賽 我3人賽搶金';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '《冠中冠撞球賽》趙豐邦 衛冕夢碎';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '《亞運撞球培訓賽》國手賽 最後決選';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '《亞洲盃足球資格賽》安貞桓 領軍來台';
	rows[12].link = 'today-sp13.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-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';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '35上市櫃財報亮麗 打敗大盤';
	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 = '台積7月營收創新高 三大法人加碼';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '聯電再買茂德股6.07萬張';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '《期指觀測站》低檔翻升 後續高點可期';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '《國際股市》米其林領漲 歐股午盤走高';
	rows[6].link = 'today-stock7.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '誘陳純甄簽賭 中和市代游象賢聲押';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(17);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '8點檔戰火蔓延 中視封殺三立';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '搖錢樹孫燕姿約滿  Capitol砸1.6億搶人';
	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 = 'Samui跳舞狂叫 尹馨大解放';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '賀軍翔心疼小嫻燉豬腳 去霉氣';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '漢人擔任原民台長 遭反彈';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '許瑋倫扮空姊拚命微笑 險抽筋';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '莎莉遲到挨罵飆淚  露點挑逗情人';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '聯航93飛回911   世貿中心票房驚喜';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '卡門訴請離婚 分財產不分居';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '尹晶喜來台找痛快 指定腳底按摩';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '寶兒 鈴木亞美 工作兼度假';
	rows[16].link = 'today-show17.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 = '200件藍染國際精品 縣府展出';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '中暑一夏 ２０本書壓垮小學生';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '火車鹹豬手 判刑6個月';
	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';
																										
	rows[7].text = '社會傳真／苗焚化爐漆工摔死 今驗死因';
	rows[7].link = 'today-north8.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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-center1.htm';
																										
	rows[1].text = '黑心中藥粉 摻雜類固醇';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '扣走私善存 查是否偽藥';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '破市價2千萬仿冒品 成本30萬';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '水上空軍基地 17人疑食物中毒';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '海洛因放奶精罐 想矇混過關';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '老夫婦燒炭 夫死妻活吃官司';
	rows[6].link = 'today-center7.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 = '500俄女賣淫？   夜店業者斥： 週刊太誇張';
	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 = '強盜集團 嗆聲要搶到死';
	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(11);
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 = '觀光vs.治安';
	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';
																										
}
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 = '大口森呼吸 元氣滿分';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '百變排骨飯 不變的美味';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '香酥排骨飯 排山倒海來襲';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '酸甜桔汁 夏日最開胃';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '怪奇打工 CHECK IT OUT！<br>學生暑假 賺錢哪裡去？';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '叫賣商品 學生愛搶攤';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '販賣體魄 打工超勞力';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '打工實戰手冊大公開<br>拜託！給我工作！';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = 'Shhhh…黑澀會美眉 貼身私密悄悄說！';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '狗狗光溜溜∼Cool！<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(14);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '外資轉進、台商回流 台灣房產市場 投資新標的';
		rows[0].link = 'today-house1.htm';
																											
		rows[1].text = '傻大姊陳以瑜 花草為筆 把家當畫布';
		rows[1].link = 'today-house2.htm';
																											
		rows[2].text = '名軒山莊 大海相伴 綠山為鄰';
		rows[2].link = 'today-house3.htm';
																											
		rows[3].text = '日紡天韻 將軍山上的花園別墅';
		rows[3].link = 'today-house4.htm';
																											
		rows[4].text = '美術河畔DC 愛河沿岸透天景觀住宅';
		rows[4].link = 'today-house5.htm';
																											
		rows[5].text = '385萬 讓20年老透天活起來';
		rows[5].link = 'today-house6.htm';
																											
		rows[6].text = '被銀行列為拒絕往來戶 配偶名義貸款 築巢夢不落空';
		rows[6].link = 'today-house7.htm';
																											
		rows[7].text = '透天厝易受外來氣場影響 自製石敢當 擋煞避凶';
		rows[7].link = 'today-house8.htm';
																											
		rows[8].text = '住在古蹟裡 容積可移轉 稅賦有優待';
		rows[8].link = 'today-house9.htm';
																											
		rows[9].text = '休閒又優哉 美式家具 風格大熔爐';
		rows[9].link = 'today-house10.htm';
																											
		rows[10].text = '漂亮祕方不保留 白歆惠在家 Home SPA';
		rows[10].link = 'today-house11.htm';
																											
		rows[11].text = '颱風季 居家安全檢測DIY';
		rows[11].link = 'today-house12.htm';
																											
		rows[12].text = '驗收按摩浴缸 洗個安全澡';
		rows[12].link = 'today-house13.htm';
																											
		rows[13].text = '買到漏水屋，可以要求換屋嗎?';
		rows[13].link = 'today-house14.htm';
																											
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}