//===========================================================================
//基本設定
//==================== 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(12);
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 = '小市民心聲：反24小時集會';
	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';
																										
	rows[10].text = '中國毛巾傾銷 我課徵反傾銷稅';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '中國投資失利 大霸暴落';
	rows[11].link = 'today-fo12.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '藍軍封殺軍購兩年 美極度不諒解';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = 'F-16採購案 編入明年度預算';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '中國戰機接近海峽中線 頻率大增';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '扁訪南太 府院黨恢復送機';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '趙建銘聲請變更住居所';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '擔心藍委刪除預算 銀行婉拒綠營貸款';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '扁盼台灣民主法治 對中發揮燈塔效應';
	rows[7].link = 'today-p8.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 = "國際油價 跌破70美元";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "卸任國防部長公然嗆總統 要回戰時指揮權 危及南韓國家安全";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "御浪發電 英國海蛇波棒";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "美森林大火 延燒近九百英畝";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "海馬性愛觀 公的較忠貞";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中英對照讀新聞》Diana wasn\'t pregnant,mortuary manager claims 太平間經理稱黛安娜並未懷孕";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '壯男講義氣 裝辣妹盜領';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '刷卡假繳款 超商店長自盜1100萬';
	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 = '3狼同學會 輪姦傳播妹肛裂';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '林進興等4醫院A健保費案 2院長同意認罪協商';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '天災天價 米堤飯店獲賠5億保金';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '3千元過活 窮母子忍病吞聲';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '開家麵包店 智障女烘焙夢想';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '他罹乳癌 大方當志工';
	rows[11].link = 'today-so12.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 = '1晚要價上萬 委外旅館比奢華';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '助學金百萬募款 遭控流向不明';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '45年預租屋 期滿無償回收';
	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(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '洋基MVP 紐郵看好王建民';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '狂牛逆轉鯨 4連勝';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '摯友空難 韋伯含悲勝投';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '石志偉 連3年破百安';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '闖過頭關 阿格西流下英雄淚';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '詹詠然 首輪止步';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '西班牙阿根廷 4強決戰';
	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 = '世界女壘賽 澳洲強攻 9：0完封台灣';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '瓊絲藥檢報告 本週出爐';
	rows[11].link = 'today-sp12.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-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 = '聘三名中高齡勞工 可僱一外勞';
	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 = '貿委會認定中國毛巾傾銷成立';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '央行沖銷超額流動性 資金未浮濫';
	rows[10].link = 'today-e11.htm';
																										
	rows[11].text = '東企若增資不成 需交出經營權';
	rows[11].link = 'today-e12.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 = '中低價ETF 鎖定小額投資';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '人民幣續走強 將上探7.9550';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '美元轉弱 台幣升3.8分';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '《理財Q&A》卡債協商申請 以兩次為限';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '卡債族變有錢 不須提前償債';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '綠能興櫃稱后 法人認飆過頭';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = 'DDR2價飆 力晶、茂德受惠';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '大摩有意增加中鼎持股';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '創意電子最快9月上市 智原遇敵手';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = 'Vista延宕 衝擊組裝PC市場';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '通訊電源廠 獲利逐月走高';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '瑞士信貸 喊進友達奇美電';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '背光模組廠 中光電獲利居冠';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = '明基跌停 創歷史新低';
	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(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '友人爆料 王季擬奉子成婚<br>喜酒且慢！先嚐鹽酥雞';
	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 = 'easy塑身省荷包 美女型男過招';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '華仔挺阿嬌 被爆遭槍殺身亡！';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '翁家明 被瘋狂粉絲監看7年';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = 'Ella甩憂鬱 自爆男人不止10個';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '佳麗穿比基尼 裝高竿競豔';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '杜琪峰放逐水都 蔡明亮搶騎金獅';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '張東健電到金眼睛 裴帥笑得金嘴巴';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '藝人點情歌 回憶純愛時光';
	rows[13].link = 'today-show14.htm';
																										
}
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 = '毒犯拒捕 跳下4樓摔斷腿';
	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 = '鶯歌鎮長9.1補宣誓到期 蘇有仁拚今交保';
	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 = '交通罰單即時銷案 7-11也能辦';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '七條通要變日本街 先去粉味';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '國小迎新 帶領新生找快樂';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '補習班退費 新制最快兩週上路';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '綠葉蟬泡湯 石碇美人茶減產1/4';
	rows[10].link = 'today-taipei11.htm';
																										
	rows[11].text = '萬里闢自行車道 觀海兼賞溪';
	rows[11].link = 'today-taipei12.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '助學捐款 新竹家扶中心還愁98萬元';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '黃昏市場衛生 縣府輔導改善';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '爺爺撫養2孫 外婆領走社福津貼';
	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 = '入學新低 8國小低於20人';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '院生打掃社區 10餘年不間斷';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '峨眉鄉茶技研習 50人兩天馬拉松';
	rows[8].link = 'today-north9.htm';
																										
	rows[9].text = '單親媽攜幼子 街頭賣花';
	rows[9].link = 'today-north10.htm';
																										
	rows[10].text = '築愛助學 幫家扶孩子圓求學夢';
	rows[10].link = 'today-north11.htm';
																										
	rows[11].text = '紅尾伯勞來了 候鳥季唱序曲';
	rows[11].link = 'today-north12.htm';
																										
	rows[12].text = '採柚嚐風味餐 七堵休閒農場包辦';
	rows[12].link = 'today-north13.htm';
																										
	rows[13].text = '綠葉蟬泡湯 石碇美人茶減產1/4';
	rows[13].link = 'today-north14.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 = '職棒簽賭案 3組頭判刑';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '嘉市銀樓搶案 捉拿菲籍搶匪';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '2惡煞綁老闆 藝品店遇劫';
	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 = '為1頂安全帽，4年輕人談判… 1死2起訴 1人觸軍法';
	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(10);
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 = '亂世改姓 80歲老婦認祖歸宗';
	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 = '3惡狼隨機擄人輪暴 警方追查';
	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';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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';
																										
	rows[11].text = '與蘇嘉全無關';
	rows[11].link = 'today-o12.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 = '國產Buick Excelle 強過歐˙中規';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '美麗的獎';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '2006美妝市場焦點';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '71拱廊 串連巴黎藝術街道  枯木創作工藝 向大自然致敬';
	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 = '大腸激躁 大大的不便';
	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 = '療效不明確處方藥<br>健保十月起不給付';
	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(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '世間終極歌劇';
	rows[0].link = 'today-article1.htm';
																										
	rows[1].text = '寬容的等待-下';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '凝結永恆與瞬間';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '《作弊的文化》';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '語言的誤會';
	rows[4].link = 'today-article5.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
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 = '雪恥規劃 魔幻新馬戲出列<br>廣場藝術節 10月熱鬧登場';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '中德文化經濟協會舉辦音樂會  義助台東救星教養院';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '拍賣預展  內行看門道 外行湊熱鬧';
	rows[3].link = 'today-art4.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';
}