//===========================================================================
//基本設定
//==================== 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(5);
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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '治水、石門水庫整治優先';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '謝長廷：罷免投票 泛藍先分裂';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '國務機要費明細 府明交審計部';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '卓榮泰駁孫大千 記取舔耳案教訓';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '民盟發起靜坐 超越藍綠對立';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '見扁嫂才升官？ 李傑告李慶華';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '總統：將官晉升 公正公開';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '網友掛我國旗被捕 民進黨籲中國立即放人';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '中和黨產移轉 國產局：啟人疑竇';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '多明尼加總統來訪';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '多國總統與索沙 新莊開球';
	rows[11].link = 'today-p12.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 = "民怨罷官 東帝汶總理下台";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "世代交替 越南三巨頭換血";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "射程涵蓋全美 北韓研發新導彈";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "實踐亡妻願 巴菲特積極行善";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "蓋茲模式 恐加速慈善企業化之風";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "莫斯科 全球最貴之都";
	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 = "梅鐸  最有影響力澳洲人";
	rows[9].link = 'today-int10.htm';
																										
	rows[10].text = "《中英對照讀新聞》Think your office is a zoo? Companies go pet-friendly 覺得你的辦公室像動物園嗎？公司開始接納寵物";
	rows[10].link = 'today-int11.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
				
	rows[0].text = '楊雙五30萬交保';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '涉索封口費 羅宗勝80萬交保';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '詐賭案 胡技烜認罪';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '聽聞妻遭詐騙 李泰安落淚';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '金鳳隊太妹 圍毆少年腦死';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '教太嚴父之過 要子趴地舔飯菜';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '遭性侵大學女 吞藥自殺險死';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '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 = '老師求婚記 澎湖縣府上演甜蜜蜜';
	rows[10].link = 'today-so11.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 = '汽車DNA防盜 政院扮推手';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '機車烙碼 三個月竊案少兩成';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '三重→機場捷運 99年完工';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '北台八縣市 贊成捷運南延';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '環島苦行 捍衛生態美';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '地下水限用 環署沒膽公告';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '裸體反核四 一點不露演出';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '近視泳鏡 比隱形眼鏡好';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '職災致死風險 抽菸比不抽菸高3倍';
	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(16);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《2006世界盃足球賽》8強 義外晉級';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《2006世界盃足球賽》托提贖罪 義氣風發';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《2006世界盃足球賽》希丁克神話 到此為止';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《2006世界盃足球賽》紅黃牌亂鬥 葡踩荷晉級';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《2006世界盃足球賽》16黃4紅 破紀錄';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《2006世界盃足球賽》足總不爽 賞黃牌';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《2006世界盃足球賽》海廷加 導火線';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《2006世界盃足球賽》自由之星--葡萄牙．斯科拉里';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《2006世界盃足球賽》巴西遇迦 就怕被冒犯';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《2006世界盃足球賽》法軍老邁 西不放眼裡';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '《2006世界盃足球賽》小貝 連3屆進球';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '索沙 等待再起';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '象後援 又砸鍋';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '今在家登基？ 熊低調';
	rows[13].link = 'today-sp14.htm';
																										
	rows[14].text = '比爾藥檢未過 獅解約';
	rows[14].link = 'today-sp15.htm';
																										
	rows[15].text = '澳百顆足球 贈偏遠學校';
	rows[15].link = 'today-sp16.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 = '官方促成農銀併入合庫 蘇天財求償1.5億';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '下半年景氣 44.9%製造業樂觀';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '服務業創造就業 仍有成長空間';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '5月M2年增率 近年度目標區上限';
	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 = '下半年南部國有地標售 總值逾20億';
	rows[11].link = 'today-e12.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 = '升息傷經濟？各國央行總裁解疑';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '美升息在即 台幣貶1.3分';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '《理財Q&A》外匯變化大  買貨幣型基金風險小';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '奇美電、LPL 延緩次世代廠';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '營建偏多 長虹今法說會';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '被動元件股反彈 華新科領軍';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = 'LED新兵上櫃 比價呼之欲出';
	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 = '罷扁今對決 警佈陣防暴';
	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 = '選美皇后李妍瑾 拒包養遭恐嚇';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '6旬王羽愛把妹 勤健身一尾活龍';
	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 = 'Hip Hop Honeys 冶豔舞嘻哈 熱淚闖星途';
	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 = '妮可幸福出洞房 砸825萬度蜜月';
	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 = '李準基銀幕帥勁 壓過呆頭Rain';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '不升學國中畢業生 輔導學技能';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '學童過馬路 保全員當導護';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '健身服務業 可進駐工業區';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '第3例登革熱 東南亞旅遊要當心';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = 'FUN暑假 博物館活動一籮筐';
	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 = '拉子媽媽組聯盟 女同志爭取母權';
	rows[7].link = 'today-taipei8.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 = '妻殺智障女 夫當庭求情';
	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';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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-center1.htm';
																										
	rows[1].text = '加油風波互毆致命 3嫌判刑逾7年';
	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 = '傷妻毆父母 家暴男動粗判8月';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '200多公斤鋼模從天降 工人遭重擊…命危';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '社會傳真／涉期約賄選 1家3口被訴';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
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-south1.htm';
																										
	rows[1].text = '部落豐年祭 台東熱一夏';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '荖濃泛舟 吃出勇氣';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '白河賞蓮 e網打盡';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '兩岸交流 座談會 跨出對話的第一步';
	rows[4].link = 'today-south5.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 = 'ipod手機 只是想像？';
	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(4);
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';
																										
	rows[3].text = '我的印度婆婆';
	rows[3].link = 'today-family4.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
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-medicine1.htm';
																										
	rows[1].text = '新胚胎冷凍技術<br>提升試管嬰兒成功率';
	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 = 'Ｂ肝病毒易引發肝癌<br>治療後仍要定期檢查';
	rows[4].link = 'today-medicine5.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
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-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';
																										
	rows[6].text = '念念，多重奏';
	rows[6].link = 'today-article7.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
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-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 = '葛斯里劇院 改寫城市景觀';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '大提琴博士謝宜璇返國演出';
	rows[5].link = 'today-art6.htm';
																										
	rows[6].text = '逆水行舟 不進則退<br>北市交欠缺預算支持 觀眾逐漸流失';
	rows[6].link = 'today-art7.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';
}