//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '四天王到齊 民進黨慶 營造大團結';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '扁：中、台分兩國 不變的堅持';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '當年黨外後援會  迅速就地組黨';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '百名青年入黨「重新擦亮綠招牌」';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '施批綠執政「沒戒嚴令的戒嚴時代」';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '新世代批扁 黨內反擊';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '至尊「王」牌 寫下洋基驚奇一季';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '塞揚獎預測…建仔居第三';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '建仔技壓朴贊浩 南韓服了';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '建仔妻吳嘉姈  低調閃媒體';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '黃金中指破皮  老美也關心';
	rows[10].link = 'today-fo11.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '拉案第二波起訴 汪傳浦無期 郭力恆20年';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '謝長廷批中時報導不實 要求道歉';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '綠營今告馬貪瀆';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '王金平催 軍購須儘速過關';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '藍找罷免折衷案 力拱蘇馬會';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '環台倒扁 部分縣市可能改室內集會';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '被指襲警 洪秀柱將向警方說明 林正杰打金恆煒 北檢今傳兩人';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '府前國慶大會 國安警政建議停辦';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = 'FAPA聯合其他團體 成立亞民盟';
	rows[8].link = 'today-p9.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 = "美校園濺血 槍手射殺1學生後自盡";
	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 = "陳良宇案 約談大管家孫路一";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》PM calls on Poles to feed the ducks 總理呼籲波蘭人多餵鴨子";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '惡火！30分鐘燒死母子3人';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '60秒！中美鐘錶被搶29支勞力士';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '跑步機翻倒 夾死9歲童';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '灌精之狼落網 就是17歲襲胸犯';
	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';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '殭屍病毒遠端侵駭 出現變種';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = 'ETC委辦案 遠通開價高三倍';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '宣稱3G比PHS健康 中華電挨罰272萬';
	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 = '香港10中藥 下月起暫停進口';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '7成防蚊液 沒有查驗字號';
	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 = '台灣教師 壓力最大';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '毒蟲變社工 體驗穩定感';
	rows[11].link = 'today-life12.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '19勝對決 建仔VS.山塔納 超強戲碼';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '王建民打投陣 季後賽扛重任';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '王建民 06球季全紀錄';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '顛覆棒球理論的新佩提特';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '道奇逆轉勝 外卡領先1場';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '客場版悠遊卡 10月底見';
	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 = '葉偉志 明年挑戰美巡賽';
	rows[8].link = 'today-sp9.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '央行升息半碼 房貸利率走揚';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '房貸戶作好信用 爭取減碼';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '買特A級地段 享優惠利率';
	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 = '人民幣兌美元 首度破7.9元';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '美國施壓 人民幣挺不住';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '無擔保授信22倍限制 銀行公會盼維持';
	rows[10].link = 'today-e11.htm';
																										
	rows[11].text = '公平會函中油、台塑 說明油價調整依據';
	rows[11].link = 'today-e12.htm';
																										
	rows[12].text = '台中七期標地 創每坪128.8萬元天價';
	rows[12].link = 'today-e13.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '三不政策 節省國際漫遊費';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '美國股票型基金表現 連二季失色';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = 'ETF衍生性金融商品躍上國際';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '《理財Q&A》無力償房貸 年底前快提協商';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '謝再居:DRAM至少旺到明年';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '面板零組件廠 訂單追著跑';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '36萬多人搶中華電 折價逾5%';
	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 = '散熱模組廠 Q3毛利率仍不振';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '評等被降 宏達電遭摜殺';
	rows[11].link = 'today-stock12.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 = '王建民19勝  笑傲大聯盟';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '周董獨厚本報讀者';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '試片會走調 楊雅筑現身 明道銜命快閃';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '霍建華調情 自願與姚采穎同居';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = 'Jolin獅城相親 看中ABS';
	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 = '台版X戰警召集 關穎重返影壇';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = 'Hebe出賣姊妹 Ella露毛照曝光';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '觀月入夜變女狼 激情嘿休超變態';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '基斯狂電舊情人 妮可獅吼';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '吹牛老爹當爹 不想婚';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '小布籌拍變性人 裘莉難逃蕾絲邊';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '阿湯哥牽凱蒂 開房間籌婚禮';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '嬌嬌李寶英 愛情武則天';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '半百石田純一吃嫩草 煞到16歲美眉';
	rows[14].link = 'today-show15.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
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-s1.htm';
																	
	rows[1].text = '《自由談》倚老賣老';
	rows[1].link = 'today-f1.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 = '捷運 深夜班距縮為12分';
	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 = '學生送幸福SPA  敬師花心思';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '祭孔大典 山東孔子後代來台';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '優質學校評選 建中獲整體金質獎';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '祭孔捧智慧糕 學子祈助學業';
	rows[6].link = 'today-taipei7.htm';
																										
	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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '女老師有男友 醋男一起惡整';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '女生智取手機偷拍狼 竟是他校男生';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '被害女套出手機號碼報警 便車狼判刑';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '送餐給夫一起落池 婦送醫急救';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '南方澳誤傳車墜海 搜救員白忙';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '不付款就開槍 恐嚇親戚安親班';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '南方澳假漁工案 5仲介當庭釋放';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '收容逃逸外勞集團 專車接送打工';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '《社會傳真》闖前妻屋揚言放火 被送法辦';
	rows[8].link = 'today-north9.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 = '毒蠻牛案 王進展二審維持死刑';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '私酒廠 高掛招牌、製酒師證書';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '荒唐少婦 攜娃會網友 被棄夜市';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '搬物抵債 補教離職員工 偷教材';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '員警眼尖 看監視 逮超商搶嫌';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '查竊案逮槍毒犯 抄出毒品 市價逾500萬';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '簽職棒輸錢擄組頭 6嫌求刑';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '撞上路邊大卡車 醉客當場死';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '肇事逃 中市警跨縣逮醉駕駛';
	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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '世運3大暖身賽開幕 20多國千餘選手歡聚';
	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 = '挺台灣護民主 豎大拇指T恤 為台灣加油';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '澎湖監獄草編技藝班 舉辦百人踏草鞋淨灘';
	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';
																										
	rows[8].text = '兩幫人馬 從線上打到真實';
	rows[8].link = 'today-south9.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(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(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '中秋大會烤 月下串串香<br>北台灣優質烤肉地點公開';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '農場愜意BBQ 感情升溫熱呼呼';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '烤肉達人教你烤<br>6大食材燒烤秘訣';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '刷刷！最對味 DIY烤肉醬';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '不可以浪費ㄛ<br>剩餘食材 聰明料理法';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '杯盤狼藉輕鬆收<br>烤肉善後有撇步';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '不想烤肉看這裡  中秋趴•FUN 樂提案！';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '老外也瘋狂 把酒言歡逗陣玩';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '花招百出超熱鬧  跑趴越夜越HIGH';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '黃品源 以小搏大 模型吉他愛不釋手！';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '秋節烤肉 不只歡樂還要健康';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '當我再度看見她';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}