//===========================================================================
//基本設定
//==================== 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(10);
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 = '63億軍購協議 宋只認2億';
	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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '高市長參選人╱總部成立<br>延續執政 陳捍衛台灣價值';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '謝︰北高民調 可望黃金交叉';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '鐵路地下化動土 藍營鬧場';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '黃向群總部成立 四大天王齊站台';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '兩岸包機協商 暫時喊卡';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '不只純觀光／窺軍情、拍電影 中國客花樣多';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '民進黨團將設黨產清查小組';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '學者︰國民黨黨產 應歸回國庫';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '設國務機要費調閱小組 藍綠攻防';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '扁︰大幅增加客委會預算';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '林俊義︰英議會報告挺台';
	rows[10].link = 'today-p11.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "英官方預測╱氣候暖化 全球經損232兆";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "氣候異變 非洲旱災飢荒暴增";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "攔截北韓飛彈 美擬在東京加碼部署PAC-3";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "開發中國家軍售 俄羅斯稱冠";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "抗伊核 以色列富人自建地下碉堡";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "奈及利亞空難 多名政要罹難";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "＜國際索隱＞日本朝野兩黨 形象戰術逆轉";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "日寺廟免費咖啡 吸引年輕人親佛";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中日對照讀新聞》夢&#12392;現&#23455;&#12398;&#12462;&#12515;&#12483;&#12503;&#12391;「&#12497;&#12522;症候群」 夢想與現實的落差造成「巴黎症候群」";
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = "《中英對照讀新聞》South Korean condom sales, motel bookings surge after North\’s nuclear test 南韓保險套銷售與汽車旅館訂位在北韓核試後大增";
	rows[9].link = 'today-int10.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '啞巴歌手 K歌之王';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '黑幫A計畫 毒計挖金脈';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '送別韓宏裕 2助教跪悔';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '狠郎砍死女友 惡女錯殺情人老爸';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '境管局勾結人蛇 懲處4官員';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '溫哥華搶案頻傳 動搖治安';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '外傭摔落井 A字梯救命';
	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';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '帥哥老師超人氣 女學生搶修課';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '雙薪爭議 大考中心主任、副主任將減薪';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '台鐵推北高、北中直達列車 日增20班';
	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 = '2人瑞動刀 術後不輸少年家';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '小兒突罹川崎症 疑洗地毯誘發';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '藝術治療自閉兒 成效好';
	rows[8].link = 'today-life9.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(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 = '美聯MVP 基特夠實力';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '紅雀贏球的N個理由';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '熊火腿三星獅 亞洲3強11月較勁';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '牛砍總教練 黃忠義接手';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '60年代率綠衫軍創造8連霸傳奇／紅頭奧拜克辭世';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = 'NBA季前分析—西部太平洋區／5強搶晉級 力拚大滿貫';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '全民運新項目／飛盤爭奪賽 免裁判執法';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '世界盃桌球賽／莊智淵 8強止步';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '費德爾 挑戰在家鄉首冠';
	rows[10].link = 'today-sp11.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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].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 = '美三大石油商 Q3賺百億美元';
	rows[3].link = 'today-e4.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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].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';
																										
}
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 = '劉兆玄:陽明山冷水坑適合聊天  尹乃菁:談國民黨機密';
	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 = '飛輪海牽手唱 千名粉絲high爆';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '飛輪海 愛的抱抱大Fun送';
	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 = '陳瑀涵嬌DD 奪冠大熱門';
	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 = '廣末要酒不要小孩 Gackt大玩SM';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '鐵門大盜橫行 拆門只要20秒';
	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 = '龔惠君效應 金樽盃調酒賽選手達111人';
	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';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '路邊偷車輪 1月數十起';
	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 = '頭蝨感染 南投山區小學拉警報';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '50社區同步種樹 嘉縣打造綠色大地';
	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';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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 = '領徵地補償 覓人瑞作保證';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '恐怖完攀 平山裕示先鋒奪冠';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '玉井天主堂告解 國語、台語、越南話 3聲道';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '虱目魚金鑽 大胃王雙人組快扒猛吞';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '火燒船 漁工受困 猛拍夾板 救了自己';
	rows[4].link = 'today-south5.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-o1.htm';
																										
	rows[1].text = '約堡機場 洪奇昌 715';
	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 = '窩囊的KMT本土派';
	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';
																										
}
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(5);
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 = '耶誕彩妝 搶搭第2波週年慶';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '化妝水 高機能化';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '透明 迷你Ruffle  不夜城';
	rows[3].link = 'today-fashion4.htm';
																										
	rows[4].text = 'James Dyson：慾求不滿，才有創意發生';
	rows[4].link = 'today-fashion5.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 = '度過空虛 家人要支持';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '生化湯  哺乳媽媽別喝過量';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '餵哺母乳加適度按摩 子宮收縮可不靠藥物';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '選GMP認證中藥  不怕吃到重金屬';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '生化湯 有五味基準方';
	rows[3].link = 'today-medicine4.htm';
																										
	rows[4].text = '防蚊驅蚊 天然A尚好';
	rows[4].link = 'today-medicine5.htm';
																										
	rows[5].text = '學做彼拉提斯  柔軟身段、加強肌力';
	rows[5].link = 'today-medicine6.htm';
																										
	rows[6].text = '子宮內膜異位 輕度可採藥物治療';
	rows[6].link = 'today-medicine7.htm';
																										
	rows[7].text = '做好就醫前準備 協助醫師掌握病情';
	rows[7].link = 'today-medicine8.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 = '橫跨四世紀的《四季》曲目<br>林昭亮與ISS獨奏家合奏團聯演';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '出賣咖啡館以空間搏版面  故宮創意出招';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '老團新舵手 邱君強接任國台交常任指揮';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '聯邦印象大獎得主  陳孟澤獲廖繼春油畫創作獎';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '聽得見台灣聲音  WOMEX世界音樂博覽會';
	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';
}