//===========================================================================
//基本設定
//==================== 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(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 = '友邦元首將出席國慶';
	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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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].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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-int1.htm';
																										
	rows[1].text = "北韓宣佈搞核試 南韓警張";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "諾貝爾物理獎 美2科學家同享";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "卡車司機槍決5女 飲彈自盡";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "塔克辛 辭泰愛泰黨魁";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "連敗爆紅 衰馬明星退休";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "李光耀道歉 大馬總理續批";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中英對照讀新聞》\"Cash-machines for Jesus\" a hit at California churches「給耶穌的提款機」在加州教會獲好評";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '20億元市場  中部補教界染「黑」';
	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 = '密道走私 破1300箱未稅菸';
	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 = '贏77票辯僅買4票 當選無效';
	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 = '送愛到蒙古 5大貨櫃明起海陸長征';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '野豬不知恩 群攻老主人';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '新竹整地 挖到未爆彈';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '浮動新制上路 中油本週油價不調';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '攔檢柴油車 全台捉烏賊';
	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 = '臨時放連假  英檢改15日';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '歷經三位市長 一波三折13年 大巨蛋終於約定台北';
	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 = '胸、腹腔鏡手術 健保全給付';
	rows[9].link = 'today-life10.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '三度提台灣 建仔：很光榮';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '老穆：王可適時製造雙殺';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '小郭k功 大都會得失憶症';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '小雞17勝 保住蛇晉級希望';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '洲際盃 陽仲壽不缺席';
	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 = '歐洲盃吉祥物 被控抄襲';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '職撞冠軍 楊清順連莊';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '台灣探險王 挑戰非洲高峰';
	rows[10].link = 'today-sp11.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '連假前一天 記得跑一趟三點半';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '日克服通縮？ 官員說法歧異';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '迎戰微軟 趨勢年底免費線上掃毒';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = 'Vista補網 資安業者皮皮挫';
	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 = '產業政策 不應為台塑量身訂做';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '金控、保險公司委託書徵求 門檻將提高';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '明年全球經濟成長 聯國估降至3%';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '經濟成長創新高 歐洲央行將升息';
	rows[10].link = 'today-e11.htm';
																										
	rows[11].text = '亞洲銀行協會年會 台北登場';
	rows[11].link = 'today-e12.htm';
																										
	rows[12].text = '彰銀、台新銀1:1換股 財部不接受';
	rows[12].link = 'today-e13.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '青創貸款 當老闆不是夢';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '美國債券型基金 9月表現佳';
	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 = '顯示器面板 可望漲到11月';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '手機板回春 嘉聯益訂單擠爆了';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = 'DRAM價續漲 力晶、茂德動力強';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '外資有興趣 大眾電信考慮釋股';
	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';
																										
}
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 = '借70萬 半年還1969萬  尚欠2000萬';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '老杜救美飛踢10次 癱軟墊掛急診';
	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 = '訂房人原來是警察<br>上班保護李敖 下班宴請宋楚瑜小舅子';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '贍養費怎麼算？ 陳定中：田麗瘋了 不會給她4億';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '國泰航空搞飛機 183拒乘抗議';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '恍神女蕭淑慎 丟了主持棒';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '草蜢娶親星光耀眼 蔡一智 迎娶孩子的媽';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '林熙蕾不認黃孔祥 大嘆沒人追';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '屈中恆好爸爸 贏得主持棒';
	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 = '香取慎吾 草&#24389;剛 爭傑尼斯一哥';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '中村獅童頻道歉 撇清不倫戀';
	rows[14].link = 'today-show15.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(13);
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 = '太迷網 二成五大學生易憂鬱';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '國小英語基本學力 97學年起抽測';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '捷運2車站 月台設防門';
	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 = '精品米食 28日飄香';
	rows[11].link = 'today-taipei12.htm';
																										
	rows[12].text = '秋節到國慶 活動熱鬧串場';
	rows[12].link = 'today-taipei13.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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 = '風城街友 7成是壯年人';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '尋愛女 北縣流浪到宜蘭 軍官成街友';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '秋節前 中壢警尋回102人 月圓人團圓';
	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';
																										
}
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 = '擄鴿竊車勒贖 黃建文集團5人落網';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '車禍失語 3保險公司被判賠';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '票減少 鎮代吳興華當選無效';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '涉買票 鎮代吳敏男判3年2月';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '偽證案 移轉管轄至北檢獲准';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '《社會傳真》設仙人跳勒索 惡男起訴';
	rows[6].link = 'today-center7.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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 = '駱威霖 亞洲滑輪溜冰賽囊括8金';
	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';
																										
	rows[7].text = '擅加高路面 潮州鎮所拆 建商提告';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '退休當志工 林清山服務最樂';
	rows[8].link = 'today-south9.htm';
																										
	rows[9].text = '萬年季首度引進 定向越野賽 到左營尋古';
	rows[9].link = 'today-south10.htm';
																										
	rows[10].text = '設計玩家館 迷倒年輕人';
	rows[10].link = 'today-south11.htm';
																										
	rows[11].text = '舊部落義工 一圓學子音樂夢';
	rows[11].link = 'today-south12.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-o1.htm';
																										
	rows[1].text = '開會要解決問題 不是要練習英文';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '《林保華專欄》中國操控台灣紅軍「反獨」';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '74－8＝66';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '74萬與自肥';
	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';
																										
	rows[11].text = '醫師作弊與學歷認證';
	rows[11].link = 'today-o12.htm';
																										
	rows[12].text = '健保掛號費 可減不可免';
	rows[12].link = 'today-o13.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 = '現代Sonata VGT 2.0大車挺進  柴油動力百萬有找';
	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 = '歐式古典家具 成就絕美風采';
	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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '大腸直腸癌篩檢<br>糞便潛血反應 每年定檢一次';
	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 = '國衛院發現肺癌新蛋白<br>將致力研發疫苗';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '長期盯螢幕 當心乾眼症';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '寶寶耳朵分泌物多<br>沒臭味 乾濕不要緊';
	rows[5].link = 'today-medicine6.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
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-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 = '《無法隨心所欲的愛情，風味絕佳》';
	rows[5].link = 'today-article6.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 = '離家99999哩路 吳亭萱展現繽紛視野';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '當代思維 造就傳奇 《慾望城國》加料版本國慶上演';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '成熟溫暖的音樂雙人舞  諸大明、蔡采秀雙鋼琴音樂會';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '德國藝術家聯展';
	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>不丹 Bhutan';
	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';
}