//===========================================================================
//基本設定
//==================== 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 = '高俊明、金恆煒籲施：不要將台灣帶向仇恨';
	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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '馬促綠提罷免 柯建銘：絕不可能';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '南縣山區反施標語 照片裝瓶寓意瓶頸';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '倒扁 重低音震撼 台大病患抓狂';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '國際媒體看倒扁︰創意多、共鳴少';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '扁：台灣之子就是台灣牛';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '紅潮逢雨 交通塞爆';
	rows[5].link = 'today-p6.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "911五週年紀念特輯 走過傷痛  珍惜家人";
	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 = "《中英對照讀新聞》'Robo-sommelier' offers wine tips 機器人酒侍提供葡萄酒訣竅";
	rows[4].link = 'today-int5.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 = '花蓮血案 5屍全為子女 父母失蹤';
	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 = '自封Ｋ王子 大學生開BMW販毒';
	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 = 'A片遮三點 男子告老闆';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '30歲想增高 砸150萬全被騙';
	rows[8].link = 'today-so9.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '踏野尋蘭 林維明變蘭花達人';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '學母語別中斷 學者建議國中改必選';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '921遺孤 蔡成圭待如己出';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '人形機器人 玩猜拳 還會扮鬼臉';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '預防性投藥 寶寶垂直染愛滋降至2％';
	rows[5].link = 'today-life6.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '7年3度開刀 小郭熬出「投」';
	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';
																										
	rows[11].text = '張銘煌 鉛球破全國';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '活桌兩好手 小莊晉四';
	rows[12].link = 'today-sp13.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '6P退休規劃 留本為要';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '股債資產配置 隨年齡調控';
	rows[2].link = 'today-e3.htm';
																										
}
menu = null;

menu = getMenu('stock');
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 = '南韓三星 10月來台採購';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '油價跌至近66美元 金價同下挫';
	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';
																										
	rows[5].text = '旺季來臨 面板廠出貨放大';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = 'REITs挹注 基泰估Q3獲利創新高';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '推展黃金期貨 期交所有賞';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '《一週股市觀測站》本週站回月線 關注焦點';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '《台股上週漲跌幅排行榜》太陽能類股 仍有好光景';
	rows[9].link = 'today-stock10.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 = 12;
menu.menuLayer = 0;
menu.rows = new Array(17);
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 = '侯佩岑甩情傷 海撈2800萬';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '南拳首演 周董喧賓奪主';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '言承旭 2天狂撈5250萬';
	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 = '色．戒拍攝牛步 王力宏狂NG成箭靶';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '吳玉嬋豔冠群芳 王姿琇角逐環姐';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = 'Hermes香港秋冬秀  謝絕藝人專營VIP';
	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';
																										
	rows[15].text = '硬頸奉俊昊超駭 吸金40億';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '阿嬌遭偷拍 明旺聲勢暗折機運';
	rows[16].link = 'today-show17.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(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '8年級美眉 查贓車天后';
	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 = '萬人登高 感染山林秋意';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '口耳「香」傳 智障兒變月餅「糕」手';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '溫馨9.9 病童開懷 歡笑久久';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '豪雨受困 9遊客溪畔露營 幸運獲救';
	rows[10].link = 'today-taipei11.htm';
																										
	rows[11].text = '基地台藏身水塔 沒裝水管被識破';
	rows[11].link = 'today-taipei12.htm';
																										
}
menu = null;

menu = getMenu('north');
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-north1.htm';
																										
	rows[1].text = '2小客車對撞 車毀1死3重傷';
	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 = '佯家庭代工拐存摺 詐騙集團3人落網';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '彰化舢舨漂通霄  失主設宴致謝';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '社會傳真／女闖空門被逮 家中贓物百萬';
	rows[6].link = 'today-north7.htm';
																										
}
menu = null;

menu = getMenu('center');
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 = '明道中學3天2火警 疑遭縱火';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '疑感情糾紛被擄走 他跳車獲救';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '12樓墜下 女實習老師未脫險';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '財產30萬欠債280萬 聲請破產遭駁回';
	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 = '有別於走水路 毒品摻香菸 有行情';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '《社會頻道》男友當馬夫 載女友賺皮肉錢';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-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';
																										
}
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 = '誠品敦南商圈 書香美食特蒐';
		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 = '戲法不同就會紅<br>新人試鏡必勝攻略';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '小天使星河初體驗<br>韋汝 K漫畫找靈感';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '嘉義新港 鄉土文化之旅';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '一路玩 一路吃<br>體驗傳統藝術之美';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '十二星座愛情篇<br>妳的他，心裡想的是愛情還是麵包？';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '健康醫療--<br>只要搬家 不要傷害';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '花編--<br>這個季節正在成為回憶';
		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';
}