//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','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-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(8);
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 = '扁提興票案 駁爆料歪風';
	rows[7].link = 'today-fo8.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 = "拒絕美國模式 拉美3國合組貿易協定";
	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 = "GSI世代 不再DIY";
	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 = "《中英對照讀新聞》Stolen George Washington Letter Returned to Mass. Archives 遭竊喬治．華盛頓親筆函歸還麻州檔案館";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中日對照讀新聞》&#12488;&#12512;&#12539;&#12463;&#12523;&#12540;&#12474;&#12398;赤&#12385;&#12419;&#12435;&#12398;名前 &#12452;&#12473;&#12521;&#12456;&#12523;&#12391;&#12399;「出&#12390;行&#12369;」 阿湯哥寶寶的名字 在以色列意為「滾出去」";
	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 = '前民防副分隊長 臨檢搜出槍毒';
	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 = '遊客拍馬腹 馬驚狂奔 高市警花 墜馬掛彩';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '升上教授變個人 揚言要殺妻';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '4口無聲 聽障母 不畏逆境養兒';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '癌末媽媽最後一個夢 圓了';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '熱心夫婦 幫單親友人養小孩';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '愛心老師 教清寒障生彈琴';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '辦學不力 7私立校院績效補助飛了';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '二技統測 錄取率估87％';
	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 = '維他500含過量苯？ 飲料商受損要找衛署賠';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '社會隱憂 近6成外籍看護工超時工作';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
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 = '曾的好 恰恰好 雙重戰 鯨象打平';
	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 = '《SBL》裕隆拔頭籌';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《SBL》達欣酒醒 削翻台銀';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '1分逆轉勝 騎士國王同樂';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '太陽禁區 任人湖來';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '魯尼受傷 世足賽缺陣?';
	rows[8].link = 'today-sp9.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '特別301 我續列一般觀察名單';
	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';
																										
	rows[5].text = '債市大多頭 逢低佈局';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '擔心制裁伊朗 油價續漲';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '台糖一甲子 老機器動起來';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '美元轉弱 金市利多';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '加幣升值 創28年來新高';
	rows[9].link = 'today-e10.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 = 11;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '阿湯哥7.1丟紅色炸彈 恐嚇信先到';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = 'LV派對 亂到最高點';
	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 = '費玉清1套西裝走唱全場';
	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 = '王的男人獻初夜 李準基5/6登台';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '金玟歡喜出閣 婚後進軍好萊塢';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '史努比惡狗 大鬧機場傷7警';
	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(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 = 10;
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 = 10;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '腦麻陳彥任 教出職場奇蹟';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '8成市府官員 不看藝術表演';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '北市啦啦隊賽 High到最高點';
	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';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
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-north1.htm';
																										
	rows[1].text = '妙齡女子鬧自殺 17樓頂虛驚一場';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '3重車連環撞 肇事駕駛輕傷';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '學寶寶爬行 火場逃生沒問題';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '吸毒者共用針頭 愛滋病如火燎原';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '查獲地下兵工廠 逮2人跑了1人';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '羅東五結竊案增多 民眾提高警覺';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '基層選舉 新竹地區賄聲賄影';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '推倒鄰居磚牆 罪疑唯輕不起訴';
	rows[8].link = 'today-north9.htm';
																										
	rows[9].text = '槍毒犯落跑 返家被逮著';
	rows[9].link = 'today-north10.htm';
																										
	rows[10].text = '關心弱勢家庭 古兆平熱心腸';
	rows[10].link = 'today-north11.htm';
																										
	rows[11].text = '溪畔男屍 疑釣魚不慎溺斃';
	rows[11].link = 'today-north12.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '毛豬摔落 國道員警封道逮豬';
	rows[0].link = 'today-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';
																										
}
menu = null;

menu = getMenu('south');
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-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 = '重傷觀光客 小三通返台';
	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';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《澄社評論》台海現狀的弔詭';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '被丟石頭的扁嫂';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '高鐵「歐日混血」一定出事？';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '乾淨街道 新社會運動';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '為零期乳癌患者請命';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '如何讓北市軸線翻轉';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '馬式邏輯';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '軍校碩博士聯招 不公平';
	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(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 = 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-weekly1.htm';
																											
		rows[1].text = '坐擁綠島海天景';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '潛水去 必要裝備一次搞定';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '裝備就緒 潛水安全又Easy';
		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 = '女按男•增情趣<br>用按摩 幫他消除壓力！';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '冷氣選購全攻略 10大冷氣選購要訣大公開';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '擦板、空心、不肉包<br>遊戲機 遊戲機投籃高手現身';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '擺脫蝴蝶袖 美麗一夏';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '夏天美白 牙齒也要白回來';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '還你一口白牙 同步居家牙齒美白DIY';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	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';
}