//===========================================================================
//基本設定
//==================== 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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '投資中國維持40％上限 必要時個案審查';
	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 = '會議紀錄證明 市府93年即知情';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '北市態度轉變 不再切割處理';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '急難救助 國務機要費支出不少';
	rows[7].link = 'today-fo8.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '派系解散罰則 一年空窗期';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '府澄清 官邸無泳池 健身房';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '陳哲男︰梁柏薰給政治獻金與奠儀';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = 'ＳＯＧＯ案 明傳喚李恆隆等四人';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '杜哈會談中止 亞洲國家促重啟';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '致李傑函 美對潛艦案下最後通牒？';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '岡崎久彥：日美台必須合作';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '我9月在海參崴設辦事處';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '監委人事同意權 馬要提高門檻 王金平嗆不可行';
	rows[8].link = 'today-p9.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "萊絲提議2國際部隊進駐黎南";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "油價攀升 衝擊國際外交政策";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "基因密碼外 DNA新密碼 科學家發現";
	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 = "船斜80度";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "短嘴針鼴 鼻子冒泡";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中英對照讀新聞》Moscow authorities plan image make-over 莫斯科當局計畫重塑形象";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '呂維新大學肄 護法智多星';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '詐死坑保險 還找消保官施壓';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '警調解有功獲獎 被爆造假';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '岸巡官酒駕肇逃 長官幫脫罪？';
	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 = '葉全真父遭撞死案 騎士脫產 判賠405萬';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '廣告童星遭燒死 男童母哭喊：沒有外遇';
	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 = '世展3姊弟 隨傳隨到';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '落魄江湖sakura 薄薪助街友 大體捐慈濟';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '女主播抗癌過世 吶喊奇蹟';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '挑戰500公里 風雨無阻挺進總統府';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '王小萍身兼5志工 24小時不打烊';
	rows[14].link = 'today-so15.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 = '被告蔡錦鴻 咬3立委施壓、拿錢';
	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 = '台灣24物種滅絕 79種瀕危';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '200元標營公共泳池 蝕本倒貼';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '醫院死要錢 鼓吹患者打點滴';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '登革熱增10例 出現家族群聚';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '老大公廟開龕門 打通陰陽界';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '北縣1山產店羊肉 戴奧辛超量';
	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 = '亞力士4壞大放送';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '鄭錡鴻變身 專門送老K';
	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 = '邦斯715轟 出價1萬美元';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '建仔簽名球 水漲船高';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《世青田徑賽》我11選手備戰';
	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 = '封拍之旅 阿格西開張';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '夢7名單 莫里森提前出局';
	rows[12].link = 'today-sp13.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 = 'AMD併ATI 代工廠股價回穩';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '大客戶ATI轉單並非易事 台積電 影響有限';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '三倉儲業者協議 無法律效力';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '今年CPI 央行力保2%';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '顏慶章 將以個人名義續任復華金董座';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '中信加碼開發金 15%持股定義未明';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '金鼎證香港子公司增資案 生變';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '《國情密碼》青蔥年消費量 1.1∼1.3億公斤';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '不動產投資信託審查 將縮短時間';
	rows[8].link = 'today-e9.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(14);
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 = '《理財Q&A》旅遊平安險 加強出國保障';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '發現幸福講座 全台開講';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '友達Q2獲利 僅1.8億元';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '德銀證 下修南電、全懋獲利';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '主機板商鋪貨 瑞昱、富鼎Q3俏';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '無懼雙鬼月 營建股翻紅';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '茂迪向上整合 衝刺全球三大';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '進軍高容MLCC 國巨不輸日商';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '專利獲採用 訊連大利多';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '《期指觀測站》動能不足 隨美股起伏';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = '《國際股市》歐股午盤走高 日韓大漲';
	rows[13].link = 'today-stock14.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 = '化名逃亡10年 大哥變大亨';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(17);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '芭黎絲遷比佛利 和阿湯哥平起平住';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '黑眼豆豆瘋狂嘻哈 1萬8千粉絲拜倒';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '倪齊民北京遭扒 打消中國置產';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '李聖傑坦承 網交19歲林又立';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '方文琳當推手 袁惟仁走出婚變';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '黃少祺開燈睡安心 張本渝唸經文驅魔';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '遠離水邊 勿穿著黑色衣服';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '小潘潘戴護身符 丁寧不照鏡子';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '名模教學 海灘萬人迷就是你';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '王菲躲狗仔 帶女移居美國';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '22部輔導金國片 一半還未開拍';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '安妮斯頓不嫁 小布不敢再婚';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '尼柯遜逞英雄 被水母咬成俗仔';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '娜姊勾引神 宛若禱者惡搞NO.1';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '男友開示 珍娜傑克森想當奶媽';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '亞里莎搞笑 上戶彩扮醜 觀眾不賞光';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '車仁表  宋允兒 再婚好對象';
	rows[16].link = 'today-show17.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(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '老嫗術後猝死 家屬質疑';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '多人尋短 土城有條自殺巷';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '水質惡化 景美溪變黃河';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '公車運價補助少 業者擬罷駛';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '拆孔廟圍牆 謝長廷連署反對';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '鬼門開 中元祭祀揭序幕';
	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 = '百年藍染石屋遺跡 新店盼開發';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '鬼月照祭改 湧蓮寺信眾慕名來';
	rows[10].link = 'today-taipei11.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-north1.htm';
																										
	rows[1].text = '揮刀刺傷妻 兒子作證 家暴夫被訴';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '與妻大吵鎖門砸屋 抱瓦斯桶恐嚇警';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '派出所所狗 掛階一毛三';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '獅子咬死工人 六福村前管理員緩刑';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '男子涉假扣押案 帶妻女敲鑼申冤';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '撿支票簿亂開票 賠償後從輕發落';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '石門水庫女屍待認';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '《社會傳真》開贓車躲警察墜溝 丟下女友';
	rows[8].link = 'today-north9.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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 = '高中職五專 7/29到8/1集體報名';
	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 = '憑機車左後照鏡破損、車牌後3碼…抓到住宅大盜';
	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 = '撈珍貴漂流木 5嫌被起訴';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '通緝犯看病 警方等著抓';
	rows[8].link = 'today-center9.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 = '白河廚師命案 兇嫌落網';
	rows[6].link = 'today-south7.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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 = 'Yahoo!收費 奇摩子不爽又怎樣';
	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';
																										
}
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(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'SUV柴油動力 如虎添翼';
	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';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
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-family1.htm';
																										
	rows[1].text = '老公愛酒後求歡<br>妻子受不了';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '寒天冰糖小排骨';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '生而不教誰之過';
	rows[3].link = 'today-family4.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
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 = '好朋友 別鬧了';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '水蛭鑽進鼻孔<br>小女孩鼻血流不停';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '認識混合疫苗<br>寶貝不當針包';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '多囊性卵巢<br>中藥配合針灸也有療效';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '自然試管嬰兒技術<br>可減少卵巢過度刺激';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '搶救惱人尿床症<br>從排尿日記做起';
	rows[5].link = 'today-medicine6.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
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 = '月見花-下';
	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';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
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 = '國立台灣美術館走進歐洲<br>與波蘭國家美術館簽定合作備忘錄';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '英國國家芭蕾舞團首席舞者抵台<br>為《天鵝湖》打先鋒';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '青少年夏日戲劇節即將登場';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '余能盛解析<br>柴可夫斯基之心';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '亞洲文化協會2006年十位受獎人名單公布';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '郭為藩<br>出新書《全球視野的文化政策》';
	rows[5].link = 'today-art6.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 = '斯里蘭卡 Sri Lanka<br>佛佑微笑蓮花';
	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';
}
