//===========================================================================
//基本設定
//==================== 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(10);
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 = '合作探勘 中油付1700萬美元';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '金曲歌手MV 幽默諷藍綠';
	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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "中國開採春曉油氣田 日將報復";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "歐洲擬造全球最大望遠鏡";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "落難香港 台客指國泰航空歧視";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "遏阻狂犬病 中國將再殺50萬狗";
	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 = "《中英對照讀新聞》First China alternative marriage Web site thrives 中國首個另類婚姻網站大受歡迎";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中日對照讀新聞》&#12463;&#12521;&#12466;&#12391;日本&#12398;原&#30330;、出力抑制 日核電廠因水母而降低功率";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '48歲婦色劫1.6億珠寶';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '詐騙慣犯 口才好外表唬人';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '美破門盜寶團 橫掃12州56商家';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '不堪逼債尋短 1家5口成屍';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '漁船竄火 眼睜睜看損失700萬';
	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 = '老父訟走女兒案／女反控訴 「父失智 兄控制」';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '維多利亞街頭報警 怒抓狗仔';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '黑道vs.陳純甄 1天內還180萬債全消';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '找路不算錢 正直司機網路爆紅';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '墨西哥摔角神父 鐵拳掙錢濟孤雛';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '棄高薪 捐家業 庇護工場 哥哥倒貼';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'ETC三月決策轉彎解密 郭瑤琪證實：高層介入中止接管';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '跨國收集10噸便便 為百萬人健檢';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '長痘痘 35％有腸胃道問題';
	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 = '拉拔2罕病兒自立 張坤城不言苦';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '光榮父親節 侯友宜探視公傷勇警張价傳';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '父親節尋親 伯大尼喜憨兒 聲聲喚親人';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '最愛爸爸童詩創作 化身筷子雨傘 老爸都願意';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '台灣嚴選4小將   出戰資訊奧林匹亞競賽';
	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 = '暑假不提供宿舍 國立研究所 低收入戶讀不起';
	rows[13].link = 'today-life14.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 = '換約背景 比他人更具優勢';
	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 = '百變巴克斯 熊注活水';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '信民宜民「內鬥」鯨得利';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《世界盃女子棒球賽》輸美 無緣爭冠';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《小馬聯盟亞太區青少棒賽》輸日 赴美無望';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《亞洲9號球巡迴賽》夏揮凱 孤軍晉四強';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '蘭迪斯藥檢複檢 還是陽性';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '《菁英盃高中籃賽》淡商單日2敗 3連后夢碎';
	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(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 = '紐約期油 跌回74.76美元';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '《品牌故事》La new 氣墊鞋王牌';
	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(7);
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 = '證券股填息表現 一度讚';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '營運轉佳 大同可望虧轉盈';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '中華電ADR 最快9月發行';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '大榮漲最多 振遠科慘跌';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '《期指觀測站》跌落十日線 有測底危機';
	rows[6].link = 'today-stock7.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(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '失戀盟友相約K歌 Jolin嗆辣 GiGi快閃';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '手機號碼外洩 歌迷嗆聲 潘瑋柏生日不快樂';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '趙傳清唱小小鳥 3千粉絲合聲';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '網友惡搞黑澀會 美眉陷桃色風暴';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '1集12萬 陳美鳳跨台當貴夫人';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '阿榮片廠照常運作 周董有功';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '17年單親爸爸 張菲自評100分';
	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 = '小布最Hot奶爸 老麥最High孝子';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '丹尼爾施魔法 身價飆5億';
	rows[10].link = 'today-show11.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(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '義民祭 小巨蛋迎客來';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '美食嘉年華 食在好豆趣';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '鬼月嘉年華 小朋友扮鬼臉 群魔亂舞';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '辛亥隧道翻修 夜間交管';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '一紙契約 女有「祭」承權';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '消防美眉 麻豆外型 熱情如火';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '柴烤麵包 淡水起爐';
	rows[6].link = 'today-taipei7.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 = '北埔膨風節 DIY製茶挑燈夜戰';
	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(6);
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 = '同業惡鬥？8黑衣人砸補習班';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '17歲少女車禍亡 家屬申冤未果';
	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';
																										
}
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 = '存證信函攻防 婚外情露餡';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '嗡嗡嗡...30萬隻蜜蜂上身';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '愛河畔 普渡台灣魂';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '器捐感恩追思會 成醫滿溫馨';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '曬書節登場 炎夏閱讀樂';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '鹽分地帶文藝營 一窺福佬文學';
	rows[7].link = 'today-south8.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '水道水110週年';
	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 = '祕密帳戶？問google！';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '七十年後看台灣的今天';
	rows[6].link = 'today-o7.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 = '名店名菜大破解<br>紅毛港海鮮餐廳 黑胡椒螃蟹';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '夏日玩樂星主張';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '父親節近了 關懷老爸有無代謝症候群';
		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';
}