//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = true;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
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(12);
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 = '27日馬記者會 王拒出席';
	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';
																										
}
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 = '拿出單據來批藍亂爆料 府︰一人發難 萬人受罪';
	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';
																										
}
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 = "擬攻擊摩天大樓 FBI逮7嫌";
	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 = "日本檢方起訴 基金經理人村上世彰 被求刑3年";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中英對照讀新聞》England fans insist they’ve beaten back the bad boy image 英格蘭球迷堅持他們已經洗刷「壞男孩」形象";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '台鐵列損失4696萬 假扣押李氏兄弟財產';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '目睹搶案挺身抗匪 4勇者獲頒獎表揚';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '不「民」就裡 網友訐譙被訴';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '姦10多搖頭妹 釀1死1瘋';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '不要就死當 教授性侵女學生';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '三娘押診 小丈夫得性福';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '男得志工 哺乳電訪他在行';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '單車環島 血癌童畢業禮物';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '送愛到白冷 2年不斷線';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '信義書局老闆 角落默默傳情';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '心肝寶貝獲心生 菲勞感謝台灣人';
	rows[11].link = 'today-so12.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '二代新生兒篩檢 拒驗15項罕病';
	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 = '救護車違規 最重吊銷車牌';
	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 = '雪隧內車速不到45公里 罰三千';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '《女科學家群像系列》台灣珍古德 黃美秀的黑熊傳說';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = 'ETC大型車使用率直逼四成';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '網購標錯價PChome不認帳 消費者擬提告';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '興揚之旅新聞處理 本報獲五項滿分';
	rows[11].link = 'today-life12.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 = '《2006世界盃足球賽》烏克蘭晉級';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《2006世界盃足球賽》吞牌退場 代表滅亡';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《2006世界盃足球賽》森巴跳針 日偷1球';
	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 = '《2006世界盃足球賽》踢進追平第2球 凱維爾 改變澳命運';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《2006世界盃足球賽》裁判也瘋狂 烏龍 3黃牌才出場';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《2006世界盃足球賽》傷兵歸隊 德軍火力全開';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《2006世界盃足球賽》不敗阿軍 挑戰世界第4';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '5次雙殺攔不住獅';
	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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '不理7-ELEVEN 統一強行登陸';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = 'TouTube創辦人 陳士駿第28';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '巴菲特吃飯價 45.5萬美元';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '永豐餘董座 何壽川交棒';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '製造業生產 上半年預估成長率8%';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '未來房價 購屋者看漲';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '五大行庫房貸初貸利率 5月創新低';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '發展3B策略 提高GDP';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '協助海外投資設廠 開發基金提撥80億融資';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '日圓重貶 台幣貶值7.8分';
	rows[9].link = 'today-e10.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '無力償債 得捷擬延賣回權';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '德銀調降友達、奇美電獲利';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '董監改選 力晶取得合晶一董一監';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '董監補選 中鼎董事會 大摩影響力增大';
	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 = '《期指觀測站》重拾信心 留意FOMC會後談話';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '《國際股市》歐股午盤漲 日印尼下跌';
	rows[8].link = 'today-stock9.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(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '火紅梁朝偉 5大導演搶搶滾';
	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 = '蔡依林 天心尬球技賽波濤';
	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 = '何耀珊蠟燭多頭燒 累到昏倒';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '賈斯汀被疑偷腥 怒甩醋缸卡麥蓉';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '狗仔躲托兒所 拍裘莉養子被捕';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '萊西跋山涉水 催淚尋主';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '成宥利洩春光 賣笑撇變臉';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '天海祐希怒飆買醉男友';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '小池徹平親民 最受同儕歡迎';
	rows[14].link = 'today-show15.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 = '公立高中 報到率8成';
	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';
																										
	rows[8].text = '金采節開幕 金博園區金光閃閃';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '整頓碧潭高灘地 流攤先收避風頭';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
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 = '押人傳簡訊討債 基隆５嫌犯被逮';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '討債灌尿、炸手 竹聯大勇堂主判６年';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '《社會傳真》隊長拼成capteim 掛牌半年';
	rows[7].link = 'today-north8.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 = '假疏浚真盜砂弊案 曾蔡美佐等人判無罪';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '糟糕，闖入平交道…火車撞爛休旅車 1死';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '尋死，帶著2女兒…房內點火 狠父被逮捕';
	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 = '毒癮難耐 女子中山高路肩注毒';
	rows[9].link = 'today-center10.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-south1.htm';
																										
	rows[1].text = '南科減振案  檢方抗告書 凍在地院11天';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '台灣躍進 先提升南部科技實力';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '花開了 白河賞蓮開始囉';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '猛男猛女 秀上街頭';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '抗議   捷運圍籬影響生意';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '陽疹   求診多半50至70歲';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '嬰兒誤食毒品死亡 媽媽判刑';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '遇搶拉皮包被拖行 少女受傷';
	rows[8].link = 'today-south9.htm';
																										
	rows[9].text = '永安外海意外發現女屍漂浮';
	rows[9].link = 'today-south10.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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';
																										
}
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(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	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-weekly1.htm';
																											
		rows[1].text = '到西門町看戲  吃喝、玩樂雙享受';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '走進光影想像空間 投向大螢幕懷抱';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '大高雄影城  玩樂通包';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '不用出遠門 看電影好方便';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '特色戲院 二輪票價一輪享受';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '完美唇色 好MATCH';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '秀美腿 不再忍痛咬牙根';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '浴室4大危機 破解有道';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '瞎咪台灣小吃 老外最愛？';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '怎麼吃 最健康？';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '一個早晨一隻落翅鳥';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '少就是多 20年老屋簡單上新妝';
		rows[0].link = 'today-house1.htm';
																											
		rows[1].text = '郭肇盈 打造收藏夢想的家';
		rows[1].link = 'today-house2.htm';
																											
		rows[2].text = '航站戀人 9道防護 為小套房安全把關';
		rows[2].link = 'today-house3.htm';
																											
		rows[3].text = '瑞城學府 1分鐘走到塗城商圈';
		rows[3].link = 'today-house4.htm';
																											
		rows[4].text = '新天母 緊臨柴山公園';
		rows[4].link = 'today-house5.htm';
																											
		rows[5].text = '長效住宅 給銀髮族一個安全空間';
		rows[5].link = 'today-house6.htm';
																											
		rows[6].text = '建商大打形象牌 爭取品牌認同';
		rows[6].link = 'today-house7.htm';
																											
		rows[7].text = '臨河住家 好風景<br>龍口吞水化煞 保健康';
		rows[7].link = 'today-house8.htm';
																											
		rows[8].text = '從內科到竹科 科技新貴築巢計畫';
		rows[8].link = 'today-house9.htm';
																											
		rows[9].text = '樣品屋量身訂做 打造最滿意的家';
		rows[9].link = 'today-house10.htm';
																											
		rows[10].text = '打造居家南洋風 回家像度假';
		rows[10].link = 'today-house11.htm';
																											
		rows[11].text = '新屋出現漏水 該如何向建商求償？';
		rows[11].link = 'today-house12.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';
}