//===========================================================================
//基本設定
//==================== 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('supplement'));
	titles = titles.concat(new Array('生活副刊'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','work','sex','family','article','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>');
}
if (false)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tdb><A class=block2La href="#" onClick=open("http://www.libertytimes.com.tw/Service/weekly.htm","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=810,height=643")>生活週報</A></TD>');
	document.write('	</TR>');
}
if (false)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tdb><A class=block2La href="#" onClick=open("http://www.libertytimes.com.tw/Service/house.htm","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=810,height=643")>住宅生活</A></TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.ntat.gov.tw/" target=_blank>台北市國稅局</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台股上萬點 政府努力目標';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '國親主導審爭議法案 民生法案擺一邊';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '美︰中國軍事建構 不放棄對台動武';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '李傑：退役將領有影響力';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '隔海爆料 警方︰唐守義挾怨報復';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '紅衫軍迎施明德 航警攔人車';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '拉艦特調組 密赴瑞士境外追產';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '訪非 呂不去改派蘇去';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '行賄 金鼎證老總、大華證副總交保';
	rows[8].link = 'today-p9.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "NASA計畫：2024長駐月球";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "斐濟軍事政變 罷黜總理";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "褐雲蔽日 印度稻米減產";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "寶萊塢電影 接吻戲挨告";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "南非頭號要犯 塗凡士林越獄";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "紐約禁用反式脂肪";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "骨董錯體郵票 原來是冒牌貨";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中英對照讀新聞》Bitch is back Down Under  as Elton says \"Up Yours!\"  當艾爾頓．強說「去你的！」就顯示這難纏的傢伙又到澳洲了";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(17);
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 = '兩段式轟「詐」 200位家長急查證 全校報平安';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '梅嶺車禍 釋回車行負責人 拘提車主';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '勇敢9歲童 負傷自行爬出車體';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '中6400萬 嗆完老闆發現看錯';
	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 = '吸金上億 通路新貴5人交保';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '扔黃金 婆媳垃圾場尋寶';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '賊遺汗露餡 警DNA破案';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '垃圾車輾殘學童 公所貸千萬賠償';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '妻騎走機車 夫堅告偷竊';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '甩肉振作 胖乩童縮水了';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '剉冰百年史 看到心涼脾透開';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '薩克斯風之愛 「醫」同義演';
	rows[14].link = 'today-so15.htm';
																										
	rows[15].text = '流浪尋母 魔「法」師力助';
	rows[15].link = 'today-so16.htm';
																										
	rows[16].text = '一公升的眼淚 7姊妹全發病';
	rows[16].link = 'today-so17.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 = '83％加油站員工 未勸導熄火';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '家長反彈 基測報名費調漲踩煞車';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '56高薪低保藝人 健保費三級跳';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '真假乾眼症';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '優質安寧病房 舒緩癌末疼痛 真貼心';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '只要接種期可銜接 改打四合一疫苗 安啦';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '兒童護齒第「醫」步 早晚刷牙 遠離甜食';
	rows[8].link = 'today-life9.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '《杜哈亞運特別報導》桌得住對手 坐3望2搶第一';
	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 = '《杜哈亞運特別報導》女籃近5屆首度退韓';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《杜哈亞運特別報導》男團穩獲銅 今拚決賽權';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《杜哈亞運特別報導》女團勝科威特 坐3望2搶第1';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '陳江和 職棒選秀狀元';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '巫師終止小牛12連勝';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '林恩宇今與樂天金鷹簽約';
	rows[11].link = 'today-sp12.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 = '大型購物公園 歐陸延燒';
	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 = '投資中國資訊延遲或未公告 19家上市公司被罰款';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '11月CPI成長0.21% 擺脫連三跌';
	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(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '竹科新貴 轉行賣菜月收150萬';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '外資續流入 亞股明年一片看好';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '市場看台股 明年Q1上攻8000點';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '退休金專欄／投資債市 穩定積存退休金';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '理財Q&A／債務協商後 可提前清償';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '月績飆至8億 大立光上看750元';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '英華達再創自有品牌 手機出貨超標';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '不畏賣壓 外資大買95億';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = 'IEK：我大面板產值 世界第一';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '復華金董監改選 元大信心滿滿';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '比價效應 智原一度超越創意';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '新普營收續創新高 EPS上看12元';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '歐股午盤漲 港星勁揚';
	rows[12].link = 'today-stock13.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(18);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '查爾斯 盯喬丹巨波失神<br>安德魯 夜闖寇特妮家找女人';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '汪東城超愛美 騰空掏鏡修修臉';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '阿霈飛毛腿爽贏  師兄蘇打綠慘輸';
	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 = 'S.H.E捏腳比尖叫 喝雞湯補聲';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '李岳跪求張曼玉 元氣追星超瘋狂';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '蕭亞軒露Bra 長腿熱舞1087';
	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 = '史密斯父子催淚  尬金馬父子';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '瑪麗布萊姬抱9獎  稱霸告示牌';
	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 = '渡邊謙明日再稱帝 松雪泰子扶桑封后';
	rows[16].link = 'today-show17.htm';
																										
	rows[17].text = '宋承憲 蘇志燮 粉絲期待快復出';
	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(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 = '公園內違規 今起取締重罰';
	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 = '黑飼鸚鵡 抄61隻';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '結婚紀念日 死神奪妻命';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = 'TOBY丟鐵馬 謝長廷送溫情';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '反家暴 動鍋鏟不動手腳';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '公共建設留名題贈 引發爭議';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '路平缺失 月餘改善不到三成';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '南方澳改單行道 地方不同意';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '有線電視光纖電纜延伸 民眾不捧場';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '追討欠稅 基市101件被限制出境';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '救護車使用年限 無法管';
	rows[6].link = 'today-north7.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '下學年 雲科大增3項招生管道';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '鰲鼓濕地 擬設野生動物保護區';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '車墜深谷 手機撥112救命';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '記取梅嶺教訓 投縣攔檢遊覽車告發4件';
	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 = '鵝寮竄火 3000隻雛鵝全燒了';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '打靶測試未過 7偵查員調制服員警';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '年關近 屏東3天2起婚宴禮金竊案';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '業務員侵吞保險金 判賠168萬4千元';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '工地剪銅線 賊被發現改用搶';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '辦手機門號 身分被盜用8年';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '開車假問路 搶走女子金項鍊';
	rows[5].link = 'today-south6.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 = '1209反歧視';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '絆馬索';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '＜林保華專欄＞市長怎麼選？';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '獨派學者的本事';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '軟骨功';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '舞女變奏曲(老舊社區悲歌)';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '外省第二代 談不安全感';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '果然要倒著看';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '便衣抓超時駕駛';
	rows[10].link = 'today-o11.htm';
																										
	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(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 = 'work';
		rows[1].link = 'today-work1.htm';
	
		rows[2].text = '兩性異言堂　→';
		rows[2].submenu = 'sex';
		rows[2].link = 'today-sex1.htm';
	
		rows[3].text = '家庭親子　　→';
		rows[3].submenu = 'family';
		rows[3].link = 'today-family1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.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(3);
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 = '2006 ITU香港世界電信展<br>數位生活 大顯身手';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '千萬奢華時光';
	rows[2].link = 'today-fashion3.htm';
																										
}
menu = null;

menu = getMenu('family');
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 = '媳婦心事誰人知 拿我當台傭？';
	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';
																										
	rows[4].text = '失去雙手 卻得到更多';
	rows[4].link = 'today-family5.htm';
																										
}
menu = null;

menu = getMenu('work');
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-work1.htm';
																										
	rows[1].text = '先呼你一把掌，再給你秀秀';
	rows[1].link = 'today-work2.htm';
																										
	rows[2].text = 'C型人生';
	rows[2].link = 'today-work3.htm';
																										
	rows[3].text = '古錢制小人';
	rows[3].link = 'today-work4.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 17;
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 = '千手咄咄';
	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('sex');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '6個徵兆，妳該甩了他！';
	rows[0].link = 'today-sex1.htm';
																										
	rows[1].text = '艷遇 vs. 外遇';
	rows[1].link = 'today-sex2.htm';
																										
	rows[2].text = '互補的靈魂 最佳伴侶';
	rows[2].link = 'today-sex3.htm';
																										
	rows[3].text = '解救心碎';
	rows[3].link = 'today-sex4.htm';
																										
	rows[4].text = '雙唇美人計';
	rows[4].link = 'today-sex5.htm';
																										
	rows[5].text = '花癡與笨蛋';
	rows[5].link = 'today-sex6.htm';
																										
	rows[6].text = '愛情長跑 讓他熄火了嗎 ?';
	rows[6].link = 'today-sex7.htm';
																										
	rows[7].text = '愛情事件簿徵文啦！！';
	rows[7].link = 'today-sex8.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 = '冬雪VS夏陽耶誕 歡樂一級棒';
	rows[0].link = 'today-travel1.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,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';
}