//===========================================================================
//基本設定
//==================== 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(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 = '挺扁 十萬人集會';
	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';
																										
	rows[10].text = '網路鼓動攻擊 未行動也觸法';
	rows[10].link = 'today-fo11.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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 = '國民黨公布黨產資料 57.7%民眾不相信';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = ' 剖視「倒扁」連續劇';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '《白樂崎專欄》促台向中靠攏 恐付出高代價';
	rows[8].link = 'today-p9.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-int1.htm';
																										
	rows[1].text = "國王病重 東加人反王儲聲浪起";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "升空旋墜機 美空難49死";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "垃圾桶間諜 監控你的家";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "30天6.1億 沙王室節約度假";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "子女網路出醜 華府名流超糗";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "夏季涼風定存 日銀行祭環保牌";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中英對照讀新聞》TV more effective than hugs for child pain-study 研究顯示，減緩兒童疼痛看電視比擁抱有效";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '闖空門失風 噴劑揮刀毀鄰雙目';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '囂張3惡狼 當街擄女輪暴';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '氣功治狼 養生又防身';
	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 = '永和舞廳 開幕沒拜碼頭 角頭砸店';
	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 = '暴雨內洞溪漲 4人一犬驚魂';
	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 = '渴望的文具 台中貧童圓夢';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '直升機來了 輕航機也要解禁？墾丁禽鳥大浩劫';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '國家公園竟管不到天空';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '影響生態？航空業要證據';
	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 = '台北花園 考慮均一價2300';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '萬能智慧車 引領未來路';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '鼓勵動腦 秀水高工變發明家搖籃';
	rows[12].link = 'today-life13.htm';
																										
	rows[13].text = '北美土撥鼠 台灣B肝研究的幕後英雄';
	rows[13].link = 'today-life14.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '姜建銘 無關勝負';
	rows[0].link = 'today-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 = '8月MVP 阿福勝券在握';
	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 = '老將露絲壓陣 抱走MVP';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '夢7 重創澳軍';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '領先到大輸 中國「希」望破滅';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '朱木炎反守為攻 亞運出線';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '走過谷底 紀淑如再戰江湖';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '伍茲連4柏忌 10年僅見';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '虎爺延長賽奪冠';
	rows[13].link = 'today-sp14.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '美經濟不確定性 波及消費';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '義大利聯銀 378億美元併購山普樂';
	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 = '理光控告華碩、廣明侵權';
	rows[5].link = 'today-e6.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '元太傳接獲MOTO訂單';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '產能不足 茂矽、漢磊紛擴產';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '聯電再買茂德4.32萬張';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '面板回漲 一線廠本月小賺';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '《上週漲跌幅排行榜》太陽能族群 上強中弱';
	rows[4].link = 'today-stock5.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(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'FOREVER LOVE換人 王力宏邀了舒淇 忘了阿妹';
	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 = 'ENERGY與飛輪海 雨中拚人氣';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '林志玲新家當旅館 1月只住12天';
	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';
																										
}
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 = '《今日社論》暴力是中國唯一的選擇嗎？ Yes！';
		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 = '在日假造離婚協議 回台賠550萬';
	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';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '基市環局主管桃色疑雲 男女同房20分';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '性侵案少女自稱亂講 被告判無罪';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '偷2條絲襪 判6月徒刑';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '賊星該敗 偷電纜爆胎被逮';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '竹縣塑膠廠大火 堆置毒物釀虛驚';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '警員騎車撞上貨車 送醫不治';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '號誌倒立';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '失業男發酒瘋 樓頂鬧自殺';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '縣議員舒翠玲 服務處遭竊';
	rows[8].link = 'today-north9.htm';
																										
	rows[9].text = '盜領丈夫存款 越娘被通緝';
	rows[9].link = 'today-north10.htm';
																										
	rows[10].text = '警所內掉針筒 女毒蟲露餡';
	rows[10].link = 'today-north11.htm';
																										
	rows[11].text = '帶2元上卡拉OK 賴帳被送辦';
	rows[11].link = 'today-north12.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 = '冒牌中華電信網頁 騙個資';
	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 = '旅北中埔人 認養110盞路燈';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '謝宮禮夫婦平淡見真情 婚前不相識 牽手一甲子';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '大德國小迎新 媽祖鑼鼓助陣';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '陸光九村拆半套 髒亂恐怖';
	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 = '搶救梓官海岸 3公里砸3億元';
	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 = '墾丁蛙鳴';
	rows[6].link = 'today-south7.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 = '中國觀光客入境指引   請用PRC Passport Holders';
	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(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '百變珍珠';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '低調煙燻 亮眼紅唇';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '找出自己的妝';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '仿舊VS.仿古<br>古舊包進化論';
	rows[3].link = 'today-fashion4.htm';
																										
	rows[4].text = '德國高檔旅行車 個性與實用至上';
	rows[4].link = 'today-fashion5.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-family1.htm';
																										
	rows[1].text = '為了他拋棄婚姻<br>他卻拋棄了我';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '消費大事週報';
	rows[2].link = 'today-family3.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-medicine1.htm';
																										
	rows[1].text = '生髮水非救髮萬靈丹<br>先求醫找原因才對';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '關懷喪偶老人家 專業團隊來幫忙';
	rows[2].link = 'today-medicine3.htm';
																										
}
menu = null;

menu = getMenu('article');
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 = '關鍵字A-Z';
	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';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
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-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 = '舞蹈空間《頑童日記》 三種人生況味<br>狂放、幽默、諧謔';
	rows[3].link = 'today-art4.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';
}