//===========================================================================
//基本設定
//==================== 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(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '扁譴責 倒扁活動鼓動革命引發暴力';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '挑戰憲政秩序 群眾當白老鼠';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '扁慰問 金恆煒：理念比身體重要';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '台灣角社成立：導正媒體亂象';
	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 = '挺扁嗆施 沸騰228公園';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '金恆煒：林正杰打給誰看的';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '王幸男討債 直搗倒扁總部';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '政客、媒體操弄 台灣不斷空轉';
	rows[11].link = 'today-fo12.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(9);
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 = '謝長廷批爆料3惡源';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '高捷案謝交萬言答辯狀';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '立委經營選區 藍喬不定';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '新黨黨慶 王馬為郝站台';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '3年投入506億  政院擬衝刺勞參率';
	rows[8].link = 'today-p9.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "無視國際凍核 伊朗高調啟用重水廠";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "3墨漁民返家 誓言再出海";
	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 = "俄教堂大火";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中日對照讀新聞》美女&#12395;見&#12392;&#12428;&#12390;事故 看美女看傻眼而肇事";
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = "《中英對照讀新聞》Cows have regional accents like humans,language specialists have confirmed 語言專家證實，牛像人類一樣有口音";
	rows[9].link = 'today-int10.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-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 = '集體走私K他命 台籍三男在菲被捕';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '浸屍水作嘔 餐廳生意差';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '倪敏然事件觀落陰 八大被罰10萬元';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '奧地利女童被囚8年 交往日記? 與綁匪搏感情';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '中國搞怪 偶爾姦女童 少年非強姦';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '沒水電 建中生樓梯間借光苦讀';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '輪椅天后 資源回收風雨無阻';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '陽光警花夜間苦讀 考上警大研究所';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '浮世繪：羅漢松80歲 平地茁壯情意深';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '浮世繪：月老占星 牽紅線更速配';
	rows[14].link = 'today-so15.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '鴿舍髒亂 鄰婦染隱球菌';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '搖晃嬰兒成癱 專業保母被訴';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '抗生素抗藥性達85％ 沙門氏菌 恐無藥可投';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '高齡產子 絕非易事';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '懶精蟲裝死 滴藥變活龍';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '瑞芳蝙蝠洞一夕空城';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '美麗台北夜';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '阿里山新神木 三選一';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '墾丁螢光蕈 發亮僅3天';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '健康城市調查 北中南市最樂活';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '破解之王 紙上鬥智唰唰唰';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '青少年尬發明 看誰點子炫';
	rows[11].link = 'today-life12.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '阿福屠獅勝率100%';
	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 = '週三 建仔6度對菜鳥';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '世界女排大獎賽 義古今爭冠';
	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';
																										
	rows[7].text = '《世界盃花式撞球賽》 不敵德國 台灣第5';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《女子撞球排名賽》 周婕妤 首度封后';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '6罰失守 義遭淘汰';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '打上屋頂  伍茲免罰';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '虎爺出巡  衝上第4';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '謝偉軍3破全國  亞運有譜';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '奧運跆金2週年  英雄再聚';
	rows[13].link = 'today-sp14.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '美國經濟隱憂 墨幣單週大貶1.5%';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '最長定期契約 擬放寬至三年';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '申請育嬰假 男性僅佔4%';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '微軟年底推無線MP3 挑戰Ipod';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '英經濟成長 可望超越歐元國家';
	rows[4].link = 'today-e5.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '投資新興債券 宜以當地貨幣計價';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '印度股市 有機會突破前波高點';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '台、韓科技股 市場喊進';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '能源股仍可逢低佈局';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '日股前景樂觀 低檔有限';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '網家露天拍網 eBAY賣家吃虧';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = 'Yahoo!拍賣 弱勢賣家免費';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '本週上市增資股 高達174萬張';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '開發土地 中華電年可獲利0.6億';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '推新都更案 台開股價翻身';
	rows[10].link = 'today-stock11.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 = '否認挾怨報復說 余天女ㄅㄨㄅㄨ被砸 憂人身安全';
	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 = 'F.I.R.淡水開唱 飛歡慶25歲哭花臉 團員吞藥搏命演出';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '阿霈野蠻主唱 3男團員皮皮剉';
	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 = 'Rain 張東健牽手搞斷背';
	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(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 = '農產超市 又賣過期食品';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '自來水99年 水源長長久久';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '小寶寶爬行 父母吶喊加油';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '職場性騷擾 裁罰前讓加害人答辯';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '娃兒吃古早零嘴 邊看布袋戲';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '北縣新風貌列車 八里左岸談景觀';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '首座綠建築圖書館 北投再生';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '原民小孩遊台北 好多第一次';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
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 = '槍擊犯逃12年 栽在騎車未戴安全帽';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '女客控性侵 PUB老闆：醉到不舉 她主動';
	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';
																										
}
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 = '卡債300萬 運將聲請破產遭駁回';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '興建湖山水庫 總統關切';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '台16線 投警局施鐵腕盯砂石車';
	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 = '守望相助亭不保 5里長跳腳';
	rows[6].link = 'today-center7.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-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';
																										
	rows[5].text = '市長盃乙組棒球賽 雙強爭冠';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '新化羊肉節 遊客大啖滿汗大餐';
	rows[6].link = 'today-south7.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 = '席丹?';
	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 = '走訪新竹尖石 和大自然做朋友';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '到山林之鄉  品嘗自然原味';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '走訪新店 貼近郊山好風情';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '到彰化摸蜆仔兼洗褲 炎炎夏日樂無窮';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = 'HIGH到最高點  西子灣沙灘新玩法';
		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 = '長安東路 私房餐廳走一遭';
		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';
}