//===========================================================================
//基本設定
//==================== 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(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '扁出訪南太 4架機接力';
	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 = '海軍二代二級艦 似英T45型';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = 'ETC案 林陵三列共同正犯';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '台糖弊案起訴 龔照勝求刑7年';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '吳俊立貪污案更二審判7年半';
	rows[6].link = 'today-fo7.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 = '包裹景福門 文化局促提替代案';
	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 = '政院建構長期照顧體系 3年砸60億';
	rows[7].link = 'today-p8.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "不甩安理會大限 伊堅持濃縮鈾計畫";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "台諜罪名成立 程翔判刑5年";
	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 = "《中英對照讀新聞》Keith Richards may have violated Scotland's smoking ban 凱斯．理查茲可能違反了蘇格蘭的禁菸令";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '光明新聞報導 本報獲優等獎';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '把憨兒當天使 省菜錢作公益';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '媽媽勸甩小五情郎 小二女童負氣蹺家';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '不想上學 國二精障生與兄撂倒親娘';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '劣油偽裝高柴 八萬噸流入市面';
	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 = '府城運河愛情事 真實檔案 殉情記流傳70載';
	rows[10].link = 'today-so11.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '豹紋 暗藏涂林方程式';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '犬瘟熱 跨種傳染鼬獾';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '離譜校規多年不改 愛滋先治好 才准入學';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '96%自助餐 未標價';
	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 = '發明展 11國設870個攤位';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '吳豐山：貫徹平價旅館政策';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '夏都承租50年 墾管處設法搶灘';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '鐵道迷串連 搶救台北機廠';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '竹東榮醫 疑群聚感染退伍軍人病';
	rows[10].link = 'today-life11.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 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 = '建仔16勝 大聯盟勝投王';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '犀利伸卡 吃定打者';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '勝投王的滋味… Four more wins';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '托瑞：世界冠軍比塞揚重要';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '普洛克特 搶建仔版面';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '13敗象 破紀錄';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '郭泓志上大聯盟 最快下週三先發';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '東哥 連5年百安';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '羅迪克 贏球慶生';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '美網公開賽 王宇佐不敵費德爾';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '《女壘世錦賽》哥隊棄權 台灣未戰先勝';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '亞運參賽名單 增為362人';
	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 = '新鮮人理財 40歲財富翻一倍';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '小茶舖拚錢途';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '寶來台灣中型100ETF 交投熱絡';
	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(9);
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 = '投資中國 風險與機會同步上升';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '中科七星案開發 內政部區委會通過';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '手機板股 欣興穩居獲利王';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '倍微表現不俗 至上出現虧損';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '半年報 鴻海大賺 華碩持平';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '《國際股市》歐股午盤下跌 東京大漲';
	rows[8].link = 'today-stock9.htm';
																										
}
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(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 = '第63屆威尼斯影展 小班露屁尬蓮恩酥胸 引爆殺機';
	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 = '言承旭聽到林志玲 心情high';
	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 = '壽星兩樣情 裴帥賣酒旺 上戶彩哭了';
	rows[14].link = 'today-show15.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》倒扁焉能不顧國家利益與法律制度？';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》情書與遺書';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》民主不需要殉道！';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '2廠商退出 大同高科技園區出狀況';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '進駐意願低 頂埔大同開發案屢受挫';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '管線挖半年 濱海公路凹凸坑人 砂石車越線開';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '爭五股匝道變更設計 高公局允研擬';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '環河路窄汽機車搶道 縣府將拓寬';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '捷運萬大線爭莒光站 高架引反彈';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '尖峰時間拖吊 今起繞線跑';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '就地取材 關渡公園景觀變裝';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '新光金控副董拋磚引玉 20萬元助劉憶年';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '17溫泉保護區 今起禁開發';
	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(15);
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 = '童玩節連虧2年 可能委外';
	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';
																										
	rows[9].text = '我們結婚吧 創意求婚大募集';
	rows[9].link = 'today-north10.htm';
																										
	rows[10].text = '山地鄉不了情 由台北送愛 假日做山服';
	rows[10].link = 'today-north11.htm';
																										
	rows[11].text = '新屋鄉 農曆年前將新設郵局';
	rows[11].link = 'today-north12.htm';
																										
	rows[12].text = '入學藏酒 光復國小預約一甕芳香';
	rows[12].link = 'today-north13.htm';
																										
	rows[13].text = '大漢物流系與業界搭橋';
	rows[13].link = 'today-north14.htm';
																										
	rows[14].text = '烏坵幽靈人口案 起訴108人';
	rows[14].link = 'today-north15.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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 = '涉貪污 斗六市長判刑10年';
	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';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '抵癮療法奏效 小林挽回破碎家庭';
	rows[0].link = 'today-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';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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';
																										
}
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 = '獨樹一格 上樹屋吃好料';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '大人氣牛肉麵 超激出線  美食家推薦 15大美味牛肉麵';
		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 = '五星蔡家牛肉麵 簡易上手DIY';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '苗栗通霄 山海牧場霄遙遊';
		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 = '戰地小吃 鮮嫩牛肉係金ㄟ';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '運動型男張天霖  100% MAN表情';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '複合式休閒館 夜貓族 Fun鬆新去處';
		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';
}