//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = 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'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','living','family','medicine','article','young','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 href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A 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 = '禽流感跨物種？ 衛署：重大警訊';
	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(7);
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 = 'NCC揭牌 蘇永欽自許新瓶新酒';
	rows[6].link = 'today-p7.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 = '美印交往升溫 制衡中國';
	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 = '《中英對照讀新聞》Most Europeans want two kids but… 多數歐洲人想生兩個孩子，但是…';
	rows[5].link = 'today-int6.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '豪乳玩伴女 爭分517億遺產';
	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 = '黑道行賄2900萬 炒作迎廣';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '11天大女嬰猝死 狠母裹屍亂埋';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '汽車破窗大盜 2個月幹53案';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '標線殺人 公務員被撞成植物人';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '小綠人身世之謎 戰上網路';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '國中導師撒銀彈 利誘女學生上床';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '228找援交 公務員被坑30萬';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '參閱國外雜誌 私設兵工廠';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '先偷破車 再下手換車 車賊現形';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '車禍倖存 發願載人14年';
	rows[12].link = 'today-so13.htm';

	rows[13].text = '不捨同學早逝 7同窗繫情33載';
	rows[13].link = 'today-so14.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'ETC決選 仍是一團謎';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '檢調：未掌握關說名單';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '立委批：裝機人個資外洩沒人管';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '淡水8.3度 玉山降雪';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '補償漢生病友 最高185萬';
	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 = 'long stay先鋒 中村夫婦 搓湯圓 歡喜入厝';
	rows[10].link = 'today-life11.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 = '爭搶世界之冠 King of The World';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '林威助練打安啦';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '南韓砲打羅德 徐在應球威普通';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '熱身賽 熊棒打鄭博壬';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '環台賽 週日港都開戰';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '公牛擒狼 付出慘痛代價';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《安麗盃女子花式撞球賽》高淑品 連二場完封';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '女國腳不敵日 晉級希望渺茫';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '台灣阿甘林義傑 扁授勳';
	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';
																										
}
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 = '開發金持32%金鼎證股';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '扣押遠東證換股 金鼎證兩套劇本';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '全球知識經濟指數 台灣第21';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '聯勤信義土地標售案／黃金地段 每坪上看220萬';
	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 = '《理財Q&A》組合基金 具分散風險優點';
	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 = '數位電器展 32吋液晶電視 3萬有找';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = 'IC設計 搶攻LCD驅動IC';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '廣輝漲停 華映沾光';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = 'DDR2合約價至少再漲5%';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = 'DRAM三雄吃肉 模組廠喝湯';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = 'Google股價暴跌';
	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 = '傳金城武 王力宏撒錢 買豪宅做厝邊';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '久未露面 丁國琳驚爆未婚生女';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '林志穎愛車 絕不車震掃性';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '素顏林志玲 自爆愛裸睡';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '崔智友與粉絲飯店同居';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '呂秀蓮這三個女人 將搬上螢幕';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '陳冠希哈翹臀妹 寶兒吃驚臉紅';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '小齊愛撫楊千嬅 哇！升國旗';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '妮可離婚無惡言 芮妮喊ㄘㄟˋ最心狠';
	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 = '江宏恩忍辱 拍片成屏風';
	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 = '市府將斥資1.7億 點亮內科夜明珠';
	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 = '29鄉鎮市首長上任 考驗接著來';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '金博園區杜鵑開 美景如畫';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '餐盒不潔? 安溪國中40多人送醫';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '賣A書辯稱教性姿勢';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '跌傷發福 飯店判賠54萬';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
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-north1.htm';
																										
	rows[1].text = '她家遭小偷 週週上警局指揮辦案';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '一場大火 3店全毀';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '線上遊戲被打敗 真實世界打回來';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '夥友偷重車 修車員：看車主臭屁';
	rows[4].link = 'today-north5.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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 = '南崗橡膠廠火海 13小時接力灌救';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '清源罩頂 嘉市電玩業減台避風';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '破獲地下六合彩 日賭資上千萬';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '1針打成長短腿 判賠417萬';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '凌虐男子 彰檢起訴4嫌';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '代會主席 一夜被偷2車';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '吃完雞酒 男子一覺不醒';
	rows[6].link = 'today-center7.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '愛的進行式 高三生募款救狗';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '萬丹泥火山爆發 學生玩心 信徒誠心';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '白馬禮車護靈 高貴不貴';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '追思婉如 關懷婦運';
	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 = '船沈沒 9人獲救報平安';
	rows[6].link = 'today-south7.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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 = '紅外線VS.微波';
	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';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	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].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '好品味　　　→';
		rows[1].submenu = 'living';
		rows[1].link = 'today-living1.htm';
	
		rows[2].text = '家庭兩性　　→';
		rows[2].submenu = 'family';
		rows[2].link = 'today-family1.htm';
	
		rows[3].text = '健康醫療　　→';
		rows[3].submenu = 'medicine';
		rows[3].link = 'today-medicine1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.htm';
	
		rows[5].text = '青春美　　　→';
		rows[5].submenu = 'young';
		rows[5].link = 'today-young1.htm';
	
		rows[6].text = '藝術文化　　→';
		rows[6].submenu = 'art';
		rows[6].link = 'today-art1.htm';
	
		rows[7].text = '休閒旅遊　　→';
		rows[7].submenu = 'travel';
		rows[7].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(2);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '2006最Hot代言人 嗆聲!';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '5大細節萬歲';
	rows[1].link = 'today-fashion2.htm';
																										
}
menu = null;

menu = getMenu('living');
menu.layer = 14;
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-living1.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 15;
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 = '火鍋餃<br>化身春天元氣湯';
	rows[0].link = 'today-family1.htm';
																										
	rows[1].text = '愛從一夜性開始<br>不可以嗎？';
	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 = 16;
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 = '肺癌新藥納入健保<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';
																										
	rows[5].text = '血便原因多<br>須防類癌上身';
	rows[5].link = 'today-medicine6.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-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 = '美國筆會福克納小說獎揭曉<br>達克托羅以《行軍》二度奪魁';
	rows[5].link = 'today-article6.htm';
																										
	rows[6].text = '當代詩壇的環保尖兵<br>美國：墨爾溫（W. S. Merwin,1927-）';
	rows[6].link = 'today-article7.htm';
																										
	rows[7].text = '歷史往前，時光往後<br>符號學大師艾可新書《倒退步》';
	rows[7].link = 'today-article8.htm';
																										
	rows[8].text = '世界第三大出版集團易主<br>拉卡德買下時代華納出版';
	rows[8].link = 'today-article9.htm';
																										
	rows[9].text = '《憂鬱的熱帶》';
	rows[9].link = 'today-article10.htm';
																										
	rows[10].text = '抄襲之謎？誰來解碼？';
	rows[10].link = 'today-article11.htm';
																										
	rows[11].text = '新聞短波';
	rows[11].link = 'today-article12.htm';
																										
}
menu = null;

menu = getMenu('young');
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-young1.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 19;
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 = '完工一再延宕 預算7億加到10億<br>故宮整建工程有問題？';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '故宮國際交流展有眉目<br>大英、奧地利收藏將登台';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '台灣的女兒<br>中提琴家黃心芸返國獻藝';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '史博館館長昨交接 副館長黃永川升任';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '音樂與文學的智慧火花<br>小澤征爾與大江健三郎人生對談';
	rows[4].link = 'today-art5.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 20;
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;
}
//====================  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,700);
}

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,700);
}

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';
}