//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
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(11);
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 = '農曆年前 敲定問鼎2008人選';
	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 = '倒數30天雙城戰 藍祭反貪腐 綠打危機牌';
	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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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].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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-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 = "3台裔 期中選舉發光";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "大馬政論家 買警殺女友炸屍";
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = "細胞移植術 盲鼠重見光明";
	rows[9].link = 'today-int10.htm';
																										
	rows[10].text = "日一高中女生發自殺預告信";
	rows[10].link = 'today-int11.htm';
																										
	rows[11].text = "《中英對照》World’s most expensive cigar 世界最貴的雪茄菸";
	rows[11].link = 'today-int12.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '隔牆釣車鑰 43分鐘開走2賓士';
	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 = '滾出奇蹟 特教生畢旅圓夢';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '怪手摔山谷 5歲童救司機';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '「我要做善事」  無名氏抱90萬現金上門';
	rows[6].link = 'today-so7.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 = '多光子顯微鏡 皮膚老、病現形';
	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 = '白金鰻苗戰 13日跨縣市協調';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '明起天氣轉涼 氣溫下探';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '台商子女回流 解放身心';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '杜正勝：檢討台商子女教育政策';
	rows[8].link = 'today-life9.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '投手群走樣 開幕戰慘敗';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '吳珈慶等4 撞士 晉16';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '搶松&#22338;  洋基可望得標';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '能仁退三重 C組稱霸';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '世界女排錦標賽／古巴攔路 台灣2連敗';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '馬刺延長賽射太陽';
	rows[6].link = 'today-sp7.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '金管會修法 銀行放款恐緊縮';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '美推貿易自由化 阻力升高';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '銀行商務卡鎖定優質老客戶';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '民主黨勝 美小型、科技股有看頭';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '微利時代 基金手續費也要錙銖必較';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '台中港裝卸業者溢收案 公平會緩議';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '復華金納元京證 換股比1.615:1 公股反對';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '出口暢旺 台經院上修今年GDP至4.01%';
	rows[8].link = 'today-e9.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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].link = 'today-stock1.htm';
																										
	rows[1].text = '記憶體模組廠 仍看好11月';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '網龍月績再創新高 華義月增6%';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = 'Vista量產 教育升級版賣2490元';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '迎廣、旭品 營收亮麗';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '《國際股市》德股午盤小跌 韓菲勁揚';
	rows[5].link = 'today-stock6.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(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '警察故事搬上電視劇 藍正龍化身侯友宜 辦案價600萬';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '踢爆7年音樂大騙局 卓文萱招認 幫中國娃娃代唱';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '張韶涵偷搭周杰倫 耍冷不來電';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '台語片巡迴影展開跑 康丁白虹踩人力車 穿梭50年代';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = 'Energy大復合 邀粉絲睜大眼';
	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 = '聖子嗓臉吃晚餐 要價1萬3400';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '權相佑告黑道 雙方翻供不認帳';
	rows[10].link = 'today-show11.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》民主國家不能以民粹取代司法制度';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》又一位台灣英雄';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》民主就是家常便飯！';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '高鐵板橋站  爆防火區劃被破壞';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '樹林山佳車站停車場啟用 卡在地下室';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '把神豬當小孩養 1336台斤奪冠';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '路燈電線被偷 土城環河路暗如陰陽路';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '選情亂 藍等配票綠荒陣腳';
	rows[4].link = 'today-taipei5.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '2噸鋼板砸頂 推車救4命';
	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 = '小六生連續性侵 四歲小姪女';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '公園廁所產嬰屍 女遊民說不清';
	rows[8].link = 'today-north9.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '40年前未及發表 興大高掛惠蓀訓詞';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '專偷銅管樂器 起贓近900件';
	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 = '涉多起猥褻、砸死女子 惡狼被求處無期刑或死刑';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '賭博電玩裝故障 警識破';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '《社會頻道》與胞兄經營簽賭站 警緩刑';
	rows[6].link = 'today-center7.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '疫情難歇 衛生署長決撥款千萬';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '詐騙集團反攻中國 警方逮12人';
	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 = '美麗花海 大寮休耕農地養眼';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '彩繪大地五彩交錯栽種 美濃好色';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '謝家古厝老楊桃樹 列入保護';
	rows[8].link = 'today-south9.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '阿扁請假停職';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '不受理之判決';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '起訴書裡裡外外';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '台商子弟中國化';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '誰還關心這個國家？';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '穩固本土政 再求清廉';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '多點陳定南';
	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(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 = '第16屆洲際盃棒球錦標賽 IN台中';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = 'HOT紀念商品  KUSO加油招數照過來！';
		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 = '享特色佳肴  住幽靜民宿';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '香椿醬 滋味清爽好健康';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '元氣小子拚人氣 DIY秀手藝';
		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(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';
}