//===========================================================================
//基本設定
//==================== 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('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(10);
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 = '財部暗示 辜仲<img src="../../oct/21/imgtoday/today-word.gif" border=0>恐難保經營權';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '北檢接手 中檢支援';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '政風狀況外 施茂林不滿';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '林光宏：從未拿錢打假球';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '剪接光碟爆料 欲搞臭熊隊？';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '職棒大肥羊 黑道不肯放';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '作息全都錄 球員心膽寒';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '又見黑手 台灣職棒雪上加霜';
	rows[9].link = 'today-fo10.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '扁批北京 拉攏在野鎖台';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '扁再為軍購 向馬喊話';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '軍安總隊擴錢 軍中人人自危';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '日中高峰會 安倍未傷害台灣';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '黨產、反貪2公投提案 24日表決';
	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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "尼國大選 桑定政權反撲 奧蒂嘉贏面大";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "安理會拉美代表 瓜委棄權 改推巴拿馬";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "不讓他長大 美絕症童新療法";
	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 = "耗費16億 總理女兒鑽石婚禮 緬甸掀民怒";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "非洲外交戰 台灣漸失競爭力";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中英對照讀新聞》Urgent climate action will cut economic fallout 儘快因應氣候變遷有助減緩經濟衝擊";
	rows[7].link = 'today-int8.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 = '販嬰案偵結 150家庭從輕發落';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '白色光點入夜跳不停 監視器拍到「靈異」畫面／公墓整地挖出18骨骸';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '洋人起灶 「分時度假」違法吸金';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '警車撞死人 家屬婉拒肇事警上香';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '援交掀「包養型男」歪風／七年級男網路徵包養';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '我姓「<img src="http://www.libertytimes.com.tw/2006/new/nov/3/imgtoday/so6.jpg">」，走失20年回家了';
	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(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '校園跑步有「存摺」 跑越「遠」獎越多';
	rows[0].link = 'today-life2.htm';
																										
	rows[1].text = '軌道裝置撞損 高鐵封道檢修';
	rows[1].link = 'today-life3.htm';
																										
	rows[2].text = '青輔會飛雁計畫展翅／女人幫女人 攜手同行創業路';
	rows[2].link = 'today-life4.htm';
																										
	rows[3].text = '北縣交通標誌變「色」 民眾眼花';
	rows[3].link = 'today-life5.htm';
																										
	rows[4].text = '國際旅展開鑼 折扣戰開打';
	rows[4].link = 'today-life6.htm';
																										
	rows[5].text = '巨蜥錶帶 進口合法賣觸法';
	rows[5].link = 'today-life7.htm';
																										
	rows[6].text = '染料敏化太陽能電池 製程省十倍';
	rows[6].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-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 = '女排今拚南韓 贏就提前晉級';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '三度延長 尼克驚險勝';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '奇德新球季率先搶大三元';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '阿隆索遷居瑞士 當舒馬赫鄰居';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '世撞大拚戰 台灣16撞士出征';
	rows[9].link = 'today-sp10.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-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 = 'Q4海外基金旺季行情 值得期待';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '日本以外規模首破5000億美元/亞洲基金 強勁成長';
	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 = '金管會委員自律條款 下週出爐';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '行員違法交易 匯豐銀被罰600萬';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '今年房市成交量 將創近八年新高';
	rows[10].link = 'today-e11.htm';
																										
	rows[11].text = '東亞農民團協會 力拒G20稻米傾銷';
	rows[11].link = 'today-e12.htm';
																										
	rows[12].text = '台幣衝上33.045 月來新高';
	rows[12].link = 'today-e13.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 = '力晶營收 連7月創新高';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '10月營收報喜 網通喜迎旺季';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '類比IC設計四雄 法人各有所好';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '鴻海要迎娶? 瑞軒否認併火花';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '聯發科自估 Q4毛利率持平';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = 'Witsview:32吋TV面板有走跌壓力';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '歐股午盤跌 港股創新高';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = 'Q4打呆金額 國泰世華銀避談';
	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(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '郝廣才 孫正華 戀情曝光<br>護花看病 摟肩摸腿玩自拍';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '針孔偷拍藝人更衣 港府判定不雅刊物';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '潛病房拍肥肥 女傭判入獄4周';
	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 = '號召「聲」力軍  Hebe大方認周董';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '完娛Morning Call 被暴抄襲南韓叫醒我';
	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 = '結子甩中村  自由身價飆3千萬';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '瀧澤秀明黏石原里美 情迷舞台劇';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '妮可搖頭擺臀 快樂腳唱藍調';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '彼得轉大人 滿口奶爸經';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '泰拉纏胸 鬍搞裝man';
	rows[13].link = 'today-show14.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》反軍購說穿了就是反美親中';
		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(9);
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 = '蘆洲迎觀音文化節 神將公仔亮相';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '國際名詩人 訪台受阻';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '牛肉麵嘉年華 明後天對決';
	rows[8].link = 'today-taipei9.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 = '通緝遇攔檢 「立委」一名驚人';
	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 = '拓寬苦等18年 里民募款購地';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '34家自助餐調查 計價、衛生令人憂';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '甫獲鑽石婚表揚 93歲阿公葬火窟';
	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 = '領警示戶贓款 2車手被跟監逮捕';
	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';
																										
}
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 = '高市嚴查幽靈人口 抓出486人';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '高縣採砂疑弊 搜索建設局 2交保2釋回';
	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 = '胡市長作秀了';
	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;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	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-weekly1.htm';
																											
		rows[1].text = '入住蚵鄉 賞海景 啖海味';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '知性一日遊 心靈充電好元氣';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '秋日嬉遊記 玩樂便利貼';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '量身打造 巧補即飲 4對策';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '湯品＋飲品 熱熱喝最Healthy';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '聞摸看  冬令藥材聰明選';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '冬令食補 通體舒暢暖呼呼';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '精好湯 煲住一整季的健康';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '顏行書拚面子  就愛刮刮樂';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '名店名菜大破解  周氏蝦捲';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '日式雜貨店 超值暢銷排行 TOP5';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}
