//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
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 = '闊別32年 華航復航大阪';
	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 = '11萬考生 今齊赴考場';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'EIU預測最新經濟情勢 台灣明年優於今年';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '今、明年 亞洲成長最猛 美將減緩';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '逾700億勞退基金動不了';
	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(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "賓拉丹煽動？ 伊拉克驚爆69人死";
	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 = "300傘兵玩偶 從天而降";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "抗議印警殺人 警棍棒打群眾";
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = "《中日對照讀新聞》出生率低下&#12434;食&#12356;止&#12417;&#12427;&#12383;&#12417;&#12395;「&#12418;&#12387;&#12392;&#12475;&#12483;&#12463;&#12473;&#12434;」 抑制出生率下滑 「請多作愛」";
	rows[9].link = 'today-int10.htm';
																										
	rows[10].text = "《中英對照讀新聞》Adidas best placed in World Cup quarter finals 愛迪達在世界盃足球賽前八強的名次最好";
	rows[10].link = 'today-int11.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '外遇事發 村長納妾 2人出軌 2家傷';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '收千萬判無罪 資深法官收押';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '南迴案 傳訊李聚寶';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '被嗆聽嘸 中國媳狠砍78歲翁';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '富祥16號返抵金山 船長否認越界捕魚';
	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 = '代課老師 性侵4國中女';
	rows[7].link = 'today-so8.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '用節能家電 省3成電費';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '打造台灣薰腦 向德取經';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '診所未給處方箋 3月後懲處';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '伍焜玉 接掌國衛院';
	rows[4].link = 'today-life5.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《2006世界盃足球賽》PK獵英 葡晉四強';
	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世界盃足球賽》逢12年週期 義有決賽命?';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《2006世界盃足球賽》大器晚成 托尼有羅西的影子';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《2006世界盃足球賽》核心巴拉克 助攻不居功';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《2006世界盃足球賽》歷史老師說︰別跟德佬拚PK';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '阿格西 微笑告別溫布頓';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '吳偲佑跨季11連勝';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '象迷吶喊：給我二軍';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '《美國女子高球公開賽》曾雅妮 暫列28';
	rows[10].link = 'today-sp11.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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].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';
																										
}
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 = '黃金、能源類股 跌深漲得快';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '揮別14年低潮 德股搶眼';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '變數漸消除 台股Q3樂觀';
	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 = 'Jolin不乖 騎黃立行';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '男友泡乃劈腿 小禎崩潰痛哭';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '季芹爆奶小S包2奶 尷尬撞衫';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '鄭怡搬「加」2年 省了化妝品';
	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 = '蔡康永掛保證 詹仁雄肯定是Gay?';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '勇樣窮緊張 崔智友零食王';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '李秉憲上街頭 Rain爽約落跑';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '強叔1首歌賣3千萬 潔蜜瑪擺脫休葛蘭';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '妮可鴛鴦戲水 蜜月甜如蜜';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '小野貓引起騷動 公仔娃娃流產';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '李安爭睹柏格曼丰采';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '維多莉亞 攜子聽歌劇裝高貴';
	rows[15].link = 'today-show16.htm';
																										
	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(10);
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 = '租車行追未還車 GPS找到屍骨';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '刑事線上學習 檢測e手掌握';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '大學指考首日 北台情況良好';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '申請未准仍攀山 師大6人挨罰';
	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';
																										
	rows[8].text = '柏油鋪不到1天 樹林中山路破相';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '北縣蝴蝶季起跑 新莊招蜂引蝶';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-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';
																										
	rows[8].text = '前桃縣議員座車內皮包遭竊';
	rows[8].link = 'today-north9.htm';
																										
	rows[9].text = '社會傳真／毒品藏吸管 難逃警伯法眼';
	rows[9].link = 'today-north10.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 = '法官撤銷行政罰鍰 監理所抗告';
	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萬灌到18萬元…酒店灌單 常客發飆';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '吃完消夜酒駕 警局前連環撞';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '毒品通緝犯想燒炭… 員警逮捕送入監 救他一命';
	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 = '毒蟲 開房間吸毒 1死1摔傷';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '禁果 女友讀國一 成年男觸法';
	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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '豪華列車vs.死亡台車';
	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(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '內湖鯉魚山踏青  一覽大台北風光';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '紅茶故鄉南投魚池 鬥陣採茶去';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '滯洪公園 綠意遊';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '親山賞古剎  身心靈淨化';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '霧靄中茶香裊裊 遠山湖影盡收眼底';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '湖畔野餐 夜市大啖小吃';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '板土線捷運  周邊美食一網打盡';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '捷運沿線吃一遭  美味不錯過';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '台中寧夏路  飄散牛軋糖濃郁香味';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '純手工製作牛軋糖 香濃夠味';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '圓扁泡芙 咬一口甜蜜蜜';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = 'TAIPEI 101完全入鏡 100％成功 拍照地點大公開';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	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';
}