//===========================================================================
//基本設定
//==================== 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(9);
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 = '7夫人買吳淑珍禮券？ 遭否認';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '名嘴爆不停 明傳3人出庭';
	rows[8].link = 'today-fo9.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '政院要求偵查不公開 成效不彰';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '北高市長人選 民進黨628前確認';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '立委轉述謝參選目標「協助政局穩定」';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '龔照勝漏報1800萬財產 罰12萬';
	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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-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 = "DNA破解 專情天鵝 對對搞外遇！";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "2.5億年前大滅絕證據 就在南極？";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Female circumcision heightens childbirth risks 女性割禮提高生產危險";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(17);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '被綁14天 付贖500萬';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '政府便民網站 淪犯罪工具';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '「靖頻專案」 剷詐騙機房逮22嫌';
	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 = '助選員夫妻臉 啊!失散50年姊弟';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '漁會騎車運鈔 搶匪撞人劫車';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '撞死主僕逃逸 證據印在死者褲';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '退伍中尉 網路公然賣槍';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '精打細蒜A政府  2蒜商被訴';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '粗心車禍害 4命 親家變冤家';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '聯誼對象竟是婚友社職員 想婚男被坑上百萬';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '吃冰救孩子 南市愛的故事';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '向死神搶人 全校樂捐救回她';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '未來怎樣？ 60歲老媽想到心酸';
	rows[14].link = 'today-so15.htm';
																										
	rows[15].text = '單親兒 牢記一飯之恩';
	rows[15].link = 'today-so16.htm';
																										
	rows[16].text = '買過同棟樓 三龍結奇緣';
	rows[16].link = 'today-so17.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '貫通6次 雪隧不辦通車典禮';
	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 = '基測作文  0∼3級分86682人';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '洗腎熬過求學路 吳昆秦攻取碩士';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '高中數學賽 我勇奪全美B組亞、季、殿軍';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '母子鐵馬環台 健康做公益';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '北市室內電磁波抽檢 兩成逾10mG';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '台大副院長受藥廠招待？衛署要查';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '鋒面滯留 週六前防豪雨';
	rows[9].link = 'today-life10.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(10);
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 = '火牛對陣 攻守決勝';
	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 = '雨神亂 水牛獨樂樂';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '台灣業餘高球賽 排名出爐';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '台北羽球公開賽 20日見';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '台北桌球公開賽 今開打';
	rows[9].link = 'today-sp10.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 = '台股再跌117點 分析師：好買點';
	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 = '5月進、出口值 歷年新高';
	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 = '士林官邸旁土地招標 每坪公告底價125萬';
	rows[8].link = 'today-e9.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '美元對歐元 連3天走強';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '歐元兌美元 分析師：若升逾1.3 歐央行將干預';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '外資作多美元 台幣貶1.58角';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '泰國央行 升息1碼';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '《理財Q&A》投資基金 設定停損停利點';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '分析師建議加碼亞洲股市';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '鋼鐵股Q2營收 倒吃甘蔗';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '台塑化、台化營收 創新高';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '南電五月成長66% 六月仍看好';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '晶圓雙雄 月績報佳音';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '友達後市 小摩看衰 瑞信樂觀';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '大立光目標價 上看860元';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = '《期指觀測站》短空氣焰高 恐回測年線';
	rows[13].link = 'today-stock14.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 = '黃子佼破壞得逞   小豬心寒喊ㄘㄟˋ   Selina哭求無用';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '佼佼裝好人 暗搶Selina';
	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 = '主持不到2個月 節目喊卡 蔣怡首度吃癟';
	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 = '世足開踢東風斷訊 金曲獎orz';
	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 = '阿姆告官 獲賠640萬';
	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 = 'Gackt抱米倉涼子 當飯友';
	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 = '免遷戶籍跨區就讀 擬先試辦';
	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 = '瓦斯解套無望 恐生2億呆帳';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '佔合法車位 連停7天擬拖吊';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '去年道路坑人 90件申請國賠';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '護魚有成 大豹溪無限期封溪';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '貢寮西靈巖寺 18尊羅漢到位';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '畢業前讀百書 廣福學童︰哇';
	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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '看廣告貸5萬 老師被詐近57萬';
	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 = '融資35萬 月餘要還157萬';
	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 = '給50萬呷涼 毒蟲行賄3警悍拒';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '《基層選舉查賄》每票2000 朱昇輝等3人聲押';
	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 = '買票賄選 &#20931;銓湖等人判重刑';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '18歲女當老鴇 網路仲介援交';
	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(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '音像創作聯展 13部影片入圍';
	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 = '持刀惡少 2人連犯10案';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '酒醉上路 2人警局報到';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '抱女尋短 2人即時獲救';
	rows[6].link = 'today-south7.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 = '立法院e悲哀';
	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 = '世界盃足球賽 3C商品搶搭順風車';
	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 = '乳癌迷思 姊妹注意了！';
	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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '小兒疾病 居家自我評估';
	rows[0].link = 'today-medicine1.htm';
																										
	rows[1].text = '色盲藝術家 查理斯梅里翁';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '土撥鼠式微創術<br>腰椎狹窄治療新方法';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = '愛運動的孩子 不易變壞';
	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';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
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-article1.htm';
																										
	rows[1].text = '仙人掌女人';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '旅遊指南迷';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '如何寫好一張履歷表';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '梁祝大爆笑';
	rows[4].link = 'today-article5.htm';
																										
	rows[5].text = '開放的真相？<br>彼得．漢克得獎引起文壇風暴';
	rows[5].link = 'today-article6.htm';
																										
	rows[6].text = '第26屆西班牙<br>阿斯圖里亞斯王子獎揭曉';
	rows[6].link = 'today-article7.htm';
																										
	rows[7].text = ' 神祕主義如何推動歷史';
	rows[7].link = 'today-article8.htm';
																										
	rows[8].text = '出版業仍未冰融';
	rows[8].link = 'today-article9.htm';
																										
	rows[9].text = '文學原鄉 詩人詩地';
	rows[9].link = 'today-article10.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
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 = '橘子紅了 人也散了<br>知名作家琦君昨日過世 享壽90歲';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '朱團2團「擊尋旅伴」音樂會  展現新世代獨到語彙';
	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 = '蒙古建國800年 故宮致賀  送院藏元朝帝后像複製畫23件';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '橋仔頭文史協會 青年勞動學習營報名';
	rows[5].link = 'today-art6.htm';
																										
	rows[6].text = '南部連日大雨 《愛爾蘭之虎》高雄場延後';
	rows[6].link = 'today-art7.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';
}