//===========================================================================
//基本設定
//==================== 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(8);
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';
																										
	rows[7].text = '澄清呂王配 台聯批媒體扭曲';
	rows[7].link = 'today-fo8.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '趙玉柱200萬交保 限制出境';
	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';
																										
}
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 = "開打份子激進留言 巴格達連環爆";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "少了屠夫賣點 開打募款更困難";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "泰王登基60週年 百萬人面聖";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "日防衛廳升格案 提交國會";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "青少年手機狂 通常不快樂";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "全球女性福音 子宮頸癌疫苗上市";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "模擬人手觸覺 美研發奈米機械手";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中英對照讀新聞》Football widows invited to indulge at World Cup free hotel 足球寡婦受邀在沒有世界盃足球賽的旅館享受一番";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '女學生通姦 判父母賠50萬';
	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 = '空中巴士機場撞車報廢 國賠逾5億創紀錄';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '威脅掐死baby  獸男性侵揹嬰女';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '征服10級風浪 救回1條小命';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '查獲K他命108公斤 市價上億';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '當著6歲女童面 染指16歲姊姊';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '視訊脫衣驗貨 側錄要脅上床';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '百歲人瑞 熱戀50歲女友';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '送糖果到西非 回響甜蜜蜜';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '戒毒小玉 獲得新生做公益';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '名醫吳昇龍 改當防癌義工';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '腦麻吳宜倫 畫作感動人心';
	rows[14].link = 'today-so15.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 = '台灣5人展 今起日美術館亮相';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '醫院診所 公然A病患';
	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 = '北縣225無預警停水 消基會代求償';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '《大學指考考前衝刺》英文 - 翻譯、作文 要留20分鐘作答';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '中南部大水災';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '農損近3億 菜價飆漲';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《2006世界盃足球賽》開幕戰 4：2 「德」勝';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《2006世界盃足球賽》優雅開幕 德到讚揚';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《2006世界盃足球賽》阿根廷梅西 初役坐板凳';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《2006世界盃足球賽》首戰巴拉圭 英最怕翻船';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《2006世界盃足球賽》新兵千里達 挑戰瑞典軍';
	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 = '小莊 16強唯一倖存';
	rows[8].link = 'today-sp9.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 = '不理外資賣超 台股大漲112點';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '亞股走高 新興市場回漲';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '台企銀改選 工會獲2董1監';
	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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '廣達、仁寶 Q3仍樂觀';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '鴻海 5月營收較上月下滑約7%';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '表現亮眼 LED族群帶頭反彈';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '宏達電不到85億 明基微幅成長';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '降奇美電目標價 下修為29元';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '《期指觀測站》升息衝擊 資金動能趨緩';
	rows[5].link = 'today-stock6.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(18);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '暗樁侯佩岑 找陶子小S鬥嘴鼓';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '小S賣肉   壓制陶子億身貴氣';
	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 = '周董 介紹Hebe給宇豪 么鬼假細利？';
	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';
																										
	rows[12].text = '葉全真遲不歸味 張鳳書復出無忘';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '超人被奪愛 扮第3者挽芳心';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '琳西尿多心不定 被雜誌封殺';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = 'Rain鶴立「肌」群 生猛尬退權相佑';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '姜至奐玩火花 進軍韓劇9點檔';
	rows[16].link = 'today-show17.htm';
																										
	rows[17].text = '金泰希報案 逮40名惡質網友';
	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 = 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(8);
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 = '142對佳偶 明走紅毯';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '喜餅禮盒包裝 43%不合格';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '拚完最後衝刺 基層選舉今投票';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '海洋音樂祭 7月中續攤';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '防汛演習 遙控直升機聲控出擊';
	rows[7].link = 'today-taipei8.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 = '涉嫌索賄色情業者 3警收押';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '為了1萬元 地下錢莊開扁開砸';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '沉迷期貨背債 醫生娘賠掉婚姻';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '屢貼海報通緝檢座 在監男被訴';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '工程師找援交被詐 女友氣跑';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '《社會傳真》疑心臟病發作 老翁車內身亡';
	rows[5].link = 'today-north6.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '樁腳當街買票 全被拍下來';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '張榮味無罪 檢方上訴挺污點證人';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '4車禍 3死1傷';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '持刀搶汽車旅館 4嫌均未滿20歲';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '拒檢、衝撞警車 警開9槍逮毒嫌';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '黑衣客連砸3酒店 鎖定1嫌';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '酒駕摔傷求開恩 法官准緩刑';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '《基層選舉查賄》濟貧？買票？埔鹽1選將聲押';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-south1.htm';
																										
	rows[1].text = '南市選將拜票 木塊砸頭';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '查賄 柳營收押2人';
	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';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《李筱峰專欄》李濤夫婦沒興趣談論的話題';
	rows[0].link = 'today-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 = '利多vs.利空';
	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 = '藍媒&ecirc;滋味';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '里長大車拚';
	rows[10].link = 'today-o11.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 = '小巧易攜咖啡濾器<br>香醇咖啡隨時泡';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '好咖啡 沖泡有撇步';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '解決惱人草莓鼻<br>黑芝麻、白芝麻 統統OUT';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = 'PS3未演先轟動<br>超越PS2大升級';
		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 = '德林行館 挑高小坪數產品 鄰近2商圈';
		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 = '20坪創造2＋1房功能 小坪數的空間放大魔法';
		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';
}