//===========================================================================
//基本設定
//==================== 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 = '國產局 向國民黨催討12億';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '在野夾帶 提棄守金馬澎條款';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '治水預算 搶週五三讀通過';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '綠9議案 藍封殺';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '交通水電全斷 南投2000多人被困';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '楊怡祥︰禮券案 李濤、李碧君與友人恩怨';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '趙建銘律師 二度聲請停止羈押';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '復華金控 駁斥超貸指控';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = 'SOGO：禮券確有可能九折';
	rows[7].link = 'today-p8.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "法版百大性感美女 半百女議長排第6";
	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 = "2005年全球軍事支出 美排名第一";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "《國際索隱》後札格維時代 美軍面臨更大威脅";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "肯亞 太陽能烹飪板";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "鮮！摩托車拖吊車";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中英對照讀新聞》Stick up for chickens, U.S. animal activists say 支持雞，美國動物倡議人士說";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '北市養工處弊案 34人被訴';
	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 = '命大 遭債主4槍轟頭 毫髮無傷';
	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 = '「郵」必有方 日治地址照樣送達';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '全國模範警察名單出爐 女偵查佐獲選 只有許榮芬';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '特別獎特別慢  一等25年';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '毛毛蟲吸管 癌患彎出新人生';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-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 = '嬰幼兒學外語 真人互動好過DVD';
	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';
																										
	rows[9].text = '豪雨特報解除 明起轉熱';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = 'MOD將改為完全開放平台';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '基測社會2疑義題 不送分';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '非常恩人 兒子以他為名';
	rows[12].link = 'today-life13.htm';
																										
	rows[13].text = '酒駕一罪兩罰 北市府A 2千萬';
	rows[13].link = 'today-life14.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《2006世界盃足球賽》神奇袋鼠 大逆轉';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《2006世界盃足球賽》最新戰報 捷克3：0 勇闖「美」人關';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《2006世界盃足球賽》費戈妙傳 葡萄牙「安」啦';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《2006世界盃足球賽》安哥拉 贏得球迷尊重';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《2006世界盃足球賽》勞爾又傷 西國罩烏雲';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《2006世界盃足球賽》擔心出老千 魯尼提前上？';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《2006世界盃足球賽》4世足先生獻技 球迷福氣啦';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《2006世界盃足球賽》巴西「攻擊」進行曲 明揭序幕';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '熱火熄火 小牛主場2勝';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '洋基止敗 寄託王建民';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '《美國LPGA錦標賽》朴世莉 重返巔峰';
	rows[10].link = 'today-sp11.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '阜康中國建廠 籌資困難延宕';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '復華金 決提前董監改選';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '淡海、高雄新市鎮開發 縮減3/4';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '職災重複發生 追究企業主管';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '《國情密碼》台灣膜力 一年賣1.2片';
	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 = '芝加哥塑膠展 台灣館最大';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '郭清雄可望任造紙公會理事長';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '北宜高將通車 國際快遞進宜蘭';
	rows[10].link = 'today-e11.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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 = '人民幣加快升值不可免';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '合庫逾放款 5月暴增187億';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '《理財Q&A》新鮮人投保  首重低保費高保障';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '林文伯︰矽品今年賺100億';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = 'Vista年底上市 保證不再延';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = 'NB買氣 法人估延至8、9月';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '永豐餘白紙板 下月起漲價10%';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '營建資產反彈 強者恆強';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = 'LED傳統旺季 可能不太旺';
	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 = '《國際股市》擔心升息 歐股午盤下挫';
	rows[12].link = 'today-stock13.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 = '拉法葉案 郭力恆兄弟認罪 願歸還6億';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '東京瞎拚內衣 Jolin買D罩塞大咪！';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '蔡依林地頭蛇 瘋狂gogo購';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = 'Jolin大包小包 造型變變變';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '江蕙金曲夜跑趴 連當2次頒獎人';
	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 = '陶&#21894;得獎感言 透露新輯方向';
	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 = '小林香織來台 變2moro師妹';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = 'SMAP喬3年 要在台開「花」了';
	rows[10].link = 'today-show11.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(11);
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 = '抽驗蔬果 不合格率0.51%';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '國小教師甄選 7855搶41名額';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '9所國中小 實施客語日';
	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';
																										
	rows[9].text = '文化局志工隊 首奪全國大獎';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '橫科分洪道貫通 解汐止水患';
	rows[10].link = 'today-taipei11.htm';
																										
}
menu = null;

menu = getMenu('north');
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 = '電稱綁架老闆 想搬貨抵債';
	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';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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 = '欠稅近7千萬 西海岸電訊負責人留置';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '老公檢舉收賄 老婆求刑6月';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '工會改選作票 常務理事判刑';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '虛擬世界殺到現實世界 7人掛彩';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '叫計程車被勒索 報警逮3嫌';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '想抓境外經濟犯 無法可施';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '女學生透露死意 沒人發現';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '社會傳真／酒駕致2死4傷 判刑3年';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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 = '東印度公司末代長官後裔 府城尋根';
	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 = '澎湖再捕豆腐鯊 全台達40尾';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '朱家賢燒死案 家屬疑有內情';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '林益世婚禮鬧場鞭炮 應為惡作劇';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '疏縱或私縱 抓獲毒犯釐清案情';
	rows[7].link = 'today-south8.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 = '本土政權又怎樣';
	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(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 = '胜&#32957;密碼大剖析';
	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(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 = '降膽固醇藥物<br>可醫靠 別怕肝苦';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '台大乳房醫學中心<br>為女性健康把關';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '降血壓藥ACE抑制劑<br>增加畸胎風險';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '考試症候群<br>做做體操放輕鬆';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '肢障、退化性關節炎<br>運動最好少量多餐';
	rows[5].link = 'today-medicine6.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
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-article1.htm';
																										
	rows[1].text = '餘蔭-下';
	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';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
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 = '相隔6年 找到感情避風港  小提琴家慕特來台詮釋莫札特';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '是小提琴家也是好媽媽  慕特：給孩子更多的路選擇';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '林懷民獲頒 國際表演藝術協會 卓越藝術家獎';
	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';
																										
}
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 = '品味靚夜奢華<br>香港頂級旅館精選';
	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';
}
