//===========================================================================
//基本設定
//==================== 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 = '倒扁總部詐彈 媒體大炒作';
	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 = '政院擬3年8240億 投入公共建設';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '高鐵局︰增三站 不致減低效能';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '國科會︰科學園區 將不只12個';
	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(9);
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 = '14度叩關聯合國 文宣訴求 排除台灣 違反人權';
	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 = 'F5F機腹迫降 2飛官無恙';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '加拿大駐台代表侯秉東：台加實質關係緊密';
	rows[8].link = 'today-p9.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "飛彈防禦系統 美再測試";
	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 = "《中英對照讀新聞》Goat crowned King of Ireland at ancient fair 山羊在古老的節慶中被立為愛爾蘭國王";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '夫妻搶抱 女嬰斷頸夭折';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '離奇消失 道士被控偷舍利';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '漂流木弊案 命令起訴9官員';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '收贓轉賣CPU 彰德電子老闆被訴';
	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 = '針孔男爆胡瓜兄弟詐賭賺1億';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '情色罩韓流 泡菜妹搶灘賣淫';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '病父照顧癱女 「站」勝病魔';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '他是Ｏ負血型 超博愛 喜助人';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '愛的紅不讓 殘棒隊相中「左投建仔」';
	rows[10].link = 'today-so11.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '旅遊住宿貴 4天3夜花25000';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '觀光學者看問題--缺乏中價位 讓台灣邊緣化';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '日月潭教師會館新樓「涵曦樓」 政府補助興建 VIP房還要16000';
	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';
																										
	rows[8].text = '火星文求職 老闆三條線';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '時速飆200 雪隧沒罰到';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = 'PP車弊案 審計部批台鐵失職';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '募集創投基金 還偏遠孩子受教權';
	rows[11].link = 'today-life12.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '職棒 大失血';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '紐約媒體︰建仔首戰最佳人選';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '15歲林羿豪 日巨人相中';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '姜建銘、林恩宇 南韓眼中釘';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '破紀錄！ 郭勇志單月8救援';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '伍茲4度延長加賽 四連勝';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '世界女壘賽 吳佳燕完封勝 台灣屠荷';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '八強戰 西班牙先戰立陶宛';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '洋基中止3連敗';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '世界盃撞球賽 雙魔聯手 菲常厲害';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '體委會抗議搶旗事件';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '美網公開賽 王、詹出擊 台灣希望';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '林謙如 聽海逐浪的女人';
	rows[12].link = 'today-sp13.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(11);
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 = '7月景氣 續亮黃藍燈';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '8月消費者信心指數 近五年新低';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '台聯立委指中油高層涉賣官';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '7月購屋、建築貸款餘額 歷史新高';
	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 = '公股金融市佔率 將降至30%';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '全球載量最大貨機 改裝亮相';
	rows[10].link = 'today-e11.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '亞股漲勢 連贏美股五年';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '聯準會憂通膨 但暫不升息';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '緊縮雙卡授信？ 金管會：言之過早';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '《理財Q&A》社會新鮮人 買基金存錢';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '外資賣超 廣達股價創新低';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '台積電再告中芯侵權';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '外資估南電Q3營收成長5%';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '明基友達轉投資 獲利嚇嚇叫';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '政治利空 營建股全躺平';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '財報陰影 金融指數破底';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '海德威創惟股價下修壓力大';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '保護元件族群 成長力道強';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = '《期指觀測站》倒扁衝擊 9月只是起點';
	rows[13].link = 'today-stock14.htm';
																										
	rows[14].text = '《國際股市》歐股午盤下跌 日本重挫';
	rows[14].link = 'today-stock15.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(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 = '夫妻1個月沒嘿咻 婚姻拉警報 賈靜雯兩頭燒硬ㄍㄧㄥ';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '賈靜雯豪門路 人算不如天算？';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '夢露壓裙風靡50年代 凱莉性感艷驚當代';
	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 = 'Energy愛失控 坤達默認戀情';
	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 = '楊麗花歌仔戲送慈母';
	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 = '濱崎步賣3C 銷售最亮眼';
	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 = '《鏗鏘集》革命「鬥」士';
		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(14);
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 = '14張農地變更案難產 新店人不滿';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '9年19次播種  積穗國中校長「馬」不停蹄';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '堤頂高架橋 市長打回票';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '大選馬前卒？ 研考會架市長政績網';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '選擇泳池 衛局提醒二不五有';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '固定測速照相桿 一半唬人的';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '二重疏洪道 疑成寵物棄養地';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '清除六塊厝漂流木 人力大動員';
	rows[10].link = 'today-taipei11.htm';
																										
	rows[11].text = '男同志選里長 催生彩虹社區';
	rows[11].link = 'today-taipei12.htm';
																										
	rows[12].text = '受虐兒通報 議員鼓吹志工加入';
	rows[12].link = 'today-taipei13.htm';
																										
	rows[13].text = '民政局創舉 補助新移民親友 來台過中秋';
	rows[13].link = 'today-taipei14.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '車色登記錯吃罰單 爭國賠碰壁';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '副總統視察 縣府爭錢無下文';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '竹市試辦區公所假日無休 成效差';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '中路地區開發 地主要求終止';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '斤兩有爭議 南寧市場設公秤';
	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 = '銘傳國中疏壓 增開3班息怨';
	rows[8].link = 'today-north9.htm';
																										
	rows[9].text = '燒陶開窯 學員體驗樂陶陶';
	rows[9].link = 'today-north10.htm';
																										
	rows[10].text = '親近自然美 學子打造夢幻樹屋';
	rows[10].link = 'today-north11.htm';
																										
	rows[11].text = '看牲嘉年華會 客家文化館開張';
	rows[11].link = 'today-north12.htm';
																										
	rows[12].text = '傳藝中心 7月首度轉虧為盈';
	rows[12].link = 'today-north13.htm';
																										
	rows[13].text = '鯨鯊限捕額滿 年底前不可抓';
	rows[13].link = 'today-north14.htm';
																										
	rows[14].text = '傳承北管 林淑真功力不讓鬚眉';
	rows[14].link = 'today-north15.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
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-center1.htm';
																										
	rows[1].text = '挾持性侵 女大學生發簡訊救命';
	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 = '刺死女友 求刑8年 和解不成 判刑12年';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '《社會頻道》為2顆螺絲釘 警官、民代互告';
	rows[6].link = 'today-center7.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '楊秋興︰教育下一代知道是台灣人';
	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 = '性侵、搶劫女網友 網路色狼求處20年';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '變臉';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '寄車場老闆偷開車 出車禍 吃官司';
	rows[5].link = 'today-south6.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(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 = '復古 最美好的運動回憶';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '踏上秋天的Platform';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = 'MP4 隨身看 國產品牌很爭氣  功能多樣 價格更便宜';
	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(5);
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 = '吃對食物 有助增強免疫力';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '愛滋病毒 在空氣中無法存活';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '孕婦用眼藥水 須特別謹慎';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '肉毒桿菌 會要命也能救命';
	rows[4].link = 'today-medicine5.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 = 'iPod';
	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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '連雅文打擊樂團 今創團公演';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '拍廣告浪費時間 鋼琴家郎朗改變戰術';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '翻新18世紀中國風  袁旃創新水墨畫境';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '柏林博物館之夜 樹立文化城市形象';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '回味60年代冷調藝術  英國版畫精品展';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '帕華洛帝接班人 男高音李契特拉三度訪台';
	rows[5].link = 'today-art6.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 = '日本琦玉縣<br>川越老街 尋兒時舊夢';
	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';
}
