//===========================================================================
//基本設定
//==================== 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 = '規模6.4 台東大地震45傷';
	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 = '綁樁？ 藍委擬為村里長加薪';
	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(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 = '含過量致癌物 英4飲料下架';
	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 = '《中英對照讀新聞》Malaysia Opens Drive-In Massage Parlor 馬來西亞開設公路按摩院';
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = '《中日對照讀新聞》日本&#12398;犬社&#20250;&#12418;高&#40802;化<br>日本的犬隻社會也趨向高齡化';
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '越南小吃部 情色襲南台';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '應召傳播男 北台正流行';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '8歲小英雄 奮不顧身 退綁匪救妹';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '12中國偷渡犯 海上攔獲';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '黑幫港仔 專業訓練 吞毒球闖關';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '社會幽靈 水火交攻毀ATM';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '媽祖回鑾 爆竹炸傷4轎伕';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '58億賭債 一筆勾銷';
	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 = '2警救下山 迷路夫妻感恩';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '糕菲膳工坊 4月中重開幕';
	rows[12].link = 'today-so13.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 = '公益方案衍生費用1200萬 遠通一度要求高公局買單';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = 'ETC收費契約 消基會批不合理';
	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 = '教師檢定人擠人 阿嬤也來考';
	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(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '林英傑 8局好球';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '王建民 3號先發';
	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 = '3月投打MVP 都是暴力熊';
	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 = '《南方貝爾菁英賽》才平球場紀錄 米寇森創個人新低';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '本田車手 首度奪桿位';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '羽球亞錦賽 台灣女雙今爭冠';
	rows[10].link = 'today-sp11.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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].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';
																										
}
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 = '《品牌故事》悅氏礦泉水 山泉湧財富';
	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 = '美妝前15大 SKⅡ穩居后座';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '開發金 一場沒有贏家的戰爭';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '三星NAND 全球霸主';
	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(13);
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 = '王心凌Woosa Woosa打節拍 愚人節歌迷尬舞同High';
	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 = '入戲後遺症--星卉慘遭強暴 片場失魂崩潰';
	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 = 'w-inds4連霸 登台創紀錄';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '最蠢美國人 麥可4連霸';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '泰瑞嗑生蠔 馬殺雞萊恩弟';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '傑克啵男喊恐怖 惹火伊恩麥克連';
	rows[12].link = 'today-show13.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 = 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(8);
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';
																										
	rows[6].text = '墓地火警四處燒 警消累癱';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '垃圾不分類開罰 官員街頭稽查';
	rows[7].link = 'today-taipei8.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 = '巴士鹹豬手 摸1分鐘判6月';
	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';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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 = '假扮親友借錢 1年半詐逾億';
	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 = '只因無聊！ 2少年偷車、加霸王油';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '醉漢載醉漢 拒酒測撞傷員警';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '兄弟檔搶劫 婦人遭拖行受傷';
	rows[5].link = 'today-center6.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '尋人高手張順德 外界開700萬挖角';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '媽祖會香大典 16家宮廟參加';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '南市2等9號道路 水溝蓋全被偷';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '高捷泰勞營區 恢復正常工作';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '小小莫札特 最小僅10歲';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '台東地震大家談';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '毒品前科男 2月內犯7案';
	rows[6].link = 'today-south7.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 = '終統必須落實';
	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';
																										
}
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(11);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '創意市集尋寶圖  4月8日西門町趕集趣';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '古著春裝秀 狂Fun趕集嘉年華';
		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 = '鹹豬手，滾！  開黃腔，No！';
		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 = '動物園明星秀 魅惑一家老小';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '企鵝搖搖擺擺 萬人迷';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '可愛兔兔照顧術<br>圓圓小毛球 飼養有妙招';
		rows[10].link = 'today-weekly11.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';
}