//===========================================================================
//基本設定
//==================== 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(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(10);
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 = '直航2原則 台聯堅不讓步';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '國營事業預算 卡住建設';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '檢察總長難產 群檢無首';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '軍購未過關 自主防衛現危機';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '監理會無影 勞退基金動不得';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '丁渝洲 質疑國安報告';
	rows[9].link = 'today-p10.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "印尼強震 震央班圖爾 只剩1棟沒倒";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "WHO首度要求克流感藥廠備妥庫存";
	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 = "《中英對照讀新聞》Slugs and snails? Not today's boys 懶散? 不是今天的男孩子";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中日對照讀新聞》阿波踊&#12426;協&#20250;、&#12489;&#12452;&#12484;&#12391;&#12399;「卍」&#12420;&#12417;&#12414;&#12377; 日阿波舞協會在德捨棄「卍」符號";
	rows[7].link = 'today-int8.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 = '檢警錯愕！ 李泰安釋回';
	rows[0].link = 'today-so1.htm';
	rows[0].type = "南迴鐵道搞軌案特別報導";
																										
	rows[1].text = '合議庭2：1 李泰安險被收押';
	rows[1].link = 'today-so2.htm';
	rows[1].type = "南迴鐵道搞軌案特別報導";
																										
	rows[2].text = '「這是從警生涯最大挫敗」';
	rows[2].link = 'today-so3.htm';
	rows[2].type = "南迴鐵道搞軌案特別報導";
																										
	rows[3].text = '陳氏命案尚未審結 部分保險暫不理賠';
	rows[3].link = 'today-so4.htm';
	rows[3].type = "南迴鐵道搞軌案特別報導";
																										
	rows[4].text = '翻車壓垮芒果樹 賠償金至今談不攏';
	rows[4].link = 'today-so5.htm';
	rows[4].type = "南迴鐵道搞軌案特別報導";
																										
	rows[5].text = '高碧霞遺憾 吳漢成哭了';
	rows[5].link = 'today-so6.htm';
	rows[5].type = "南迴鐵道搞軌案特別報導";
																										
	rows[6].text = '酒測飛來黃禍 辣妹要警員拿出來吹';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '少年等紅燈 飆仔尋仇錯殺';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '半夜公園澆水 8年不停歇';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '嫁玻璃娃娃 生玻璃娃娃 許慈光 真愛不移';
	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 = '阮朝日228紀念館 最後一次開門';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-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 = '恩主公醫院規避回繳7千萬';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '處理問題鈣粉 衛署三管齊下';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '重度睡眠呼吸中止 可領殘障手冊';
	rows[8].link = 'today-life9.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 = '皇家克洋基 終止13連敗';
	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 = '成棒培訓45人名單出爐';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《2006世界盃足球賽》維安大漏洞 小羅遭強吻';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《2006世界盃足球賽》英國出賽日 老闆不准假';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《東北角峰迴路轉自行車賽》冠亞軍同樂 師兄弟牽手衝線';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《NBA》太陽第4節13投落空 小牛守住勝利';
	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(4);
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';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-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 = '美股反彈 面臨許多挑戰';
	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';
																										
	rows[8].text = '今年冰粽 銷路特別好';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '黃維生募款長才 為信保拚業績';
	rows[9].link = 'today-stock10.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 = '印尼爪哇強震 逾3千人喪生';
	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 = '千呼萬喚 王菲生了！ 李小妹 4千公克胖娃';
	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 = '蕭淑慎蜜桃臀挨針 護士嫌下垂';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '嘻哈藍正龍 秀舞技嚇老媽';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '183club愛心網拍 邀粉絲共襄盛舉';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '路嘉怡密會製作人 投懷送抱笑開懷';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '《2006坎城影展》白靈化身上海寶貝 大膽嘿咻不設限';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '《2006坎城影展》玩美女人呼聲高 小潘潘后勢看漲';
	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(2);
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';
																
}
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 = '改裝車狂飆 車毀1死2傷';
	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 = '60多歲海豹潛艦 基隆開放參觀';
	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 = '國中基本學力測驗 多數違規 不夠機警';
	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(6);
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 = '錢莊死要錢 借3萬押人逼還9萬';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '女組頭跑路 找人冒夫貸款還債';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '業者拚經濟搶載傷病患 民間救護車沒漆119';
	rows[5].link = 'today-north6.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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-center1.htm';
																										
	rows[1].text = '雨中草叢棄嬰 爸媽送辦';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '持電擊棒行搶 查獲嫌犯';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '士官長疑酒駕未脫險 2同車人亡';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '2自小客車擦撞 4人受傷';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '加起來180歲男女同居 子女引為恥';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '《社會傳真》搗餐飲部豔窟 查獲多名越女';
	rows[6].link = 'today-center7.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 = '60分利暴力討債 8嫌落網';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '抓賊抓到同志 員警遭咬驚魂';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '澎警關懷弱勢 兒童、少年Happy行';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '月光蓮 邀你免費共賞';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '學測63級分 他，找回自己';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '攔截搖頭轟趴 逮3嫌';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '47位打火兄  順利救1人';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '汽修廠全毀 2員工燙傷';
	rows[7].link = 'today-south8.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 = 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 = '開心畢業囉！創意畢旅3提案';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '畢業光碟DIY<br>留住永恆青澀回憶';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '線上部落格同學會<br>友誼即時 update';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '台北地下街 逗陣找樂子';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '鹽巴妙用23招';
		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';
}