//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
path = '';
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('生活週報'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','living','family','medicine','article','young','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(8);
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 = '132名政務官 財產須強制信託';
	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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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 = '金門專職媽媽 最高月領6000津貼';
	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';
																										
	rows[11].text = '國考增額錄取 將嚴格規範';
	rows[11].link = 'today-p12.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 = '替代能源對抗高油價 瑞典計畫2020年後停用石油';
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = '暴龍祖先 新疆出土';
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = '奈及利亞發現H5N1病毒';
	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 = '《中英對照讀新聞》British dentist allowed boyfriend to drill teeth 英國牙醫讓男友為病人鑽牙';
	rows[6].link = 'today-int7.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 = '廁所綁架案 蹺家女自導自演';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '勇警抱傷執勤 惡化成重疾';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '5小娃遭棄 北橫哭遊啼蕩';
	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';
																										
	rows[10].text = '新莊華銀搶案偵破';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '本報披露，飼主尋獲愛犬<br>找到狗女兒 多了隻狗女婿';
	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(10);
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 = '菸品健康捐16日調漲5元 洋菸每包漲10元';
	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';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-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 = '林志傑蟬聯月MVP';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '弱鷹啄活塞';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '美專家預測 建仔有望晉身15勝';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '震撼教育 陽仲壽三打數兩三振';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《青棒菁英賽》提前結束比賽 一日四場';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '《經典賽移訓澳洲練習賽》大順風 台灣隊沒佔到便宜';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '鋒仔 完成經典賽報名';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '職棒17年 一日兩戰';
	rows[12].link = 'today-sp13.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 = '消金萎縮、企金沒搞頭 銀行急尋獲利明燈';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '進口酒查驗 歐商抵制';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '國庫署說法 查驗制度 保護消費者';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '台中銀獎金延後至3月底發放 勞方︰下月5日罷工投票';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '投保旅平險 要貨比三家';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '台幣大跌 兩天貶2.55角';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '《理財Q&A》轉換工作 需告知保險公司';
	rows[7].link = 'today-e8.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '友達Q4獲利 打敗三星、LPL';
	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 = '日月光：Q2毛利率逾24％';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '日韓股重挫 拖累台股';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '原物料股暴跌 日重挫448點';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = 'PCB廠接單旺 Q1看多';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《國際股市》油價金價跌 歐股午盤走低';
	rows[7].link = 'today-stock8.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(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 = 'Jolin拍板 賣給陳澤杉';
	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 = '中居正廣示愛 垂涎18歲美眉';
	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 = '22項縣市合 翡翠擴大供水';
	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 = '大稻埕碼頭設備 危機四伏';
	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 = '龍山寺 平安總燈 財星高照';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
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-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';
																										
}
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 = '開工3天 南投台電電纜竊案54件';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '小豬紋身防竊 仍被偷100頭';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '酒後坐鐵道 火車煞不住…男子卡輪下';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '烏日鄉長選舉爭議 初驗票 陳芳隆林啟森各少算9票13票';
	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';
																										
	rows[7].text = '酒駕罰錢 檢方不滿判決';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '搶劫12回 飛車3嫌落網';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '清源專案 嘉警查獲2起';
	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 = '假網拍真詐財 5嫌詐騙上千萬';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '南縣查賄 檢方以關係人身分 約談陳宗興3人';
	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 = '5蒙面徒露行藏 警方追緝逮入籠';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '雲林鐵道怪客 無關南迴破壞案';
	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(8);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '好品味　　　→';
		rows[1].submenu = 'living';
		rows[1].link = 'today-living1.htm';
	
		rows[2].text = '家庭兩性　　→';
		rows[2].submenu = 'family';
		rows[2].link = 'today-family1.htm';
	
		rows[3].text = '健康醫療　　→';
		rows[3].submenu = 'medicine';
		rows[3].link = 'today-medicine1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.htm';
	
		rows[5].text = '青春美　　　→';
		rows[5].submenu = 'young';
		rows[5].link = 'today-young1.htm';
	
		rows[6].text = '藝術文化　　→';
		rows[6].submenu = 'art';
		rows[6].link = 'today-art1.htm';
	
		rows[7].text = '休閒旅遊　　→';
		rows[7].submenu = 'travel';
		rows[7].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(2);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '時髦CUV滿街跑';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '腕表的愛情密碼';
	rows[1].link = 'today-fashion2.htm';
																										
}
menu = null;

menu = getMenu('living');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '電腦與電玩的親密接觸<br>電腦有認證  玩Game更暢快';
	rows[0].link = 'today-living1.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '歡樂團聚 一鍋哪夠看';
	rows[0].link = 'today-family1.htm';
																										
	rows[1].text = '射手男想強上 天秤女不依';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '瓦斯檢查 教你辨真假';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '乾燥香草莢 砂糖變香了';
	rows[3].link = 'today-family4.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
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>SOS專機救回一命';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '十元卡食道<br>導尿管搶救成功';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '魚油中的脂肪酸有益胎兒<br>孕婦吃魚比不吃魚好';
	rows[3].link = 'today-medicine4.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 17;
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-article1.htm';
																										
	rows[1].text = '實力派作家出線<br>第134屆芥川．直木獎不趕搭「年輕風潮」';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '苦澀嚴厲．詩藝顛峰';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '遠離非洲之後<br>凱倫．布李克森故居';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '緩慢殺手，甜蜜佐電<br>靈性電音三人組Donna Regina';
	rows[4].link = 'today-article5.htm';
																										
	rows[5].text = '讓大象也感傷';
	rows[5].link = 'today-article6.htm';
																										
}
menu = null;

menu = getMenu('young');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '西洋情人節 送什麼最對味？';
	rows[0].link = 'today-young1.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 19;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '國際書展展出台灣早期常民生活樣貌<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';
																										
	rows[4].text = '努力讓世界看到台灣<br>國策顧問陳郁秀樂在其中';
	rows[4].link = 'today-art5.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 20;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '雪國冰酒香<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;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,700);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,700);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}