//===========================================================================
//基本設定
//==================== 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="'+path+'activity.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(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 = '中國海西區 將吸乾台灣產業';
	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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '18％釋憲 大法官不受理';
	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';
																										
}
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 = '韓明淑 將成南韓首位女總理';
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = '紐約尋狗 靈媒、偵探出擊';
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = '2100年前 海平面恐上升6公尺 紐約變水都';
	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 = '《中英對照讀新聞》Japan teacher sorry for watching baseball in class 日本教師為在上課時間看球賽道歉';
	rows[6].link = 'today-int7.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 = '義勇攔賊反遭賊輾斃';
	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 = '竊案破得早 救回攤販一命';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '見LV就搶! 搶10次 8次假';
	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 = '80歲老志工 不畏癌色向前行';
	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(7);
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 = '澎湖發現 825萬年前爬蟲化石';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '旅遊卡 72％利率誘人 吸金上億元';
	rows[6].link = 'today-life7.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 = '87球 完封牛 小雞慶生';
	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 = '小史出馬 陽陽得意';
	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 = 'NCAA頭號種子出局';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《春季田徑賽》劉元凱 百米跑進亞運';
	rows[9].link = 'today-sp10.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(8);
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 = '品川Villa 汐止山居溫泉別墅';
	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';
																										
	rows[7].text = '公園住宅 銷售無敵';
	rows[7].link = 'today-e8.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '開發金持金鼎證股 達37.82%';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '2月貨幣供給 全數走跌';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '人民幣升值慢 美議員擬推動課稅反制';
	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 = '高股息電子股 可逢低佈局';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '力特老董 澄清負面傳言';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '阿爾卡特 有意併購朗訊';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '《期指觀測站》6350點 短線多空分界點';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '《國際股市》歐股午盤漲 印度收高';
	rows[9].link = 'today-stock10.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 = '政府遠通 各讓一步 ETC續上路';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'Mike密友林均虹 和小S相對無言';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = 'Selina忐忑學開車';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '香取慎吾扮悟空 自豪狂嗑小籠包';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '時尚唱片倒閉 Twins新輯夭折';
	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 = '優香拍拖ISSA 柴崎幸搞破壞';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '白石美帆 談辦公室戀情';
	rows[9].link = 'today-show10.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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '兒育有好康 4月初1樣玩免費';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '鶯歌農會傳變Motel 民眾痛批';
	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 = 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-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 = '為情為債奪命 竹縣警4小時偵破';
	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 = 13;
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-center1.htm';
																										
	rows[1].text = '差點撞車 15男女街頭群毆';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '家族六合彩簽賭站 累計賭資逾5億';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '吸血車行！借10萬要還60萬';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '假刑警恐嚇 檳榔攤失金';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '錢莊、討債公司逼死人 中市警27日起大掃蕩';
	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 = '性侵女子 瘖啞惡狼判刑4年';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '老五老基金會遭竊 損失逾30萬';
	rows[9].link = 'today-center10.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 = '319槍擊案 是否不當取供 南檢派員調查';
	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 = 'KTV槍擊案 涉案男子逃往中國';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '走私…87部機車被海關扣';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '損友…男友扁女友前情人';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '惡母…偕同居男友殺兒子';
	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(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '拚治安 抓大尾';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '推動女人的憲改';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '台語軍歌';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '台灣人心靈圖像';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '芝山巖事件';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '山姆大叔牧馬記';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '誰是敵人?';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '馬版兩國論';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '養工處肥缺';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '製造笨小孩';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '流浪動物哀歌';
	rows[10].link = 'today-o11.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(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 = '完美腿型 一手打造<br>名模＋迷你裙 引領美腿風潮';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '歡迎光臨 回春抗老很靈';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '絕對美肌 4大熱門光療法';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '風尚中華時尚料理 宮保蝦球';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '機械石英表Q＆A';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '癌友營養愈好 化療副作用愈少';
		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;
}
//====================  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';
}