//===========================================================================
//基本設定
//==================== 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(6);
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 = '網友列10多罪狀 告馬英九';
	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 = '西進惡果 出口成長連3年跌破亞洲平均';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '木器家具 風光不再';
	rows[5].link = 'today-fo6.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 = '政府機關風景區開會 年耗18億';
	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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "中國公務員  半年污掉1230億";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "以轟炸卡納鎮 無辜黎民56死";
	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 = "《中英對照讀新聞》Australian town can't stomach recycled sewage water 澳洲小鎮無法接受回收污水";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '錫箔紙換輪椅 愛心大騙局';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '未中獎發票當寶 全台收透透';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '南迴案 社會成本耗逾3億';
	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 = 'KTV 打群架 警開槍捕人';
	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 = '66歲阿美 老人院開心當小妹';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '火鳳凰葉貞君 病友鼓勵 百憂解';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '視障黃士珍 中年失業 大無畏';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(11);
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 = '橋樑檢修車 台鐵買了2年無法驗收';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '醫師下猛藥 害病人成癮';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = 'DHC蘆薈汁含苯量過高 日回收';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '複製奇蹟 「生」技革命';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '複製人類 科學家狂想 爭議聲不斷';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '織女星 曾是地球北極星';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '動漫祭 現代店小二郵務服奪冠';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '危機四伏 長春祠擬長期封閉';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '胃食道逆流患著 就醫比例低';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '吳阿明分享婚姻幸福之道';
	rows[10].link = 'today-life11.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '強森被KO';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '想拚塞揚獎 先降防禦率';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '網友熱烈討論 把建仔列入教材吧';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '姜建銘傷癒復出 吞首敗';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '失誤失投 熊9局下失守';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '4個頭銜飛了 泰山變無冕王';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '雙陳熱棒 獅吞10敗';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '國際雜耍節 台灣3金1銅';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《捷安特盃自行車邀請賽》同袍抬轎 賴冠華無福消受';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '蓋特林 藥檢陽性';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '魏成美錯失首勝';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '連三站NO.1 大舒好德意';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '羅納迪諾 要告大嘴名模';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '公鹿送走馬格羅里';
	rows[13].link = 'today-sp14.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '網友大串連 將赴Yahoo抗議';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = 'Yahoo賣家轉陣PChome 搜尋得到';
	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 = '杜哈談判後續 美巴官員樂觀';
	rows[4].link = 'today-e5.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '景氣趨緩 聯電填權受考驗';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = 'PCB大廠除權 本週密集登場';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '獲利穩 橘子上半年EPS逾一元';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '搶攻MP3晶片 合邦、安國卯勁';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '《期指觀測站》台指期轉強 須先站穩月線';
	rows[4].link = 'today-stock5.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '產業外移 台灣第一剩空殼';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '小豬長尾巴 緋聞戀情悶燒';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '小豬緊抱大S 仔仔跳出車瞪大眼';
	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 = '土台客 老歌催落去 征服搖滾迷';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '鼻環孝子朱孝天 難忘亡父3句話';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = 'Sweety日久生情 言言露骨示愛';
	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 = '一拍即合 導演變情人<br>伍迪艾倫搞不倫最震撼 阿薩亞斯送影后最窩心';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '金楨勳選妃 上千粉絲搶當愛人';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '近畿小子自爆 曾遭中居正廣鹹豬手';
	rows[11].link = 'today-show12.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》國民黨喊清廉改革不是玩真的';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》神話破滅';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》除「三錯」！';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '老外吃牛肉麵 全麵出擊';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '一本文化護照 七種主題享受';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '公立高中轉學考 目標離家近';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '向天池 剎那間湖光山色';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '武俠情侶 重現浪漫愛情故事';
	rows[4].link = 'today-taipei5.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(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 = '詐騙案被害人 把警察當騙子';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '拚觀光 基隆東北角推海洋嚐鮮遊';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '蘭陽戲劇團虧大了 審計部提糾正';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '娃兒掛貫 祈平安長大';
	rows[5].link = 'today-north6.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
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';
																										
	rows[7].text = '毒子癮發作 母親含淚報警';
	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 = '18億整治東港溪 蘇揆承諾協調';
	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(8);
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';
																										
}
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(6);
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 = '面膜大觀';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '礦物質彩妝';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '指尖玩色 珠寶感與華麗感';
	rows[3].link = 'today-fashion4.htm';
																										
	rows[4].text = '巴黎男裝週 美麗Dandy風';
	rows[4].link = 'today-fashion5.htm';
																										
	rows[5].text = '性能房車新悍將 Cadillac STS-V';
	rows[5].link = 'today-fashion6.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 = '老公推拖床事  竟看色情光碟DIY';
	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(5);
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 = '健保資料要更新  IC卡不必跟著換';
	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';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
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 = 17;
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 = '多樣性台灣特展 吸引外國人目光<br>策展人林書民：發現台灣有很多值得驕傲處';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '旅館結合音樂 宗教關注音樂<br>藝企平台風氣 逐漸成形';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '弦月滿月一樣美<br>身障人士才藝大展';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '指揮葛伊諾爾到位<br>英國國家芭蕾舞團《天鵝湖》 現場交響樂團伴奏';
	rows[3].link = 'today-art4.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';
}