//===========================================================================
//基本設定
//==================== 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','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-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(16);
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 = '916挺台灣 16閣員將參加';
	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';
																										
	rows[8].text = '鄭欽仁：靜坐、圍城無關反貪腐';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '叩關聯國 總統：規劃新策略';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '《華府觀察》美關心憲改 倒扁議題放一旁';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '游揆任內買紐處 地價翻漲';
	rows[11].link = 'today-p12.htm';
																										
	rows[12].text = '游：馬訪美避開國會 迴避質問';
	rows[12].link = 'today-p13.htm';
																										
	rows[13].text = '治安變好 蘇揆：25縣市長背書';
	rows[13].link = 'today-p14.htm';
																										
	rows[14].text = '馬：告誡已是最嚴厲處分';
	rows[14].link = 'today-p15.htm';
																										
	rows[15].text = '程委會國親封殺 三項軍購案全OUT';
	rows[15].link = 'today-p16.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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].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 = "《中英對照讀新聞》Concerto for laptop?    筆電協奏曲？";
	rows[5].link = 'today-int6.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 = '為照顧父母幼子 逃兵36年';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '涉教唆暴力討債 李<img src=http://www.libertytimes.com.tw/2006/new/sep/16/imgtoday/today-word.gif border=0 align=absmiddle>改列證人';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '劉宅5屍命案／紅色贓車徘徊血案現場 警方追查';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '美國馬用洗髮精 查獲仿冒工廠';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '派出所長夫妻 「認養」20名貧童';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '追賊斷鎖骨 勇警忍痛抓嫌犯';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '阿瘦皮鞋 3連鎖店接連遭竊';
	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 = 8;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '大學系所評鑑 2次不過就停招';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '企業機關遲報稅罰一成 違憲';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '陳淳擅清結石 醫師視訊觀摩';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '秋節連續假期 台鐵加開182班列車';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '珊珊最快今解除警報 應防豪雨';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '格致中學髮禁放寬 仍禁染燙';
	rows[5].link = 'today-life6.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '延後一天牽動叩關20勝 建仔今拚紅襪是關鍵';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '暌違2年 許銘傑一軍勝投';
	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 = 'ING南區暖身賽 萬人今高雄起跑';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '台灣 無緣12強';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《亞洲大學男籃賽》三劍客聯手 台灣擺平香港';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '世跆賽 蘇麗文摘銅';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '《瀚歆國際高球賽》延長賽勝出 呂文德衛冕';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '《世界盃高球資格賽》 台灣呂氏兄弟 落居第10';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '魏聖美77桿 晉級男度高';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '《亞洲9號球巡迴賽》吳珈慶王泓翔 晉8';
	rows[13].link = 'today-sp14.htm';
																										
	rows[14].text = '中國桌球公開賽 台灣球員 全數買單';
	rows[14].link = 'today-sp15.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '傳Yahoo！擬買無名小站';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '七年級生周雨璇志氣高';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '我12吋晶圓廠規模 全球第一';
	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';
																										
	rows[10].text = '投信作帳行情 加碼空間不大';
	rows[10].link = 'today-e11.htm';
																										
	rows[11].text = '《國際股市》德法午盤上揚 日收盤下跌';
	rows[11].link = 'today-e12.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 = 11;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '嵐旋風襲台 捲來8000萬觀光財';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = 'Jolin首登紅磡 陳奕迅當生日禮';
	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 = '誰是亞洲天王 百事演唱會 周董Rain戰火蔓延';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '本草綱目藥舖前 周杰倫玩殭屍';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '白冰冰：台灣需要找回祥和氣氛';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '夏蘿超像爸爸 小布甩掉綠帽';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '莎拉懷胎3月 41歲當大肚婆';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '碧昂絲新輯 首週狂賣54萬張';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = 'V6長野博會女友 破除同志疑雲';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '嵐賣力彩排 加演濕背秀';
	rows[14].link = 'today-show15.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 = 10;
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 = 10;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '北115道滿月圓路段坍方 20多戶受困';
	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 = '創世新店分院 募捐發票學生響應';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '貢寮九孔池荒廢 改餵魚樂趣多';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '女性創業 不怕苦冒出頭';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '3足歲特殊兒入學有優惠';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '樂觀抗癌 趙大鼻當希望大使';
	rows[10].link = 'today-taipei11.htm';
																										
	rows[11].text = '古蹟摸索 盲生用手看故事';
	rows[11].link = 'today-taipei12.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '毒梟公寓煉安 妄想現製現賣';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '買毒品黑吃黑行搶、槍傷人 男嫌落網';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '撞人拖行棄屍 2嫌被求無期徒刑';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '老母走失 3孝子尋遍桃園沒著落';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '駕車連裝撞 男卡死車內';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '《社會傳真》警配美軍衝鋒步槍 攻堅利器';
	rows[5].link = 'today-north6.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '福高配電箱 半年3起電纜竊案';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '中科聯合徵才 3千求職者上門';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '暴力討債…率30兄弟包圍公司';
	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';
																										
	rows[8].text = '競選涉賄 烏日鄉代被訴';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '果園見白骨 疑失蹤榮民';
	rows[9].link = 'today-center10.htm';
																										
	rows[10].text = '登雪山失聯 女山友尋獲';
	rows[10].link = 'today-center11.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 13;
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 = '《金恆煒專欄》中國人在紅色凱道站起來';
	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 = 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-weekly1.htm';
																											
		rows[1].text = '傳承文化的古早味餐廳';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '勤練省油功 開車族戰勝高油價<br>減少油耗量 平日就精省';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '基礎保養不可少  花小錢才是大省錢';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '卡油秘密武器  聯名卡A好康';
		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 = '2006.8月 熱門車款 平均油耗CHECK';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '狂Fun熱力 比基尼美女 海灘型男選拔賽 奪冠耍技！';
		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 = 13;
	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 = '買屋不買地 購屋另類思考';
		rows[1].link = 'today-house2.htm';
																											
		rows[2].text = '新光花園街 郊區別墅村 離塵不離城';
		rows[2].link = 'today-house3.htm';
																											
		rows[3].text = '順天新科 紅綠捷運、台鐵 3站共構';
		rows[3].link = 'today-house4.htm';
																											
		rows[4].text = '美術東世界 面對1800坪兒童公園';
		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 = '大面積採光 30年老屋變年輕';
		rows[7].link = 'today-house8.htm';
																											
		rows[8].text = 'Lounge風格 個性化男性空間';
		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 = '一人生活居家布置 6大聰明招數';
		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';
}
