//===========================================================================
//基本設定
//==================== 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','family','medicine','article','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 = '台美研判 中國再武嚇 規模將逾1996年';
	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 = '陳哲男錢流向 將約談4證人';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '李全教扯上扁 總統府嚴斥';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '蘇盈貴爆陳其邁A健保費 健保局：陳從未登錄執業';
	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(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '女性制憲圓桌會議 籲性別平權入憲';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '民進黨版憲改 總統內閣制並陳';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '城仲模談王美心：一切都過去了';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '美眾議員提決議案 籲取消台灣高層訪美限制';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '連勝文力邀 謝國樑棄橘投藍';
	rows[4].link = 'today-p5.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "大使座車被襲 美警告委國";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "查維茲反美 已成新卡斯楚";
	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 = "《中英對照讀新聞》Blogger cooks up a storm at literary prize awards 部落客在文學獎項掀起風雲";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中日對照讀新聞》花見&#12398;急性&#12450;&#12523;&#12467;&#12540;&#12523;中毒、都&#20869;&#12391;73人 賞花的急性酒精中毒，東京都內73人";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(15);
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 = '吸毒怪招 脖子上扎毒針';
	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 = '袁貴群自費架網站助弱勢討公道<br>750篇訴狀範本 e網打盡';
	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 = '機警榮服專員 保住老榮民40萬老本';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '顏殘店長迎賓 好樣!';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '寄養愛無私 棄兒病她不棄';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '跛母殘兒相依 吃苦當吃補';
	rows[14].link = 'today-so15.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '採購PP車馬達 台鐵又找問題原廠';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '救卡債人 蔡萬才：注意是非界線';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '赴喀什米爾自助遊 婦女沈屍湖泊';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '日內瓦發明展 台灣發光';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '香港金像獎 梁家輝周迅稱帝后';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '桐花祭開鑼 四月雪 越夜越美麗';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '愛滋外娘悲歌 自生自滅攜子流浪';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '活蟑螂特展 驚聲尖叫比膽';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '世界兒童運動會 熱力開幕';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '可魯台灣版 愈來愈多';
	rows[9].link = 'today-life10.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 = '郭泓志 優質中繼';
	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 = '死裡逃生 黃貴裕2分彈 鯨獲4連勝';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '萬人捧場，熊笑納3連勝';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《台維斯盃》小寶拉傷 我雙打棄守';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《恆春半島113公里超級馬拉松》後勁十足 丹尼森蟬連王座';
	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';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '園冶獎扮推手 大高雄改妝';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '引進公共藝術 校園變身';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '公園．海港．水岸 孕育新景觀住宅';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '奢華奪目 氣派毫不掩飾';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '《空間魔法師》建築師的尋夢園';
	rows[4].link = 'today-e5.htm';
																										
}
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 = '《台北體育用品展》300廠商參展 健身器材火熱';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '人民幣對美元 預估升破8元';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '反中國仿冒 美要向WTO告狀';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '升息近尾聲 長天期拆借 央行籲銀行多承做';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '房市烏雲散 3月成屋 成交量增28％';
	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 = '惜福麵包送街友 6年如一日';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '丁國琳未婚生子︰我錯了';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '飆新力藝 同門互嗆 李玟一姊 狂峰辣舞';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '第25屆香港金像獎 周董拿新演員獎 感謝乾爹黃…生秋';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '4A自由創意獎學生特別獎 全國學生總動員 搶攻廣告創意王';
	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 = '貝克漢英俊多金 英國男人最羨慕';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '61歲道格拉斯 關機停產';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '全英女星衣決高下 葛妮絲有孕味 凱特摩絲退位';
	rows[11].link = 'today-show12.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(6);
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 = 'LV大型廣告 堅持申請守法';
	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(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '兩個張國清 同天被同檢座起訴';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '高柏旦 一手抓壞人 一手燒好菜';
	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 = '花蓮豐坪橋又發生對撞 5傷';
	rows[4].link = 'today-north5.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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 = '整頓治安 中市警夜檢8大行業';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '公車司機：煞車來不及 機車逆向撞公車 2人不治';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '開車撞機車… 害人父子1死1傷<br>煎熬一整夜… 落跑司機清晨自首';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '配槍女警梁凱茵 外勤巡邏，她行';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '行竊歇業賓館 衰賊墜樓斷腿';
	rows[4].link = 'today-center5.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-south1.htm';
																										
	rows[1].text = '2山豬逛大街';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '右眉傷疤男 涉多起強盜、猥褻案';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '4檳榔攤搶案 警專案偵辦';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '2盜調虎離山 電眼全都錄';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '鼓山職業賭場 警逮29人';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '酒客衝突互毆 1人腦死';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '電纜線慣竊 這次人贓俱獲';
	rows[7].link = 'today-south8.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《澄社評論》要總統立委二合一，請修憲';
	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 = '日本ATM轉帳大限縮';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '泰雅長老 痛心疾首';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '水荒 就是因為不環保';
	rows[10].link = 'today-o11.htm';
																										
	rows[11].text = '拜香減量 才是敬神';
	rows[11].link = 'today-o12.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	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 = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].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('family');
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('medicine');
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('article');
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('art');
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('travel');
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;

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 = '信義鄉採梅<br>享受酸甜好滋味';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '梅製品 釀青梅<br>品嘗醉人滋味';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '醃脆梅就趁現在！';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '達人Via教妳<br>上班女郎 下班變身';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '愛貓族 MUST KNOW<br>9招和貓咪更親近';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '假髮有啥大不同？<br>要美麗，也要舒服自在！';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '青春拉得住<br>熱門熟女拉皮保養術';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '皺紋OUT！美容拉皮歲月痕跡Bye-bye';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '吃了葡萄 身心樂陶陶';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '男人40 性不性有關係';
		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';
}
