//===========================================================================
//基本設定
//==================== 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 = 'TVBS處分案撤銷 引爆蘇系謝系開槓';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '延續本土政權 李登輝籲培養清廉人才';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '政策辯護縮頭 黨團痛批政院';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '要扁退黨？ 綠委：無法解決問題';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '執政不符期待 呂游道歉';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '彭明敏：扁已遠離民進黨理想';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '蔡清文關鍵光碟 蘇德建給的';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '游世一收押 最快明傳趙家父子';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '張景森斥邱毅張冠李戴';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '台銀：台開聯貸非內線消息';
	rows[9].link = 'today-fo10.htm';
																										
	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(13);
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 = '台灣社6月18日成立 力保總統聖戰';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '參與全球疫情系統 美日挺台';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '世界醫師會 支持我加入觀察員';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '莊光明︰高球場案 不排除解約';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '未開除許財利 馬稱尊重制度';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '國安報告︰外移中國企業 降低優惠';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '防磁吸 增加投資誘因';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '外交篇 多元對抗三光';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '兩岸篇 共劃軍事緩衝區';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '國防篇 預算GDP三％';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '經貿篇 設專責談判代表';
	rows[11].link = 'today-p12.htm';
																										
	rows[12].text = '國家安全是全民語言';
	rows[12].link = 'today-p13.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 = "告別痛苦 球迷網拍忠誠";
	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 = "蓋了13年 三峽大壩完工";
	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 = "《中日對照讀新聞》&#12522;&#12521;&#12483;&#12463;&#12473;&#12394;&#12435;&#12390;&#12391;&#12365;&#12427;&#12363;！“肩&#12418;&#12415;強&#30423;”逮捕 輕鬆得起來才怪！「按肩怪盜」遭逮捕";
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = "《中英對照讀新聞》Germany：thousands of World Cup related jobs still available 德國：數以千計的世界盃相關工作仍懸缺";
	rows[9].link = 'today-int10.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '複驗死因 陳氏10cc鮮血殆盡';
	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 = '健忘毒販? 置物櫃留2000萬元貨';
	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 = '熱愛生命6鬥士 送愛到嘉義';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '不忍榮民凋零 行動119陳國文辭工照料';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '窮人沒錢安葬 警官葉振耀默默幫忙';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '好榜樣！ 撿到10萬元 父子無貪念';
	rows[11].link = 'today-so12.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台北捷運板土線 最快週六通車';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '新托福首測  14人挑燈夜戰';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '技專劃界線 二專未來不統測';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '資優班聯招  家長怕白考 南投：安啦  中市將會商';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '胃癌晶片測存活率 準度近8成';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = 'FDA提更嚴格警告 肯立克恐致肝衰竭';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '男童服抗癲癇藥 皮膚意外壞死';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '血型看個性？ 聽聽就好！';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '全台首座狗運動公園 愛犬玩樂新天堂';
	rows[8].link = 'today-life9.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '熊20勝 封王大有可為';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '水岸萬步健走  千人來「腳」和';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《國際田徑邀請賽》男400接力搶進亞運 未達標';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《職撞排名賽第197站》楊清順連勝喊卡 有晉級就好';
	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 = '泰山165轟 700打點';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '經典賽盈餘 我可分杯羹';
	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(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '金價上週重挫7.7%，銅大跌10%';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '紐約期油急跌4.9%';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '國際熱錢流竄 期貨股匯動盪';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '呂東英 以魄力穩住軍心';
	rows[3].link = 'today-e4.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《品牌故事》東陽 塑造霸業';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '工安意外 包商最長停權3年';
	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 = '卡債協商 繳款率已達75%';
	rows[5].link = 'today-stock6.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '第一家庭成員捲入不法疑雲 扁道歉：徹查不護短';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(12);
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 = '賴雅妍超Man 拚正義硬起來';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '嘿嘿嘿！周侯戀破局 Jolin摀嘴狂笑';
	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 = '錢韋杉 長跑13年正式當邱太太';
	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 = '裴勇俊炒股 砸3億賺24億';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '尹恩惠棄歌從演 人氣更旺';
	rows[11].link = 'today-show12.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(2);
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 = '《自由談》憂鬱的520';
	rows[1].link = 'today-f1.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(6);
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 = '淚撫傷口 被害家屬 走出悲痛';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '馬上風 日商人客死異鄉';
	rows[5].link = 'today-taipei6.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 = '桃市護膚坊 中國女全套3500';
	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(6);
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 = '通緝犯寫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';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-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';
																										
	rows[7].text = '弟弟偷搶 姊姊報案';
	rows[7].link = 'today-south8.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 = 'NCC，管管電視吧！';
	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 = 'E-mail母語怎麼說？';
	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 = '2天1夜 機車環南半島  650公里長征 GO！';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '海濱路線 南島風光暢快遊<br>花東縱谷 →南迴公路';
		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 = '達人掛保證 士東市場A級蔬果採購地';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '台中建國市場  果魚肉 南北雜貨一次買齊';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = 'SOS手表急診室 常見4大傷害解決！';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '戲胞大開 退而不休 粉墨登場';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '私人家教VS.長青大學<br>爺爺奶奶 FUN開心學才藝';
		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';
}
