//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = true;
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','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}

document.write('	<TR>');
document.write('		<TD 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>');

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=643")>住宅生活</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 = '綠點名15人利益迴避  藍拒絕';
	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 = '陳致中護照「CHEN,CHIH-CHUNG」';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '扁陪陳菊掃街 民眾搶握手';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '搶食本土票 陳羅別苗頭';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '捷運規劃 黃俊英找蕭萬長消毒';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '松山機場直航案 謝長廷批宋楚瑜意識形態';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '郝宋搶正藍 爭里長支持';
	rows[9].link = 'today-fo10.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(15);
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';
																										
	rows[11].text = '日月光被併 陸委會：無關大陸政策';
	rows[11].link = 'today-p12.htm';
																										
	rows[12].text = '卜睿哲：藍綠應務實合作';
	rows[12].link = 'today-p13.htm';
																										
	rows[13].text = 'SOGO案部分禮券流向 北檢：仍分案續追查';
	rows[13].link = 'today-p14.htm';
																										
	rows[14].text = '綠委要求NCC委員刮自己鬍子';
	rows[14].link = 'today-p15.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "俄諜之死 疑莫斯科下的毒手";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "榴槤橫掃 重創菲律賓";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "老鼠實驗發現 避孕藥RU-486 可抑制乳癌基因";
	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 = "《中英對照讀新聞》Hong Kong mulls green\"eco\"coffins 香港考慮使用「環保」棺材";
	rows[5].link = 'today-int6.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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].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 = '單親童捐獎金 助家扶兒';
	rows[3].link = 'today-so4.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '國立大學學費喊漲 自訂10%上限';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '成大卓越陣容 延攬諾貝爾大師';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '身障鬥士 金鷹十傑表揚';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '建築界國寶 力保台大育種室';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '尖叫不止 彰化6高職生送醫';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '清大教授失控 課堂咆哮淚滿襟';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '吃苦螺嘴麻 河魨素中毒';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '焚化廠旁 生鮮食品含戴奧辛';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '斥資兩億 竹南打造鎦金鎮安宮';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '聖嬰重返 百貨業生意冷颼颼';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '范植谷將接任台鐵副局長 工會反彈';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '放水？交部重定高鐵事故內涵';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '阿里山新神木 光武檜篤定當選';
	rows[12].link = 'today-life13.htm';
																										
	rows[13].text = '明年起 中獎發票限在郵局領';
	rows[13].link = 'today-life14.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '全力搶勝 嘟嘟伺候泰國';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '重返杜哈 張雁書這回不傷心';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '吳偲佑批羅德球衣 4000萬日幣簽約金';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '小布獨攬52分';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '陳偉殷 減薪200萬日圓';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '紅襪 簽下火腿岡島';
	rows[6].link = 'today-sp7.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 = '微軟宣布Vista免費升級';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '千萬畫素相機 閃亮會場';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = 'ISP業者 辦寬頻送電腦';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '美經濟趨緩 亞洲能克服';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '2030年亞洲石油進口依賴度 近九成';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '保險合作先行 幸福房貸推出';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '台幣強勁升值 四個半月來新高';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '11月房市交易量 逆勢大增';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '創聯網 定位音樂銷售平台';
	rows[9].link = 'today-e10.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '外資撒銀彈 台股破7600';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '車市續降溫 車商寄望春節買氣';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '看好明年 RAID廠動作積極';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '國際股市／歐股午盤漲 印度再創新高';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '三大DRAM廠 11月營收可望續創新高';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '外資唱反調 茂迪股價重挫';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '股訊要覽';
	rows[6].link = 'today-stock7.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(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '搶收視 拚外景 劉伯溫從南殺到北 揮霍軍費800萬';
	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 = '小小瑜超口愛 網友性幻想No.1';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '2moro求姻緣  破發片魔咒';
	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 = '李英愛賣相NO.1 張東健人氣稱霸';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '亞里莎清早出夜店 喝掛橫著走';
	rows[11].link = 'today-show12.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(12);
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 = '130里選里長 一票就當選';
	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 = '男子拒攔檢 挨警6槍命危';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '司機疑打瞌睡 公車連環撞';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '跨海尋兒 父子警局重逢';
	rows[10].link = 'today-taipei11.htm';
																										
	rows[11].text = '合法酒商 摻水劣酒賣遍北台';
	rows[11].link = 'today-taipei12.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '連搶農會郵局 ２小時內／雙匪空手逃';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '竹縣芎林農會 ２９秒被搶走８萬';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '警騎贓車追汽車 以贓追贓以１擋５';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '失億老人走失 死在圳溝';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '酒後糾紛 男爆刺４刀不治';
	rows[4].link = 'today-north5.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '全國魅力農村 荷苞村獲首獎';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '自來水股金 公所欲用來償債';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '輾壓路燈座電線 車輪燒熔了';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '草屯焚化爐 環署無預警喊停';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '載馬拉馬 高貴賓士變馬車';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '兵馬俑特展 科博館亮相';
	rows[5].link = 'today-center6.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
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-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';
																										
}
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 = '總統 VS. 前總統';
	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 = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

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

menu = getMenu('family');
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('medicine');
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('article');
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('art');
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('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';
}