//===========================================================================
//基本設定
//==================== 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(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 = '《星期人物》游錫&#22531; 發揮水牛精神 穩住了黨';
	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 = '政治味十足／高捷案、水電費 攻防焦點';
	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(4);
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';
																										
}
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 = "愛狗人抗爭 北京很警張";
	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 = "Vista短短4秒音效 音樂家540天心血";
	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 = "PS3東京首賣 搶手";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中日對照讀新聞》男性&#12398;理想女性像、身長&#12399;母&#12392;一致<br>男性的理想女性形象、身高與母親一致";
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = "《中英對照讀新聞》Eating out may encourage bingeing 外食可能助長暴飲暴食";
	rows[9].link = 'today-int10.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 = '綁架PUB股東勒贖未遂 2匪落網';
	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 = '豆漿辣嬤 57一枝花';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '婆婆媽媽 巧扮黑澀會妹妹';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '客人托顧 阿嬤照護腦麻女7年';
	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 = '讓愛傳出去 8天募2年午餐費';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-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 = '一成七球型包種茶香 不是天然A';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '孕婦染毒癮 愛滋寶寶劇增';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '輪狀病毒會重複感染';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-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 = '洋基賣老謝 換3投虎';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '基特、老爹 捧銀棒';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '女排 力拚第9';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '世界花式撞球錦標賽／搶尾局失利 傅哲偉第3';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '老鷹 站上東部排頭';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '逆轉安樂 苗商首勝';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = 'HSBC高球賽 伍茲退居第5';
	rows[11].link = 'today-sp12.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '俄羅斯拿到WTO入會門票';
	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 = '產學合作 台積年進用200名';
	rows[3].link = 'today-e4.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《品牌故事》奇美 創造企業幸福傳奇';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '塑化股否極泰來 報價止跌回升';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '富達續推全球組合基金';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '電信三雄獲利 中華電最佳';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '營建股耀眼 亞銳士慘跌';
	rows[4].link = 'today-stock5.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '特別費案 後天傳訊馬';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(15);
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 = '伍佰狂野飆唱 花朵舞超High';
	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 = '優客李林互掀底 真的不合';
	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 = '辣媽李蒨蓉 難逃法眼';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '李莞今抵台 星姊影迷急護駕';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '中居正廣口才讚 笑傲主持王';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '博物館標本復活 班史提勒被玩慘';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '克隆尼性感無敵 哈洛威當老２';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '布裘被咒明年玩完 湯凱辦婚禮神父不甩';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '布蘭妮前夫 砲轟凱文腦殘';
	rows[14].link = 'today-show15.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(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 = 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 = '鴛鴦盜偷遍八德 雙雙落網';
	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(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 = '車賊勒贖 撒嬌女發功…5萬拗成1萬2000 取回愛車';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '穿梭夜市 女學生伸手…偷店員皮包 疑涉其他竊案';
	rows[6].link = 'today-center7.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-south1.htm';
																										
	rows[1].text = '宅急便毒窟 鳥松搗破';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '50頂王建民球帽 半小時賣光';
	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';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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';
																										
}
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 = '五結賞鳥 擁抱自然生態';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '五結米鄉 米食傳香';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '你今天 Lohas了沒？<br>台北一日行程 樂活GO';
		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 = '盡情暢飲 歡樂延伸不Ending';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '專家帶隊 紅酒挑選不出錯5招';
		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 = '香甜暖滋味<br>懷念的幸福 烤地瓜';
		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';
}