//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
path = '';
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('生活週報'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','living','family','medicine','article','young','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 href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A 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 = '越娘解剖 頭部無外傷 毒藥物反應送驗';
	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 = '徐旭東夜會郭瑤琪 ETC最後生機';
	rows[11].link = 'today-fo12.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 = '積極管理 配套機制 學者批反對立委 不懂經濟';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '美任離官員 籲強化台灣戰略地位';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '藍委廢18%行政命令 綠營決翻案';
	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 = '研究顯示 H5N1病毒 偏好感染肺部';
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = '獅子王主題曲「獅王今夜沉睡」版權<br>原創人女兒 纏訟六年勝訴';
	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 = '《中英對照讀新聞》Russian billionaires club gets bigger and richer 俄國億萬富豪俱樂部更大更富';
	rows[6].link = 'today-int7.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 = '無間道真實版 雙面港警 殺警搶銀行';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '惡警殺警 台灣有前例';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '地下討債公司 吸血千萬';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '五多罪惡城 施茂林重砲批中市';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '拚治安 落跑外勞自首 全面免罰';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '窮毒蟲?! 撬大樓電纜變現';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '垂涎猴肉 當街燒毛肢解牠';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '公所元老長眠 後人關懷不滅 接力掃墓30年';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '同窗相惜 自閉生學會吹笛';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '剪輯光明面報導 當做教育範本<br>媽媽帶兒女舞動公益人生';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '認養貧童20年不間斷';
	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(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台鐵PP車沒修好 韓商OUT';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '高鐵避雷接地線 被偷近百條';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '出國變貴 航空燃油附加費要漲';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '東西線觀光列車 超享受';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '同志愛侶 想買夫妻納骨位 遭拒';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '關心禽流感 總統視察克流感製程';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '鼻竇炎作怪 男童失語';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '陽光AMC今運作 二、三萬名卡債族受惠';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '小三亂寫考卷 夫子賞耳光';
	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 = '去年高屏空氣 5年來最糟';
	rows[11].link = 'today-life12.htm';
																										
	rows[12].text = '肺結核傳子女 家人無怨愛相隨';
	rows[12].link = 'today-life13.htm';
																										
	rows[13].text = '日台文化交流獎學金 12名得獎者來台訪問';
	rows[13].link = 'today-life14.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '網球電子線審 「誰的白痴點子？」';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《國際高中籃賽》台灣明星隊 首日雙贏';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '禁區師守 文化大勝';
	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 = '鋒仔 瞄準31轟';
	rows[6].link = 'today-sp7.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《理財Q&A》拒當卡債族 力行十守則';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '無懼雙卡效應 銀行大募新血';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '李成太升任南韓央行總裁';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '保單健檢 適財適所';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '5銀行上月消金貸款 創新低';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '國宅1年不能轉手 擬取消';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '購電費率改變 台電年省18億';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '中信讓步 同意下週五前開董事會';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '竹科竹南基地剩5公頃 土洋廠商搶租';
	rows[8].link = 'today-e9.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '茂迪：年年產出成長70％';
	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 = '三星：NAND價格Q2回穩';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '下半年 產業景氣樂觀';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '南電首日吸金91億 贏益通';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《期指觀測站》金融期 觸底翻揚有望';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '《國際股市》道瓊創5年新高 亞股受激勵';
	rows[8].link = 'today-stock9.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(10);
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 = '小S明補婚宴 小豬獻唱鬧場';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '陳奕迅徐濠縈完婚 狗仔海陸追擊';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '霍建華癡等哈菸 夜會王毓雅';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '布裘避居深山 湯凱豪宅家裡接生';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '香取慎吾抵台 與粉絲共春宵';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '安達祐實為產地煩心';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '胡晴雯 狂電長毛男';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '維多利亞分手後 狂哭搞失聯';
	rows[9].link = 'today-show10.htm';
																										
}
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(8);
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 = '通車20天 路面已塌陷';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '路霸停車場 佔防汛路收停車費';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '自費篩檢子宮頸癌 診所擅用違法試劑';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '學童臼齒填補防齲齒 聯合醫院免費封填';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '下水道穿老街 淡水鎮長反BOT案';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '樂生保存案 多方交鋒無共識';
	rows[7].link = 'today-taipei8.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 = '碰！狗死人傷 談賠償撕破臉';
	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 = '把基隆便衣當仇家轟 5嫌被逮';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '連撞5車落跑 肇事者疑似酒駕';
	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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《社會傳真》律師遭勒索 雲縣傳多起';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '廟宇竊賊 偷青銅雕飾賣';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '區域性犯罪 法務部長促重視';
	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(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 = '毒品藏肛門和私處 3嫌闖關被查獲';
	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 = 'Republic of Cheating';
	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 = '誰理ROC?';
	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 = '婦權有獎徵答 3月24日至4月15日止<br>快樂女人憲改大樂透';
	rows[9].link = 'today-o10.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	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].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '好品味　　　→';
		rows[1].submenu = 'living';
		rows[1].link = 'today-living1.htm';
	
		rows[2].text = '家庭兩性　　→';
		rows[2].submenu = 'family';
		rows[2].link = 'today-family1.htm';
	
		rows[3].text = '健康醫療　　→';
		rows[3].submenu = 'medicine';
		rows[3].link = 'today-medicine1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.htm';
	
		rows[5].text = '青春美　　　→';
		rows[5].submenu = 'young';
		rows[5].link = 'today-young1.htm';
	
		rows[6].text = '藝術文化　　→';
		rows[6].submenu = 'art';
		rows[6].link = 'today-art1.htm';
	
		rows[7].text = '休閒旅遊　　→';
		rows[7].submenu = 'travel';
		rows[7].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('living');
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('family');
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('medicine');
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('article');
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('young');
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;

menu = getMenu('art');
menu.layer = 19;
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 = 20;
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 = '逛完綠博 4大順遊路線推薦<br>綠博＋ 傳統藝術之旅';
		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;
}
//====================  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';
}
