//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台大經濟系主任 何志欽接任財長';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '美眾院通過 廢台美互動6禁令';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '治水等6案 今可望過關';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '呂又邀會 馬：再聯絡';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '接見李侃如－扁：推兩岸進一步對話';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '洪秀柱 簽署倒閣案';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '陸軍儀隊員 上網鼓吹刺扁';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '煽惑他人犯罪 最重處刑兩年';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '卸任正副總統月退俸刪減 連戰不適用';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '國家發展 扁提兩主軸  五面向';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '扁：台灣新聞自由 亞洲第一';
	rows[10].link = 'today-fo11.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '移送7人 台開案 最快下月初起訴';
	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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "以軍逮捕哈瑪斯閣員 以巴衝突再升高";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "美東雨災 20萬人撤離";
	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 = "《中英對照讀新聞》Put bed tax to sleep 讓床鋪稅壽終正寢";
	rows[5].link = 'today-int6.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '富家子扮千面人 勒索食品商';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '「現金卡」斂財11億 首腦返台送辦';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '開補習班賣股票 詐財逾億 211人受害';
	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 = '女董座遭潑酸案 3嫌求處10年';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '毆妻想贖罪 告自己傷害';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '代女尋生母 30年後終將相認';
	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 = '東聯光訊少東綁案 主嫌是員工 判刑14年';
	rows[11].link = 'today-so12.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '屏東海生館 北市動物園 夜宿夜遊玩一夏';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '遊冬山河、武荖坑 只要1張票';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '非洲波札那新發現 萬獸之王 食際上不怕水';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '二次基測16萬多人報名 重考僅5成3';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '超速60KM、違規轉彎 加重罰';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '跳電！八卦山隧道行控中心秀逗';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '包裝海苔 5件重量短少';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '靜宜審查論文大綱要自費 校方不准再向碩士生收費';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(18);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《2006世界盃足球賽》8強開戰 貧富之爭';
	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世界盃足球賽》阿德掀地對空大戰';
	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世界盃足球賽》謝夫成科 一肩挑起勝負';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《2006世界盃足球賽》剋星判官 義軍怕怕';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '《2006世界盃足球賽》神奇魔水 魯尼心領';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '王建民先發好投 A-ROD再見轟';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '表現不輸高薪名投 薪水差一截';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '巴格納尼 NBA選秀狀元';
	rows[13].link = 'today-sp14.htm';
																										
	rows[14].text = '《友訊D-Link高爾夫錦標賽》林文堂趕上第二';
	rows[14].link = 'today-sp15.htm';
																										
	rows[15].text = '溫網第2輪 王宇佐OUT';
	rows[15].link = 'today-sp16.htm';
																										
	rows[16].text = '陳鏞基 升上二A';
	rows[16].link = 'today-sp17.htm';
																										
	rows[17].text = '瓊斯盃 7．8開戰';
	rows[17].link = 'today-sp18.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '升息半碼 優惠房貸利率破3%';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '經濟成長放緩 65%美國人反對升息';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '經濟成長率 中研院下修為4.13%';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = 'ezPeer plus 首家合法P2P平台';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '《國情密碼》就業人口 服務業近六成';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '金管會人事案 今可望公佈';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '美控英國石油壟斷、操縱價格';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '開發金今補選獨立董監';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '上半年加工出口區投資成長';
	rows[9].link = 'today-e10.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'Q3投資 股市可重於債市';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '匯款逾70萬 須確認身份';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '火金姑基金啟動 融資達28億';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '《理財Q&A》選購基金 應做好事前功課';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '原絲漲價 下游買盤觀望';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '5月TV面板出貨 年成長124%';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = 'State Farm商機 明年顯現';
	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 = '華亞科悍 DRAM氣壯';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '汐止房價翻升 宏璟浮現利多';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '侵權和解金2.3億 普安遇空襲';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = '《期指觀測站》多方力道增強 反彈格局';
	rows[13].link = 'today-stock14.htm';
																										
	rows[14].text = '《國際股市》歐股午盤大漲 亞股紅通通';
	rows[14].link = 'today-stock15.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '臥病3年剛往生 植物人遺孀產子';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(18);
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 = '芭黎絲垂涎足球3帥 貝嫂剉咧等';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '維多莉亞不禿了 花9萬接新髮';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = 'Imax 3D超人搶手 預售票賣光光';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = 'EMI嫌錢少 華納併購陷僵局';
	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 = '王宏恩 阿妹第3個男人';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '曹格釣肉彈 TANK彈琴放電';
	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 = '凱吉捐200萬美金 協助戰爭兒童';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '潘蜜拉脫光 籌錢保育動物';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '愛女照滯銷 阿湯哥找台階下';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '方文琳婚變第一次 獻給民視';
	rows[16].link = 'today-show17.htm';
																										
	rows[17].text = ' 陳剛信轟AGB尼爾森 殘害台灣媒體';
	rows[17].link = 'today-show18.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(8);
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 = '7月新制 處罰過度包裝、6交通措施 明上路';
	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';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '吊車撞貨車 貨車撞死檳榔西施';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '擦撞起口角糾眾打癱人 重判';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '竹南基地徵收案 地主︰別騙人';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '竹市南門醫院 明天起林口長庚醫師駐診';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '豪雨灌飽水庫 不怕沒水用';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '雪隧通車 台鐵北宜乘客少1成';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '傘布當畫紙 海星中學傘花朵朵';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '教局送禮 七堵暖暖國小生免費游學';
	rows[7].link = 'today-north8.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
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 = '被金光黨騙 婦人成功索賠135萬';
	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 = '一再私宰病死豬 判刑1年半';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '胡提和解條件：公開道歉';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '小心，歹徒躲身邊 婦女提款…別落單';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '社會頻道／男子利刃襲警 警開槍制伏';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(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 = '雇用非法外勞 最重罰75萬元';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '南市警 北上逮17名逃逸外勞';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '蕉農大放送 公所每人2串蕉';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '菜價溜滑梯 農民叫苦連天';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '門前藥局 94家撤銷獨資登記';
	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(10);
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';
																										
	rows[8].text = '教官還在？';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '群策會徵文';
	rows[9].link = 'today-o10.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '世足發燒 踢出西式好早餐';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '看完世足賽 補充元氣吃早餐';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '世足夜貓子  美味早餐PK戰';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '中式早餐 看完世足補元氣';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '吃完早餐  繼續為世足加油';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '活力早餐  熬夜疲憊全修復';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '漫步下營 感受農村原味';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '下營在地遊 鄉里好愜意';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '生日禮物 一週提案';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '身體健康 才會頭腦壯壯';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '火針傳奇，你聽過嗎？';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '十七歲那年愛上一陣風';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}