//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (!showWeekly)
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活副刊'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','work','gender','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 (true)
{
	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(9);
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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
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-p1.htm';
																										
	rows[1].text = '高普初考 擬兩年內禁轉調';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '18％改革 試院將不重提新案';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '嗆連訪中言論自由 關刀客判無罪';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '罷免許財利案 馬不阻止';
	rows[4].link = 'today-p5.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "震懾伊朗 美增派航母赴波灣";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "全球首例／１個媽咪２個子宮３個娃";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "紐約第1億位旅人 她…台灣幸運兒";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "親信桃色醜聞 重挫安倍內閣";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "美神秘百元耶誕老人 26年捐４２００萬";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "YouTube緝兇 殺人嫌犯自首";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》2006 sees weather records broken across the globe 2006年全球氣候異常頻傳";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '違背入贅誓 後代連死4長男';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '越娘陪人借錢 遭越娘刺死';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '大樂透連8摃 下期又上看9億';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '奪命連環叩 名中醫遭索30萬';
	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 = '周董送簽名海報 學妹勇戰癌魔';
	rows[9].link = 'today-so10.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '4電信資費 明年4月調降5%';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '元旦起隱藏性抓七項惡性違駕／嚴重超速 最高罰24000';
	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';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '25人低於標準桿 呂文德掛帥';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '謝榮豪完投勝 穀保踢走南英';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '青黃不接 76人12連敗';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '神來一撥 尼克氣死貓';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '陳全壽:下月16日走人';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '公益運動會 建仔意外現身';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '超級盃開打 台灣6撞士出擊';
	rows[7].link = 'today-sp8.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '房貸裝潢 找對門路省利息';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '政府修繕貸款 明年營建署接手';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '周錫瑋鬥台電 姚江臨回批';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '瓦斯所70年 台灣矽谷發源地';
	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 = '銀行設分行 明年預定10家';
	rows[6].link = 'today-e8.htm';
																										
	rows[7].text = '寶華預測 明年經濟成長4.2%';
	rows[7].link = 'today-e9.htm';
																										
	rows[8].text = '中信銀明年首季售八成車貸業務';
	rows[8].link = 'today-e10.htm';
																										
	rows[9].text = '11月外銷訂單金額 創歷史次高';
	rows[9].link = 'today-e11.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 = '房市旺旺 REITs「錢」力可期';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '動能來了 日股重返17000點';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '明年Q1投資策略／歐股有漲勢 但有三變數';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '明年Q1投資策略／新興市場、亞太股市看俏';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '《理財Q&A》債務協商戶未還款 將回到原點';
	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 = '消費IC設計 淡季看旺';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '廣達目標價 外資上看63元';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '中華電 將推Google行動搜尋';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '中環申讓精碟';
	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 = '網友串連  隔空救回燒炭女';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(17);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '中國媒體瞎起鬨找麻煩 點名30位台星 小豬怒告  求償1億';
	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 = '布裘以小孩為尊 過3種新年';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '妮可基嫚 大街秀性感';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '小泉 龜梨姊弟同居 甜蜜蜜';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '倖田來未 今年海撈35億';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '山下智久新日劇 新春登台';
	rows[16].link = 'today-show17.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》「馬英九神話」是否開始破功了？';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》真的很滿意';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》司法「藍」波刀？';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '街貓結紮 明年擴大範圍';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '尿酸高 心肌梗塞機率高';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '北市警總結八年治安 獲馬肯定';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '彈性車位 騎士怨駕駛亂挪車';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '震不倒災害應變中心完工';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '新銳電影人 多了新樂園';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '逼簽借據 暴力討債 5落網';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '假節費電話 吸金數千萬';
	rows[7].link = 'today-taipei8.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '歡慶耶誕 關懷弱勢活動一波波';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '兩鐵遊台灣 示範騎隊逛風城';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '國中福利社   販售食品擬放寬';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '童玩節不斷炊 府會要合作';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '鳳林原民復名 集體頒身分證';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '認養走下坡 路燈不敵光明燈';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '200格停600輛 淡水老街機車格塞爆';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '兒搶銀樓修車 母贖金歸還';
	rows[7].link = 'today-north8.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '安全蔬菜 西螺、二崙5菜園試種';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '嘉市小六生 國英數大考驗';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '藥吃不完上網賣 當心觸法';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '兩鐵遊台灣 鐵馬上火車';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '王聖輝王牌教師  調教學生品學兼優';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '瑪利亞農莊 住商110萬元認養';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '酒測值一樣命運大不同 騎士醉上道１死１傷';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '2名阿兵哥買網路寶物 遭賣家殺傷搶錢／5嫌落網 全是國中同學';
	rows[7].link = 'today-center8.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 = '聯興95-2號演習 近2000人參演';
	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 = '連打8小時麻將 壯漢心肌梗塞';
	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(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 = '台灣能源戰略';
	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(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 = 'gender';
		rows[2].link = 'today-gender1.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(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('work');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('gender');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

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