//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = true;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('生活週報'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(8);
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 = '趙家有13金主？財部：邱毅搞錯了';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '扁嫂擔心幸妤 盼回官邸待產';
	rows[7].link = 'today-fo8.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 = '七星水利會員爆料 4基金變私產 刮走28億';
	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(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 = "《中英對照讀新聞》Saudi penis reattached after Filipina cuts it off 沙國男子的陰莖被菲傭切斷後重新接回";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-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 = '「李泰安好像夢中兇手」';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '花蓮仁和診所 假戒毒真賣毒';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '強押到廁所 1人把風 3小五生輪暴女同學';
	rows[7].link = 'today-so8.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '學術資優班甄試 南市喊卡';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '水電表各9萬多戶 不合格';
	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';
																										
}
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 = '張泰山164轟';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '面對愛力克 象又沒轍';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '傷腦筋 洋基又折損一將';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '亞洲職棒大賽 十一月開打';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《小聯盟戰報》胡金龍 單場四安';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '太陽快艇 搶七';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '英17歲小將 最幼齒';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '比利再開金口：即使沒有魯尼 英格蘭 一樣進四強';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '英聯賽最大戶 103球員與會';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '歐冠盃 裁判承認誤判';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '外資單週賣超581億 創新高';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '首季證券投資淨流出84億美元';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '顏慶章：回歸WTO對台較有利';
	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';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '大摩點名華紙 造紙類股沾光';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = 'Vista延後 先推新電腦暖身';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = 'NAND Flash漲價 至上、昱捷擺脫陰霾';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '戴爾將用超微晶片 股價雙漲';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '資訊軟體類股 翻身';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '《期指觀測站》留意美國經濟數據';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《國際股市》歐股盤整 日股收紅';
	rows[7].link = 'today-stock8.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(14);
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 = '新聞局意外取消 入圍者資格';
	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 = '裘莉1.6億賣親骨肉 做公益';
	rows[13].link = 'today-show14.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》趙建銘案應回歸法律層面處理';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》馬背與馬腳';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》白狗黑';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '混酒唬角頭 兩派嗆火併';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '改名換證大變身 通緝犯險矇過警眼';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '悠遊卡路邊停車 6月底起可印收據';
	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 = '三級古蹟搭違建 一遮10年';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '梅雨季 疑似登革熱通報已20件';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '汐止聯邦銀遭搶 議員批沒警察局長有差';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '免費健檢 老人家福氣啦';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '盜珠寶逃逸 越勞賣淫為生';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '南方澳假問路 ２搶嫌昨落網';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '機場噪音補助弊案 再收押１商';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '桃園南區焚化爐案 ２官員釋回';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '苗市２警 救自殺老婦';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '經商失敗「性」情大變 挾前妻上山脫衣';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '賣混仿商標賽車衣 攤販被判無罪';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '《社會傳真》彰師大畢業阿兵哥 涉偷手機';
	rows[7].link = 'today-north8.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '雲林查獲地下油行 油水豐厚';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '遺棄兔唇兒 父母各求刑一年';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '蹺家兄弟檔 連偷14家超商';
	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 = '《社會傳真》涉詐財、性侵 他判刑10年半';
	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 = '錯過警校卻變強盜 毒害不淺';
	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 = '高屏區就博 2000飯碗等你搶';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '菜刀大盜落網 至少犯3案';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '老少配被臨檢 交往非交易';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '偽造監工日誌 2人被判刑';
	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(10);
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 = '仙拚仙&ecirc;文化';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '阿樺這粒種籽';
	rows[9].link = 'today-o10.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 = '每日瑜伽1分鐘<br>身體起來亮！';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '時尚YOGA會館 台北街頭正ㄏㄤ';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '火爆四川菜 嗆辣超過癮';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '單車遊日月潭<br>體驗湖光山色之美';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '盡享日月潭 風土民情之味';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '七朵花小喬<br>美麗達人 美腿勤保養';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '和泰興業董事長 蘇一仲<br>戀戀不忘向日葵小廚';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '上閣屋餐飲集團董事長蔣正男<br>對湯包 麻辣麵讚不絕口';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '台南天公廟董事長邱松男<br>府城手工小吃 從早吃到晚';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '四眼甜姬 開麥拉！ 選對框框 讓你水噹噹';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '秀出專業兩把刷 泡茶不假他人手';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '慧眼獨具挑出好茶具 茶具基礎入門辨識';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '3大建築結構 讓住宅生活真「震」有保障';
		rows[0].link = 'today-house1.htm';
																											
		rows[1].text = '購屋網路族串連 建商交屋戰戰兢兢';
		rows[1].link = 'today-house2.htm';
																											
		rows[2].text = '譜異國戀情 Rosemary甜蜜築愛巢';
		rows[2].link = 'today-house3.htm';
																											
		rows[3].text = '空間改造 老公寓變身溫馨住家';
		rows[3].link = 'today-house4.htm';
																											
		rows[4].text = '百變金屬 讓家華麗復古';
		rows[4].link = 'today-house5.htm';
																											
		rows[5].text = '長堤 眺望水岸美景';
		rows[5].link = 'today-house6.htm';
																											
		rows[6].text = '世紀風華 獨享4萬坪綠意景觀';
		rows[6].link = 'today-house7.htm';
																											
		rows[7].text = '大千 飽覽千坪公園';
		rows[7].link = 'today-house8.htm';
																											
		rows[8].text = '交屋驗收如何看出 窗戶施工品質？';
		rows[8].link = 'today-house9.htm';
																											
		rows[9].text = '科技家電 人性思考 拋開洗碗麻煩事';
		rows[9].link = 'today-house10.htm';
																											
		rows[10].text = '買屋強迫儲蓄 年輕人理財計畫';
		rows[10].link = 'today-house11.htm';
																											
		rows[11].text = '乙種工業用地 是合法住宅嗎？';
		rows[11].link = 'today-house12.htm';
																											
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}