//===========================================================================
//基本設定
//==================== 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','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-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(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '親綠學者聲明：扁若辭職 立下典範';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '扁堅持… 深化本土、關懷弱勢';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '台灣社：族群問題不應窄化';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '顧忠華：扁下台理由 不夠充分';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '吳乃德：不必對呂太早下判斷';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '府：總統尊重 未來將多溝通';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '找出路 林佳龍：願催生民主永續發展會議';
	rows[6].link = 'today-fo7.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 = '官學警告 中國經濟危機四伏';
	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';
																										
}
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 = "美俄聯手 打擊核子恐怖主義";
	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 = "第6版協定 IP位址一網打盡";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Older women get it on 熟女「性」致勃勃";
	rows[6].link = 'today-int7.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 = '槍抵頭 掌摑人 被罰35萬<br>台灣龍捲風 提訟敗訴';
	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 = '被指受性招待 分局長擬提告';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '少年晚歸 遭躁母狂砍喪命';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '上廁所 毒犯30秒逃出警局';
	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 = '愛心人物誌／捐血上癮 房子，也捐了';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '侯友宜：與匪談判 重同理心';
	rows[10].link = 'today-so11.htm';
																										
}
menu = null;

menu = getMenu('life');
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 = '二次基測／國文 董永賣身、向陽詩作入題';
	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 = '缺考率4.6％ 比去年低';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '台灣古地圖 橫豎由人畫';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '怪颱雨狂 3死2傷 農損逾億元';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '船沉 千噸化學原料污染北海岸';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '連吃7碗藥燉排骨 過敏險要命';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
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 = '5連勝 小雞歹勢';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '吳總挺張賢智 爭新人王';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '劉俊男 1局丟6分';
	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 = '海峽盃 台灣隊9連霸';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《亞青田徑賽》教練發飆 陳鈺文奪銀';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '義假球案，3隊降乙級 布馮、坎納瓦洛勢必離隊';
	rows[7].link = 'today-sp8.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 = '紐約期油 創77.03美元新高';
	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 = '台積友達 實習還有好康A';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '公益活動 旺宏虧錢照辦';
	rows[5].link = 'today-e6.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 = '家有腦麻兒 折翼天使媽 義護11身障兒';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(18);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '周侯戀破局   七夕不相會';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '祝釩剛泡夜店把妹 王紹偉走後門尋歡';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '陳奕迅導舞台劇被批暴力';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '陳美鳳練拳健身 復拍愛你80年';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '王心凌 張棟樑 激吻臉抽筋';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '李晉良明年結婚  小禎：不可能';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '秦楊願折壽20年 換老爸甦醒';
	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 = 'F.I.R.vs.美眉 尬歌比分貝';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '鄺美雲自曝胎盤保青春';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '性感Jolin 口愛丞琳 李易爭寵';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '雪瑞兒賣婚6千萬 艾薇兒偷偷嫁';
	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 = '琪拉電腦豐胸 A奶升級C奶';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '金喜善搶當解語花 鬥名伎河智苑';
	rows[16].link = 'today-show17.htm';
																										
	rows[17].text = '宋承憲壓元斌 退伍最被期待';
	rows[17].link = 'today-show18.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 = 10;
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 = 10;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '他，當11年幽靈人口';
	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';
																										
	rows[7].text = '蘆洲鄉土觀光列車 29日上路';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '擺攤賣寵物 新生農市挨批';
	rows[8].link = 'today-taipei9.htm';
																										
}
menu = null;

menu = getMenu('north');
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 = '扯成傷、罵粗話 2子逆父付代價';
	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 = 'KTV黎明槍響 驚醒近鄰警分局長';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '小隊長退休前1天 破強盜案';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '《社會傳真》奮勇擒嫌犯 警戴玉龍又受傷';
	rows[6].link = 'today-north7.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '薪水還賭債 警員拿前程下注';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '與夫吵架跳橋…直落沙洲喊痛';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '毒販鬥檢警 供出小走私掩護大走私';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '性侵網友 工程師談判中伏';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '急找援交 猴急男找上女警';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '中市贓車辨識系統 再傳截報';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '辦流水席請選民 中縣議員夫婦判刑';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '《社會傳真》南彰竊案 鎖定毒蟲逮到嫌犯';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '2次基測登場 1人試場內打電動';
	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 = '不堪再受辱 夜店老闆娘報警抓狼';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '雨中撞護欄 2死';
	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';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '阿扁，和大家聊聊！';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '回到總統的高度';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '先道歉 再退黨';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '敬愛的范雲，這次我不跟';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '《李筱峰專欄》「麻豆番」美國開講';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '綠營的進步 超出你的想像';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '會比金大中、柯爾差嗎？';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '先撤換國安團隊';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = ' 民進黨不應都推給阿扁';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '要明示「贖罪」方法';
	rows[9].link = 'today-o10.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(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 = 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-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 = '蚵仔寮一日遊 漁港感覺好鮮';
		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';
}