//===========================================================================
//基本設定
//==================== 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('supplement'));
	titles = titles.concat(new Array('生活副刊'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','work','sex','family','article','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>');
}
if (false)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tdb><A class=block2La href="#" onClick=open("http://www.libertytimes.com.tw/Service/weekly.htm","","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=810,height=643")>生活週報</A></TD>');
	document.write('	</TR>');
}
if (false)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tdb><A class=block2La href="#" onClick=open("http://www.libertytimes.com.tw/Service/house.htm","","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=810,height=707")>住宅生活</A></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('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.ntat.gov.tw/" target=_blank>台北市國稅局</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 = '朝野折衷 18％改革推陳出新';
	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 = '敗選 藍右批NCC 左怪中選會';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '藍委：本土化才是競選主軸';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '馬說重話 要求檢討輔選技巧';
	rows[9].link = 'today-fo10.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '橘慰留有條件 張昭雄︰黨產條例逕付二讀';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '兌現馬宋會承諾 馬今宣布國親結盟';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '變更議程 討黨產 綠甲動出擊';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '二合一選舉 綠委強烈反彈';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '蘇謝配？謝蘇配？ 謝︰先投入立委輔選';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '北高選舉落幕 美國官員肯定';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '民主基金會：中國人權 今年不進反退';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '扁嫂訴訟費 非府支付';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '台灣國際駕照 日警決承認';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '歐盟︰台海穩定 有利東亞';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '東亞經濟會議聲明︰台日企業應積極交流';
	rows[10].link = 'today-p11.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(9);
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 = "Web 3.0？網路第三波大錢潮";
	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 = "英國研究／老人「倒縮」越多 心疾機率越高";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "全球暖化／北極冰原 2040年恐融光";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "蛇頸龍化石 南極出土";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中英對照讀新聞》Bulgaria to open secret Cold War files 保加利亞將公開冷戰機密檔案";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(16);
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 = '軍官盜油 國軍油庫圖外流';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '專業偽卡盜刷 2年A上億';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '警荷槍攻 離職警舉槍自殺';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '歹徒飆速205公里警追不到';
	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 = '檳榔伯訓犬 母狗當西施';
	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';
																										
	rows[13].text = '陽光小巨人 職場出頭天';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '自製烏魚乾 美味上山 貧童樂嚐鮮';
	rows[14].link = 'today-so15.htm';
																										
	rows[15].text = '80歲女畫家 義賣畫展 千歲同樂會';
	rows[15].link = 'today-so16.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 = '繁星計畫 免審查免報名費';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '春節長假 陸空輸運嚴陣以待';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = 'ETC第二階段甄審 台灣宇通提4異議';
	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 = '要變天囉／冷氣團報到 週末下探9℃';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-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 = '《杜哈亞運特別報導》女400接力意外鍍銅';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《杜哈亞運特別報導》女排銅心 力退泰妞';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《杜哈亞運特別報導》9號球 楊清順摘銅';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《杜哈亞運特別報導》讀秒階段失誤 橄欖球丟銅';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《杜哈亞運特別報導》女壘輸中國 預賽第3';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '《杜哈亞運特別報導》蕭美玉 拚第2面牌';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '爵士舞小牛 史隆千勝';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '郭泓志、胡金龍 贈球回饋母校';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '莊勝雄教室扎根 學員收穫多';
	rows[13].link = 'today-sp14.htm';
																										
	rows[14].text = '松&#22338;當紅襪人 瀕臨破局';
	rows[14].link = 'today-sp15.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '銀行降息 美元定存錢歹賺';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = 'Fed 可望維持利率不變';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '沒看到經濟甜頭 先嘗到物價上漲苦頭<br>歐元將六歲 歐人不滿';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '成立融資公司 資本額門檻20億';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '美貿易代表署︰不排除對中經濟制裁';
	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 = '今年竹科產值破兆元 成長12%';
	rows[7].link = 'today-e8.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '亞洲金融市場 明年持續強勁';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '日經濟放緩 外資下修成長預估';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '景氣趨緩 REITs基金招手';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '金融新商品／亞洲台資企業基金 跟著台商賺錢';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '從藝人到上班族 錢幽蘭玩味人生';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '失業潮 成就了顏文山咖啡傳奇';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '善心代代傳 汪賜發寒冬送溫馨';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '莫卡伊 讓全錄起死回生';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '億光業績發光 LED股抗跌';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '台股列亞太首選 外資賣盤縮小';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = 'LPL被查 衝擊台系面板廠';
	rows[11].link = 'today-stock12.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 = '走路工案 黑松坦承每人發500';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
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-show1.htm';
																										
	rows[1].text = '將大麻煩看成小麻煩 張菲批張小燕失言 認吸毒就是墮落';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = 'S跑腿E採買 Hebe等著吃';
	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 = '鄭弘儀年撈6千萬 不想要黃金';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '裘莉瀟灑馴男 小布痴戀追隨';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '宋承憲訪日 5千粉絲接駕';
	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';
																										
}
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 = '133處公家違建  拖5年不拆除';
	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 = '市定古蹟再增4處';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '以先賢命名 市府濃濃人文味';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '聖誕紅新品種 草莓牛奶粉可愛';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '內科週末封街 慶耶誕';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '中小學畢業生 泳測通過率六成七';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = 'W2i「最佳e化政府應用獎」 市府e化再獲肯定';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '銀得光彩 潘政琮雙親 憶兒10年練球苦';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '北市驗米粉 竹市生意減半';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '關懷老人辦慶生  品嚐好滋味';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '施工警示不明 陷害用路人';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '校車汰換 教育局︰將自購校車';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '鄉土語言教學 問題一籮筐';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '「你的孩子病了」 騙人的啦';
	rows[6].link = 'today-north7.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(10);
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 = '大林焚化爐弊案／林金敏等9人送辦';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '設宴拉票 陳清秀判刑1年';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '數十醫、藥師坦承溢領健保費';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '卡娃伊時鐘 夾毒闖關';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '車墜百公尺 3人彈出重傷';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '兩惡匪擄人 女子呼叫脫險';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '林琮&#29641;命案 妻坦承動殺機';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '國民參審制 公聽會無共識';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '狠父打又罵 強迫弱子口交';
	rows[9].link = 'today-center10.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '衛生局出手冊 減重不求人';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '大洋池視窗滲水凹陷 海生館虛驚';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '烏魚不回來 烏魚文化節無奈改名';
	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 = '屏東大轟詐 35所國中家長驚魂';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '吸金上億人去樓空 澎湖上百人受害';
	rows[7].link = 'today-south8.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(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 = 'work';
		rows[1].link = 'today-work1.htm';
	
		rows[2].text = '兩性異言堂　→';
		rows[2].submenu = 'sex';
		rows[2].link = 'today-sex1.htm';
	
		rows[3].text = '家庭親子　　→';
		rows[3].submenu = 'family';
		rows[3].link = 'today-family1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.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(3);
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';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 16;
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-family1.htm';
																										
	rows[1].text = '助教大我7歲 相戀怕父母反對';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '結婚無公開儀式 登記也無效';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '美白消痘黃瓜盅';
	rows[3].link = 'today-family4.htm';
																										
	rows[4].text = '青少年情緒行為講座';
	rows[4].link = 'today-family5.htm';
																										
}
menu = null;

menu = getMenu('work');
menu.layer = 14;
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-work1.htm';
																										
	rows[1].text = '茶水間的八卦 你我都牽掛';
	rows[1].link = 'today-work2.htm';
																										
	rows[2].text = '沒有個人品牌定位 就沒有個人職場地位';
	rows[2].link = 'today-work3.htm';
																										
	rows[3].text = '做人的道理';
	rows[3].link = 'today-work4.htm';
																										
	rows[4].text = '奇門遁甲四縱五橫';
	rows[4].link = 'today-work5.htm';
																										
}
menu = null;

menu = getMenu('article');
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 = '青春是一張 蝕破的葉-上';
	rows[0].link = 'today-article1.htm';
																										
	rows[1].text = '從知識到知識分子<br>給青年一代的第二封信';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '《挑食的設計》';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '塞翁失馬與命理';
	rows[3].link = 'today-article4.htm';
																										
}
menu = null;

menu = getMenu('sex');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '他的前女友我的前男友';
	rows[0].link = 'today-sex1.htm';
																										
	rows[1].text = '習慣消磨了愛情';
	rows[1].link = 'today-sex2.htm';
																										
	rows[2].text = '碎嘴男人請自重';
	rows[2].link = 'today-sex3.htm';
																										
	rows[3].text = '猜疑心重壞了愛情';
	rows[3].link = 'today-sex4.htm';
																										
	rows[4].text = '一路叫床到結束';
	rows[4].link = 'today-sex5.htm';
																										
	rows[5].text = '向麻煩人物說：不！';
	rows[5].link = 'today-sex6.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;

//====================  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';
}