//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
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'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','living','family','medicine','article','young','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 href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A 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(9);
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 = '近40年未修正 增設職業軍官淘汰機制';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '調局特考 錄取取消性別限制';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '警察擬跟進 盼99年實施';
	rows[8].link = 'today-fo9.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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';
																										
}
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 = '前南斯拉夫總統米洛塞維奇 病死牢中';
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = '巴爾幹屠夫 造成20萬人喪生';
	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 = '《中英對照讀新聞》British police to help tackle hooligans at World Cup 英國警方將協助對付世界盃的足球流氓';
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = '《中日對照讀新聞》＜台&#28286;＞祝！&#12522;&#12540;監督 &#12450;&#12459;&#12487;&#12511;&#12540;賞受賞&#12395;沸&#12367; 台灣狂賀！當地因李安導演勇奪奧斯卡而沸騰';
	rows[8].link = 'today-int9.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 = '拉K不罰 毒害蔓延';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '女騙子詐貸上億 找遊民當頭家';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '兩岸最大地下銀行 華源昌瓦解 斷台商洗錢金脈';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '毒販劈腿！女友翻臉不頂罪';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '情殺共死？ 勒斃女友仰藥亡';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '贓車逆駛 撞4環保志工';
	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';
																										
	rows[13].text = '助貧童就學 學長義賣拉一把';
	rows[13].link = 'today-so14.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-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 = '火車改道…領班應該知道？';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '下令 施工恪遵軌道作業規定';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '台灣小將揚威AMC 林皆安滿分 亞洲唯一';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '搶救椰子蟹 環團連署反對打通東屏';
	rows[8].link = 'today-life9.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 = '古巴7局被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 = '旅外球星／郭泓志中繼1.1局 Ｋ掉2人';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《環台賽落幕》瑪吉斯隊抱走雙冠';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '湖人拔刺 勇士滅火';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《ＳＢＬ》無關晉級 東森纏鬥台啤';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《LPGA巡迴賽》盧曉晴啟航賽 並列13';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = 'F1 \'06賽季今開戰 本田等著扮黑馬';
	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 = '工研院創意中心內 百變夢工坊';
	rows[6].link = 'today-e7.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '陳瑞隆：鼓勵發展品牌設計';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '油價跌破60美元大關';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '兩大快遞集團 加碼台灣市場';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '超微直逼英特爾城門';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '7大銀行2月逾放比 僅台銀、土銀下滑';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '白木屋 把員工當成家人';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '胡勝正︰台灣競爭力比韓國強';
	rows[7].link = 'today-stock8.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 = '西城男孩尼基 喬吉娜 黏TT';
	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 = '王宇婕愛昏頭 媽媽蕭瑤震怒';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '楊烈拳拳到肉 菜鳥Ben求饒';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '克雷格像野獸 龐德女狼很享受';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '莎莉賽隆恐婚 5年戀情吹了';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = 'Rain拚經濟救韓流 獎賞免役';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '米倉涼子喝掛落韓語';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '李安事業運 未來5年高峰期';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '林青霞婚姻 5月面臨大考驗';
	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 = '攝計101 象山卡位';
	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 = 'CAMPO狂歡 分享新世代藝術文化';
	rows[4].link = 'today-taipei5.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-north1.htm';
																										
	rows[1].text = '欠200多萬 男擬徵婚賣身還卡債';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '拖車頭過身未過 闖紅燈罰單申訴撤銷';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '13歲少女走透透 會網路13少';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '男想出國賺錢 苦於遭限制出境';
	rows[4].link = 'today-north5.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 = '年輕2男 相約旅館赴黃泉';
	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 = '持瓦斯槍搶遊藝場 3嫌被訴';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '衝落山谷 2死2重傷';
	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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台灣漫畫利多 本土畫家盼政府開發';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '鹽埕漫畫圖書館 漫畫祭 有看有玩有獎拿';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '鼻內牙 鼻中膈硬塊 兩公分活牙';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '腦麻券商遭搶 警追回全買';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '超商遇劫 缺牙毒蟲落網';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '檳榔攤掩護 暴力毒梟曝光';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '空地焦屍身分 警籲提供線索';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '逆子變成慣竊 親娘含淚提告';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '4男6女開轟趴 慶生涉毒送辦';
	rows[8].link = 'today-south9.htm';
																										
	rows[9].text = '工程款爆紛爭 亮玩具槍嚇人';
	rows[9].link = 'today-south10.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '312，你們就好好走吧！';
	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 = 'ETC案如何避免全民買單？';
	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';
																										
	rows[10].text = '趕快抗議 否則.....';
	rows[10].link = 'today-o11.htm';
																										
	rows[11].text = '做生意 當然用西元標示';
	rows[11].link = 'today-o12.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	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].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '好品味　　　→';
		rows[1].submenu = 'living';
		rows[1].link = 'today-living1.htm';
	
		rows[2].text = '家庭兩性　　→';
		rows[2].submenu = 'family';
		rows[2].link = 'today-family1.htm';
	
		rows[3].text = '健康醫療　　→';
		rows[3].submenu = 'medicine';
		rows[3].link = 'today-medicine1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.htm';
	
		rows[5].text = '青春美　　　→';
		rows[5].submenu = 'young';
		rows[5].link = 'today-young1.htm';
	
		rows[6].text = '藝術文化　　→';
		rows[6].submenu = 'art';
		rows[6].link = 'today-art1.htm';
	
		rows[7].text = '休閒旅遊　　→';
		rows[7].submenu = 'travel';
		rows[7].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('living');
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('family');
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('medicine');
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('article');
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('young');
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;

menu = getMenu('art');
menu.layer = 19;
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 = 20;
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 = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(13);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '發現外雙溪<br>知性&感性 春遊記';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '雙溪小徑<br>尋找森林裡的幽靜';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '哈啾 塵&#34766;出動囉﹗<br>防止過敏居家清潔大作戰';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '防&#34766;專用 小小恐怖分子撤退';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '打造芭比粉紅彩妝<br>妝前保養＋完美遮瑕';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '保養、彩妝<br>10大錯誤OUT 漂亮不NG';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '他們的魔髮生活<br>破解 5大 美麗的誤會';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '大女人 小男人<br>專屬包養網站正受歡迎';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '無聊嗎？來玩玩吧！<br>網路小遊戲幫你殺時間';
		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';
																											
		rows[12].text = '小女子防狼術 熱烈使用中';
		rows[12].link = 'today-weekly13.htm';
																											
	}
	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,700);
}

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,700);
}

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';
}