//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
showHouse = false;
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'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.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 class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La 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 = '黨產攻防 綠要斷藍2008糧草';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '黨員質疑討黨產決心  游：玩真的';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '藍急推「政黨法」解套';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '綠公投提案後天送行政院';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '扁批三媒體抹黑 早就不看';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '聯合報道歉 趙不告了';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '掌握地下情報員 真假立判';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '台澳關係 谷底回升';
	rows[8].link = 'today-fo9.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '林國慶有此一說 深藍刺施 嫁禍深綠';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '倒扁總部 傾向9.2起靜坐';
	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';
																										
	rows[8].text = '新聞眼／不利戰略 內部有異議';
	rows[8].link = 'today-p9.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 = "暗搞毒門生意？海漂3漁夫 疑點重重";
	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 = "聖母像遭竊 希臘人怕招厄";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中英對照讀新聞》These condoms won't penetrate the market…這些保險套「插」不進市場…";
	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 = '首例／騎水上摩托車 無帽受罰';
	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 = '一夜情狂人 連中4鏢';
	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 = '身障夫妻 相互扶持17年';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '書法媽媽 做菜都在想寫字';
	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(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '雪隧＋童玩節 宜蘭觀光進帳15億';
	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 = 'WGT2006電玩大賽 兄弟飆速爭冠 抱走34萬大獎';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = 'TRML高中數學競賽 林皆安 15秒解題奪金牌';
	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';
																										
	rows[10].text = '未來一週 午後有雨';
	rows[10].link = 'today-life11.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 = '黃俊中 開張';
	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 = '《美國PGA錦標賽》伍茲、唐諾 並列領先';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《世界男籃錦標賽》魏德飆分 美大勝中國';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '專訪日本職籃bj聯盟執行長河內敏光<br>亞職籃國際化 盼組跨國聯盟';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《世界青年田徑賽》女子鐵餅 周月晴擲進第8';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '200仰式 皮爾索再締新猷';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '辛吉絲 重返世界前10名';
	rows[10].link = 'today-sp11.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '咖啡連鎖效應 市場缺口仍在';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '去年家庭收支 居大卻縮衣';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '家庭平均儲蓄額 14年新低';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '穆希250美元創業 60歲退休';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '印度環保團體 槓上可口、百事可樂';
	rows[5].link = 'today-e6.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'PC面板漲勢 9月仍強勢';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '製程轉換 華亞科月績恐小滑';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '台股量能放大 可挑戰6800點';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '聚陽前七月盈餘 領先同業';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '電子跌深股 彈性高';
	rows[4].link = 'today-stock5.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(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '季芹消失2個月 被爆懷了小仁甫';
	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 = '料理東西軍9月喊卡 助理主持偷拍惹禍 不再點菜';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '專輯再不賣 王宏恩︰回鄉種田';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '印尼上空遇亂流 183高唱阿彌陀佛';
	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 = '陳美鳳聲入雪山隧道 第1人';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '李妍瑾走紅 通緝逃亡父';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '荷莉貝瑞登峰造極 碧昂絲美臀誘人';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '東洋視覺系 團結力量大';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '田中聖 廣末涼子 夏日祭典消暑';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '閏鬼月 恐怖入侵不設防';
	rows[13].link = 'today-show14.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》媒體應守住新聞專業倫理的底線';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》革命法庭';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》施、馬誰主倒扁浮沉？';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '新生和平公車道雙白線 違規線阱';
	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';
																										
}
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 = '社會傳真／2收容學生不告而別 被找回';
	rows[4].link = 'today-north5.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 = '上網賣改造長槍 賣家被逮';
	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 = '彰縣10大死因 惡性腫瘤居首';
	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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '暌違90年…五年祭重現 勇士生疏';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '台灣環姐選拔 25佳麗入圍決賽';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '雙喜 澎湖水族館 新生報到';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '南市違章工廠 想轉合法缺用地';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '官田水雉鳥復育區 富生機';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '自製長刀拆廣告 里長伯高招';
	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';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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 = '24小時抗議？ 請先溝通';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '誰騎誰?';
	rows[8].link = 'today-o9.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(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '最時尚 菱格紋';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '洗臉粉乾淨';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '晚安果凍 夜間保濕新歡';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '秋冬內在美  奢華至上';
	rows[3].link = 'today-fashion4.htm';
																										
	rows[4].text = '高價液晶螢幕 強打高對比度';
	rows[4].link = 'today-fashion5.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-family1.htm';
																										
	rows[1].text = '懷疑老公戀姐情結  老婆妒火中燒';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '消費大事週報';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '濾水網妙用多';
	rows[3].link = 'today-family4.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
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-medicine1.htm';
																										
	rows[1].text = '老人家疑神疑鬼  失智症早期症狀';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '抗老化五秘訣  讓腦部更年輕';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '幼年型類風濕性關節炎 多在四至十歲發病';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '痲瘋病 有機會完全治癒';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '清暑益氣湯、藿香正氣散 中醫消暑良方';
	rows[5].link = 'today-medicine6.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
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-article1.htm';
																										
	rows[1].text = '默默為伴';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '我與早餐店老闆娘的關係';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '新宿有料';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '畢爾包';
	rows[4].link = 'today-article5.htm';
																										
	rows[5].text = '感覺靠岸的瓶子';
	rows[5].link = 'today-article6.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
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-art1.htm';
																										
	rows[1].text = '重要明初鎏金銅佛收藏  秋拍競價';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '長榮樂團與Hello Kitty同歡  朱團去糖果屋歷險';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '觀看台北的多元想像  北美館展出';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '封存記憶的標本 黃子欽影像裝置展';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '挑戰公德心 許博允音樂會上開手機';
	rows[5].link = 'today-art6.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-travel1.htm';
																										
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	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';
}