//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(11);
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';
																										
	rows[9].text = '許德祥遞補不分區 民進黨縮減為84席';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '黨評估 不會有骨牌效應';
	rows[10].link = 'today-fo11.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '看問題／單據請領 馬的大麻煩';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '2008大選 拱連聲浪 王馬低調';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '黨產專刊︰連戰任主席 兩筆投資親家';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '華航︰萬海是最大民股  聘陳致遠任常董無不妥';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '四大天王特別費 高檢已分案';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '檢要求辜仲諒 下旬到案';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '藍委質疑政策買票 促檢追查';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '郝大老背書 謝大秀舞技';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '誰是建設零蛋 陳黃攻防';
	rows[9].link = 'today-p10.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-int1.htm';
																										
	rows[1].text = "新民意 民主黨推動自伊撤軍";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "給你全世界 半島電視台英語發聲";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "網站誤踩領土地雷 Google激怒伊朗當局";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "自殺信效應 日3師生自殺";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "蛀蟲咬歐元？毒蟲搞的鬼";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "澳、印 簽訂安保條約";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "德民眾 反核入家門";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中英對照讀新聞》Hong Kong snares world's  most expensive truffle again 全球最貴松露  香港再度標到手";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '990萬借據 李聚寶知情？';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '父罰打過重 母接走兒女 不算和誘罪';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '癲癇駕車 撞義交墜高捷工地';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '違規賴給舊同事 罰單簽錯字露餡';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '鐵條勒頸灌藥 母逼兒女陪死';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '由綁變搶 牙醫驚魂 外甥害的';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '勸阻看熱鬧 救災義消遭圍毆';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '農會41秒遭搶65萬 警當演練';
	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 = '《愛的回響》信義國小４特教生獲讚揚 走路有風';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '搶種高山茶 戕害水土保持';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '馬鈴薯發芽 切掉芽眼仍有毒';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '加國好時巧克力 疑染沙門氏菌';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '幼童殺手 折疊桌椅不安全';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '台灣民俗村 虧損找買家';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '首座海洋國家公園 最快年底成立';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '桃園機場 陽具雕刻惹爭議';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '大考優待 明年起內含改外加';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '教官回軍交流 杜正勝：國防部規畫';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '竹北國中塗鴉廁畫 邊上邊紓壓';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '防空污 環署擬收車輛進城費';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '搬家首日 交部四大局長換人';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '高鐵 ETC 大陸團 考驗新舵手';
	rows[12].link = 'today-life13.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '對荷蘭 只能贏不能輸';
	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 = '小雞吳偲佑有傷 影響亞運';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = 'NFL 小馬持9不敗';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '甜蜜復仇 漢妮雙料第一';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '花落誰家 松&#22338;可能親赴美協商';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '雷肯南 等著向大舒挖寶';
	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 = 'HBL 台東高中搶外卡 今背水一戰';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '大專籃球聯賽 台師大129分 本季新高';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '北體扯鈴隊 「銀」得掌聲';
	rows[12].link = 'today-sp13.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 = '勞宅貸款今申貸 每戶可借220萬';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '資產配置得宜 投資無往不利';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '美債走多 複合商品看俏';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '金價640至645美元間 有壓力';
	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 = 'APEC會前報導 台灣發聲 免遭區域邊緣化';
	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('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '三星：Vista效應 DRAM明年初需求旺';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '任天堂Wii激勵 旺宏Q4大好';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '向淨值靠攏 低價營建股猛漲';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '海外投資收成 紙類股業績報喜';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '大亞、億泰 搭上越南成長列車';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '勝華持續成長 元太月績驟降';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '浩騰獲利創新高 雷科創次高';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《國際股市》歐股午盤漲 中國重挫';
	rows[7].link = 'today-stock8.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(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '翻滾吧天后 Elva努力培養默契<br>Jolin & 小豬密會勤練舞';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '金馬亞太 雙美逞胸<br>侯佩岑馬甲擠D波 肉搏林志玲';
	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 = '陳小春 慘遭送水粉絲強吻2次';
	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 = '裘莉想入主白宮 先過思嘉美人關';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '矢田亞希子 押尾學 閃電結婚';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '凱蒂食衣住行育樂 阿湯哥無條件買單';
	rows[10].link = 'today-show11.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(9);
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 = '謊稱貴人 女房東倒貼3餐';
	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';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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 = '5治安示範社區 認證標章揭牌';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '反建變電所 人牆堵路抗議';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '吉安上百座高壓電塔 六村落驚恐';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '泡湯吃甜柿 週末泰安有約';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '老師滿嘴屁話 學生受不了';
	rows[5].link = 'today-north6.htm';
																										
}
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 = '龍眼籽畫 廟婆拼貼生肖圖';
	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 = '「保活期」過 921園區竹子泰半枯黃';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '網路義賣平台 愛心不打烊';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '疑賄選幽靈人口案 中檢再傳107人 撼動和平鄉';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '郵局站10分鐘 逮2通緝犯';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
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-south1.htm';
																										
	rows[1].text = '落山風起 半島學童藝起飛';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '六龜木瓜 桃太郎愛吃 銷日將逾10公噸';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '學者預測：市長選舉 輸贏3%以內';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '完工沒人管 景觀道殘破不堪';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '嘉南大圳污染 查到兩處偷排廢水暗管';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '那話兒貼上網 大隻佬要警員驗貨';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '中國走私猖獗 揪出豬肉米包';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '員警盤查誤了拍賣時機 損失30萬 模範漁民抗議';
	rows[8].link = 'today-south9.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 = '迴避52條 變更起訴罪名';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '一張嘴 兩把尺';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '王文怡被媒體封嘴';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '深綠顯學';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '在香港 為台灣加油';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '《黃天麟專欄》被西進派炒熱的論述—品牌';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '總統 請謀定而後動';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '騙高中生？ 閃邊';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '雪隧打點滴 小心';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '第三號交響曲「臺灣」';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '請北市國稅局澄清';
	rows[10].link = 'today-o11.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '100萬 最佳錶現';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '珠寶 點線面';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '綠色消費年代 有機美妝看漲';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '臉部保養首重清潔';
	rows[3].link = 'today-fashion4.htm';
																										
	rows[4].text = '豪宅重裝備 頂級皮家具';
	rows[4].link = 'today-fashion5.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '妳的男友是NEET族？';
	rows[0].link = 'today-family1.htm';
																										
	rows[1].text = '女性參選 「脫」穎而出';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '學習欣賞 說出讚美';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '山楂美人湯';
	rows[3].link = 'today-family4.htm';
																										
	rows[4].text = '墮胎陰影 難以抹滅的痛';
	rows[4].link = 'today-family5.htm';
																										
	rows[5].text = '〈徵文啟事〉婚姻殺手在哪';
	rows[5].link = 'today-family6.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
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-medicine1.htm';
																										
	rows[1].text = '沒有Ｂ肝Ｃ肝  仍可能肝硬化';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '室內全面禁菸  才能杜絕二手菸害';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '泌尿科講座';
	rows[3].link = 'today-medicine4.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
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-article1.htm';
																										
	rows[1].text = '我不愛台北';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '你也活得不如一名流浪漢？--專訪出版人黃俊隆';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '萬邦之鄉.下';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '煉金術士之歌';
	rows[4].link = 'today-article5.htm';
																										
	rows[5].text = '歸燕';
	rows[5].link = 'today-article6.htm';
																										
	rows[6].text = '愛讀書《臺灣軍旅文選》';
	rows[6].link = 'today-article7.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '海外華人音樂家齊聚台灣<br>林昭亮、林佳靜、辛明峰等人巡迴演出';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '林布蘭是猶太人？';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '宜蘭慢活之道 文學民宿開張';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '現代水滸英雄 年底台北登場';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '青年工藝家 德國獲獎<br>胡慧琴與王意婷脫穎而出';
	rows[4].link = 'today-art5.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-travel1.htm';
																										
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}