//===========================================================================
//基本設定
//==================== 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(7);
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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '官邸取貨 李碧君︰350萬禮券未見發票';
	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 = '辜氏102號救人 提前返航';
	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 = '宋楚瑜漏稅敗訴 裁罰2642萬餘';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '標售幸壽 國民黨：依淨值計算';
	rows[11].link = 'today-p12.htm';
																										
	rows[12].text = '馬樹禮21日公祭 總統府褒揚';
	rows[12].link = 'today-p13.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 = "雅子妃  黯然出國養病";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "妓女作家反愛滋 關翠西好樣的";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "追討4.17億賠償金 AOL奇想挖寶";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "無痛皮膚檢測 篩檢阿茲海默症";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Kidney trade kingpin's arrest pleases South African prosecutors 腎臟販運集團首腦被逮 鼓舞南非檢察官";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '【美國懸案】 師畸戀選美女童  謀殺逃10年 泰國落網';
	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';
																										
	rows[4].text = '三子女生病沒錢醫 小販榨保險金判緩刑';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '掃蕩詐騙發話機房 逮3嫌';
	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';
																										
}
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 = '基測作文  明年起擬1年2試';
	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 = '天然氣 今起每度漲1.5元';
	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 = '淡水河20萬尾烏仔魚 確死於缺氧';
	rows[6].link = 'today-life7.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(14);
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 = '世界女排賽 台北站25日登場';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '熊22安 痛宰鯨';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '小雞3連敗  生涯首度';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '韓砲轟炸  我豎白旗';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '夢7正選名單  鮑溫out';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '媒體正名  安貞桓感謝';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '單騎環島  真行';
	rows[13].link = 'today-sp14.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '蔡友才 帶著幽默衝業績';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '今年經濟成長  主計處下修至4.28%';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '東協六國85%電子產品 明年關稅互免';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '熱錢流入 台幣升值1.22角';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '消基會擬對遊戲橘子提訴';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '法奇那抽獎喊停 被疑欺騙';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '《國情密碼》台灣菸價 相對低廉';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '兆豐銀董座 蔡友才接任';
	rows[8].link = 'today-e9.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '鴻海漲停 展開強勢填權';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '友達、奇美電 德銀證喊買';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '成本降低 創見、威剛有競爭力';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '台廠手機代工 華冠退居三哥';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '《國際股市》歐股午盤走揚 澳洲勁揚';
	rows[5].link = 'today-stock6.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 = '倒扁至上 馬特准連26天徹夜集會';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(18);
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 = '李威的舊愛新歡 一提許瑋倫 陳怡蓉險昏厥';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '第一味殺進場  意難忘笑傲稱王';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '去年金曲獎最佳新人獎   F.I.R.苦盼1年才拿到手';
	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 = '林憶蓮闖Gay Bar 開趴助興炒人氣';
	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 = '娜姊生日 1萬2千歌迷祝壽 貓王忌日 29週年燭光守夜';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '阿湯哥換輪胎擊匪徒 搶當真英雄';
	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 = '柴崎幸領軍 傑尼斯藝人閃邊';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '尹晶喜按摩 24.5吋大腳丫洩底';
	rows[16].link = 'today-show17.htm';
																										
	rows[17].text = '小室背債3億  轉與搞笑藝人合作';
	rows[17].link = 'today-show18.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 = '小水鴨9月到 猜對日期有獎';
	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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '勒死乾姊夫 女被求刑20年';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '桃市破應召站 驚見3中輟生';
	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 = '宜蘭商人綁票案 再逮1嫌犯';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '擄鴿勒贖 按鴿腳環尾碼匯款';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '擄鴿勒贖 叫鴿主按編號匯款';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '上網賣假證件 一對男女被訴';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '剿四海幫堂口 聲押兩大哥';
	rows[8].link = 'today-north9.htm';
																										
	rows[9].text = '社會傳真／闖空門還持刀性侵 男子重判';
	rows[9].link = 'today-north10.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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-center1.htm';
																										
	rows[1].text = '窮爸爸喝茫了 抱2稚女企圖跳樓';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '破獲地下錢莊 上百人遭吸血';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '長期性侵2幼女 狼父判14年';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '道上兄弟遭狙殺 警方防堵火併';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '沈淪毒海 30歲煙毒犯臉部病變';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '恐嚇活埋債務人 4嫌判刑';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '檢警電話問筆錄…騙你轉帳！';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '羊肉店凌晨收工 偷兒上工';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '色情護膚店客滿 男女全被逮';
	rows[9].link = 'today-center10.htm';
																										
	rows[10].text = '丟掉一根木棍 控告4名員警';
	rows[10].link = 'today-center11.htm';
																										
	rows[11].text = '雲林逮藥頭 身上還插著針頭';
	rows[11].link = 'today-center12.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-south1.htm';
																										
	rows[1].text = 'TM學生卡 半個月內賣到缺貨';
	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 = '因細故殺死配偶 兩案起訴';
	rows[6].link = 'today-south7.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '革命 革民主的命';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '誰來撫慰敗戰傷痕？';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '拯救本土肉票';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '難以承受的恨';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '施明德';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '變色的冷筍';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '壞戲拖棚';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '王建民也受不了';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '電桿何罪之有';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '不平衡的恐怖';
	rows[9].link = 'today-o10.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = '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 = '烏山頭、尖山埤水庫<br>親水透心涼';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '遊湖好情調 農場逍遙遊';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '甜蜜寶貝童童 美麗自己來';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '淘氣陶器 無所不在<br>鶯歌老街 新氣象';
		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 = '健康醫療--<br>高血壓與尿毒症的危險關係';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '花編--<br>輕輕來去貓咪躲雨';
		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';
}