//===========================================================================
//基本設定
//==================== 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 = '96年台海危機 我有31劇本應變';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '10年前朝野一致對外 10年後…台灣有人隨北京起舞';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '顧崇廉：軍方情資 不會真的開打';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '當年中國若進犯…外島守軍打完為止 指揮官300萬安家費';
	rows[8].link = 'today-fo9.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '外勞引進 高捷早就列入計畫';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '扁︰2008交棒給民進黨同志';
	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';
																										
}
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 = '三輪車滿街跑 紐約擬立法管制';
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = '美放棄裁減核武 2030年完成現代化';
	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 = '《中英對照讀新聞》Tears, standing ovation for award-winning Bosnian film 波士尼亞得獎電影引人熱淚、起身鼓掌';
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = '《中日對照讀新聞》日本&#12398;熟年夫婦&#12364;直面&#12377;&#12427;「新成田離婚」 日本中高年夫婦面臨的「新成田離婚」';
	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 = '糖商女綁架案 4嫌落網';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '高雄火車站 詐騙集團最愛';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '新平價歡唱 流動KTV街頭竄紅';
	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 = '女童玩命線阱 1命危 1遭勒斃';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '愛的回響／魏家婉拒 民眾仍偷渡愛心 紅包現金袋湧入醫院';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '愛的回響／請託購屋者 別讓5童流浪';
	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(12);
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 = 'ETC解套方案 交通部沙盤推演';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '寶寶五型拳 秀出敏捷與活力';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '明星大頭貼 捧紅小太陽';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '永信員工 低價私賣處方藥';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '精神病患換駕照被拒 批北市歧視';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '企鵝三姊弟 扶持抗病魔';
	rows[11].link = 'today-life12.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '3:14 難堪的結局';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '松&#22338;障礙 台灣的最痛';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '輸不起 嘟嘟抗中';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《安麗盃撞球賽》8強 天后撞龍捲風';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《安麗盃撞球賽》只求贏自己 譚湘玲衝出一片天';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '環台賽今揭幕 TT2級來踢館';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '16000分 最年輕當屬他';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《SBL》箝制田壘就贏 台啤大老二 晉級聽牌';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《SBL》少了阿富 銀球少一味';
	rows[8].link = 'today-sp9.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 = '霍爾的和風城堡 Steven Holl';
	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(7);
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 = '全台第6個 台中商銀工會 取得罷工權';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '立委砲轟 國營事業敗家 浪費2400億';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '春天做什麼好？ 百貨業 忙著變臉改裝';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '雲門．原民．音樂 壽險業 人文氣息濃';
	rows[6].link = 'today-stock7.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(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '吳辰君 Bye了小開男友';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '5566狂瘦塑肌 吼！紮馬練氣';
	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 = '楊思敏喜滋滋 10月當新娘';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '瑛士粉紅馬達搞笑 小池徹平中槍催淚';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '崔智友使壞 加入黑幫逞兇';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '華視徵美眉 留給民視使用？';
	rows[10].link = 'today-show11.htm';
																										
}
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(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 = '談判破裂青少年群毆 1人遭砍重傷';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '露點與否 警方取締標準';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '撞火車、遭衝撞 4機車騎士重創';
	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(9);
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 = '專找電玩店 遊藝場公會抗議啦';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '中市警方放寬處分標準';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '李逸洋重申：查緝方向正確';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '要不到錢 毒蟲燒炭身亡';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '通緝犯調戲女店員 挨打送醫洩底';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '越南籍女看護 墜樓身亡';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '役男休假找援交 錢被騙走';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '女傭熟睡 色男偷襲判刑7月';
	rows[8].link = 'today-center9.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-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 = '追贓車 警開槍逮1嫌';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '搶銀樓 半月內涉7案';
	rows[5].link = 'today-south6.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 = '廢統 廢了陳文茜經貿IQ?';
	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 = 'Gucci、毛巾、米蘭計畫';
	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(10);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '小學生排行榜TOP 10 <br>熱門寵物';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '最酷最炫神奇寶貝';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '稀奇古怪 小學生最愛';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '愛牠，就幫牠築一個窩';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '為面紙盒換上新造型';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '破除歲月皺語<br>養眼完全手冊';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '斑斑點點 統統給我Get Out';
		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';
																											
	}
	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';
}