//===========================================================================
//基本設定
//==================== 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','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 = '馬去留關鍵  在三天內社會反應';
	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(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 = '0.18微米西進 經部規劃中';
	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 = "「最後一擊」 駐伊美軍擬增兵2萬";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "胡錦濤拒見 加總理理直氣壯";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "伊拉克教派衝突 中東不定時炸彈";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "明訂愛國教育 日教育法闖關";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "假設殺妻 辛普森出書撈錢";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "尼安德塔人、人類 未雜交";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "幹細胞培育心瓣 科學家辦到了";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "休息時心跳越慢 活得越久";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中英對照讀新聞》Millions 'hit by toilet phobia' 數百萬人「飽受公廁恐懼症困擾」";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-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 = '28歲才會走 ”站”勝坎坷人生路';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '病床音樂會 美麗樂章 植物人也”驚豔”';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '蘇揆代言 1957專線 伊救我起關心你';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '3個單身媽咪 守護14個”小孩”';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '雲林家扶中心募款籌建 一人一千 打造折翼天使的家';
	rows[8].link = 'today-so9.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台大5宿舍 住宿費最多喊漲1倍';
	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 = '濟州島空域驚魂 兩機空中接近 遠航急降21傷';
	rows[4].link = 'today-life5.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 = '泰山開砲 擊古吐悶';
	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 = '松&#22338;旋風 颳進波士頓';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '魔鬼魟450萬美元 標下岩村';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '吉拉迪、李蘭 年度教頭';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '格蘭盃 台灣3女將晉8';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '鳳凰高球賽 伍茲暫居第3';
	rows[10].link = 'today-sp11.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '為女圓夢   單親媽媽創業賣長笛';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = 'REITs投資熱不墜 首選亞太區';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '歐股好到明年 六投顧叫進';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '《理財Q&A》銀行促銷電話 先確認身分';
	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 = 'APEC投資論壇 我在越辦說明會';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '抗議逼退總座 彰銀工會擬反制';
	rows[10].link = 'today-e11.htm';
																										
	rows[11].text = '併購案未協商 僑銀工會擬罷工';
	rows[11].link = 'today-e12.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '德銀：TV面板  寒冬降臨';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '原相、聯發科競逐 類比科直追';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '茂矽翻黑 漢磊續漲';
	rows[2].link = 'today-stock3.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 = '4月才被爆助理代排隊∼ Jolin美簽又出包 一副老K臉';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '爭睹阿湯哥婚禮  追星陽台飆420萬';
	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 = '言言太難喬 Sweety恐拆夥';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '李威溜回台撈錢     劇組怒下禁足令';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '飽餐撐肚 Elva被熊抱';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '2moro送車 網友組隊包牌';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '季芹疼胖寶寶 花50萬掃貨';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '唐家豪負重37kg 登山腿軟恍神';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '廣末分居9個月 離婚倒數計時';
	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 = '摔到滿身傷? 5歲童疑遭虐死';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '警察外遇 情婦控始亂終棄';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '供載盜版電影 ezPeer又出包';
	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(8);
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 = '95歲嬤走失 警憑貨物單找到家';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '反廢棄物入鄉 石門人宣戰';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '姊妹盜銀樓 民眾攔截送辦';
	rows[7].link = 'today-north8.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
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-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';
																										
	rows[7].text = '守望相助隊 明年起警方接管';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '小天使登台 資源、特教班飆戲';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '大林國小 裝置藝術慶百歲';
	rows[9].link = 'today-center10.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '南化水庫 地方爭設單一保護區';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '公所沒買酒測器 新營市代輪番轟';
	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 = '5款少油高纖便當 外食族健康吃';
	rows[7].link = 'today-south8.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '全台景觀餐廳VS.兜風路線';
		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>大高雄郊區嘗美食';
		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';
}