//===========================================================================
//基本設定
//==================== 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 = '不隨泛藍起舞 府不提答辯書';
	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(10);
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 = '特戰山訓 23天走336公里';
	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';
																										
}
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 = "穆哈傑 開打公布札格維接班人";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "日本動漫外交 中國批文化侵略";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "誰來晚餐 美國男人最哈萊絲";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "以反恐突破禁令 日出口武器予印尼";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "熟男好「性」福 犀利士推日服型";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "天天喝咖啡 有助降低肝硬化";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "啊，栽了!";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中英對照讀新聞》16-time Everest climberp ledges to reach the top of the world again 爬過聖母峰16次的登山家 誓言再次登上世界頂端";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '地下竊聽集團 鎖定室內電話';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '偷擔仔麵禮券送人吃 店員眼尖揪贓';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '微幅調整 北市高階警官異動';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '2醫師與病患玩性愛遊戲 慘遭仙人跳';
	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 = '新型肺幹細胞遭攻擊 SARS致命關鍵';
	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';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-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';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(15);
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世界盃足球賽》紅魔之手 曾染黑上一屆';
	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世界盃足球賽》巨塔柯勒 下一場缺陣';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《2006世界盃足球賽》自由之星--捷克．羅西奇';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《2006世界盃足球賽》手刃祖國 心情起波瀾';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《2006世界盃足球賽》西烏大戰 前鋒尬輸贏';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《2006世界盃足球賽》沙突車拚 亞非爭面子';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '《NBA》熱火回家盼灶旺';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '11連勝 獅露王相';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '勉強開賽 牛一敗塗地';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '姜建銘 今升一軍';
	rows[13].link = 'today-sp14.htm';
																										
	rows[14].text = '本季還沒輸過 康崔拉斯15連勝';
	rows[14].link = 'today-sp15.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 = '近月消金呆帳標售 上看500億';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '全球股災 外資大賣台股';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = 'IMF理事主席︰全球經濟 面臨下滑風險';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '燃料油漲價 染整業批中油';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '購屋痛苦指數 北市創新高';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '《國情密碼》我進口威士忌 逾九成來自英國';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '反傾銷調查 我首次派員赴中';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '水患受災戶 可申請住宅修繕貸款';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '就業多媽媽 三縣市開放報名';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '台企銀改選常董 工會拿不到';
	rows[9].link = 'today-e10.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '網路銀行、ATM 功能不e樣';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '美元走強 金價跌破600美元';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '外資匯出 台幣貶破32.6元';
	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 = 'CAPA認證 堤維西、耿鼎受惠';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '華固獲利 稱冠營建股';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '記憶體模組雙雄 逆風高飛';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '施崇棠樂觀下半年業績';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '雷曼兄弟評估 LED液晶商機 明年發酵';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = 'LPL下修財測 全球面板股重挫';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '《期指觀測站》法人期市反手作多';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '《國際股市》憂升息 歐股午盤再重挫';
	rows[12].link = 'today-stock13.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '貴夫人禮券案 大烏龍';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(15);
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 = '張鳳書 小S 方文琳 辣媽 少奶奶 慶生拚人氣';
	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(13);
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 = '月入逾10萬 名醫偷2千元DVD';
	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 = '暑期育樂營 外人一起fun';
	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 = '貢寮10歲養殖神童 養龍蝦嚇嚇叫';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '清水足球夢 土城募款送出國比賽';
	rows[10].link = 'today-taipei11.htm';
																										
	rows[11].text = '瓦斯錶保證金退費 後天解套';
	rows[11].link = 'today-taipei12.htm';
																										
	rows[12].text = '保留老樹 可獲容積補償';
	rows[12].link = 'today-taipei13.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 = '遭夫家暴 母棄兒於工寮避難<br>警救男娃 暫送少年學園安置';
	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(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '雲林縣口湖傳選後暴力 10餘蒙面漢 持槍砸鄉代家';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '酒駕不兩罰 已繳罰款可退';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '持斧頭砸家具行 吳長勝8嫌落網';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '砸店嫁禍道上大哥 嫌犯被教訓';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '假探病詐財 提水果騙走2萬';
	rows[4].link = 'today-center5.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 = '醫院沒錯 愛滋醫生停診 求償敗訴';
	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(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 = '台美洽簽FTA的贏家策略';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '烏龍牌機關槍';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '馬英九真神';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '馬市長必須道歉';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '臨會排斥軍購 國親擺爛';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '又見藍軍暴民';
	rows[10].link = 'today-o11.htm';
																										
}
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(4);
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 = '台中貴婦現象';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '輕便 時尚  優質旅行哲學';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = 'AUDI新TT設計創意大展現';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '自我健檢 40歲請出列';
	rows[0].link = 'today-family1.htm';
																										
	rows[1].text = '男友險出軌 暗戀男又告白';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '幼兒學急救 有備無患';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '新生彌月服 要送得貼心';
	rows[3].link = 'today-family4.htm';
																										
}
menu = null;

menu = getMenu('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 = '失聲之苦';
	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 = '子宮肌瘤造成內翻<br>嚴重者須犧牲子宮';
	rows[6].link = 'today-medicine7.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '菜刀與砧板';
	rows[0].link = 'today-article1.htm';
																										
	rows[1].text = '母親一生的腳步手路';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '回頭之後七秒';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '25年後說愛滋';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '珍愛生命';
	rows[4].link = 'today-article5.htm';
																										
	rows[5].text = '《我愛羅》';
	rows[5].link = 'today-article6.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '北藝大新任校長朱宗慶治學理念<br>學術、國際交流及資源整合三管齊下';
	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 = '陽明海洋文化藝術館  成為大英海事博物館會員';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '葉清芳創作回顧展';
	rows[5].link = 'today-art6.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';
}