//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
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(11);
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 = '紅軍以電台發功 NCC蒐證處理';
	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';
																										
	rows[10].text = '扁：應予北韓譴責與制裁';
	rows[10].link = 'today-fo11.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 = '選北市長 宋楚瑜擬17日宣佈';
	rows[13].link = 'today-p14.htm';
																										
	rows[14].text = '推動外交 張學海︰不應苛責';
	rows[14].link = 'today-p15.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 = "10月9日大限 全球開始透支資源";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "高飽和脂肪餐 心血管殺手";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Acupuncture shows promise for hot flashes 針灸可望用來治療熱潮紅";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '搶犯謊報調虎離山甩警 警網補位劫店破功';
	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 = '槍擊高中生 再逮8嫌犯';
	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 = '南市超級醫師 接生逾3萬人';
	rows[9].link = 'today-so10.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '雪隧接連滲水 蔡堆：該封就封';
	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 = '提前收假效應 今車潮估220萬輛次';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '水鹿瘦山羊病 大分動物很不快樂';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '近4成學校 還在賣3高食品';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '公路迷 用票券記錄漂泊人生';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '麥當勞停用美tubby進口萵苣';
	rows[8].link = 'today-life9.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 = '建仔獲美媒體讚揚 洋基MVP';
	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 = '紅雀 連3年晉級國聯冠軍戰';
	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 = '運動家vs.老虎－－3割打線vs.超強牛棚';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '大都會vs.紅雀－－長程砲兵vs.老經驗';
	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 = 'LPGA巡迴賽 歐秋阿摘冠 累積獎金破200萬美元';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '世撞賽會內賽 台灣隊12人參賽';
	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(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 = '今年失業率4% 六年來新低';
	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 = '唐亦仙 轉戰茂矽一圓插花夢';
	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';
																										
	rows[9].text = '就業多媽媽媒介 幫助失業人';
	rows[9].link = 'today-e10.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 = '大田、明安 業外投資大回收';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '高球桿揮別淡季 Q4營收加溫';
	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 = '晶圓雙雄Q3營收 優於Q2';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = 'DRAM、NAND評等 iSuppli調降';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '3C旺季 興勤、乾坤營收創新高';
	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(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '王菲將淡出2年 損失逾2億';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '潘慧如 醜小鴨變天鵝 驚爆蕾絲邊疑雲';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '74歲脫線回來了';
	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 = '閃靈大港開唱 27日High翻港都';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '霍正奇出撞況 抱baby遭車吻';
	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';
																										
	rows[12].text = '仲間臉蛋＋米倉身材＝櫻花妹夢幻組合';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '張衛健花1萬2 偷娶張茜進門';
	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(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 = '石敢當護廟 車翻神明安';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '無血緣 黃信介長子無法繼承遺產';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '楊振豐作偽證 登300萬廣告換緩刑';
	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(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 = '民宅長虎頭蜂窩 一連生8個';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '轎車衝入對向車道 1死5傷';
	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(8);
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 = '少妻要買車贈友 80歲老翁偷車送他';
	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';
																										
	rows[6].text = '粉刷打蠟…溪南國中融入課程';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '從擺攤到設櫃 4手工達人熬出頭';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-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';
																										
	rows[4].text = '秋節連假 墾丁大塞車';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '電腦取代黑板 鎮海國小e級棒';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '新沙卡里巴 拆商場還校地 攤販難安置';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '稻草文化精緻化 萬丹娃娃亮相';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '公餘巡山 李權芳7年不間斷';
	rows[8].link = 'today-south9.htm';
																										
	rows[9].text = '珍貴老水柳 慘遭截「枝」';
	rows[9].link = 'today-south10.htm';
																										
	rows[10].text = '葉梁雪阿嬤 畫畫唸書好充實';
	rows[10].link = 'today-south11.htm';
																										
	rows[11].text = '【吃在府城】港式飲茶 重現懷舊風情';
	rows[11].link = 'today-south12.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 = '慶祝139年前的雙十';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = 'NCC辦刺馬 辦不辦倒扁？';
	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 = '抓援交 先看29條';
	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(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '空中飛人 搞定你的機';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '粉妝 3部曲';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '保養 從小開始';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '型男都戴十字架';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
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 = 15;
menu.parentMenu = 'supplement';
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-medicine1.htm';
																										
	rows[1].text = '竹筍 低糖高纖 抗癌享瘦兩相宜';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '新手爸爸多參與育嬰<br>產後憂鬱症就少來';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '預防痛風發作 中醫從理腎做起';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '嚴重陰道感染 有礙抹片判讀';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '藥物、飲食、運動 延緩前期糖尿病惡化';
	rows[5].link = 'today-medicine6.htm';
																										
	rows[6].text = '膽結石 引發症狀才須處理';
	rows[6].link = 'today-medicine7.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
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 = '關鍵字A-Z';
	rows[0].link = 'today-article1.htm';
																										
	rows[1].text = '我的第一個美國';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '梨子車站';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '塞尚和蘋果們';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '《找阿寶，玩創意》';
	rows[4].link = 'today-article5.htm';
																										
}
menu = null;

menu = getMenu('art');
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-art1.htm';
																										
	rows[1].text = '《慾望城國》二十年傳奇 今日再現';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '十方樂集成立十週年<br>十月十日舉行慶祝音樂會';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '韓國亂打秀 再度登台';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '遊戲中的當代藝術<br>田中功起把玩日用品';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '連建興魔幻寫實個展';
	rows[5].link = 'today-art6.htm';
																										
}
menu = null;

menu = getMenu('travel');
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-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;
}
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';
}