//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = true;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '落實轉型正義 扁舉蔣家 決檢討禮遇慣例';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '剩餘特別費若未繳庫 王永興：馬有貪瀆嫌疑';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '蘇振平出國17天  綠委氣炸';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '追特別費 綠委決告發27人';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '扁嫂可能遭停權以上處分';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '扁見王：特別費法制化';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '馬特別費帳目 60個月遭竄改';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '綠批：馬捐錢 不改中飽私囊事實';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '綠委爆料 北市府每晚開會串供';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '余文上班 責任一肩扛';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '就法論法／捐出犯罪所得 不能免責';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '免單據特別費 馬疑公私不分';
	rows[11].link = 'today-fo12.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(9);
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 = '涉4弊案 顏萬進合併求刑20年10月';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '檢方認為 北纜案市府有行政疏失';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '前苗縣議長饒鴻奇涉貪 求刑10年';
	rows[8].link = 'today-p9.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "阻行星撞地球 NASA太空狙殺";
	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 = "e霸凌 散播病毒勒索同學";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "  悄悄擴張宇宙";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照》Manners maketh millionaires舉止造就百萬富豪";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '挾安親班16師生 引爆炸藥';
	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 = '抓猴？李慧芬、邱獻章互告';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '30年尋親夢 熱心警助團圓';
	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';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '玉山運補直升機 疑非法載客登頂';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '遠航急降案 韓方交我調查';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '早生貴子！婚喪喜慶歧視女性';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '全球首隻Ｂ肝鼠 台大培養成功';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '兒童在台灣  生存權49分';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '市售雞蛋麵 逾半添色素';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '苗栗假面節 節慶之美';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '高山植物 面臨滅絕';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(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 = '王建民簽名會 16500起跳';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '郭泓志 退伍了';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '6年不見 中職球員卡復出';
	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 = '一顆老鼠屎 壞了一鍋粥';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '火箭 差點又晚節不保';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '澳荷戰 連裁判也抗議';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '治貧打 葉志仙有藥方';
	rows[12].link = 'today-sp13.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(10);
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 = '環球透視預期 Fed明年降息２至３碼';
	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 = '油國未減產 油價跌至17月新低';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '部分通路商︰PS3不合理搭售 拒進貨';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '前三季購屋糾紛 漏水問題最嚴重';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = 'VISA晶片金融卡 刷卡優惠多';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '現金贈與子女被查獲 須補稅、罰鍰';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '金仲獎 74房仲經紀人獲獎';
	rows[9].link = 'today-e10.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'DRAM產能續增 法人看好';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '資金轉進 中低價電子股看俏';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = 'DisplaySearch預估／液晶電視銷售 每年至少成長40%';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '侵權爭訟難息 中芯再告台積電';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '吸引外商掛牌 TDR信用交易將鬆綁';
	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 = '股訊要覽';
	rows[7].link = 'today-stock8.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(12);
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 = '樂基兒裸照曝光 黎明暴怒咆哮';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '佘詩曼跳艷舞 不認耍手段奪獎';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '南京氣溫驟降 183全病倒 上台硬ㄍㄧㄥ 一條龍';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '馬世莉跳樓自殺 跪求鄭元暢救命';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '尹馨吊帶遮雙峰 露大腿夾鋼管';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '李奧納多走私鑽石 樹起環保旗幟';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '阿湯哥今娶凱蒂 妮可祝福';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '朴恩惠哈台 樂當仔仔超級粉絲';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '中居 仲間搶救紅白大作戰';
	rows[11].link = 'today-show12.htm';
																										
}
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(6);
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 = '中山堂將滿70週年 影音同慶';
	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 = '華山特區 上演SM繩縛秀';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '強迫繼女看A片 不做事就當妓女';
	rows[5].link = 'today-taipei6.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 = '老婦有房子、存款 偷218元食物';
	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 = '闊別50年 彭蒙惠回故鄉';
	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 = '上楓國小會打氣 舞龍全國第一';
	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 = '雲敬老電子鍋弊案 議員林再添求刑15年';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '竊車勒贖解體賣 削千萬 拿贖金不還車 逮5嫌';
	rows[5].link = 'today-center6.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '3年被追咬3次 婦人不「狗」同';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '高捷塌陷案 3日人被訴';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '玉井國小老校友 白髮蒼蒼喜相逢';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '和順工業區污水廠 官員互推權責';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '紅杉九孔 林園漁會再放流';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '海博會開幕 豪華遊艇迎賓';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '部落會議未定位 原鄉新亂源';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '森林學苑 重現大武山精神';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '中央允補助 關山興建示範無塵稻米加工廠';
	rows[8].link = 'today-south9.htm';
																										
	rows[9].text = '知本天主堂 走過半世紀';
	rows[9].link = 'today-south10.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(5);
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';
																										
}
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 = '主廚帶路<br>南門市場趴趴走 江浙美味不錯過';
		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 = '該記的記得 該忘的忘記';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	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-house1.htm';
																											
		rows[1].text = '米蘭小鎮 與萬坪自然保護區為鄰';
		rows[1].link = 'today-house2.htm';
																											
		rows[2].text = '視界首席 面對台大竹北分部預定地';
		rows[2].link = 'today-house3.htm';
																											
		rows[3].text = '藏韻 近高鐵烏日站 坐擁雙綠意';
		rows[3].link = 'today-house4.htm';
																											
		rows[4].text = '京典 近捷運紅線站 飽覽校園綠景';
		rows[4].link = 'today-house5.htm';
																											
		rows[5].text = '開孕風水 生個健康寶寶';
		rows[5].link = 'today-house6.htm';
																											
		rows[6].text = '老屋出售或增貸？ 精打細算';
		rows[6].link = 'today-house7.htm';
																											
		rows[7].text = '防治白蟻 拒當一家人';
		rows[7].link = 'today-house8.htm';
																											
		rows[8].text = '養生住宅 全台竄紅';
		rows[8].link = 'today-house9.htm';
																											
		rows[9].text = '樓梯收納 解決惱人雜物';
		rows[9].link = 'today-house10.htm';
																											
		rows[10].text = '排油煙機聰明驗收 做菜更健康';
		rows[10].link = 'today-house11.htm';
																											
		rows[11].text = '《房地產紙上叩應》空地欲蓋建物，應注意哪些問題？';
		rows[11].link = 'today-house12.htm';
																											
	}
	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';
}