//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('生活週報'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '院、黨、黨團 構築鐵三角';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '新系暫不接新職';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '王組多數聯盟？ 不被看好';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '吳乃仁將辭 福利國：新系棄扁保黨';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '泛藍若倒閣 民進黨將籲扁解散國會';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '美關切台灣政局 薄瑞光將來台會扁';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '缺乏正當性 王金平：倒閣不易';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '國親擬聯手 週六再嗆扁';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '呂秀蓮 邀在野喝藍海咖啡';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '胡勝正 信心喊話';
	rows[9].link = 'today-fo10.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(11);
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 = '立院臨時會 最快13日召開';
	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';
																										
	rows[10].text = '呂秀蓮 盼打造安全台灣';
	rows[10].link = 'today-p11.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 = "《國際索隱》伊核問題 恐陷四方會談窠臼";
	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 = "《中英對照讀新聞》Unhappy home link to appearance 不快樂的家庭影響外型";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '李泰安嫌疑大 羈押抗告駁回';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '一朗控告台灣創信 顧情誼求償金降價';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '高雄SOGO摸彩獎品 職員暗槓轉賣';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '「慈恩園」執行長座車 被開槍';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '3個月內連生2胎? 診所開假出生證明';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '低頭撿打火機 駕車猛衝撞3死';
	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';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '肝癌殺人 C肝成長率居冠';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = 'C肝盛行區 撐病苦等醫生';
	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 = '避免高中職「假資優」現象 原民生加分比率降低';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '分數至上 資優教育變調';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '北市家禽市場鴨隻驗出H5N6病毒';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '國際郵展 何沐源獲大金牌獎';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '拼裝車 山海來去拚經濟';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '鐵道迷圓駕駛夢 重溫志工樂';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '第1輛電氣化機車頭 E101退役 開進鐵路博物館';
	rows[10].link = 'today-life11.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '《2006世界盃足球賽》荷蘭折損3主將';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '熱火 苦思擒牛大計';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '納達爾獵兔 辛吉絲馴黑馬';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '美巡賽 南韓新秀氣走球后';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《職撞賽第二站》吳珈慶拚過頭 楊清順大逆轉';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '郭泓志後援 無失分';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '王建民 明挑戰對紅襪首勝';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '每週首戰敗 熊爭冠密碼難解';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '蔡英峰 渴望冠軍滋味';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '林威助 下放二軍';
	rows[10].link = 'today-sp11.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台北電腦展 1312廠商搶商機';
	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 = '4月WPI年增率 1.5年來新高';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '台企銀將改選 中纖拚2席董事';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '勞保基金 200億錢進股市';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '悠遊聯名卡 銀行比優惠';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '歐元對美元 升至1年來新高';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '《理財Q&A》附卡持有人 有連帶清償責任';
	rows[8].link = 'today-e9.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(9);
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 = '孫大衛︰DDR2下半年看好';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '台塑︰塑化景氣 後年才見谷底';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '網家、eBAY合資 搞網拍';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '鴻海進軍高階影音市場';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '明基集團目標200億美元';
	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';
																										
}
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 = '政局紛擾 股市慘跌244點';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '小豬硬拉Jolin炒飯';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '譚詠麟扮黃帝 欽點雙姝伴遊';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '曹格成績HITO 和TANK搶新人王';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '李安今返台 力捧台版章子怡';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = 'Twins火警逃生 念念不忘便當';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '蔡健雅來印的 甩出好滋味';
	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';
																										
}
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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '身分遭冒用 警局跑1年';
	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 = '愛滋帶原者 34人失聯';
	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 = '甩竿遊客怕怕 淡水河岸嚴禁釣魚';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '漁光國小將說再見 坪林人不捨';
	rows[8].link = 'today-taipei9.htm';
																										
}
menu = null;

menu = getMenu('north');
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-north1.htm';
																										
	rows[1].text = '外勞三隻手 針孔下現形';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '苗聯堂口被抄 1女13男均起訴';
	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 = '2件性侵案 4人判重刑';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '老翁覬覦孫女 猥褻判6月';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '社會傳真／基隆婦人墜樓 家屬疑死因';
	rows[7].link = 'today-north8.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 = '圍剿竊盜集團 起出4噸電纜';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '栽贓行賄 檢舉人招供10萬交保';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '造假證明 醫師等5人被訴';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '大同畢旅車禍 司機判3年6月';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '性侵妹妹 哥哥判1年10月';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '猥褻女兒 狼爸改判刑9月';
	rows[5].link = 'today-center6.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '99對有情人 共度甲仙牽手橋';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '香爐大盜落網 又是毒品害人';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '查賄 屏東3樁腳收押';
	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 = '空中走私 檳榔運費高出海運5倍';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '死意堅決 眾目睽睽臥軌當場身亡';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '船出意外 主機故障致二港口封閉';
	rows[7].link = 'today-south8.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(12);
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';
																										
	rows[10].text = '女性專用車廂 有道理';
	rows[10].link = 'today-o11.htm';
																										
	rows[11].text = '最愛的節目與版面';
	rows[11].link = 'today-o12.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(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '藍芽耳機  聽音樂 講流行';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '玩錶 中價位高水準';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '閒暇4享受';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '全球前三大<br>台北國際電腦展不看就落伍';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-family1.htm';
																										
	rows[1].text = '只是性 輕鬆以對';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '幼兒衛生做好 阻絕傳染';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '轉個念頭 相處更容易';
	rows[3].link = 'today-family4.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '戽斗<br>提早治療 迎接好運';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '先生有Ｂ肝又易怒<br>怕病變建議先檢查';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '小孩不願走路<br>竟是白血病作怪';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '預防接種有變化<br>家有寶寶要注意';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '子宮肌瘤<br>婦科最常見的腫瘤';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '光纖二極體雷射<br>美白新利器';
	rows[5].link = 'today-medicine6.htm';
																										
	rows[6].text = '腰椎狹窄症<br>讓人舉步維艱';
	rows[6].link = 'today-medicine7.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-article1.htm';
																										
	rows[1].text = '尋找鄧麗君';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '《線索》';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '心軌';
	rows[3].link = 'today-article4.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '國美館館長又要換人？<br>來來去去 兩年內更換四任館長';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '舞王麥可佛萊利復出  引起網路熱烈討論';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '3D虛擬雕塑館線上開館<br>前輩雕塑家蒲添生作品呈現新視野';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '舊金山吉他四重奏充滿默契';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '明尼亞波利美術館大手筆  花三百萬美金買畫';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '中研院近史所「遊於憶」  展出台灣歷史記憶';
	rows[5].link = 'today-art6.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '澳門 High人之處';
	rows[0].link = 'today-travel1.htm';
																										
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	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';
}
