//===========================================================================
//基本設定
//==================== 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(12);
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 = '派系互槓 「宦官」VS.「假清高」';
	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 = '1951年 中國四路大軍 佔領西藏';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '青藏鐵路 成中國宣傳工具';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '中國緊抓西藏 衝擊南亞戰略局勢';
	rows[11].link = 'today-fo12.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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 = '非金融機構 不能投資中國金融';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '美媒體︰台灣擬增購攻擊直升機';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '王金平：應以國家立場 考量軍購';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '藍綠立委 籲廢集遊法';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '光碟案被訴 林一方批司法不公';
	rows[11].link = 'today-p12.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "印尼奪命海嘯 死傷破千";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "真人版BJ 上班寫網誌被開除";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "跳地救地球？6 億人人來瘋";
	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 = "澳空軍戰機 故障迫降";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Pet crocodile attacks boy in Philippines菲律賓的寵物鱷魚攻擊男童";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '集資網購禮券  詐財700萬';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '手腳綑住機車 漁夫沉屍漁港';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '軟禁56天？付贖1500萬？雷公會長自稱被綁獲釋';
	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 = '長老甩教友巴掌 判拘役20天';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '遣返48中國漁工 海陸專案戒護';
	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';
																										
	rows[13].text = '殘父兼母職 教出碩士兒女';
	rows[13].link = 'today-so14.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '癌末美女空姐 喜樂助病友';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '高診次病患 將限醫院看病';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '95學年教科書價 便宜7%';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '基測弊案 拉漆包線傳答案 真扯！';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '公務員、教師開放籌組工會';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '赴金趕考不成 流浪教師尋短';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '知風草 柬國助殘兒';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '明年起 汽機車擬強制烙碼';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(10);
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 = '鋒砲14響 平泰山';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '5局沒失分 楊騏嘉復活';
	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 = '擺平紐妹 台灣2連勝';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《亞青田徑錦標賽》 400接力 台灣鍍銅';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《世大女壘賽》 延長賽大逆轉 台灣射日';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《環青海湖車賽》隊友掩護 何欣穿黃衫';
	rows[9].link = 'today-sp10.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 = '投資人避險 美元續升';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '陳榮隆 帶著經驗回校園';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '經續會小組會呂東英︰新設金控門檻 資本額300億';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '中銀工會 將辦票選董事長公投';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '東亞經濟成長率  亞銀預估7.5%';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '經濟過熱 中國可能採緊縮措施';
	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(15);
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 = '資金流往美元資產 台幣再貶0.6分';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '銀行拒收存款 民眾可向金管會檢舉';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '外資調升DRAM股評等喊進';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = 'NB代工景氣 下半年法人保守';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = 'PS3代工商機 等明年下半年';
	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 = '侵權舊案 LPL重啟戰端';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '外資看壞 調降友達奇美電獲利';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '立錡收紅 帶動IC股反彈';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = '《期指觀測站》看空8月 慎防台股探底';
	rows[13].link = 'today-stock14.htm';
																										
	rows[14].text = '《國際股市》歐股午盤下跌 日韓重挫';
	rows[14].link = 'today-stock15.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(16);
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 = '王力宏哄男童 靈機一動搞定';
	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 = 'TOP10實力樂團票選 今下午5點截止';
	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 = 'F.I.R.男好命 飛毛腿獨熱舞';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '姬賽兒的秘密 做掉李奧納多新歡';
	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 = '日本雜誌捏造緋聞 李秉憲告到底';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '文根英不休息 李英愛發電機';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '戀情傷形象 速水 龜梨收視失靈';
	rows[15].link = 'today-show16.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》包機常態化問題考驗陳總統的誠信';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》黨有難，誰能免？';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》後扁時代';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(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 = '內湖線轉木柵線 98年一車到底';
	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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '司機搞鬼偷鑰匙 竹客停擺';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '騎車出撞況 返校日成忌日';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '捷運工地領班帶頭 偷800公斤輸電纜';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '砸死催債少年 騎他車去烤肉 判9年6月';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '收攤後 拿人水果 有留錢 不算偷竊';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '社會傳真／實習傳道疑似欠債 燒炭身亡';
	rows[5].link = 'today-north6.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '先辦過戶 借款免留機車 不還錢告侵占';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '亮顏清標名討債 王銘宗等13人被訴';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '斗六工業區修路傳弊案 傳訊8人';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '淤積長草 西螺引西圳等待轉型';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '租金債權證券化 嘉縣推不動';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '半屏山剷不剷 請專家把脈';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '斜紋夜盜蟲 蹂躪大甲農田';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '沒錢維修 潭子路口監視器多虛設';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '限乘58人擠上91人 光正三號遊艇超載 錄影函送';
	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 = '東縣2支少棒隊 出國拚冠軍';
	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 = '想不通 未付153元油錢落跑吃官司';
	rows[7].link = 'today-south8.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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';
																										
}
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 = '高調 巴洛克秋妝';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '2007春夏米蘭脫衣術';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '今夏爆紅 超辣牛仔短褲';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '3000元 低價OLPC明年上市<br>主推落後國家 減少資訊差距';
	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 = '自創品牌當老闆 100﹪成功密碼';
	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(7);
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 = 'RSV高危險群幼兒<br>才需施打免疫球蛋白';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '本土病例達八例<br>登革熱 逐漸加溫';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '胃食道逆流 感覺像火燒心';
	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';
																										
	rows[6].text = '老年性水腦症<br>看似退化 易被忽略';
	rows[6].link = 'today-medicine7.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 = '色小孩<br>變奏：一段關於顏色的寓言';
	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 = '《天鵝湖》裡的黛妃';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '新馬戲運動 台灣正開始';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '當代館教育展「藝糕人膽大」<br>認識藝術就像吃甜點';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '「長笛夏夜」音樂會';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '台博館年度大展︰西班牙特展';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '申學庸 鼓勵大家把話說開';
	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 = '香港，總有鮮玩法';
	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';
}