//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('生活週報'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(13);
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 = '趙氏父子疑假桌球之名募款 A上千萬';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '台開人事案 馬永成、陳&#20914;訊後釋回';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '政客丟爛泥 摧毀司法公信力';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '股市禿鷹案 李進誠重判10年';
	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 = '為謝2008解套 綠擬廢1／2條款';
	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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-int1.htm';
																										
	rows[1].text = "666大凶日 網路謠言一籮筐";
	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 = "美準財長身家225億 超級有錢人";
	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 = "外星人 藏鴨肚？";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "三峽大壩「天下第一爆」";
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = "智利教改 火爆抗爭";
	rows[9].link = 'today-int10.htm';
																										
	rows[10].text = "《中英對照讀新聞》Man severs penis to prove his faithfulness 男子自宮以證明忠貞";
	rows[10].link = 'today-int11.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 = '包庇自家人? 新莊百警被辦';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '舞廳直擊 6成是搖頭族!';
	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 = '1拳爆眼 跆拳高手判5年餘';
	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(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '臍帶血存商機 4年30億';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '自存臍帶血救命 醫界保留';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '臍帶血約定範本 內容籠統';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '肝癌存活率 嚴重城鄉差距';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '豪雨特報 全台濕答答<br>葉菜類量減 價格飛漲';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '雪隧消演順利 6.16通車';
	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 = '錯當紙類 鋁箔包回收率不到4成';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '南科減振弊案 聲押包商許鴻章 法院重裁';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '資優教育 教部月底全面檢討';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '冒對手之名 補習班罵學生三字經';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '電腦寶典出錯 考生照作失證照';
	rows[12].link = 'today-life13.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '暴力熊火力開 首戰症解咒';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《2006世界盃足球賽》最佳男主「腳」';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《2006世界盃足球賽》開幕戰紅牌 會節制';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《2006世界盃足球賽》世足有「球」必應 小鎮海撈';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '兩年來第一次 許銘傑 明先發';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '打線捧場 穆西納8勝';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '郭泓志 1.2局3K';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '大威 輸給未成年';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《新加坡羽賽》會內賽 台灣再添9組';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '警光男籃 週日單挑台啤';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '極地長征 林義傑說經驗';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '棄桿從政 趙豐邦選議員';
	rows[12].link = 'today-sp13.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-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 = 'IBM投資印度 將增至60億美元';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '勞保局 8月招考140人';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '辜仲諒辭總經理 專業考量';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '兩岸三地航運 持續投入';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '日活力門股東 求償9100萬美元';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = 'Q1我PC出貨量 衰退22.4%';
	rows[10].link = 'today-e11.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '水晶批發4年 創千萬月營收';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '美股重挫 波及歐亞股市';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '三商銀不滿兆豐金缺乏誠意 不排除在市場出脫台企持股';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '《理財Q&A》慎選售後服務 避免保單變孤兒';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '益通 本月起營收暴衝';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '營收撐腰 DRAM股逆勢收高';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = 'TV面板銷量 今年成長74%';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '面板不亮 友達下修Q2業績';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = 'LED背光液晶電視Q3問世';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '《期指觀測站》外資賣超 宜保守應對';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '《國際股市》歐股午盤跌 亞股全盤皆墨';
	rows[10].link = 'today-stock11.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 = '全民電通案 張俊宏涉侵吞求刑7年';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(17);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '李安讚關穎貴氣 大S正點';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '主播夫婦賣A貨 蔡沁瑜 李猶龍喊冤';
	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 = '英日美港台 7月嗆聲放song';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '何耀珊越洋輔導 電話費砸10萬';
	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';
																										
	rows[14].text = '布裘愛女將露臉 凱蒂婚前勤瘦身';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '布蘭妮退燒 搜尋輸A片女星';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '火辣飯島直子 失婚魅力No.1';
	rows[16].link = 'today-show17.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(8);
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 = '少觀所少女 紙藝創作找回自信';
	rows[7].link = 'today-taipei8.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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 = '不要緊張 警筆談阻假綁架匯贖';
	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 = '電話勒索保護費 礁溪壯圍最近傳4起';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '利澤焚化廠工人 被機械抓斗壓死';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '飛車撞傷收費員 男嫌逃逸被查獲';
	rows[5].link = 'today-north6.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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-center1.htm';
																										
	rows[1].text = '耕讀園案 紀俊毅辯稱防衛開槍';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '送茶葉涉賄 候選人函辦 2支持者收押';
	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 = '檢方搜索虎尾糖廠 偵訊5人';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '《社會傳真》夥人勒索 女同志等9人被訴';
	rows[6].link = 'today-center7.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 = '憂鬱症老婦投湖 警奮勇救回';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '家屬感恩送紅包 救護員婉拒';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '贓車引擎夾藏貨櫃 攔截';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '神父見證 2候選人宣誓不買票';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '離島賄選傳1票5000元 檢調要查';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '賄選文化 西班牙神父稱奇';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '投資分紅 婦人被騙1500萬';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '高檢出擊 2收押1交保';
	rows[7].link = 'today-south8.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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 = '我成了UN狗仔隊';
	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';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(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 = '型男都叫Paul';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '無線上網WiFi 3G互較勁<br>後起之秀WiMAX 緊追在後';
	rows[2].link = 'today-fashion3.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
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 = '氣男友片面離去<br>打電話給新歡爆料';
	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('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '老年人甲狀腺疾病<br>不是老化 要有警覺';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '居家預防跌倒<br>老人生活更無憂';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '濫用非類固醇消炎藥<br>易增加陽痿機會';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '老婦採筍刺傷眼<br>感染真菌性角膜炎';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '做夢期行為障礙<br>睡醒後異常疲憊';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '接受我 不要同情我<br>愛滋的天空不灰暗';
	rows[5].link = 'today-medicine6.htm';
																										
	rows[6].text = '腸病毒 將進入高峰期';
	rows[6].link = 'today-medicine7.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(7);
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';
																										
	rows[5].text = '幸福的家庭';
	rows[5].link = 'today-article6.htm';
																										
	rows[6].text = '《退稿信》';
	rows[6].link = 'today-article7.htm';
																										
}
menu = null;

menu = getMenu('art');
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-art1.htm';
																										
	rows[1].text = '巴黎最新文化地標<br>布利碼頭博物館六月下旬開館';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '忘掉脾氣 帶著勇氣<br>NSO 執行長邱瑗新上任';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '觀摩布利碼頭博物館<br>故宮南部分院將借鏡';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '前輩畫家回想異國情調';
	rows[4].link = 'today-art5.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '利比亞沙漠窺探 天狗食日';
	rows[0].link = 'today-travel1.htm';
																										
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}
