//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '削逾1億 趙建銘依新證交法求重刑';
	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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '北韓射飛彈 馬︰台灣有很深感受';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '通關沒禮遇 議員大鬧機場';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '否決軍購56次 泛藍應負最大責任';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '微風廣場否認 介入SOGO經營權';
	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 = '經長透露：天然氣可能調漲15％';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '日月潭遊艇業 播中國國歌';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '泛綠整合 先喬北高市長選舉';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '榮民就醫補助經費 逐年遞減';
	rows[10].link = 'today-p11.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-int1.htm';
																										
	rows[1].text = "步法鑑識 犯行無所遁形";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "巴基斯坦墜機 包括多名要人 45死";
	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 = "俄軍擊斃車臣游擊隊領袖";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "印度將採購俄製巡防艦";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "寧夏氯氣外洩 逾百人中毒";
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = "《中英對照讀新聞》England's Football Association red cards the wives and girlfriends 英國足協給了娘子軍紅牌";
	rows[9].link = 'today-int10.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 = '百家樂賭場 每月賄警逾300萬';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '狡兔7窟 紅茶店接送賭客';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '分局長蔡榮源 立即停職';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '洗錢教父 求刑10年';
	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 = '南市建材商被綁 付贖1200萬';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '販嬰案 循出生證明找回10人';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '情侶夜「游」 女子溺斃七星潭';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '校園超級守門人 賊匪剋星';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '鐵道小志工 台東觀光推手';
	rows[10].link = 'today-so11.htm';
																										
}
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 = '碧利斯逼近 恐波及二次基測';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '雪隧昨停電9次 車潮回堵5公里';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '中永和新店淹水 橡皮艇救人';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '三峽祖師廟 網羅鳥雕之美';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '隅角閉鎖型青光眼 溼度高時易發作';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '國際化學奧賽 我奪3金1銀';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '陳力俊 鑽研材料科學 克服製程障礙';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '1週上學1天 變相在家教育';
	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(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《2006世界盃足球賽》義舉奪冠';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《2006世界盃足球賽》利皮寫傳奇 連25場不敗';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《2006世界盃足球賽》馬特拉吉 義軍福將';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《2006世界盃足球賽》席丹下台 留下滿天迷團';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《2006世界盃足球賽》足總︰並非看重播給牌';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《2006世界盃足球賽》馬特拉吉說了什麼？';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《2006世界盃足球賽》兵不厭詐 能贏才重要';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《2006世界盃足球賽》特赫澤蓋失足 英雄變狗熊';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《2006世界盃足球賽》金球獎 還是席丹';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《2006世界盃足球賽》義筆勾銷? 放水官司恐從輕發落';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '《瓊斯盃》台灣抗美 3分飲恨';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '胡金龍 1安1打點';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '陽森紀俊麟 挑戰全壘打大賽';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '《西方公開賽》伊梅曼 美巡賽首冠';
	rows[13].link = 'today-sp14.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 = '英鎊 各國外匯存底新寵';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '上市櫃Q2稅前盈餘 年增五成';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '五大電子廠 上半年營收大成長';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '上半年稅收增2.5% 預算達成率61.2%';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '合庫年底改選 各民股尋求結盟';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '貿易順差擴增 人民幣升值壓力大';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '新農業運動 農會批被當棄嬰';
	rows[9].link = 'today-e10.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(17);
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 = '卡債風暴減緩 Visa Wave積極行銷';
	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 = '《理財Q&A》終身醫療險 新鮮人投保首選';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '揮別NB淡季 廣達帶頭衝';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = 'PCB廠金像電、祥裕 月績創新高';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '國巨、華新科 營收年增逾4成';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '產能滿載 台積再攀高峰';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '力晶：下半年月營收至少80億';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '益通領軍 太陽能股發威';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = '宏達電月績旺 股價逼近千元';
	rows[13].link = 'today-stock14.htm';
																										
	rows[14].text = '上半年獲利 新光金稱冠金控';
	rows[14].link = 'today-stock15.htm';
																										
	rows[15].text = '《期指觀測站》下檔支撐轉強 區間進出';
	rows[15].link = 'today-stock16.htm';
																										
	rows[16].text = '《國際股市》歐股午盤下跌 日韓大漲';
	rows[16].link = 'today-stock17.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 = '趙建銘被求刑8年 1000萬交保';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '張學友酒後 爆怒擒狗仔';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '鄭少秋女兒復胖 男友拎行李落跑';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '江宏恩辭摩天輪 三立閃電賜死';
	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 = '台版女斷背／Jolin綁G奶 燕姿怕舌吻';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = 'Rain盛名之累 投資受阻還挨告';
	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';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》期待綠色公義聯盟超越選舉層次';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》權力的祭品';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》大學的品牌流動';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '神啊！ 給我好天氣';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '悲情城市 北縣每天  人自殺';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '保母桶悶男童案 不明勒痕 疑似虐殺';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '午後大雷雨 新店中永和 積水惹民怨';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '國產局催繳4000萬 淡水文化基金會跳腳';
	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 = '孕前生育健檢 263元搞定';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '校護擠破頭 1440人只錄取33人';
	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(8);
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 = '疑借50元未還 男子被4酒友打死';
	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';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
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-center1.htm';
																										
	rows[1].text = '涉賄選 中市議員邱素貞被訴';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '改選前 朝天宮董事遭勒索';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '竊電逾1300萬元 黃雨亭判1年';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '大貨車翻 廢五金撒滿快速路';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '借10萬 每10天利息2000元';
	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';
																										
	rows[9].text = 'BB彈射傷人 惡鄰居被判3月';
	rows[9].link = 'today-center10.htm';
																										
	rows[10].text = '找暑期援交 大學生被逮2回';
	rows[10].link = 'today-center11.htm';
																										
	rows[11].text = '被搶去報案 歹徒已銬在警局';
	rows[11].link = 'today-center12.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 = '芒果殘留農藥 5貿商停止出貨';
	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 = '三天肅竊 七縣市查獲333件竊案';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '四處偷車  三竊賊監視器全都錄';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '社會短波';
	rows[8].link = 'today-south9.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '最需要監委的時刻  也是阿扁自清契機';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '《林保華專欄》北韓飛彈與日本反彈';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = 'ＮＣＣ法應該何時失效？';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '藝文版的美麗時光';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '「台灣不獨」的後果';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '美國寄希望於台灣人民';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '打虎親兄弟';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '尋找木蘭隊';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '政治，媒體的殖民地？';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '軍人身分 軍法審判';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '摩登時代';
	rows[10].link = 'today-o11.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '美型機 好品味';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '2006 秋冬彩妝4趨勢';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '樂活生活非口號<br>百貨業開始發燒';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '保時捷最入門小跑車 Boxster 超值運動版';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '繪本找不到家 等你來圓夢';
	rows[0].link = 'today-family1.htm';
																										
	rows[1].text = '拯救地球 一起來做愛';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '痘疤 雷射效果佳';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '用針扎 看你往哪逃';
	rows[3].link = 'today-family4.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '胯下癢 惱人的癢癢';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '干擾素合併Ribavirin<br>治Ｃ肝六成有效';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '脊椎病變<br>辦公族、勞動者都要小心';
	rows[2].link = 'today-medicine3.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '減法女孩';
	rows[0].link = 'today-article1.htm';
																										
	rows[1].text = '印的印記';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '《現實一種》';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '窗上的霧氣';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '牧鴨';
	rows[4].link = 'today-article5.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '從古典質感中大膽編舞<br>英國國家芭蕾舞團 帶來正字招牌《天鵝湖》';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '「快來！拍張好照片」<br>北美館舉辦暑期兒童攝影營';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '苗景昌油畫風景裡的寓言';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '朱銘美術館 週末夜免門票';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '坐擁中央資源 腹地卻過小<br>國立台灣交響樂團 急欲展翅';
	rows[4].link = 'today-art5.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '泉水修道院傳奇 英國約克夏';
	rows[0].link = 'today-travel1.htm';
																										
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}