//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = true;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('生活週報'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(15);
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 = '署桃賣官案 趙承認收何豐名50萬';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '查人頭戶 約談前官邸總管陳慧遊';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '邱毅 再咬馬永成';
	rows[12].link = 'today-fo13.htm';
																										
	rows[13].text = '端午 扁嫂收縮壓降到40 一度危險';
	rows[13].link = 'today-fo14.htm';
																										
	rows[14].text = '律師轉述 趙關心妻及丈母娘健康';
	rows[14].link = 'today-fo15.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 = '投藍黨員參選 擬訂郝龍斌條款';
	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 = "新疆人權鬥士熱比婭 子女遭中逮捕";
	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 = "《中英對照讀新聞》Penguins rescued from New Orleans go home 從紐奧良被救出來的企鵝重返家園";
	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[0].type = '南迴案李泰安收押特別報導';
																									
	rows[1].text = '「出軌加工自殺」終讓李泰安畫押';
	rows[1].link = 'today-so2.htm';
	rows[1].type = '南迴案李泰安收押特別報導';
																									
	rows[2].text = '激辯2小時 檢亮「秘密」武器';
	rows[2].link = 'today-so3.htm';
	rows[2].type = '南迴案李泰安收押特別報導';
																									
	rows[3].text = '南迴案再鬥法之法庭戰將';
	rows[3].link = 'today-so4.htm';
	rows[3].type = '南迴案李泰安收押特別報導';
																									
	rows[4].text = '釐清疑點 下週提訊李泰安';
	rows[4].link = 'today-so5.htm';
	rows[4].type = '南迴案李泰安收押特別報導';
																									
	rows[5].text = '賭盤一夕翻 組頭海削一票';
	rows[5].link = 'today-so6.htm';
	rows[5].type = '南迴案李泰安收押特別報導';
																									
	rows[6].text = '收押李泰安 鄰里集資放鞭炮';
	rows[6].link = 'today-so7.htm';
	rows[6].type = '南迴案李泰安收押特別報導';
																									
	rows[7].text = '學者談軌 鬧劇「媒」水準 社會成本高';
	rows[7].link = 'today-so8.htm';
	rows[7].type = '南迴案李泰安收押特別報導';
																									
	rows[8].text = '車禍誤認女兒 照顧月餘生變死';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '乖乖創造者 林蒼筤隱居玩泥巴';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '政治狂熱女子 陳屍北市府死角 半年無人知';
	rows[10].link = 'today-so11.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '高鐵苗栗段 檢蒐證查案';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '高鐵跑太快 通訊趕不上 手機變啞巴';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '今年難考分數降 建中279分北一女276分';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '陳瑞麟 用苦讀戰勝寂靜世界';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '歌除陰霾 讓我們看雲去';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '未穿救生衣划龍舟 馬英九認錯';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '童用手帕細菌數 多如腐肉';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '中南部豪雨 溪漲路坍塌';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《2006世界盃足球賽》C組-「雄獅」出柙 D組-超級幫「葡」';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '王建民 4局失5分';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '延長十局連拿四分 興農力克誠泰';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '德佬 狂飆50分';
	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 = '納達爾  用贏球告別19歲';
	rows[6].link = 'today-sp7.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '紐約證交所收購歐洲證交所';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '親民黨嗆扁遊行 法人︰衝擊有限';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '10萬津元 只能買條麵包';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '兆豐金改選 公股可拿7席';
	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 = '消金緊縮 5月機車內銷量下滑';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '綜所稅 網路申報高達4成5';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '日基金經理人村上世彰 涉內線交易';
	rows[9].link = 'today-e10.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '砸1.5億美元 宏達電將併購多普達';
	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 = '投保中心 SIPC 保障投資人 簽合作備忘錄';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '接班準備 徐國玲擔任遠百董事';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '獲利回吐 金價下跌20美元';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '《期指觀測站》融資減少 有助下週反彈';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《國際股市》歐股午盤漲 亞股大多上揚';
	rows[7].link = 'today-stock8.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(11);
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 = '青霞抵台 邢李<img src="http://www.libertytimes.com.tw/2006/new/may/6/imgtoday/today-word.gif" border="0">尾隨 夫妻咫尺天涯';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '裸背爬上發哥床 林志玲Say Yes!';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '澎恰恰重返三立 驚爆駱駝危機';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '央大打美女牌 張鈞甯天使下凡';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '貢寮海洋音樂祭 今年很搖滾';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '劉德華唱海鷗 得償宿願';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '綠洲打敗披頭四 絕對可能最唱銷';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '海夫納相中傑克曼 金鋼狼變色狼';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '電視界10大人物 裴帥Rain上榜';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '繪理香勾松田 微醺撐傘入香閨';
	rows[10].link = 'today-show11.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》健全民主法治乃為國家長治久安之道';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》黑變白，鬼變仙！';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》荊棘之道';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '來去台北港 單車水岸遊';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '貴子坑登山 好禮相送';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '警局擬蓋靶場 汐止人槍彈為鄰';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '總統府周邊 今明大交管';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '畢業創意秀 歡樂擊退淚海';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = 'ALD小鬥士 盲而不茫';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '旗怪!西門町徒步區沒人管';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '亞太小學數學奧賽 台灣奪8金';
	rows[7].link = 'today-taipei8.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '憂鬱症女童鎖屋內 母報119';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '再7天畢業 育達大學生車禍喪命';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '神明廳後 舅舅涉性侵外甥女';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '驗有殺傷力才成罪 子彈抽驗制度有漏洞';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '社會傳真／老翁騎車摔落水溝 送醫不治';
	rows[4].link = 'today-north5.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
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 = '丟了5人命 郭瑤琪飆國工局';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '基層選舉查賄／送茶葉行賄 中縣起訴1選將';
	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';
																										
	rows[8].text = '與兒凌虐越南媳 公婆被起訴';
	rows[8].link = 'today-center9.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 = '麗尊槍戰落網 嫌犯供出槍枝來源';
	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 = '朱木炎模式 7個月詐3500萬';
	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 = '網路MV 諷政治人物';
	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(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 = '鐵板燒Live秀 美食競技 挑戰感官味蕾';
		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 = '同樣都是PSP 版本功能大不同';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '簡易網路小遊戲<br>培養親子感情好幫手';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '降火消脂又抗癌 蘆筍';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '傳說中的100% 男孩';
		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(11);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '認識混凝土 買房子輕鬆不盲目';
		rows[0].link = 'today-house1.htm';
																											
		rows[1].text = '高公設比時代來臨 買房子把握3用原則';
		rows[1].link = 'today-house2.htm';
																											
		rows[2].text = '婷婷 老外一族打點溫馨小窩';
		rows[2].link = 'today-house3.htm';
																											
		rows[3].text = '芙蓉清泉NO.2 休閒養生景觀住宅';
		rows[3].link = 'today-house4.htm';
																											
		rows[4].text = '大塊新象 正對兒童公園';
		rows[4].link = 'today-house5.htm';
																											
		rows[5].text = '名流花園 擁抱縣市2商圈';
		rows[5].link = 'today-house6.htm';
																											
		rows[6].text = '打造獨處的美好角落';
		rows[6].link = 'today-house7.htm';
																											
		rows[7].text = '豪宅吹休閒風 居家更優閒';
		rows[7].link = 'today-house8.htm';
																											
		rows[8].text = '色彩玩遊戲 普普風進駐你家';
		rows[8].link = 'today-house9.htm';
																											
		rows[9].text = '退休生活 三代同住享天倫';
		rows[9].link = 'today-house10.htm';
																											
		rows[10].text = '買到工業住宅 該怎麼辦？';
		rows[10].link = 'today-house11.htm';
																											
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}