//===========================================================================
//基本設定
//==================== 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(9);
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';
																										
}
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 = '檢對趙建銘加重求刑 8年變9年';
	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 = '北市議員文宣戰抽LV包 法部盯上';
	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 = "人類與海膽 4成基因相同";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "下令NHK播北韓惡行 安倍引發日媒批評";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "泛亞鐵路 18國聯手打造";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Grunting carries no weight in this gym 低吼聲在健身房惹人嫌";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '惡匪脫逃  搶走警車 拖行警員';
	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 = '公祭場外槍響 黑道狙擊3傷';
	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 = '南迴案13日開審／黃福來供詞料激辯';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '多明尼加台灣學生命案／狂徒搶劫 ６嫌落網';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '愛心滿罐 學生撿拾助校';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '老師有愛 義務載學生上課';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '退而不休 訓導組長變”工友”';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '退休企業家夫婦 月捐150萬助貧童';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '沒膽志工 勇抗病魔樂分享';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '墜機顯神蹟 古公三王搶救飛官？';
	rows[14].link = 'today-so15.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '明年春節彈性休 2月26日才開學';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '高鐵桃園站啟用 機場網絡成形';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '今明轉涼 北部、東北部高溫僅24度';
	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 = '嬰幼兒跌傷 客廳最多';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '不吸菸仍罹肺癌 疑修補基因變異';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '烈日灼身 我連敗';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '12秒須出手 亂了阿福節奏';
	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 = '中國連兩場被KO';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '15條大魚 松&#22338;第一';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '台灣3雄 撞進8強';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '衰尾牛 開胡';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '殺人蜂 破功';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '鄧子洋苦熬3年 最接近冠軍的一次';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '銀行收傘 中小企業卡債族喊苦';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '信保基金背書 銀行仍擔兩成風險';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '取消軍教免稅案 財長有信心通過';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '前9月能源消費量 增幅2.3%';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '工總建言 能源稅不能貿然開徵';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '美堅持經WTO推全球自由貿易';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '外資拋匯 台幣升值5.1分';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '我CMMI認證 明年躍升全球第五';
	rows[7].link = 'today-e8.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 = '鴻海上月營收 破900億';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '晶電否認涉內線交易';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '創意月績創新高 智原衰退13％';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '台積前10月營收 超越去年整年';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '富爸爸加持 群創10月營收破百億';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '台固處分高鐵股票4萬張';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '各擁題材 華冠、綠點漲停';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '台積員工分紅 3年後為盈餘15%';
	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 = '明年4節彈性休 春節假9天';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(16);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'Elva手拈十全十美香 觀音廟求籤 事業雲開見月';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '蔡淑臻騎白馬  沒有王子自己High';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '完美情人林志玲 線上玩家最愛';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '洪曉蕾剖腹產女 明年初完婚';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '金馬執委楊貴媚 放話棄馬擁亞太';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '金馬影展開跑 彭于晏超口愛 迷倒法女製片';
	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 = 'K ONE爆料 立揚「胡思亂想」 煞到Ivy';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '艾希頓背著黛姨  偷吃美眉';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '花蝴蝶香港銷聲  告官求償3290萬';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '布蘭妮展開新聲活  凱文痛苦上網發燒';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '倖田來未辣無敵 Gackt賽猛男';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '中田英壽擁名模 甜蜜同遊大溪地';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '蔡小虎奔360里路 見慈母最後一眼';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '范瑋琪白疼棒棒堂男孩';
	rows[15].link = 'today-show16.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(7);
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 = '110週年校慶 改建惹爭議 大龍國小取消破土儀式';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '關渡濕地公園 成鳥類天堂';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '未獲提名 4將苦拚連任';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '3大古蹟爭議 僅周玉蔻承諾保留';
	rows[6].link = 'today-taipei7.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 = '6700小一生 ㄅㄆㄇ大會考';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '91.7.31前設籍竹市 享安老津貼';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '耗時6年半 高鐵桃園站啟用';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '質押車變贓車 女研究生誤騎';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '已婚惡狼 性侵13歲網友';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '遛鳥嚇壞女學生 警鎖定特定對象';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '賺人民幣 台灣賭博網站 中國人下注';
	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';
																										
	rows[7].text = '彰縣僅大村、伸港人口成長';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
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-south1.htm';
																										
	rows[1].text = '涉浮報詐領出國考察費用 山上鄉代主席、歸仁前主席被訴';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '社會傳真';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '《觀察筆記》以我為準';
	rows[3].link = 'today-south4.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 = '別開第52條玩笑';
	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(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 = '跑車追速度、嬉皮最拉風  日系重機4型款！';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '街車上下班  休旅車遊山野';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '重機考照 TEST有訣竅';
		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 = '裕民街小吃  美味持續一整夜';
		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(13);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '建商深耕社區 口碑行銷 創造雙贏';
		rows[0].link = 'today-house1.htm';
																											
		rows[1].text = '大直Uptown 環境融合科技與人文氣息';
		rows[1].link = 'today-house2.htm';
																											
		rows[2].text = '中央公園 緊臨2700坪運動及兒童公園';
		rows[2].link = 'today-house3.htm';
																											
		rows[3].text = '鼎泰33行館 私家小花園 質感別墅';
		rows[3].link = 'today-house4.htm';
																											
		rows[4].text = '六邑 建材豪宅等級 適合三代同堂';
		rows[4].link = 'today-house5.htm';
																											
		rows[5].text = '何處是兒家 自備150萬找4房 換屋計畫';
		rows[5].link = 'today-house6.htm';
																											
		rows[6].text = '植物園生活圈 3捷運站力拱 近學區中古屋搶手';
		rows[6].link = 'today-house7.htm';
																											
		rows[7].text = '竹東老街路生活圈 大樓產品少 新成屋供不應求';
		rows[7].link = 'today-house8.htm';
																											
		rows[8].text = '東海生活圈 特3號明年通車 房市熱呼呼';
		rows[8].link = 'today-house9.htm';
																											
		rows[9].text = '地勢左高右低 女主人勢弱';
		rows[9].link = 'today-house10.htm';
																											
		rows[10].text = '聲光＋美色 紓壓泡澡 疲勞bye bye';
		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';
}