//===========================================================================
//基本設定
//==================== 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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '中研院選出15院士 85歲夏志清創最高齡';
	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 = '將漲1.5元 客運、計程車業「油」補助';
	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 = '政院︰國民黨應還近30億黨產';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '王金平：扁沒恐嚇 中時應道歉';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = 'SOGO案 五要角對質 否認高層介入';
	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(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "北韓飛彈恫嚇 聯合國制裁案無著";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "飛彈墜海 北韓自曝其短";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "世局紛亂 布希左支右絀";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "同情心 南韓持續交往政策";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "通過發現號升空「烤」驗 鳥糞上太空";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "高輻射檢驗 每年2500加人枉死";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Germany to Link Key Points of Berlin Wall 德國將串聯柏林圍牆的關鍵哨點";
	rows[6].link = 'today-int7.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 = '放高利貸搞連鎖 害數千人';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '遇挾急智 頭鎚惡煞';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '沒樂透 失業困境 彩券商抗議';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '月中偵結 泰安鬧劇終結';
	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(5);
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 = '高中職女生哈菸 每20人有1人';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '抽檢30件現榨果汁 全不合格';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '教學卓越大學 逢甲獲選第一';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '高雄1女染本土登革熱';
	rows[4].link = 'today-life5.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《2006世界盃足球賽》又是席丹!';
	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 = '《2006世界盃足球賽》金球獎票選 10人入圍';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《2006世界盃足球賽》歐冠宿命 法捧金盃？';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《2006世界盃足球賽》構「足」美夢 扁︰2018年進32強';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《2006世界盃足球賽》總統倡議 小朋友振奮';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '王貞治胃腫瘤 將動手術';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '牛吞蛇 5連勝';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '鯨扳倒象 貝克單場MVP';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '費德爾 草地46連勝晉四強';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '錢德勒 告別公牛';
	rows[13].link = 'today-sp14.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '北市A級辦公室 Q2租金走升';
	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';
																										
	rows[4].text = '控制工程經費 鼓勵統包承攬';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '家樂福廣告不實 罰444萬';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '基金投資 宜逆向思考';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '新興市場 長線買點浮現';
	rows[7].link = 'today-e8.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 = '茂迪、MEMC 翻臉拆夥';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = 'MOTO、聯強傳合攻中國通路';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = 'DRAM填權息行情 南科接棒';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '台達電月績90億 歷史次高';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '台泥銷美水泥 可望再調漲';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '南韓分析師：LPL將虧到年底';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '威力盟月績 逆勢登高峰';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '景碩營收連15月創新高';
	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 = '少年衝進火場 叫出多人逃生';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '榮總整型醫師現代西門慶 李晉良劈腿舌吻搞鹹濕';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '張小燕傳簡訊寄相思 亡夫手機顯靈異';
	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 = '貢寮海洋音樂祭 Top實力樂團催人氣 這位太太最Hot';
	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 = '克莉絲汀熟女NO.1 裘莉吊車尾';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '親愛的變毒蟲 希拉蕊傷心離婚';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '維多莉亞指名 雪瑞兒婚紗660萬';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '押尾學 亞希子玩完 怒酸狗仔';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '鄭多彬 荷花畫成紅香蕉';
	rows[11].link = 'today-show12.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》民進黨自救之道不在解散派系而在政策的確立';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》掃興的事';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》金正日的黑色惡作劇';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(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 = '頭暈胸悶 當心毛毛樣腦病上身';
	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 = '2進屋沒錢修 三峽老街住戶怨被騙';
	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(10);
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 = '環保夏令營 學烹煮知辛勞';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '學習說故事 社區媽媽放膽開講';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '好書+少見書 匯集桃園書展';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '優質西瓜嚐鮮 週日相約觀音';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '黃聯榮造船 刻劃搏海人生';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '東區稻米交易中心營運 品質有保證';
	rows[8].link = 'today-north9.htm';
																										
	rows[9].text = '關稅局圖書館 讓學童悅讀';
	rows[9].link = 'today-north10.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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-center1.htm';
																										
	rows[1].text = '騎重機車墜谷 卡大樹…撿一命';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '投縣震災特色工程圍標案 起訴4包商';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '性侵親生女 父親求刑15年';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '借錢索名片致謝？皮夾搶了就跑';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = 'A原民會補助 前立委全文盛判刑';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '產銷假農藥 逮農藥行負責人';
	rows[6].link = 'today-center7.htm';
	rows[6].type = '社會頻道';
																									
	rows[7].text = '偷竊、性侵未遂 菲勞要關10年';
	rows[7].link = 'today-center8.htm';
	rows[7].type = '社會頻道';
																									
	rows[8].text = '開槍打傷討債者 兄弟檔送辦';
	rows[8].link = 'today-center9.htm';
	rows[8].type = '社會頻道';
																									
	rows[9].text = '冒稱國民黨工詐財 2人被起訴';
	rows[9].link = 'today-center10.htm';
	rows[9].type = '社會頻道';																									
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '南區高中棒球聯賽 明起爭霸';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '豐年祭 正興部落打頭陣';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '維新掃黃 前金區內再逮多人';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '整治太平溪 水利署承諾補助4億餘元';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '立筊 東隆宮進表儀式好兆頭';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '梓官清潔隊辦公室 物品全撿來的';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '美濃下庄過水橋 列縣定古蹟';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '都會自行車道好美 民眾等不及驗收';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '小導演大夢想 兒童影展9日展開';
	rows[8].link = 'today-south9.htm';
																										
	rows[9].text = '新化番薯節 週六來焢窯';
	rows[9].link = 'today-south10.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(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 = '收養不可兒戲';
	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';
																										
}
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 = '逗陣趴趴走 消暑樂宜夏<br>冬山河公園夏 日親水High到瘋';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '宜蘭童玩節雙園戲';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '搭船出海<br>龜山島賞豚觀景趣';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '登島揭祕<br>礁溪泡湯宜然自得';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '翱翔頭城<br>上天下海玩樂滿點';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '蘇澳冷泉、傳統木屐體驗趣';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '名店名菜大破解 月島文字燒';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '生日禮物 一週提案';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '蒼白一族 飲食補鐵有方';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '孩子，我希望你高人一等';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '背叛了我的我的記憶';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '情不自禁喜歡妳';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}