//===========================================================================
//基本設定
//==================== 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 = '兩岸經貿議題 遭到刪除';
	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(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 = '閃靈主唱Freddy 質疑連署公信力';
	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 = '軍方4秘密金庫 資產28億';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '民皮官骨 三軍托兒所 身價驚人';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '立委福建考察團 被爆喝花酒';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '小開屋 免費住 鄭麗文省百萬';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '中國要入會 我童軍陷改名困境';
	rows[8].link = 'today-p9.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "以誤炸UN觀察員4死  羅馬調停會議破局";
	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 = "《中英對照讀新聞》German far-rightists torch copy of 'Diary of Anne Frank' 德國極右派份子燒掉一本「安妮的日記」";
	rows[5].link = 'today-int6.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '偽藥大盤商 熱銷藥逾160種';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '口沒遮攔 肺癆出庭嚇壞人';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '偽鈔洗錢坑運將 當場抓包';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '五萬債務糾紛奪命';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '疑收賄交保調職 苗縣前環保局長又涉貪污';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '南迴案明偵結 擬殺人罪嫌起訴李泰安';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '百萬名犬失竊 懸賞十萬協尋';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '杜德偉 驚傳香港嫖妓';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '凶狠國中生 擁槍藏毒 父母傻眼';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '鬼月走火 傳出靈異';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '18號大腳巨人終於穿涼鞋';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '聽障數位畫家賣出首件作品 賺250元真開心';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '自願減薪 獲贈新剪';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '替代役男潘永政 用心輔導中輟生';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '美富義工隊 掃社區拒污名';
	rows[14].link = 'today-so15.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 = '捐二手衣 幫精神病患穿出自信';
	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(9);
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 = '蓋爾3分彈 助穆西納12勝';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '又投又轟 贊布雷諾8連勝';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '梅德森 單局4暴投';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '藥檢未過 2舉重國手除名';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '雷鵬率先13勝';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = 'Jaguar菁英挑戰賽 呂偉智葉彰廷 並列領先';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '祖文特斯 還在地獄';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '山普拉斯閒得發慌 想單挑費德爾';
	rows[8].link = 'today-sp9.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 = '賣家擬組公會 抵制Yahoo!網拍';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = 'Yahoo !推新服務 盼能止罵';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '6月景氣黃藍燈 結束連十綠';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '外熱內溫 經濟成長無法保四';
	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 = '美恢復正常生產 油價跌破74美元';
	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(16);
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 = '8月份投資組合 建議加重債市、全球股票基金';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '《理財Q&A》單親家庭 家長保障要足夠';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '定期定額基金 聯邦銀手續費打折';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '中華電 下月9日前釋股';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = 'IC通路商 看好下半年獲利';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '惠普收購軟體商美科利';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '上半年 矽品每股賺2.62元';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '陳瑞聰：IT下月起明顯回溫';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '接單旺 汽車零組件動力足';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = '卡債衝擊 玉山金上半年虧損11億';
	rows[13].link = 'today-stock14.htm';
																										
	rows[14].text = '《期指觀測站》週五摩台結算 波動恐加劇';
	rows[14].link = 'today-stock15.htm';
																										
	rows[15].text = '《國際股市》歐股午盤小漲 日澳下挫';
	rows[15].link = 'today-stock16.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(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '閃靈主唱Freddy 新一代台灣鬥士';
	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 = 'Elva赴美錄音 百萬行頭壓陣';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '黑眼豆豆3男 泡妞夜夜狂';
	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 = '公視一集500萬天價製作 阿妹婉拒當公主';
	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 = '喬治麥可付6000萬 愛人同志開放偷腥';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '蕭淑慎探病父 柔性放鴿子';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = 'Eric驚傳情變 女友忙消毒';
	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(12);
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 = '洗車水排溪 深坑1加油站勒令改善';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '級配不准動 長福橋下疏濬白忙';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '反拆樂生院 4學生國民黨前絕食';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '索消防平安符不太廟 惹民怨';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '客家文化節 樹林喜做東';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '罕見老木窯群 淡水人盼保留';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '2年退12人 公立高中校長換新潮';
	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 = '登革熱 今年已爆6病例';
	rows[10].link = 'today-taipei11.htm';
																										
	rows[11].text = 'ENJOY臺北 身障者開心送餐';
	rows[11].link = 'today-taipei12.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 = '通緝犯跑路 行竊還亮身分證';
	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 = '宜蘭音樂季 取消3場表演';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '虎頭蜂巢測颱風 你說準不準';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '拚錢途 5風景名勝區申請認定觀光地區';
	rows[7].link = 'today-north8.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
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-center1.htm';
																										
	rows[1].text = '義興村潑漆案 4嫌稱找錯對象';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '敬老行樂公車 下月起停駛';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '豪雨沖刷 忠義橋北側橋墩裸露';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '百果山治水 立委批有頭無尾';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '重建乾峰橋 引道等著喬';
	rows[5].link = 'today-center6.htm';
																										
	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 = '鹿港生態公園 傳出嘿咻聲';
	rows[9].link = 'today-center10.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-south1.htm';
																										
	rows[1].text = '涉嫌詐賭 南縣巡佐遭收押';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '關山親水公園舞台 被凱米吹壞';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '捷運紅線高架段 近日合攏';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '拚招商 官員週休陪會勘';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '各國團隊獻舞 七夕藝術節暖身';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '堰塞湖問題 蘇揆指示處理';
	rows[6].link = 'today-south7.htm';
																										
}
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 = '永續發展vs.邊陲終結';
	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 = '金銀同飾愛情';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '時尚型男的海灘裝扮';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '東西方經典電玩大車拼<br>畫風大不同';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
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-family1.htm';
																										
	rows[1].text = '色主管對我有「性」趣';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '生了病 爸爸才愛我？';
	rows[2].link = 'today-family3.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 = '口腔SPA<br>牙齦刷乾淨 拒絕牙周病';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '要做好病人安全<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(11);
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';
																										
	rows[5].text = '小說原著 電影繆思<br>文學改編電影波波再起';
	rows[5].link = 'today-article6.htm';
																										
	rows[6].text = '海明威復活了？<br>西嶼海明威節熱鬧落幕';
	rows[6].link = 'today-article7.htm';
																										
	rows[7].text = '彆扭小白貂的魅力<br>專訪日本繪本作家大森裕子';
	rows[7].link = 'today-article8.htm';
																										
	rows[8].text = '攜帶閱讀新可能<br>東京研發手機電子書';
	rows[8].link = 'today-article9.htm';
																										
	rows[9].text = '當但丁遇上貝里尼<br>翡冷翠夏日節《神曲》脫口秀';
	rows[9].link = 'today-article10.htm';
																										
	rows[10].text = '惠特曼文學之旅';
	rows[10].link = 'today-article11.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 = '音樂集合新科技<br>樂興之時管絃樂團跨領域';
	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 = '在地人導覽<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';
}