//===========================================================================
//基本設定
//==================== 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(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 = '誤洩支持度18％民調 游向扁致歉';
	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 = '雙卡差別利率 首波最低399%';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '破產人 財產清算 食衣住行受限';
	rows[8].link = 'today-fo9.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '官股林誠一 接開發金董座';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '焦點人物／林誠一 扮督軍角色';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '蘇揆︰梁柏薰回台即逮';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '嫌呷歹 高捷泰勞又罷工';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '泰勞開菜單 空廚供食材';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '外勞政策 有必要檢討';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '馬輔選吳俊立前妻 林為洲痛批';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '鄺麗貞仍被看好 賴、劉攻防棄保';
	rows[7].link = 'today-p8.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '伊朗一夜三連   近1300人死傷';
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = '就業法不違憲 席哈克簽動政局';
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = '超載 巴林翻船 至少57死';
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = '一夜情 9成英婦女不認同';
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = '代禱 無助「開心」病患復元';
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = '600公尺 東京將建全球最高通訊塔';
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = '日最大在野黨魁 引咎辭職';
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = '《中英對照讀新聞》Wild elephants suffering in Indonesia\'s Sumatra : WWF<br>WWF稱印尼蘇門答臘的野象受苦';
	rows[7].link = 'today-int8.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 = '驚魂4天 付贖700萬 棺木店老闆被綁獲釋';
	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 = 'IBM租屋糾紛 房東敗訴';
	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 = '洋生抨教學 交大代課教授趕人';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '西羅亞盲人合唱團 吟唱生命之光';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '張玉仕、湯靜蓮 獲特殊貢獻獎';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '陽光加油站 為生命加油';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '鄭美珍一路牽行 視障兒重獲新生';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '許世宗做愛心 獨眼龍一樣行';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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 = 'ETC馬拉松修約 遠通強硬';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '美5大防曬品牌 挨告';
	rows[5].link = 'today-life6.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '陳家偉彈跳球 獅險勝';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '建仔傷癒 今對響尾蛇';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《BenQ UBA》周士淵率北體奪冠';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《BenQ UBA》拿下新人王 張博勝：遲來的肯定';
	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';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '房市 貴氣逼人';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '大直Desire 大直光纖網路精品豪宅';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '漢皇SUPER 中和鬧區乙種商業套房';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '雅典桂冠 低密度大樓社區';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '台大北岸 500坪社區公園';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '登陽風格 不同風格格局•別墅風格多樣';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '石上流 捷運靜巷住宅 戶戶通風採光';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '后里園區建廠 力晶動土';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '黃崇仁︰DRAM價格  6月回升';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '定存單利率 央行調幅一致';
	rows[10].link = 'today-e11.htm';
																										
	rows[11].text = '金價突破590美元大關';
	rows[11].link = 'today-e12.htm';
																										
	rows[12].text = '日圓對美元 1年內破100關卡';
	rows[12].link = 'today-e13.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '外資樂觀Q2 買超141億';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '聯發科帶動 揚智轉型 法人看好';
	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 = '供不應求 帛漢3月營收創新高';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '搶委託書 金鼎全台總動員';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '《期指觀測站》價漲量增 多方控盤';
	rows[8].link = 'today-stock9.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(10);
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 = '在港失蹤7小時？ 林志玲：搭機到瑞士';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '緯來躲Rain 黃金時段棄韓劇';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '又濕又焦 林健寰慘死火窟';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '黑珍珠2級傷害 女管家頭破血流';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '麗莎吃膩炒飯 思嘉愛打野戰';
	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(7);
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 = '&#29792;公圳 可望成帶狀活古蹟';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '保生文化祭 今晚真情開鑼';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '高壓電塔上 喜鵲築鋼骨巢';
	rows[6].link = 'today-taipei7.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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '瓦斯管線漏氣 嘉北國小7學生送醫';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '鐵線纏鐵軌影響安全 男子被訴';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '獨居老婦被騙1100萬 堅稱投資';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '送茶葉賄選 大林鎮長判刑1年4月';
	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 = '5少持槍挾持人 警鳴槍壓制';
	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 = '房仲商玩4P被下藥 逮獲2女';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '老公欠債 老婆被性侵';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '討債擄人勒贖 3嫌被逮';
	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 = '選區劃分 高市、屏東難決';
	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 = 'NMIC';
	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 = '流浪王子 阿杜<br>笑唱收養四部曲';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '人間4月天<br>宜蘭柚子花 飄香';
		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 = '變身黑美人<br>就愛健康小麥肌色';
		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 = '提不起勁嗎？<br>也許是濕邪作怪！';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '潤肺生津果之冠<br>趁著春天吃枇杷';
		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';
}