//===========================================================================
//基本設定
//==================== 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=yes,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=yes,menubar=no,scrollbars=no,resizable=no,width=810,height=707")>住宅生活</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(15);
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';
																										
	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 = '教育扣除額 將提高為每人25000元';
	rows[12].link = 'today-fo13.htm';
																										
	rows[13].text = '米酒稅 擬每公升降為9元';
	rows[13].link = 'today-fo14.htm';
																										
	rows[14].text = '男性口腔癌、食道癌發生率劇增兩成';
	rows[14].link = 'today-fo15.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '馬市長8年大檢驗';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '司法黃牛案 陳哲男一審判12年';
	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';
																										
}
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 = "開膛手傑克重現英國？5妓連續命案震撼英倫";
	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 = "全球首例／女子截肢28年  雙手移植成功";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "耶誕節訂婚？！威廉王子死會啦";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "《中英對照讀新聞》World’s heaviest woman turned record slimmer dies創下瘦身紀錄的世界最重女子過世";
	rows[5].link = 'today-int6.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '金門「公」務員小三通 限1年3次／「老婆都不管 縣府憑什麼管」';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '破跨國賭網 1年賭金383億';
	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 = '駕駛打義交 判刑9個月';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '公車輾過鐵馬 9歲童慘死';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '金剛掌穿地?  朝天宮地磚浮掌印';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '聖地污損鹿耳門陷泥淖';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '慈父捨事業 救回車禍女';
	rows[9].link = 'today-so10.htm';
																										
	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';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '邵曉鈴轉院 微笑說3次台中';
	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 = '元旦假期 台鐵明起售票';
	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';
																										
	rows[9].text = '弱勢勞工子女技能助學金 獎助八千人 申請者才一成';
	rows[9].link = 'today-life10.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '《杜哈亞運特別報導》空手道 劉亞力搶銅牌';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《杜哈亞運特別報導》跳水 雙呂獎牌無緣';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《杜哈亞運特別報導》銅「排」感言：遇到一位好教練';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《杜哈亞運特別報導》女壘 握銅續搏金';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《杜哈亞運特別報導》「罰」善可陳 男籃只能搶7';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '世運會代言拍廣告 濃妝摟舞伴 建仔羞答答';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '曹錦輝未獲洛磯續約 成自由球員';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '瘋狂逆轉秀 金塊砸傷老鷹';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '普門爆冷 扳倒北一女';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '伍茲 8度榮膺年度球員';
	rows[10].link = 'today-sp11.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '政策漏洞 3.2萬孤兒勞貸 無法享受降利率';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '無名小站花落Yahoo!奇摩';
	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 = 'Fed︰通膨風險仍在、房市在降溫';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '中信金擬出脫兆豐金  研議發行GDR';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '開發金轉投資缺失  金管會將懲處';
	rows[10].link = 'today-e11.htm';
																										
	rows[11].text = '竹商銀員工  要求年資結清、成立工會';
	rows[11].link = 'today-e12.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '25年老基金 累積績效逾9倍';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = 'Fed停止升息／明年降息機率大 市場喊進美債';
	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 = '宏達電護盤 高價股齊歡呼';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '工業電腦成長強勁 外資搶著要';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '營建股連番重挫 再跌有限';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '群聯明年看好 買盤逢低介入';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '本益比低估 禾伸堂實施庫藏股';
	rows[9].link = 'today-stock10.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(13);
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 = '霍正奇墜陡坡 連滾7次掛彩';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '張本渝認了Ben 張鈞甯撇修杰楷';
	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 = '碧昂絲馭男友術 催字訣out';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '酒鬼金城武 狂啵促酒妹舒淇';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '平井堅愛歌封王 KAT-TUN單曲稱霸';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '總舖師林俊傑 假慰勞真實驗';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '黃立行搏命登高 5小時燒百萬';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '為何大家寵愛《貓》？';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '舊古蹟 新開張';
	rows[12].link = 'today-show13.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(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'ING路跑封路 騎士自尋出路';
	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';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-north1.htm';
																										
	rows[1].text = '疑瓦斯外漏 睡夢中氣爆';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '交保未久 替代役男夥人隨機搶劫';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '13樓高摘蜂窩 消防員藝高膽大';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '流浪老翁不治 盼家人出面';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '一支名表 價值千萬如豪宅';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '債務糾紛 稱被虐打簽本票';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '孔固力斷根脈 百年茄苳枯萎';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '雀榕寄生掏空 老楊梅樹病重';
	rows[8].link = 'today-north9.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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-center1.htm';
																										
	rows[1].text = '兩岸詐騙集團 分支遍全台';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '溢領考察費  二崙斗六10代表被訴';
	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 = '闖空門殺傷人 嫌犯落網';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '中市警誘餌車  釣上車賊';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '招認偷竊8次 判8次竊盜';
	rows[9].link = 'today-center10.htm';
																										
}
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 = '嘉進財號落海5船員獲救 控訴肇事貨輪';
	rows[0].link = 'today-south1.htm';
																																																		
	rows[1].text = '兒肇事父扛罪 兩人都送辦';
	rows[1].link = 'today-south3.htm';
																										
	rows[2].text = '500元賄選 判刑3年4月';
	rows[2].link = 'today-south4.htm';
																										
	rows[3].text = '兄弟反目 爭家產動手動腳';
	rows[3].link = 'today-south5.htm';
																										
	rows[4].text = '無孔不入 置物箱鉅款被偷';
	rows[4].link = 'today-south6.htm';
																										
	rows[5].text = '丈夫刁難 兩外籍新娘求援';
	rows[5].link = 'today-south7.htm';
																										
	rows[6].text = '舉槍自盡 離職警身無分文';
	rows[6].link = 'today-south8.htm';
																										
	rows[7].text = '法網恢恢 美工刀之狼判刑';
	rows[7].link = 'today-south9.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 = '信任投票 VS .區隔投票';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '藍綠結構顛撲不破？';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '聯合國也歧視女性';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '媒體民調的系統性失靈';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '零體罰 教師職能險';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '一綱多本 教育自由化';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '別傷害教改';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '北部蓋高尚？';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '選輸就認輸';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '台灣國民黨';
	rows[9].link = 'today-o10.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '上班一族　　→';
		rows[1].submenu = '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 = '2007 流行老樣子';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '車壇Crossover 跨界流行風';
	rows[2].link = 'today-fashion3.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 16;
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('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 = '辦公室這12種人 千萬別得罪';
	rows[0].link = 'today-work1.htm';
																										
	rows[1].text = '從墨攻看職場';
	rows[1].link = 'today-work2.htm';
																										
	rows[2].text = '說英文，我來就好';
	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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '一夫多妻  你行嗎？';
	rows[0].link = 'today-sex1.htm';
																										
	rows[1].text = '男人呀，就怕被笑';
	rows[1].link = 'today-sex2.htm';
																										
	rows[2].text = '20.85 最性感的數字';
	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';
																										
}
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 = '綿長38公里的美景<br>台東縣鹿野溪探奇';
	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';
}