//===========================================================================
//基本設定
//==================== 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(11);
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 = '76歲阿祖代母 茹苦養曾孫';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '范淑音 坐輪椅搏命生女';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '助車禍女返校園 慈母伴讀 愛相隨';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '晚晴婦女舞現魅力 為姊妹加油';
	rows[10].link = 'today-fo11.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(14);
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';
																										
	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';
																										
	rows[9].text = '謝薦子弟兵 陳菊不言退';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '丁諷變色龍 郝低姿態';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '藍海戰術 自家人雄辯';
	rows[11].link = 'today-p12.htm';
																										
	rows[12].text = '民進黨中央黨部 疑遭竊聽、偷拍';
	rows[12].link = 'today-p13.htm';
																										
	rows[13].text = '《星期人物》悲劇英雄葉金川 難逃政治惡水淹沒';
	rows[13].link = 'today-p14.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-int1.htm';
																										
	rows[1].text = "虛擬家家酒 美國超IN";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "影集變電玩 鎖定師奶玩家";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "Y世代辣媽 網購業者最愛";
	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 = "《中日對照讀新聞》韓&#22269;、「&#20001;親&#12398;日」&#12395;美容整形&#12398;&#12503;&#12524;&#12476;&#12531;&#12488; 韓國「雙親節」 送美容整形當禮物";
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = "《中英對照讀新聞》Bush's Spanish Not Good 布希的西班牙語不好";
	rows[9].link = 'today-int10.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-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 = '家有第三者 4成3民眾認應處罰負心漢';
	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 = '牽手當志工 約會散播愛';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '蠶娟姊妹情 拉被絲毫不馬虎';
	rows[10].link = 'today-so11.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 8;
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-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 = 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 = '王建民 完美3勝';
	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 = '泰山黃金期 看好下五年';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '陽耀勳一軍練球 王桑賞識';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '蓋特林 世界最速男';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '熱火 太陽 雙勝';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '索后淘汰 台灣雙姝晉級';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '三回合 林根基仍第三';
	rows[10].link = 'today-sp11.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(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 = '油價上週上漲2.6%';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '台灣網路整備度 全球第7';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '面板雙虎 減產度小月';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = 'DKSH 深耕台灣醫療物流';
	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 = '春季電腦展 人潮回籠 買氣尚未發酵';
	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(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 = '洪榮宏開金嗓 2個媽當靠山';
	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 = '元氣TANK獻唱 高喊媽媽樂';
	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 = 'Cars發飆 溫馨大車拚';
	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 = '裴勇俊 Se7en 攻日爆紅有口碑';
	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 = 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(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 = '永和淹水防災演練 動員近400人';
	rows[7].link = 'today-taipei8.htm';
																										
}
menu = null;

menu = getMenu('north');
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-north1.htm';
																										
	rows[1].text = '刀殺前妻男友 醋男被逮';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '煞車失靈 卡車撞翻 駕駛卡住';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '查捉銅線 民眾超哈 警所頭大';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '換鈔被拒懷恨在心 男嫌殺死超商店員';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '社會傳真／竹東壯漢愛偷機車 眾人搖頭';
	rows[5].link = 'today-north6.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 = '偷洗蚵抽水機 2吸毒嫌犯氣壞蚵農';
	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 = '想賴帳 2毒蟲遭毒販砍殺';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '海線地區飛車搶案 逮1嫌';
	rows[6].link = 'today-center7.htm';
																										
}
menu = null;

menu = getMenu('south');
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 = '窮毒蟲解癮 自殘求醫打麻藥';
	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';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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';
																										
}
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 = '攤販聚集 吃喝玩樂購物天堂';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '好攝之徒 密技大曝光<br>手機隨拍 7大要訣';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '樂狗上鏡頭 10招見笑';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '網路家家酒開張<br>餐廳老闆就是你';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '十二星座<br>不為人知的隱藏個性';
		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 = '蠟筆小新真人版';
		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';
}