//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
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(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 = '大老挺到底 扁非貪污免下台';
	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 = '防火牆若失靈…罷免案有可能成立';
	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(11);
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 = '郝靜坐 謝諷特權真貪腐<br>馬驅離 宋譏藍軍今遊行';
	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 = '借扁450萬 黃維生︰我還是挺他';
	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';
																										
}
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 = "胚胎冷藏13年 喜獲麟兒";
	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 = "《中英對照讀新聞》Scientist extols power of silence 科學家讚揚寂靜的力量";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = 'La new投手教練林光宏遭脅迫案／押人3嫌 願出面說明';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '真假明牌 黑道遙控 球員心驚';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '瞎子監視器採購弊案 中壢市長收押 副市長代理';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '中國網軍 竊台網拍個資行騙';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '「小媽媽」揮拳 打死3月女嬰';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '互為手腳 腦麻3女向前行';
	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 = '守護大湖客庄 238伯公祠話傳奇';
	rows[9].link = 'today-so10.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 8;
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-life1.htm';
																										
	rows[1].text = '創意牛肉麵 鐵板燒主廚最棒';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '座椅堵死逃生門 台鐵全拆';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '氣壓變低 會讓疼痛惡化';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '獸醫愛夜巡 盜獵難遁形';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '亂服偏方 1家4人終身洗腎';
	rows[5].link = 'today-life6.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 9;
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 = '古巴隊有時差 照打12安';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '小雞MVP 臨別秋波';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '梅達斯16座金手套 平紀錄';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '穆西納 投效大都會?';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '美日職棒明星賽－美得冒砲 2連勝';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '世界女排錦標賽／台灣擊敗歐洲冠軍 4連勝';
	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 = '小布歸隊 湖人3連勝';
	rows[9].link = 'today-sp10.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-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 = '農金保經下月上路 仿郵局賣保險';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '台灣松下轉型史 見證台灣經濟';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '百貨週年慶拚戰 SOGO主打特惠組';
	rows[6].link = 'today-e7.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(18);
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 = '王婉霏 劉&#30026;宏 停機3年 禁慾打球 明年洞房';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = 'Buddy處男同居 辣妹搶獻身';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '蔡明亮：永遠退出金馬';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '張睿家斷背纏綿 爹娘樂歪';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '詹慶齡出嫁   主播大會師';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '天蒼蒼 野茫茫 言承旭 風吹草低見牛羊';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '幾十碗蜆湯下肚 陳昭榮愈夜愈猛';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '杜德偉 許紹洋 強上Lara！';
	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 = '小田切讓 鬍來好MAN 潮男齊步走';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '唐澤壽明駁斥婚變 大讚山口智子廚藝';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '文根英設目標 超越廣末涼子';
	rows[16].link = 'today-show17.htm';
																										
	rows[17].text = '郭富城氣旺 連莊有望 李燦琛黑馬 來勢洶洶';
	rows[17].link = 'today-show18.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(2);
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';
																
}
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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '候鳥來了 相約北縣賞鳥去';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '台北花展 奼紫嫣紅報喜訊';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '緬懷光華號 紀念章戳快來蒐集';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '文史導覽 樹人家商、大觀國中學子扮尖兵';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '林口寶林路 下月可望重開通行';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '創意轉動 國中生闖關';
	rows[5].link = 'today-taipei6.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 11;
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 = '閒置2年 羅東養護所終於開張';
	rows[5].link = 'today-north6.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 12;
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 = '警開6槍 活逮網路惡狼';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '嘉大校慶校友捐建 重現嘉農亭';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '3000義消聚南投 8項競技比高下';
	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 = 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 = '宋江陣比拚 海濱、瓦&#30936;國小特優';
	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 = '拚5連霸 高市副議長蔡松雄設競選總部';
	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 = '《四草嬌客》反嘴&#40244;就位 「濕地三寶」到齊';
	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 = '庭長vs.檢察官';
	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 = '2／12';
	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(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	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-weekly1.htm';
																											
		rows[1].text = '氣泡飲料 傳統醬油 身世大揭祕';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '中部產業博物館 有看又有玩';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '展館走透透 豐富體驗行';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '走入時光隧道 一覽產業風華';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '南台灣特色產博館 重現農漁采風';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '展館知性旅一訪人文自然之美';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '大安商圈趴趴走  品味精緻和風料理';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '異國Tone新食感 美味主打星';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '菊鄉嘗美食  味蕾好享受';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '漫遊水里溪  嘗在地平民美味';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '沙漠玫瑰  懶人植栽最優選';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	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';
}