//===========================================================================
//基本設定
//==================== 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','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(10);
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 = '中國市售台灣水果 9成5冒牌貨';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '中國惡搞 武陵雪峰茶沒轍';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '反仿冒 我提清單盼中國約束';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '無所不仿 中國年削數千億美元';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '假的太真 原廠也難辨';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '中國抄得凶 台商是幫凶';
	rows[9].link = 'today-fo10.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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';

	
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-int1.htm';
																										
	rows[1].text = "十大辣妹千金女 身價破兆";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "玻璃金字塔超人氣 羅浮宮頭大";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "聖經紅海分開 火山爆發搞鬼？";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "東條英機不符入祀靖國資格";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "蘿莉塔情結 日色情業掀幼齒風";
	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 = "國際太陽能車 我衝第六";
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = "《中英對照讀新聞》Hi-tech ink perfects egg boiling 高科技墨水讓蛋煮得完美";
	rows[9].link = 'today-int10.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 = '逼死5命 黑衣人還到殯儀館';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '受害人控迷魂女盜 騙500萬珠寶';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '鄰雞走失捉來吃 嘴饞男子吃官司';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '台大生搭計程車追6公里 逮破窗盜';
	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 = '父監控2子 家中上演楚門秀';
	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 = '盲人陪跑員 成績亮眼';
	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 = 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-life1.htm';
																										
	rows[1].text = '網友串組反虐聯盟 促修法重罰';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '3幼犬遭棄 1隻尾巴被剪斷';
	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 = '早上10點前 下午3點後 紫外線UVA是UVB的400倍';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '耳機戴3年 16歲聽力像60歲';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '蟑螂活 恐龍滅 學子創意救生態';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '大學榜單 明8時網路公佈';
	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 = '老爸無照行醫 罕病兒點滴在心';
	rows[12].link = 'today-life13.htm';
																										
	rows[13].text = '崔小妹渾「圓」天成 最像爸拔';
	rows[13].link = 'today-life14.htm';
																										
	rows[14].text = '世界盲棒賽 台灣紅不讓3連霸';
	rows[14].link = 'today-life15.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '週三對白襪 王者之戰';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '建仔出場 全台逾30萬人收視';
	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 = '《世界盃女子棒球賽》曾領先10分被追平 美射日衛冕后冠';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '鏖戰11局 鯨獅做白工';
	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 = '伍茲美巡50勝 快到手';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '仇家相逢 夏揮凱失手居亞軍';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '劉家汛帶頭衝 南霸天稱王';
	rows[11].link = 'today-sp12.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '南韓經濟減速 韓元急貶';
	rows[0].link = 'today-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';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '護士自擠母奶 救病娃母女';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'Hebe & Jolin 搭同機話不投機';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '伊林辣妹解放 比基尼逐浪爭峰';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = 'F4暑假各自發威 合體有得等囉';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '林志玲吐舌裝可愛 網路發燒';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '陳小春衰翻了 張柏芝鋒狂夜';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '容祖兒素顏電老外 微波搶鋒頭';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '虎父無犬女 我家有個警察老爸';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '楊雅筑曾少宗 曖昧遊東京';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '強沃特被裘莉開除 柯波拉當不成星爸';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '妮可帶球4個月 凱蒂討打想蹺家';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '廣末代言挨轟 安達拍戲出糗';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '死魂曲好邪門 市川由衣哭不停';
	rows[11].link = 'today-show12.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》對台灣有利的事，中國會做嗎？--面對台查斷交之變不能再衝開放了';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》顧水桶與顧面桶';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》反扁英雄？';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 10;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '有牌路霸 市府坐視不管';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '外勞詩文大賽 多了台灣味';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '山仔后美軍宿舍群 夾縫求生';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '通姦被告 騙法官贏得官司';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '剝蝦單人冠軍 3分鐘吃45隻';
	rows[4].link = 'today-taipei5.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '暑期打工 誤闖幽靈公司';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '高山竊案 鏡頭被偷 酒被喝光';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '風城都城隍爺遣將 查夜晚訪';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '大嬸婆、阿三哥肖像 北埔亮相';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '向爸爸致敬 桃竹苗洋溢溫馨';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '颱風搗亂 花蓮賞鯨客直直落';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '石梯漁港走休閒 遊客回升';
	rows[6].link = 'today-north7.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '鳴笛，煞不住…復興號撞死婦人';
	rows[0].link = 'today-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 = '朝天宮普渡 開山祖媽當主角';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '中元普渡 假日提前祭好兄弟';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '中科污水放流管 不強行動工';
	rows[6].link = 'today-center7.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 13;
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 = '拖功防詐 銀行襄理保住老翁200萬';
	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 = '恆春搶孤 搭起10公尺棚架';
	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(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 = '立即啟動ETC出口收費';
	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 = '《曹長青專欄》<br>《中國時報》和《人民日報》';
	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 = 12;
	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 = 12;
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 = '手機好好玩';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '2006秋冬風帽  紳士嗆騎士';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '胸部保養 由下往上 由外往內';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '香水4大趨勢';
	rows[3].link = 'today-fashion4.htm';
																										
	rows[4].text = '爸爸我愛你！ 父親節送禮大補帖';
	rows[4].link = 'today-fashion5.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-family1.htm';
																										
	rows[1].text = '很喜歡軍中男 傳簡訊他都不回';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '消費大事週報';
	rows[2].link = 'today-family3.htm';
																										
}
menu = null;

menu = getMenu('medicine');
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 = '惱人的癢癢  中醫雙管齊下';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '禽流感病毒H5N1  仍無法排除人傳人可能';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '陪伴病患復健  家屬有心 病友安心';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '對抗乳癌新藥物  鎖定血管內皮生長因子';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '擁有健康白皙皮膚  天天用防曬乳才有效';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '含肝素的藥膏  血友病患不要用';
	rows[5].link = 'today-medicine6.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 15;
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 = '小原';
	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';
																										
}
menu = null;

menu = getMenu('art');
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-art1.htm';
																										
	rows[1].text = '大樹盛綠 花容正麗 曾郁文展台灣美';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '《綠島行雲圖》 辜瑞蘭書字闡畫境';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '為Hello Kitty 脫下綠色禮服  長榮交響樂團舉行親子音樂會';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '吃遍紐約 鄭麗園嚴選70家美食餐廳';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '典雅中別有新意的《天鵝湖》';
	rows[5].link = 'today-art6.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 17;
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';
}