//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (!showWeekly)
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活副刊'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','work','sex','family','article','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>');
}
if (true)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tdb><A class=block2La href="#" onClick=open("http://www.libertytimes.com.tw/Service/weekly.htm","","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=810,height=643")>生活週報</A></TD>');
	document.write('	</TR>');
}
if (false)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tdb><A class=block2La href="#" onClick=open("http://www.libertytimes.com.tw/Service/house.htm","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=810,height=643")>住宅生活</A></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('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.ntat.gov.tw/" target=_blank>台北市國稅局</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(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '倒數24小時 白天掃街 晚上拚場';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '三陣營搶票／名人相挺 謝溫馨訴求';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '綠衝投票率 藍全面催票';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '謝打宋拉宋 郝防謝得利';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '林義雄送暖 現身挺陳菊';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '林義雄效應 藍不敢輕忽';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '市政菊接棒 蘇揆掛保證';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '全力衝選票 馬陪黃掃街';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '南社：自由時報民調最符實況';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '不論輸贏 扁要蘇揆留任';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '檢警調北高宣示查賄決心';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '轟台聯決策不明  陳建銘黃宗源辭中執委';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '調度六千萬撒錢？ 黃陣營：可檢驗';
	rows[12].link = 'today-fo13.htm';
																										
	rows[13].text = '家族上億資金可疑 陳其邁：藍抹黑';
	rows[13].link = 'today-fo14.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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].link = 'today-p1.htm';
																										
	rows[1].text = 'FAPA爭取 AIT台北處長須經參院同意';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '馬參訪日月光 批鎖國政策';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '藍委：愛二升級 有助反飛彈';
	rows[3].link = 'today-p4.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 = "《中英對照讀新聞》Fees cut for UK overseas students 英國海外學生學費刪減";
	rows[5].link = 'today-int6.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '「麻」煩上身 7藝人涉毒交保';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '銀色世界 染毒踏上不歸路';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '80歲女醫開畫展 義賣助學';
	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 = '18年老車 行照竟是3年';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '囂張綁匪 警局對面擄人';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '質押10噸黃金 誆倒一堆人';
	rows[8].link = 'today-so9.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '高餐籌設博弈系 教賭防千';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '十賭十輸 賭博博士座右銘';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '飛安危機 鳥擊飛機 4年發生841件';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '避免保育爭議 不打大型鳥';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '國家生態電影節 秀出台灣最美';
	rows[4].link = 'today-life5.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '《杜哈亞運特別報導》郭泓志催不出球速 臨陣換將';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《杜哈亞運特別報導》奪冠金言錄';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《杜哈亞運特別報導》鋒仔9下2壘打 關鍵';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《杜哈亞運特別報導》女團網金 延至今天';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《杜哈亞運特別報導》蘇麗文楊淑君 晉4搶金';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《杜哈亞運特別報導》吳珈慶黃焜璋 撞進16強';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《杜哈亞運特別報導》「泰」輕鬆 女籃晉4強';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《杜哈亞運特別報導》南韓馬術選手 墜馬身亡';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '落後17分 老鷹逆轉金塊';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '洋基邀佩提特回鍋';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '年薪開價1500萬美元 松&#22338;合約談判陷僵局';
	rows[11].link = 'today-sp12.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '高階經理人 退休金當自強';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '高額保單 企業留人新法寶';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '孫湛雅 22歲壽險至尊';
	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 = '競逐DRAM霸主 投資逾4500億 力晶爾必達合資建廠';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '我今年貿易出超 可望達200億美元';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '保險業投資證券化商品 不得逾10%';
	rows[8].link = 'today-e9.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '產險業賣健康險 最快明年七月';
	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 = 'TTT順利填息 報酬率7.14%';
	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 = '光學元件族群 看淡明年Q1';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '諾基亞搶攻行動上網市場';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '投信︰台股明年補漲 上看8500點';
	rows[9].link = 'today-stock10.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '亞運棒球 逆轉奪金';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '歲末算總帳 寶兒年收入14億 踩裴帥稱霸';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '石頭冠佑告別嬌妻 五月天為愛遠征';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '小豬 楊丞琳第一次 大姨媽攪局';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '歡歡雄性禿冒鬍鬚 3個月羞見人';
	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 = '梁朝偉身心俱疲 爆瘦9.6公斤';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '卡瑞拉斯跨年登台 陪樂迷倒數';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '克雷格賣肉 女網友想爬上床';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '布蘭妮被兒福盯上 芭黎絲夢囈媽媽樂';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '松浦亞彌 今天登台道早安';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '言承旭南韓追星 開心見金惠子';
	rows[11].link = 'today-show12.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》且看北高市民如何選擇市政經營者';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》民主的死穴';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》保護傘與機關槍';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(5);
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';
																										
}
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 = '晚十一點後 卡拉OK店禁歡唱';
	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(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '縣警局秘書 記兩大過免職';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '無毒農業有成 明年再拓版圖';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '太保缺錢 高鐵大道路燈不亮';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '日月潭纜車BOO案 邁大步';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '全國低年級組大贏家／小二生追風 直排輪雙冠王';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '修平學院40歲 義賣書畫慶祝';
	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 = '華爾瑟P99 緝毒查獲007手槍';
	rows[9].link = 'today-center10.htm';
																										
	rows[10].text = '閒置北斗牛墟 縣府重金改造';
	rows[10].link = 'today-center11.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-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';
																										
	rows[4].text = '整治二仁溪 這廂忙開會那邊排廢水';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '長毛象來了 菜寮化石館迎客';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '高市選前掃黑 10人到案';
	rows[6].link = 'today-south7.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '騙完台北 騙高雄';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '為台北市看診';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '綠得漂亮 藍得美麗';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '澄社評論：選舉命運與政治發展';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '創造台商留台空間';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '見證歷史的台灣之音';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '綠營不容內耗';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '外省權貴心態';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '別再打了';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '台灣大格局';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '政治打敗體育';
	rows[10].link = 'today-o11.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '上班一族　　→';
		rows[1].submenu = 'work';
		rows[1].link = 'today-work1.htm';
	
		rows[2].text = '兩性異言堂　→';
		rows[2].submenu = 'sex';
		rows[2].link = 'today-sex1.htm';
	
		rows[3].text = '家庭親子　　→';
		rows[3].submenu = 'family';
		rows[3].link = 'today-family1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.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 = 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('work');
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('article');
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('sex');
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('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;

//====================  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';
}