//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = true;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('週末生活版'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(10);
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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '陸軍司令身先士卒接受砲轟';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '鄭麗文說辭就辭 不接受馬慰留';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '用私人處理私務 管玲碧緊咬吳義敦違法';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '饒鴻奇涉貪瀆 苗檢查議會陋習';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '邱毅高雄地院滋擾案 定18日宣判';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '府︰扁在台新銀行是選舉戶頭';
	rows[6].link = 'today-p7.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 = "英保險大亨離婚 賠妻子29.7億";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "安倍拜靖國神社 南韓感冒";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Man Severs Penis on $1,800 Bet  男子為1,800美元賭金而自宮";
	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 = '科博館贈卡 1碗麵魏家幸福遊';
	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 = '愛滋丈夫行房拒戴套 判刑10年';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '怨劈腿 男潑女汽油點火雙命危';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '男嬰窒息亡 查父親曾恐嚇殺嬰';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '菲抄上億「麻黃素」 貨主疑為我毒犯';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '「金光黨」醫院搭訕 騙婦20萬買「偏方」';
	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 = '切片結果 乳房全切最後依據';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '228槍口下的父子情';
	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 = '開心體重計 6成輕視你';
	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(10);
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 = '小雞 中止6連勝';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '夏揮凱 率先晉8強';
	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 = '台灣高球公開賽 陷停辦危機';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《菁英盃高中國中籃賽》淡商扳倒金甌 打出HBL好兆頭!';
	rows[9].link = 'today-sp10.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '境外基金資訊觀測站 投資不漏網';
	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 = '7月WPI年增率 21月來新高';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = 'Fed再升息？ 市場看法不一';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '我外匯存底 仍居第三';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '安信信用卡 躍升第七大';
	rows[7].link = 'today-e8.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '外資：Q4資金回流台股';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '大盤轉弱 建議加碼手機類股';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = 'ETC風波 東貝股價跌三商電漲';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '世界先進上半年EPS達0.63元';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '華邦電 Q2每股虧0.03元';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '和艦回饋 聯電：已獲通知';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '《期指觀測站》台股量能不出 週線小跌';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《國際股市》飛利浦擬發股利 歐股午盤走高';
	rows[7].link = 'today-stock8.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '誤切病患乳房 長庚醫生判刑';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(18);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '康熙不來了 12月玩完啦！';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '仔仔外借2個月 侯佩岑月虧120萬';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '邱復生力薦4天王  代言金馬獎';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '陶&#21894;求婚  蔡依林以聲相許';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '方念華遞辭呈 向中天Bye  Bye';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '性感女神天心 不怕打回原形';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '183簽唱賣肉 愈脫愈熱';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '影棚藏嬌？ 張菲︰只是影迷';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '炒樓皇帝周星馳 全靠自家人';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '網友批裝可愛 王心凌改當阿婆';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '林憶蓮鬧情變 一個人洩底';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '粉絲脫衣示愛 飛兒吃飛醋';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '娜姊仿釘十字架  宗教領袖轟褻瀆';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '萊諾李奇拍MV 女兒妮可力挺';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '姜至奐愛台灣 影友會前趴趴走';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '鎖骨丰采 孫藝珍最迷人';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '老布引狼入室 老友偷照勒索';
	rows[16].link = 'today-show17.htm';
																										
	rows[17].text = '思嘉愛喬許 砸2億築愛巢';
	rows[17].link = 'today-show18.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(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '王世堅妨害公務 判拘役50天';
	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 = '詐不停 上半年 失金已破25億';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '女性護一生 記得3點都要顧';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '台北室內合唱團征匈 奪總冠軍';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '帆船亞錦賽落幕 新加坡大贏家';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '慶讚中元 湧蓮寺放水燈展冰雕';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '陪寶寶讀書 市圖送圖書禮袋';
	rows[10].link = 'today-taipei11.htm';
																										
	rows[11].text = '曹冀玲多媒體展 排灣之美';
	rows[11].link = 'today-taipei12.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '為句三小 老厝邊互毆互告';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '免費修眉傷人眼瞼 專櫃小姐緩刑';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '中正機場噪音補助弊案 ３人收押２人交保';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '里辦公處大掃除 掃出一箱子彈';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '盜剪電纜客廳剝皮 騙老父家庭代工';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '怪手司機 偷同業操作電腦';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '有了還硬上 少女墮胎告失聯已婚郎';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '《社會傳真》桃園兩起飛車行搶 同日偵破';
	rows[7].link = 'today-north8.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '古坑代會賄選疑雲 正副主席及3鄉代收押';
	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';
																										
	rows[6].text = '擄伴遊小姐勒贖案 逮2嫌';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '社會傳真／7飆車青少年 捐萬元緩起訴';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '陸蟹求生記 跟公路飛車搏命';
	rows[0].link = 'today-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 = '壞人 新營出現2女1男金光黨';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '逮人 翊凡金公司總裁涉吸金';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '騙人 前國代黃哲諒觸偽證罪';
	rows[8].link = 'today-south9.htm';
																										
	rows[9].text = '尋人 警助失蹤智障男找到家';
	rows[9].link = 'today-south10.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 = '回應';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '海翁出航／學術自由&ecirc;殺手';
	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(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '腳底壓一壓 痠痛疲勞 都走開！';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '新減壓運動 腳底按摩正盛行';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '身心全放鬆 從腳開始';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '紓解壓力 今夜不打烊';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '通體舒暢腳底按摩  迅速恢復活力';
		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 = '美味家常菜小館  全家歡慶88節';
		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(13);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '鄉村風辦公室 有家的味道';
		rows[0].link = 'today-house1.htm';
																											
		rows[1].text = '不動產信託 為孫子未來 安排最佳保障';
		rows[1].link = 'today-house2.htm';
																											
		rows[2].text = '春之樹 面對800坪公園的人文住宅';
		rows[2].link = 'today-house3.htm';
																											
		rows[3].text = '鼎峰 產權獨立花園大別墅';
		rows[3].link = 'today-house4.htm';
																											
		rows[4].text = '藍堡 透天豪宅連接2商圈';
		rows[4].link = 'today-house5.htm';
																											
		rows[5].text = '180萬把休閒旅館搬到家裡';
		rows[5].link = 'today-house6.htm';
																											
		rows[6].text = '購屋糾紛多 消費者如何自保？';
		rows[6].link = 'today-house7.htm';
																											
		rows[7].text = '空間挪移聚財氣 改善陰陽磁場 業績穩定成長';
		rows[7].link = 'today-house8.htm';
																											
		rows[8].text = '向上借光 太陽能未來生活新寵';
		rows[8].link = 'today-house9.htm';
																											
		rows[9].text = '紅花布改造 輕鬆DIY';
		rows[9].link = 'today-house10.htm';
																											
		rows[10].text = '達人教你看門道 20萬打造完全 Home SPA';
		rows[10].link = 'today-house11.htm';
																											
		rows[11].text = '防水閘門檢驗 大雨過門不入';
		rows[11].link = 'today-house12.htm';
																											
		rows[12].text = '房子風災受損，可否減免房屋稅與地價稅？';
		rows[12].link = 'today-house13.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';
}