//===========================================================================
//基本設定
//==================== 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(14);
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 = '反駁貪污腐敗-扁：絕無介入SOGO經營權之爭';
	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';
																										
	rows[11].text = '《場邊觀察》自信的阿扁 又回來了';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '扁談女婿：讓司法來教吧';
	rows[12].link = 'today-fo13.htm';
																										
	rows[13].text = '國親批扁避重就輕 綠營肯定總統坦率';
	rows[13].link = 'today-fo14.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '民進黨中央獲情資 罷免若沒過 27日有暴動';
	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 = '政爭利空 台股重挫219點';
	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 = '美3航艦群軍演 邀10國觀察';
	rows[12].link = 'today-p13.htm';
																										
	rows[13].text = '許財利：找承辦員溝通非施壓';
	rows[13].link = 'today-p14.htm';
																										
	rows[14].text = '橘主張禮遇條例綁治水 藍委跳腳';
	rows[14].link = 'today-p15.htm';
																										
	rows[15].text = '台僑證實 李濤曾住過李慧芬家';
	rows[15].link = 'today-p16.htm';
																										
	rows[16].text = '與中結姊妹市 美城市受辱';
	rows[16].link = 'today-p17.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
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-int1.htm';
																										
	rows[1].text = "小泉宣布：即日自伊拉克撤軍";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "英最新基因鑑識法 揪出遺傳缺陷胚胎";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "1秒運算1千兆次 最快超級電腦問世";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "眾裡尋母千百度 生母竟是同事";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "假幹細胞研究A基金 黃禹錫受審";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Cheating students using Web to buy coursework 作弊的學生用網路買作業";
	rows[6].link = 'today-int7.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 = '搞軌 不排除第4共犯';
	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 = '中正機場噪音弊案  大園鄉4前、現任村長收押';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '製黑心食品  保力胺-S負責人判刑3年';
	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 = '超級神捕英雄 2個月 尋6汽車66機車';
	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 = '多產奇女子第8胎 又是消防隊員接生';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '畢業禮改走儉樸風 2條牙膏半打毛巾';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '35城市禮貌大調查 台北倒數第8名';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '西方品味 外人替台北喊冤';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '奔馳36年 莒光號明年走入歷史';
	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 = '今年暑假 出國團費漲一成';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '高中職申請甄選入學 今天放榜';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '斷肉一年 食人魚改吃素';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '健保費溢付106億 立委要求連本帶利討回';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '登革熱疫情 一觸即發';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '台大植樹 菸商出席 挨轟';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '節能小撇步 省電一夏';
	rows[11].link = 'today-life12.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 = '《2006世界盃足球賽》克洛斯 「德」意';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《2006世界盃足球賽》「西」軍「突」圍 逆轉晉16';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《2006世界盃足球賽》核彈頭發威 烏軍屠「沙」';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《2006世界盃足球賽》波蘭 高奏凱「哥」';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《2006世界盃足球賽》多哥嗆罷賽 Ｇ組戰局亂';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《2006世界盃足球賽》荷阿對決 爭搶排頭';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《2006世界盃足球賽》自由之星-西班牙．勞爾&托瑞斯';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '獅15連勝';
	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';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-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 = 'WTO貿易政策檢討 我獲會員肯定';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '獨占、聯合壟斷 最高擬罰1億';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '民股同意兆豐金納入公股管理';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '新興股市套住台資近8千億';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '海外基金暫時套牢 不宜全數贖回或加碼攤平';
	rows[8].link = 'today-e9.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-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 = '面板價跌不休 LPL本季恐虧上百億';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '台積除權首日持穩 後勢看外資';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '南電：產能滿載下半年看好';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《期指觀測站》期貨市場 又見法人偏多';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '《國際股市》歐股午盤跌 日韓印度重挫';
	rows[8].link = 'today-stock9.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 = '失戀人憔悴   Selina父母護駕   吃到飽解悶';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '英格柏深情開唱   資深藝人捧場';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '仔仔黏著大S 玩電影學搞鬼';
	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 = 'Jolin慶功開唱 鑽到80萬水晶指甲';
	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 = '王的男人入圍15項 大贏家';
	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(10);
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';
																										
	rows[5].text = '淡水緣道觀音廟 違建拆了';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '水源保護區 砍樹整地 罰6萬';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '垃圾車污染八里路面 7月開罰';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '拆違建要收費 自治條例有譜';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '三芝海景餐廳 店名搞笑';
	rows[9].link = 'today-taipei10.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 = '社會傳真／工人拉住病房竊嫌 與警合逮';
	rows[6].link = 'today-north7.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '雲林中科開挖 發現漿紙污泥';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '撈過界 5艘中國漁船被查扣';
	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 = '出獄10天又殺人 凶嫌求處死刑';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '逢甲精品店 涉賣仿品 顧客檢舉 老闆送辦';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '社會傳真／香菇行賄 村長當選人被訴';
	rows[8].link = 'today-center9.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '高縣議長槓上高市府 痛批捷運配合款';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '查緝盜採砂石槍枝走火 警員誤傷左腿';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '大學必修 致遠編書 教你做30件大事';
	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 = '瞄一眼殺一大學生 主嫌改判死刑';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '婦人留遺書 燒炭自殺';
	rows[8].link = 'today-south9.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(5);
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 = '百貨Salon Magic Room';
	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 = '2006新加坡電信展 機海逼人';
	rows[4].link = 'today-fashion5.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(6);
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 = '新一代OCT  觀察視網膜新技術';
	rows[5].link = 'today-medicine6.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
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-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';
																										
}
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 = '維也納愛樂首席 萊納克諧爾  帶來純正莫札特';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '駱香林攝影畫境 水墨構圖台灣本土';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '改編卡夫卡小說《變形記》 《K的喜劇》呈現黑色荒誕';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '俄國當紅男中音 霍洛斯托夫斯基將來台';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '美國國家地理學會  首辦國際攝影大賽';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '陳郁秀  綠色執政首任文建會主委';
	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 = '帶著童心去旅行 日本箱根特色博物館巡禮';
	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';
}