//===========================================================================
//基本設定
//==================== 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(11);
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 = '讓出5車道 倒扁靜坐 今縮小規模';
	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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '大溫暖12計畫 斥資1760億';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '113專線兼差 婦團反彈';
	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 = '內閣十換 政局亂<br>日本經濟 大黑暗';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '11年來美對台軍售 質與量可觀';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '扁：盼與日建立準軍事同盟';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '歐中峰會 中國再提解除武禁';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '游錫?訪美 將晤重要官員';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '立委張川田病逝 民進黨哀悼';
	rows[9].link = 'today-p10.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "《911五週年紀念特輯》反恐戰 美國贏了嗎？";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "911慘案 改變美國人史觀";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "防劫飛機 最快兩年後上陣";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "布希總統 智商120";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "趕在奧運前 中加強管制外國媒體";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "協助中控管資訊 維基說NO";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "達賴 批中對西藏文化屠殺";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "哈克比搞甩肉聖戰 民眾不甩他";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "美富家女 出賣貞操";
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = "《中英對照讀新聞》Singapore hunts for serial cat killer 新加坡緝捕連續殺貓兇手";
	rows[9].link = 'today-int10.htm';
																										
	rows[10].text = "《中日對照讀新聞》軍人&#12398;交通&#12510;&#12490;&#12540;向上&#12461;&#12515;&#12531;&#12506;&#12540;&#12531; 中&#22269;<br>提升軍人交通禮儀活動 中國";
	rows[10].link = 'today-int11.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '花蓮血案 關鍵5日晚 未見小孩倒垃圾';
	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 = '吸管驗出DNA 慣竊現形';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '現代孔融 千萬家產讓兄';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '大老婆太好賭 休掉結束3人行';
	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 = '柵欄沒放？ 火車連撞2車9傷';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '開車門撞傷母子 判賠143萬';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '警網幫忙 癌母尋子夢圓';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '復健掃花園 中風2年痊癒';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '阿嬤火星文 自創電「畫」簿';
	rows[14].link = 'today-so15.htm';
																										
	rows[15].text = '竹警熱心 代墊註冊費';
	rows[15].link = 'today-so16.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '超級藥患 2年領17766顆高血壓藥';
	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 = '老翁喊冤 反控診所A健保';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '表皮雷射 搞定靜脈曲張';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '偏頭痛 服止痛藥勿過量';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '世界防治自殺日 口足畫家︰不看失去 只看擁有';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '勇敢拒絕自殺 健走走出活路';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '愛滋毒蟲 5年暴增616倍';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '大雨溪暴漲 34遊客困宜蘭';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '明年基測日程敲定 滿分312分';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '闖關探險 機器人大賽 可樂夾不住';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '天才少年兄弟 編著英文書';
	rows[12].link = 'today-life13.htm';
																										
	rows[13].text = '唐氏症選手 國際賽泳奪13金';
	rows[13].link = 'today-life14.htm';
																										
	rows[14].text = '不抽菸 照樣被罰丟菸蒂';
	rows[14].link = 'today-life15.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '勝投王 滿堂采';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '3雄17勝 建仔後勢占上風';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '季後賽首戰 紐郵點名建仔';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '洋基球迷 攻陷巴爾的摩';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '猴塞雷 姜建銘 媒體爭訪';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '5局決生死 曾兆豪11勝入袋';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '3巨投勝利數字 56好球';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '德瑞吉 問鼎3年來首冠';
	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';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '抑制通膨 歐洲下月升息';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '公股釋出 成敗在立院';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '穆拉利 首年薪酬6500萬';
	rows[3].link = 'today-e4.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '券商前8月獲利 建華證領先';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '以利客戶 蔡明介創業心法';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '低價Xbox360 11月在日上市';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '明泰節電省水 用天線作簡報';
	rows[4].link = 'today-stock5.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(17);
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 = '睜眼說瞎話 S.H.E撇緋聞 稱5年沒戀愛';
	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 = '林志玲沒信心 怕技不如人';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '安以軒穿短裙騎重機車險走光';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '蜘蛛女搶救愛情 邀傑克車震打野戰';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '評審團主席愛黑眼圈 三峽好人擒金獅被吼';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '新銳導演不新 地主國自肥';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '小布上火線 小潘潘迷假臀';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '妮可拉基斯開房間 躺阿湯哥舊床';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '凱吉回到911 闖世貿中心救命';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '高我星人小膽子大 越駭越樂';
	rows[16].link = 'today-show17.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(9);
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 = '偷虛擬寶物 拘役50天';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '凱道減縮 衝擊公車動線';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '聽障奧運 徵求志工伸援「手」';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '機車掛看板 平日禁停路邊';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '陽澄湖大閘蟹 15日上市';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '調茶大賽 辣妹型男比創意';
	rows[8].link = 'today-taipei9.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '桃園財神廟火狂燒 香客沒嚇跑';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '苗警破地下兵工廠 起出大批槍彈';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '視訊探監 家屬叫好 受刑人不愛';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '服飾店抓賊 張貼懸賞海報';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '多雨少泥沙，石門水庫解渴';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '竹南蛇窯 採集到歷史陶片石器';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '汽油桶炭烤爐 凝聚人氣好幫手';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '都市原住民 不畏風雨豐年祭';
	rows[7].link = 'today-north8.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 = '運送200萬金飾 小解後被偷光';
	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 = '社會局接救命信…虛驚一場';
	rows[10].link = 'today-center11.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-south1.htm';
																										
	rows[1].text = '自創品牌 乳香柚出頭天';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '砰砰砰...衝撞6車 府城驚夢';
	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 = '輪狀病毒 75％嬰幼兒得過';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '兒童課輔 弱勢家庭享溫馨';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '展愛服務車 社區忙邀請';
	rows[7].link = 'today-south8.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '光榮九月九 台灣紅不讓';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '審計部之恥 「湊發票」錯誤指示 衍生今日紛爭';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '檢察官偵訊總統，違憲！';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '禮義廉恥的氣球 吹開了道德法櫃';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '《曹長青專欄》對邪惡要有想像力--九一一省思：識破那用「高尚的目的」包裝不擇手段的邪惡';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '請饒了小朋友';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '越來越狠';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '暴力 煽動中';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '紅衣不宜 生病有罪';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '捷運不支持倒扁？';
	rows[9].link = 'today-o10.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '鑽錶3高';
	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 = 'Horse馬術時尚Power';
	rows[3].link = 'today-fashion4.htm';
																										
	rows[4].text = '主流拍照手機 200萬畫素俱樂部';
	rows[4].link = 'today-fashion5.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 = '寶寶喝母奶 親子互動多<br>有安全感 有助日後抗壓';
	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 = '懷孕初期的下肢水腫';
	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 = '關鍵字A-Z';
	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 = '台灣獎 看見台灣年輕人的力量';
	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 = '陳芸芸、陳煒智共同執筆<br>音樂劇史記出爐';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '漢諾威鋼琴旅人<br>范姜毅鋼琴獨奏會';
	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 = '香港中環超好逛小店';
	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';
}