//===========================================================================
//基本設定
//==================== 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(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '推動主動叩關 民間團體發聲 訂10.24為台灣聯合國日';
	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';
																										
	rows[8].text = '扁談紅衫軍 堅持深化民主';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '謝再咬A電話費 郝反擊高捷案';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '高市陳黃羅三將 搶攻婦女票';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '選輸負責？ 馬：不會讓敗選發生';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '李連宋王馬 五巨頭角力';
	rows[12].link = 'today-fo13.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '蘇揆公共建設套案 3年7265億';
	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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-int1.htm';
																										
	rows[1].text = "倫敦戀老色魔 16年害近百人";
	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 = "加拿大華裔人頭稅平反／領賠償支票 99歲老翁第一人";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Pakistan arrests 22 Indian fishermen 巴基斯坦逮捕22名印度漁民";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中日對照讀新聞》美&#12375;&#12356;&#22269;&#12434;逆&#12373;&#12395;&#35501;&#12416;&#12392;… 「美麗之國」倒過來唸的話…";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '8通發話．6個地點<br>通訊追蹤狡匪 交叉比對破案';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '假討債真綁票<br>囚夫婦2天 迫簽3550萬本票';
	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>陳國樑在美 控告刑事局';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '相守72年 耳環謝媽祖<br>妻「健」入佳境 夫「環」願謝神';
	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 = '老人運動會 「活龍」蹦蹦跳';
	rows[11].link = 'today-so12.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 = '雙姝奮鬥10年 搶救瀕危達悟語';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '動漫祭拚造型 3歲小龍女搶鋒頭';
	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 = '騎自行車「撞」況多 平均每2天死1人';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '炮聲火光引領 東港王船遊天河';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '女嬰突休克 機警保母CPR救小命';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(19);
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 = '下放7棒 小頭反成殺手';
	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 = '教頭惜教頭 30年好友聖堂對決';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '2傷兵歸隊 老虎利多';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '橘巾 虎迷吉巾';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '9違之作  陳純甄WPBA復出';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '亞運撞士 誓奪金';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '郭泓志 悄悄返台';
	rows[13].link = 'today-sp14.htm';
																										
	rows[14].text = '日職總冠軍賽／剁火腿 中日首勝';
	rows[14].link = 'today-sp15.htm';
																										
	rows[15].text = '建仔簽名悠遊卡 募得133萬';
	rows[15].link = 'today-sp16.htm';
																										
	rows[16].text = '台灣大長春賽 地主留不住金盃';
	rows[16].link = 'today-sp17.htm';
																										
	rows[17].text = '馬德里名人網賽／納達爾 爆冷遭淘汰';
	rows[17].link = 'today-sp18.htm';
																										
	rows[18].text = 'NBA熱身賽 勇士火力旺 5連勝';
	rows[18].link = 'today-sp19.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-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';
																										
	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';
																										
}
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 = '勞保改年金制 最快3年後可月退';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(16);
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 = '奧蘭多抵台 黃絲帶接機';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '夏川里美秀中文 喝完再唱';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '阿妹狂high打鼓 3000萬珠寶險甩飛';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '梁靜茹騎木馬 親親大合唱';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '李準基受尊寵 繪理香copy濱崎步';
	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 = '金馬玩命 康岑保1億險';
	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 = '娜姊養女無蹤影 掏24萬買童裝';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '金楨勳發夢滑雪 熱到猛飆汗';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '奇男怪女 大陣仗來台會粉絲';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '深情黃立行 多情小豬 才子陶&#21894; 誰抓得住Jolin';
	rows[15].link = 'today-show16.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 = 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(5);
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';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 11;
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-north1.htm';
																										
	rows[1].text = '關切西濱快工程 阿扁總統到苗栗';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '台北牛肉麵節 20人氣王出爐';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '全民瘋棒球 球場大巡禮';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '熱力搖滾 新竹火車站前好High';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '集團婚禮 50對新人同步長吻';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '基宜淨攤 兩地清出9噸垃圾';
	rows[6].link = 'today-north7.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 12;
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 = '賊車時速破百 闖30個紅燈落網';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '水保區養3萬隻雞 污染水庫';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '躲來車翻落果園 1死1傷';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '空中垂吊救傷患 消防署露兩手';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '偷學生背包 賊躲廁所被逮';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '破窗沒偷成 反被搜出毒品';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '不服取締 向警丟石塊送辦';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '男子落大排 打撈搜救未果';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '爆胎翻車 女駕駛破窗爬出';
	rows[8].link = 'today-center9.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 = '東山咖啡節 月底同來邂逅175';
	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 = '台農IC產業－蝴蝶蘭';
	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 = ' 体育&#12398;日談連假';
	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 = 12;
	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 = 12;
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 = '秋遊三芝漁米鄉  看筊白筍72變';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '轉動三芝水車  重溫老時光';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '前進政大商圈  嘗大馬風味餐';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '在地人推薦  甜蜜糕點雲南滇味';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '金針之鄉 發現在地美味';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '鹿仔草小吃 山產最鮮美';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '寵物變裝秀  穿衣戴帽  耍造型';
		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';
}