//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = true;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(9);
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 = '一樣賣油 中油、台塑盈虧差800億';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '中油油價漲1元 大眾運輸、計程車優惠';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '立委轟中油 虧損轉嫁消費者';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '國道客運票價上限調漲 最高18％';
	rows[8].link = 'today-fo9.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '助陳串供 李文成法官職不保';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '余連發妻涉入炒股案 劉幸宜當人頭、墊款';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '收受李恆隆禮券 黃芳彥：未達百萬';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '扁嫂補報珠寶 總額372.5萬';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '扁嫂爆瘦 陳楷模批名嘴';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '萬安演習醉狀況 分局長記大過';
	rows[6].link = 'today-p7.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "墨國大選 執政黨險勝";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "北韓射飛彈瞄準夏威夷海域";
	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 = "《中英對照讀新聞》Mozart therapy for bereaved elephant 喪偶大象的莫札特療法";
	rows[4].link = 'today-int5.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 = '訛詐白冰冰4000萬 乾弟認罪';
	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 = '這條路 8成西施都露點';
	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(9);
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 = '銷日芒果不合格 鎖定2禍源';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '四技二專技優甄保 週一放榜';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '退休年齡下降 政府財政吃不消';
	rows[8].link = 'today-life9.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(15);
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世界盃足球賽》法嗆聲必勝 義誓破魔咒';
	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世界盃足球賽》高空德利 力搏第3';
	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 = '劉俊男 勝投又飛了';
	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';
																										
	rows[13].text = '《瓊斯盃》台日大戰 今夜激戰';
	rows[13].link = 'today-sp14.htm';
																										
	rows[14].text = '《溫布頓公開賽》不費力 直落三晉決賽';
	rows[14].link = 'today-sp15.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 = 'Q2出、進口值 歷年單季新高';
	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 = '五大智庫籲 速訂加值服務發展條例';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '農委會啟動漂鳥計畫 三年號召千名青年下田';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '國華人壽股權 1,100萬標出';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '進駐兆豐銀董事會 財部願與中信金協調';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '信用卡5月停卡逼近110萬張';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '美元拉回整理 台幣升6.2分';
	rows[9].link = 'today-e10.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '晶圓雙雄下半年 美林看空';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '茂迪︰擴產放緩 今年產出下修';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '東芝建NAND新廠 2008年營運';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '友達季減8% 奇美電衰退23%';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '玉晶光6月營收 月減47%';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '人民幣升破7.9900元關卡';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '《期指觀測站》不排除回測月線6,487點';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《全球股市》德股午盤走低 印度重挫';
	rows[7].link = 'today-stock8.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '陳哲男 涉貪污 炒股案 被求刑12年';
	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 = '彭文正代妻李晶玉致歉  專家學者批不合人道';
	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 = '仔仔 朴恩惠雪中熱吻 嫌臭';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '黃曉明 劉亦菲訪台 4天團進團出';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '愛殺十七3節目太暴力 ＮＣＣ開罰';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '阿姆出賣家醜奪冠軍 麥可虛情假愛搶第2';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '24反恐任務大勝 艾美獎入圍12項';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '神鬼奇航 強尼戴普大戰閻王';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '寫真女郎轉行拍戲 慾女變玉女';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '鄭多彬惜肉如金 只肯露香肩';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '李佳豫俯瞰祕魯遺城 璀璨後的落寞';
	rows[15].link = 'today-show16.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》投降不必開會 開放不能背書—對經續會台海兩岸經貿議題的忠告';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》黨產看門狗';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》本土虛實，權力光影';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '拒絕危險情人 女生多選擇分手';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '寧夏夜市換新貌 歡樂一整夜';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '貓空纜車 年底前可通車';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '馬英九促抓漏 推廣生飲';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '車站前公車專用道 立委批決策錯誤';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '放任廠商圍標 13所小學25人被訴';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '仁家2老玩童 玩手藝不分高下';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '八連溪農園 保護生態不賣餐';
	rows[7].link = 'today-taipei8.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-north1.htm';
																										
	rows[1].text = '謊報棄嬰被領養 打官司討兒子';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '遇瘋狗浪 母獲救子溺斃';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '性侵智障女 3網狼被訴';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '強抱女子抓胸摸腿 前保警判10月';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '小毛頭綁磚頭 砸蜂窩砸到車';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '國旅卡假消費案 ５業者認罪判刑';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '虛設公司濫開發票 竹科公司兩人緩刑';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '《社會傳真》桃園週刊創辦人宅 遺留長槍';
	rows[8].link = 'today-north9.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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-center1.htm';
																										
	rows[1].text = '文盲…阿兵哥怕背軍人守則逃兵';
	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';
																										
	rows[10].text = '飢餓30 30個娃娃挨餓12小時';
	rows[10].link = 'today-center11.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 = '侵藏鐵路 帝國特快車';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '西藏 香港 台灣';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '派系危及民進黨';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '解散派系？解散黨？';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '中研院院士';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '法律正義不應有距離';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '台灣多了一個兒子';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '語文生態多樣化';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '九分看家己';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '在地人 過路人';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '總統真會做夢！';
	rows[10].link = 'today-o11.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '搭捷運逍遙遊土城<br>擁抱青山、前進博物館';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '網路討論強強滾<br>一嘗土城人氣小吃';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '雲林台西 海口人的生命力';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '探索潮間帶生態<br>一嘗道地海味';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '走訪高雄藝術市集<br>特色藝術小攤現寶';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '市集秀創意<br>新奇玩意搶先看';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '信義商圈 流行食尚MIX&MATCH';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '搭摩天輪 欣賞翡翠灣日夜景色';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '金山萬里 夏日海陸樂逍遙';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '食尚加州卷 豪邁捲起東西風';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '玩家競速 飆風遙控車樂園';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '暑假學跳舞 紙上先起舞';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(14);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '溫琇玲 魔法媽咪打造科幻住宅';
		rows[0].link = 'today-house1.htm';
																											
		rows[1].text = '房屋信託 保住家庭親情';
		rows[1].link = 'today-house2.htm';
																											
		rows[2].text = '碧城秀墅 200坪中庭綠帶花園';
		rows[2].link = 'today-house3.htm';
																											
		rows[3].text = '惠宇園道臻觀 獨享園道第1排綠意';
		rows[3].link = 'today-house4.htm';
																											
		rows[4].text = '新馥華 步行到文化中心僅8分鐘';
		rows[4].link = 'today-house5.htm';
																											
		rows[5].text = '108萬 19坪老公寓變年輕';
		rows[5].link = 'today-house6.htm';
																											
		rows[6].text = '全台新交通網絡完成 帶動房市 改變生活質感';
		rows[6].link = 'today-house7.htm';
																											
		rows[7].text = '水龍頭VS.瓦斯爐 水火對沖 加設布簾避血光';
		rows[7].link = 'today-house8.htm';
																											
		rows[8].text = '耐震又抗風 木建築好處多';
		rows[8].link = 'today-house9.htm';
																											
		rows[9].text = '豪宅吹起 都會時尚風';
		rows[9].link = 'today-house10.htm';
																											
		rows[10].text = '涼爽 視覺無負擔 隱藏式 冷氣選購與安裝';
		rows[10].link = 'today-house11.htm';
																											
		rows[11].text = '北歐風 居家涼爽有勁';
		rows[11].link = 'today-house12.htm';
																											
		rows[12].text = '壁紙施作監工與驗收';
		rows[12].link = 'today-house13.htm';
																											
		rows[13].text = '辦理財產繼承登記 有時間限制嗎？';
		rows[13].link = 'today-house14.htm';
																											
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}