//===========================================================================
//基本設定
//==================== 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(10);
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 = '27日表決 藍綠動員包圍立院';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '藍高雄嗆扁 工博館拒借場地';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '股市重挫 藍綠互槓';
	rows[9].link = 'today-fo10.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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 = '非常光碟製作人林一方：拍攝228 還原政府犯罪史實';
	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';
																										
}
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 = "高油價時代 日廠紛推節能車";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "環保流行風 美淺綠人士大增";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "美國牛肉 7月重啟日本大門";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Jack the cat chases black bear up tree 捷克貓把黑熊追趕上樹";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '全台最大Ｋ他命走私首腦 離台前落網';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '中部地區逾10建商 接獲歹徒勒索電話';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '財報不實 搜索夆典科技、科橋電子';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '裝潢太吵 告鄰重傷害';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '他醉臥車道 冤駕駛輾過命危';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '索賄案 徐維嶽300萬交保';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '70歲病婦 愛心麵包宅急便';
	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';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '貓植晶片納管 明年4地試辦';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '申請入學放榜 建中283分 北一女281分';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '指考 首邀2高中老師入闈';
	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 = '雪隧內龜行  週末起開罰';
	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 = '刷卡換面膜 5診所涉詐千萬健保';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '就醫全都露 疑健保IC卡不保密';
	rows[12].link = 'today-life13.htm';
																										
	rows[13].text = '癌末媽媽寫生前遺書 伴子成長';
	rows[13].link = 'today-life14.htm';
																										
	rows[14].text = '天下名茶大賽 遭中國放話打壓';
	rows[14].link = 'today-life15.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 = '《2006世界盃足球賽》墨西哥 搶到晉級票';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《2006世界盃足球賽》安哥拉伊朗 一起打包';
	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世界盃足球賽》世界盃第2000球 艾巴克 歷史一頂';
	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 = '《2006世界盃足球賽》千里達 烏龍結局';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《2006世界盃足球賽》日媒清算 奇哥等人撈20億日幣';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '四連勝逆轉 熱火封王';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = 'MVP閃電俠 小時仰慕喬丹';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '獅16連勝 high翻了';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '土銀員工福利互助金 缺口近3億';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '全球百萬富豪 去年增6.5%';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '政局動盪 外資修正預測 GDP成長率恐難保4';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '鄭深池︰若連任 支持公股政策';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '台灣水果彩繪機 月底啟航';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '每人每年有113公斤蔬菜可吃';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '台灣美食週 在地小吃爭艷';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '台灣未來居論壇落幕';
	rows[7].link = 'today-e8.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '《理財Q&A》新鮮人投資  建議以基金為主';
	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 = '手機Q3持平 Q4爆衝';
	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';
																										
	rows[9].text = '樺晟萬旭 實施庫藏股';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '璨圓元砷 股價提前反彈';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '《期指觀測站》力守6,200點 多方仍可為';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '歐股午盤跌 澳印度大漲';
	rows[12].link = 'today-stock13.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(16);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '金曲甩Bra   侯佩岑丟廣告';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '小豬情傷失魂 忘東忘西';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = 'Jolin開唱嘉賓 拉燕姿拒周董';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '分手≠離婚 陳孝萱捲入重婚';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '仔仔嚴重戀母  看到大S全身病';
	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 = '孫耀威作莊 42萬落袋啦';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '愛上男同志 同恩自爆三角戀';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '金馬影后舒淇 敗給一匹馬';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '尿尿馬拉松 惡搞創意惹爭議';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '阿湯哥播種上癮 妮可否認帶球嫁';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '馬龍白蘭度顯靈挺超人';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '席爾再弄大海蒂克拉姆肚子';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '長澤雅美黏TT 妻夫木聰陷情網';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '今井翼迷堂本剛 帶隊膜拜';
	rows[15].link = 'today-show16.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(9);
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 = '速限僅30公里 民怨沖天';
	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';
																										
}
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 = '涉虐死寄養女童 女求刑8年';
	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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '高中申請入學  中一中275分 女中272分';
	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 = '投檢起訴21人 並查縣府有無涉弊';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '疑妻出軌剝衣凌虐 男子送辦';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '放炮暴力逼債 楊斯安收押';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '持有土製魚槍 原住民觸法';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '設站供非法下載 研究生緩刑';
	rows[9].link = 'today-center10.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '吉貝島遊客 檢舉飯店廚餘污染海洋';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '逢雨必淹 高縣議員也槓捷運局';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '挖牆竊飲料 大賣場損失70萬';
	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 = '屢次打老父 逆子求刑7個月';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '農民臥田間 疑遭到雷擊死亡';
	rows[7].link = 'today-south8.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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 = '究責vs.誹謗';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '向頭家報告';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '通緝犯又來了';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '拜託放過股市';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '馬不知臉長';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '總統開講';
	rows[10].link = 'today-o11.htm';
																										
	rows[11].text = '難兄難弟';
	rows[11].link = 'today-o12.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(4);
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 = '比基尼60歲的性感';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '夏被上床 一夜好夢';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '新加坡電信展Part2 展場花絮全都露';
	rows[3].link = 'today-fashion4.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(5);
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 = '老人講電話愈講愈大聲<br>留心有老年性聽力障礙';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '小朋友說屁股癢<br>可能是蟯蟲作怪';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '糞便潛血檢查<br>可篩檢大腸癌';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '皮膚癌誤認為濕疹<br>自行擦藥無效才就醫';
	rows[4].link = 'today-medicine5.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
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-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';
																										
	rows[5].text = '大師身影 文學塑像';
	rows[5].link = 'today-article6.htm';
																										
	rows[6].text = '海涅傳唱不絕的最後一字';
	rows[6].link = 'today-article7.htm';
																										
	rows[7].text = '不可能的文學任務';
	rows[7].link = 'today-article8.htm';
																										
	rows[8].text = '想我社區的姊妹兄弟們';
	rows[8].link = 'today-article9.htm';
																										
	rows[9].text = '新聞短波';
	rows[9].link = 'today-article10.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '藝術投資好花正開 名作拍賣價一再翻高';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '美蓋蒂博物館收藏贓品 義大利追討';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '傳藝布袋戲匯演金光閃閃 宜蘭辦完 高雄辦';
	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';
																										
	rows[6].text = '旅遊作家舉辦系列講座';
	rows[6].link = 'today-art7.htm';
																										
	rows[7].text = '如何學好作文  作家張曼娟、管家琪心得分享';
	rows[7].link = 'today-art8.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 = '清涼 刺激 濕漉漉<br>荖濃溪泛舟記';
	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';
}