//===========================================================================
//基本設定
//==================== 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 = '誰主2008？ 蘇：能預約台灣未來者';
	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 = '飛虎紀念館 12日成立';
	rows[10].link = 'today-fo11.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '陳致中夫婦返國 扁心情好';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '揭發市府5大謊言 反北纜團體要求解約';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '吳市長也有個阿雪嫂 吳敦義批綠打烏賊戰';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '日媒︰日2閣員 否認中時挺馬報導';
	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 = '違法執行18％ 橘營擬告朱武獻';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '金管會主委 今將出爐';
	rows[9].link = 'today-p10.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
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-int1.htm';
																										
	rows[1].text = "遇刺638 次？卡斯楚九死一生";
	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 = "《中英對照讀新聞》E-mail from purported animal activist forces English fishing village to end annual eel game 自稱保護動物人士的電子郵件迫使英國漁村停辦年度海鰻大賽";
	rows[4].link = 'today-int5.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '拐買折退 惡劣直銷 害人背債';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '錯誤投資 碩士休學還債';
	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 = '不滿被解僱 誣外籍同事要炸101';
	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 = '老婆狂打0204 戲弄老公';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '肉身擋機車 少婦撂倒賊';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '模範父親的故事／擺攤老爸 養出醫生、博士子女';
	rows[9].link = 'today-so10.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'ETC下一步 交部抱頭燒';
	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 = '北市縣12賣場安檢 4成2安全門上鎖';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '中元需求大 雲林斃死豬又出籠';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '地方要監理權 公路總局搖頭';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '虐貓男道歉 願當動物志工';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '四技二專今起繳志願卡';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '美食漫畫 大飽眼福';
	rows[9].link = 'today-life10.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '建仔 火熱13勝';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '美記者︰王是好人 我會為他加油';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '牛發脾氣 痛宰熊';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = 'A-ROD滑稽上壘 點燃勝火';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '拚亞洲新一哥 破紀錄不難';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '上訴後 ＡＣ米蘭可踢歐冠盃';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '楊睿智逆轉安 伏象';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '地主6撞士 今戰群雄';
	rows[7].link = 'today-sp8.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 = '55%投資人 未做退休規劃';
	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 = '車輛電子產值 2015年達3千億';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '大安公園旁土地 每坪172萬標出';
	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 = 'G-20集團 下月開會協調';
	rows[7].link = 'today-e8.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 = '歐洲央行、英銀 升息1碼';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '寶華銀、亞信 宣佈合併';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '《理財Q&A》債務協商  無需理會其他銀行帳單';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '讀者投訴／日間住院理賠 醫療險灰色地帶';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '中國尚德併MSK 阻茂迪壯大';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '聯發科看Q3 不悲觀';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '市場變數多 手機面板廠保守望Q3';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '茂德Q2毛利率躍升 上半年轉盈';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '外資連賣超 巴黎、瑞銀證仍看好台股';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '矽品突辭京元電董事';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '《國際股市》歐股午盤大跌 泰菲走揚';
	rows[11].link = 'today-stock12.htm';
																										
}
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 = '遠通資格法院撤銷 ETC續營運 可能重甄選';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(16);
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 = '不甩周董 侯佩岑Hebe大和解';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '陶&#21894;砲轟媒體  拒談私生活';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '明道戲水破相 下巴濺血縫9針';
	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 = '閃靈主唱Freddy嗆聲 獨立音樂要自由';
	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 = '安妮斯頓 文森范恩同床異夢來真的';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '阿湯哥 凱蒂 結婚進行曲將響起';
	rows[15].link = 'today-show16.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 = '《鏗鏘集》可靠先生（Mr.Reliable）';
		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 = '路邊無牌車  9月全面拖吊';
	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 = '猴硐煤博園區 第1期完工';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '吊掛鋼筋沒安全網 捷運蘆洲線恐怖';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '罹癌模範父親 贈50貧童午餐費';
	rows[10].link = 'today-taipei11.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-north1.htm';
																										
	rows[1].text = '帶護照逛大街 見人車砸磚頭';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '拖板車攔國光客運、砸玻璃 到案司機：被擦撞、比中指';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '撞入大排火燒車 駕駛成焦屍';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '蘆竹３死火警 疑壁插外接肇禍';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '騎車會家人 半途車禍不治';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '撞騎士致死 肇事駕駛交保';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '新屋工廠燒毀 疑鍋爐爆炸肇禍';
	rows[7].link = 'today-north8.htm';
																										
	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';
																										
}
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 = '市場遭強佔 省農會半年沒收租';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '家具公司大火 3600坪燒光光';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '檢調搜索賴正穎陣營 約談6人';
	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 = '店是我開的！ 巡佐嗆聲 民眾報案';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '《社會頻道》出租套房 查獲網路詐騙機房';
	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 = '涉詐健保費 林進興拒認罪協商';
	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(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 = '最HOT墾丁 包海包吃住';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '日頭炎炎 呼朋引伴吃冰去';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '老字號冰店 陣陣透心涼';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '天氣好熱 吃冰去！';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '日式冰品炫風 狂掃全台';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '夏日吃特色冰 清涼超有勁';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '特色冰品<br>球球口味嘗得炫';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '剷除粉刺 還我美顏肌！';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '生日禮物 一週提案';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '健康醫療<br>青春戰痘族的神奇化妝術';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '花編<br>夜裡蛙聲聲聲催';
		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';
}