//===========================================================================
//基本設定
//==================== 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 = '禮遇條例修正 連戰仍領47萬 遠勝卸任總統';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '換財長沒講 黨團斥傲慢 蘇登門致歉';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '何志欽：遺贈稅應降至40％';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '勤募款  親學生 何志欽以系為家';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '4大預算 3兆7千多億過關';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '黃芳彥釋回 檢方安排大對質';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '首度對質 趙建銘不鬆口';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '新瑞都案 劉泰英判刑八年';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '調局人事異動 秦台生調升';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '刺馬嚴辦 刺扁視而不見';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '陳唐山轉述 李登輝期許扁建立公義社會';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '黃秀娟死因 羅宗勝 黃秀玉對質無交集';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '新聞幕後／遺留上千黨員票 影響力不減';
	rows[7].link = 'today-p8.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "布希堅設軍事法庭 擬向國會找權限";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "貓王歌曲 妙喻美日關係";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "冷戰高峰 英曾想用核武護港";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "美研究顯示 吸淡菸要戒菸更難";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "日高齡化速度 世界第一";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "抗中 唯有強化日美同盟";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Germany's slain bear comes back as a teddy 德國被殺的野生熊將以熊玩偶的形式重回人間";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-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 = '帶3歲外甥販毒 人贓俱獲';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '黑狗夜遊出車禍 人狗嗚呼 飼主判罰';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '中獎詐財 匯上市公司 騙商品原料';
	rows[6].link = 'today-so7.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '中科七星基地 爭議聲中通過環評';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '指考今登場 35身障生應試';
	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 = '台大校長李嗣涔提議︰國立大學學費 每年調漲2.4％';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '診所處方箋 今起主動給病患';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '簡陋廂型車 塞13老人看病';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '水稻沙漠存活 源自基因突變';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '蜂蜜固化';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '植酸酵素米 明年試種';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '癌魔 24年榜首 自殺 急起直追';
	rows[12].link = 'today-life13.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《2006世界盃足球賽》PK戰 4：2德勝';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《2006世界盃足球賽》萊曼 膽識能力一流';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《2006世界盃足球賽》英打葡 猛練PK';
	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世界盃足球賽》歐文保鉅資 球隊每週拿600萬';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《2006世界盃足球賽》我很醜 可是很會踢球';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '雷鵬率先10勝';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '獅亂陣腳 牛逆轉勝';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《友訊D-Link高爾夫錦標賽》張澤鵬 抱走冠軍';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '納班迪安 爆冷遭淘汰';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '未來之星 二游陳胡配';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '紅襪 12連勝';
	rows[12].link = 'today-sp13.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'Fed升息1碼 外資大買180億';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '台幣急升2.21角';
	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 = '市場預期 日銀最快本月升息';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '合庫董事補選 公股拿三席';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '開發金 補選獨立董監各一';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '卡債協商 銀行有意提前結束';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '日新日鐵部長 拜訪本報';
	rows[9].link = 'today-e10.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 = '法人：Q3台股 6,000∼7,000震盪';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '今年車市銷售目標 大幅下修';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '外資回籠 買超晶圓雙雄';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '中華電全民釋股 比照去年';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '法人看好 大立光攻上漲停';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '中石化︰今年會很辛苦';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '國建買世華國際租賃';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《期指觀測站》Fed升息預期降溫 股市加溫';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '旺宏︰Q2轉虧為盈';
	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 = '張錫銘 一審判無期徒刑';
	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 = '林韋君挨打 痴等林佑星認錯';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = 'Selina不甘寂寞 載佼佼分身夜遊';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '同恩騎馬減肥 雕塑下半身';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '張韶涵顏行書 黏TT 吃消夜不認戀愛帳';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '辛曉琪 與張國榮隔空對唱';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = 'Jolin收起水晶指甲 彈豎琴';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '張鳳書鳳還巢 老公嘆惡夢來臨';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '蕭薔粉嫩3點 內外皆美';
	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 = '八大歡喜喬遷 小S力挺老東家';
	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 = '黑眼豆豆來台 想觀摩夜店';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '安妮斯頓執導救票房 娜姊搶老公飯碗';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '翹臀珍被勒索1.6億';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '崔智友旺夫 李政宰 趙寅成搶搭檔';
	rows[16].link = 'today-show17.htm';
																										
	rows[17].text = '小野麗莎10月 再度來台巡演';
	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 = '土城桐花公園 賞蝶好去處';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '大學指考登場 學子酷暑應試';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '捷運機場線 新莊盼再增1站';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '公幼招生 還有377個缺額';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '台北→宜蘭70分 童玩節接駁車上路';
	rows[7].link = 'today-taipei8.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-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';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '糖廠採蔗圍標弊案 前雲縣議長陳清秀收押';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '藏身汽車旅館剝電纜皮 逮1嫌';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '假輔導長來電… 役男父被騙20萬';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '加碼茶仿冒風波 7茶商坦承早知是專利品';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '住家失火老爸動粗 兒子告他';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '涉賄選 秀水鄉長判刑 面臨當選無效審理';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '《社會頻道》新港民宅香客套房 查獲槍毒';
	rows[6].link = 'today-center7.htm';
																										
}
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 = '首長掙錢 7縣市聯合提案';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '販毒謀生 17歲孤女哭了';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '作假拚績效  2憲調官送辦';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '束褲藏毒 小港機場1日2起';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '套子助性 那話兒腫2倍大';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '搶母項鍊抵債 毒子，送辦';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '解悶打死路人 鬱男，求刑';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '電信騙財 騙走150萬';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '澄清湖浮屍 死因待查';
	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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '建成圓環 市政廢墟';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '台聯錯在哪裡？';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '沒有學生的學運';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '台僑力抗一中姊妹市';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '《李筱峰專欄》扒糞與潑糞';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '教官再見';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '罷免煞戲a';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '壯大本土';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '儀隊刺客';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '當代雜誌座談會';
	rows[9].link = 'today-o10.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '前進苗栗獅潭 尋找貓頭鷹';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '拈花惹草 靜享浪漫午后後';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '爽口涼麵消暑解悶 麵麵俱到<br>台式涼麵 醬吃就對了';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '滯重黏膩out 涼快一夏in';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '日式冷麵 清爽養生當道';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '手打麵 好勁道滑溜入口';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '練情歌不忘練身體！范逸臣 衣架子健身示範';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '手繪漫畫秘訣 達人告訴你';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '用PAINTER 電繪漫畫卡片教做';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '不要Orz 只要青春有骨氣';
		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(13);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '354萬 30年老透天亮起來';
		rows[0].link = 'today-house1.htm';
																											
		rows[1].text = '4房換3房 單親家庭新生活計畫';
		rows[1].link = 'today-house2.htm';
																											
		rows[2].text = '春城麗池 25％以下超低公設比';
		rows[2].link = 'today-house3.htm';
																											
		rows[3].text = '山水碧城 山光海景盡收眼底';
		rows[3].link = 'today-house4.htm';
																											
		rows[4].text = '藏真 面對3600坪文化公園';
		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 = '智慧住宅 體驗高科技魔力';
		rows[9].link = 'today-house10.htm';
																											
		rows[10].text = '木質地板精挑細選有訣竅 創造室內森林浴';
		rows[10].link = 'today-house11.htm';
																											
		rows[11].text = '仿石材社區藝術雕塑品驗收';
		rows[11].link = 'today-house12.htm';
																											
		rows[12].text = '交屋後房屋漏水 狀況不斷，該怎麼辦？';
		rows[12].link = 'today-house13.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';
}