//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
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(8);
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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '關廠潮 中高齡勞工飄搖';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '傳產失業夢魘 科技新貴皮皮剉';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '陳博志︰加碼中國 拉低台灣工資';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '投資中國 拖垮台港經濟';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '錢進中國 台灣嚴重失血';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '民進黨「趙建銘條款」 廉政規範 擴及公職家屬';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '民進黨全代會通過 禁代繳黨費 砍十萬人頭黨員';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '藍綠家法相似 輕重有別';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '周聯華 籲停止謾罵抹黑';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '旅日台灣僑團 發表挺扁聲明';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '滅宋計畫 藍營基層盛傳';
	rows[11].link = 'today-p12.htm';
																										
	rows[12].text = 'NCC九委員 傾向暫時留任';
	rows[12].link = 'today-p13.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 = "中東戰火 第三次世界大戰火種？";
	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 = "齊娜 太陽系第10顆行星";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "為日相鋪路 終戰紀念日 安倍︰不參拜靖國";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "地產漲10倍 小柯進駐哈林區 黑人被迫搬家";
	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 = "《中英對照讀新聞》Court: Film Companies Can\'t Cut Smut 法庭裁定：片商不能刪除情色劇情";
	rows[8].link = 'today-int9.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 = '在中國耍詐 13嫌將押回';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '離家20年 換身分證變死人';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '飆仔回頭 不懂法律再入歧途';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '辨真幣達人 蒐集假10元';
	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 = '蹺家少年躲鞋櫃3天 順手牽羊';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '藥商醫生不倫戀 女判刑男無罪';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '怕她嘮叨 熄菸少酒 原民健康';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '台南→台東 良師翻山越嶺教測量';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '原住民公仔5代珍藏版來了';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '國巨老闆／李銘智 陽傘揚善盡孝心';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '海洋音樂祭 10萬人high到最高點';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '溺水男童機智 仰漂獲救';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '《星期人物》李逸洋 以跑400米精神拚治安';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '維修X光得血癌 首獲補償';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '高危險群職業病 應定期健檢';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '自然組跨考生 排擠社會組名額';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '大學志願 今起5天上網選填';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '高中五專登記分發門檻 和去年差不多';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '列車冷氣故障 台鐵退費機制故障';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '立委︰ETC扣款失敗率高 遠通︰欠費違規不應列入';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '登革熱滅蚊快沒藥可用了';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '高市採用複方藥劑 學者︰仍有抗藥性問題';
	rows[12].link = 'today-life13.htm';
																										
	rows[13].text = '生物防治法滅蚊 1條孔雀魚1天可吃42隻孑孓';
	rows[13].link = 'today-life14.htm';
																										
	rows[14].text = '藝術治療 為患者生命開扇窗';
	rows[14].link = 'today-life15.htm';
																										
	rows[15].text = '藝術治療師的心聲--透過創作 看見自己 看見生命';
	rows[15].link = 'today-life16.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 = '建仔11勝 洋基第1';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '面對劣勢 學習成長';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '被全壘打數少 名列前茅';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '楊清瓏︰靈活配球 制敵足矣';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '暌違三年 葉偉志日巡賽摘冠';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《英國高球公開賽》伍茲連霸';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《環青海湖自由車賽》馬騰偷吃步 驚險保住黃衫';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '建仔小學弟 進軍小馬聯盟世界賽';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《辛辛那提網賽》小威34次失誤 淘汰怪自己';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《RCA男網賽》決賽雙雄 都是美男子';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '夢7操兵 戰術改重禁區';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '《亞洲女足賽》台灣 3敗墊底';
	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(5);
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';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'DOP飆漲 聯成獲利看俏';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '液晶電視電供器 出貨增溫';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '儒鴻在越合資廠 9月投產';
	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';
																										
}
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(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '周董棄P投M 搶Jolin手機代言';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '海洋狂祭3日 颱風前謝幕';
	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 = '粉絲脫衣示愛  阿沁嚇到緊牽Faye';
	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 = '喬治麥可打野戰 58歲司機誇性能';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '貝克漢激情義大利 力拚第4胎';
	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';
																										
}
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 = '路面不平 開車撞人癱瘓無罪';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '冒充大老闆 機場行騙';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '父子3人行醫 奉獻原民醫療76年';
	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 = '南港區公所skype通訊 服務on line';
	rows[5].link = 'today-taipei6.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 = '因案社區服務 碩士辭工程師全心投入';
	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 = '1300泳將 搶灘料羅灣';
	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 = '13歲協尋少年 菸不離手';
	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 = '猛倒車跌落山溝 3乘客負傷爬出';
	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(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 = '安平溺水事件 重傷女學生不治';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '台東離島停駛 近5000遊客趕回';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '台灣鄉土采風 Discovery拍攝新化、七股';
	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 = '賭NCC委員辭不辭';
	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(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '新機秀';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '少年ㄟ 逛百貨 殺暑假';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '小臉術：緊實按摩+立體修容';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '機車族專用靴 不悶汗';
	rows[3].link = 'today-fashion4.htm';
																										
	rows[4].text = '時尚童話 奇幻之旅';
	rows[4].link = 'today-fashion5.htm';
																										
	rows[5].text = '夏日冷氣 省電大戰';
	rows[5].link = 'today-fashion6.htm';
																										
	rows[6].text = 'Cyber-Shot手機 現身<br>跨越300萬畫素大關';
	rows[6].link = 'today-fashion7.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-family1.htm';
																										
	rows[1].text = '因妻子外遇而離婚  女兒不知真相';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '兔式';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '消費大事週報';
	rows[3].link = 'today-family4.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
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-medicine1.htm';
																										
	rows[1].text = '孕婦頭暈  中醫首重辨證論治';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '正確使用止痛貼片  改善生活品質';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '攝護腺肥大 不影響性功能';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '眼睛中風 延誤治療會失明';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '3D影像導引電腦刀  提供治癌新選擇';
	rows[5].link = 'today-medicine6.htm';
																										
	rows[6].text = '基因診斷治禿頭  醫界尚無法證實';
	rows[6].link = 'today-medicine7.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '第一屆 林榮三文學獎 得獎者新作大展9 小品文篇';
	rows[0].link = 'today-article1.htm';
																										
	rows[1].text = '蘭嶼記事';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '過道暫留';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '潔癖炒鱔魚';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '愛讀書《設計東京》';
	rows[4].link = 'today-article5.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '潛心修煉 白蛇一身功夫<br>《精∼白蛇傳奇》賦予傳說新智慧';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '賞陶 像品味一幅好畫<br>台灣現代陶藝創作展';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '劉其偉的冒險 上帝也瘋狂';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '88 位好手報名<br>台北少年蕭邦鋼琴大賽移師國台交';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '陰道的多元思考<br>周文偉攝影展';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '研究人員走出庫房<br>故宮首推「與策展人對談」活動';
	rows[5].link = 'today-art6.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '河內36條古街走透透  尋訪北越舊城風情';
	rows[0].link = 'today-travel1.htm';
																										
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	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';
}