//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
path = '';
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('生活週報'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','living','family','medicine','article','young','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'../../../pnews/Pnews0513.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="http://www.libertytimes.com.tw/2005/pnews/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '游錫&#22531：重新定位黨與政關係';
	rows[0].link = 'today-fo1.htm';
	rows[0].type = '民進黨主席補選';
																										
	rows[1].text = '蔡同榮：推動正名與領土變更';
	rows[1].link = 'today-fo2.htm';
	rows[1].type = '民進黨主席補選';
																										
	rows[2].text = '翁金珠：清廉服務重建黨形象';
	rows[2].link = 'today-fo3.htm';
	rows[2].type = '民進黨主席補選';
																										
	rows[3].text = '號次抽籤 1.游 2.蔡 3.翁';
	rows[3].link = 'today-fo4.htm';
	rows[3].type = '民進黨主席補選';
																										
	rows[4].text = '新聞眼／民進黨需要什麼樣的黨魁？';
	rows[4].link = 'today-fo5.htm';
	rows[4].type = '民進黨主席補選';
																										
	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';
																										
	rows[11].text = '馬如何定位台灣 美日觀察';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '新聞掃描／日提威脅論 中國怒斥';
	rows[12].link = 'today-fo13.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-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 = '蔡豪夫婦、諸明章等25人被訴';
	rows[7].link = 'today-p8.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '廣東鎘污水擴散 廣州緊張';
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = '海珊指控刑求 白宮斥太荒謬';
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = '我破解禽流感用藥瑞樂沙製程';
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = '紐約市通勤族有救了！<br>運輸工會初步同意復工';
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = '印航擺烏龍 折磨旅客45小時';
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = '《中英對照讀新聞》Pensioner Pole lost in London, unhappy to be home 波蘭退休老人在倫敦迷路，不樂意返家';
	rows[5].link = 'today-int6.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 = '網拍詐標 佯裝賣家坑買家';
	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 = '淫亂KTV 露乳豔舞挑逗男客';
	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-life1.htm';
																										
	rows[1].text = '海大校長遴選 教授大打出手';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '教育部出資新建大樓 楊秋興批毫無美感<br>范巽綠：未參與建築師遴選';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '茂林紫斑蝶之謎 今晚解答';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '老公非硬漢 老婆難性福';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '孫吉祥精蟲 家人見證銷毀';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '大便卡 察便觀色寶健康';
	rows[6].link = 'today-life7.htm';
																										
}
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 = '《HBL球星》救「仁」作戰 發「光啟」動';
	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 = '《大聯大盃科技Mizuno禮品巡迴賽》林文堂飆出9博蒂 躍居領先';
	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 = '《NBA》闖入侏羅紀 龍咬T-MAC';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '麥雅惠條款 台元：停賽一年 電信：下週表態';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《BenQ UBA》南北戰爭 南大獲勝';
	rows[9].link = 'today-sp10.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 = '1年期定存逼近2％';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '避免資金外流 理財商品利多';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '11月失業率3.94% 4年8個月以來新低點';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '實質經常性薪資 負成長1.31%';
	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 = '《理財Ｑ＆Ａ》申請卡債協商條件 總負債達月收入25倍';
	rows[8].link = 'today-e9.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 = '友達：面板明年Q1不淡';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = 'CCFL需求熱 威力盟身價飛漲';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '台灣手機出貨市佔 明年挑戰17％';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '美光季報亮麗 合約價全面漲 DRAM股打敗大盤';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '普立爾︰明年業績至少增4成';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '偉訓11月獲利成長1.09倍';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '《期指觀測站》摩台高檔背離 防空襲';
	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 = '四面楚歌反跟拍 周董街頭鬥記者';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '台風和女模 蓋棉被搞4P';
	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 = '蕭蕭打玻尿酸? 豐唇噘性感';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '楊丞琳代言彩妝 接收小Ｓ地盤';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '張東健超人氣 癱瘓西門町';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '藍正龍不與大仔有牽連 不當許瑋倫男友';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '吳彥呈幫HBL催票 HIGH翻光啟中學';
	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 = '明年奧斯卡 同志奪天下';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '韓劇走狗運 天王天后回籠';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '嫁真田廣之？ 鈴木京香拒答';
	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(11);
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 = '3請不走 律師告推銷員';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '圳溝臭10多年 找不到元兇';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '烏來學生悅讀 教長樂';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '議會非首長預算581萬 被砍10%<br>特別費浮濫 議員痛批';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '交通政策 市民從沒滿意過';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '無線網路 每月最高399元';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '師生搓湯圓 冬至大團圓';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '扮耶誕天使 駐台大使夫人訪托兒所';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '家長陳情學校頂樓藏基地台 縣府徹查';
	rows[10].link = 'today-taipei11.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 = '楊梅禍不單行 撞車4死1垂危';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '傳真假公文誑他 詐走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';
																										
	rows[5].text = '5盜闖鋁工廠 綑人劫財';
	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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '失蹤多日 國姓鄉代余水源陳屍水庫';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '徐維嶽還押 妻當庭落淚';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '車撞電桿3死 崙背2000戶停電';
	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 = '彰檢 連辦18案起訴16人';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '中檢 偵結2案起訴2人';
	rows[6].link = 'today-center7.htm';
	rows[6].type = '賄選頻道';
																										
	rows[7].text = '嘉檢 辦4案起訴27人';
	rows[7].link = 'today-center8.htm';
	rows[7].type = '賄選頻道';	
																										
	rows[8].text = '跑路籌錢 通緝犯6案齊發';
	rows[8].link = 'today-center9.htm';
	rows[8].type = '賄選頻道';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '10人當選無效訴訟 高屏澎檢提出';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '曹明輝賄選 判刑1年4個月';
	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';
																										
	rows[7].text = '社會傳真／賭場 50人當場被逮';
	rows[7].link = 'today-south8.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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 = '寫咱原本e名';
	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';
																										
	rows[11].text = '縱容泛藍的代價';
	rows[11].link = 'today-o12.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(8);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '好品味　　　→';
		rows[1].submenu = 'living';
		rows[1].link = 'today-living1.htm';
	
		rows[2].text = '家庭兩性　　→';
		rows[2].submenu = 'family';
		rows[2].link = 'today-family1.htm';
	
		rows[3].text = '健康醫療　　→';
		rows[3].submenu = 'medicine';
		rows[3].link = 'today-medicine1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.htm';
	
		rows[5].text = '青春美　　　→';
		rows[5].submenu = 'young';
		rows[5].link = 'today-young1.htm';
	
		rows[6].text = '藝術文化　　→';
		rows[6].submenu = 'art';
		rows[6].link = 'today-art1.htm';
	
		rows[7].text = '休閒旅遊　　→';
		rows[7].submenu = 'travel';
		rows[7].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('living');
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('family');
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('medicine');
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('article');
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('young');
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;

menu = getMenu('art');
menu.layer = 19;
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 = 20;
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(10);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '耶誕燈景特企<br>蔡依林 瘋耶誕哈賞燈';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '跨年逛燈海';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '耶誕燈景特企<br>台中耶誕燈景';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '耶誕燈景特企<br>府城夜發光';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '耶誕燈景特企<br>港都繽紛樂';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '連鎖超商<br>罐裝熱飲 正熱賣';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '熱呼呼飲料<br>讓你出門不怕寒風';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '最HOT電影電玩<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';
																											
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,700);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,700);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}