//===========================================================================
//基本設定
//==================== 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(8);
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';
																										
}
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 = '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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "搶購PS3   美買家遭劫匪槍擊";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "G20澳洲登場 場外警民衝突";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "日本少子高齡化 職場女性漸抬頭";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "奈國富翁 蓋飛機屋收妻心";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "布雷恩吊掛挑戰";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "挑戰最大衝浪板 站出金氏新紀錄";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中日對照讀新聞》男性教師、強&#12356;抑鬱感 男性教師、強烈抑鬱感";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中英對照讀新聞》 Toyota recalls about  54,000 passenger cars  豐田召回約5萬4000輛小客車";
	rows[7].link = 'today-int8.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 = '「騷酒雞」驅寒 拚「夜」績換LV';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '想當酒家妹 要愛滋健檢';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '盜吊車行車電腦 60秒幹一票';
	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 = '車沾粉底 役男肇逃洩底';
	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 = '藍鵲家族助學金 222人獲獎';
	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 = '太魯閣峽谷音樂節／樂音伴清風 迴盪山澗間';
	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 = '停用14年 矽膠隆乳 美國解禁';
	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(15);
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 = '狗仔24小時跟…建仔不得「靜」';
	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 = '王上場打擊被K掉門牙';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '阿里山自行車賽 一選手休克身亡';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '小布17000分 史上最年輕';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '大歐缺陣 熱火悶啊!';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '大帝狂飆37分 木狼夾尾逃';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '費天王 7愛司轟垮納達爾';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '謝淑薇詹詠然 台灣內戰';
	rows[13].link = 'today-sp14.htm';
																										
	rows[14].text = '索后 爆冷淘汰';
	rows[14].link = 'today-sp15.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'IMF主席:美房市降溫 恐傷全球經濟';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = 'IMF環球透視︰全球經濟續成長 須防下修四大風險';
	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 = '紐約原油跌破56美元 17月新低';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '南投智障兒農場 耕耘有成';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '徐珮瑀 拿到12張金融證照';
	rows[6].link = 'today-e7.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 = '善盡企業責任 用愛拉近距離';
	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 = 'Motorola看遠傳／跳脫價格戰 創意推陳出新';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '華爾街傳奇人物羅傑斯預估／商品多頭行情 可續至2014年';
	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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '阿湯哥砸7476萬 世紀婚禮登場';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '阿湯哥娶某 變成搖錢樹';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '老婆換成少妻 有種拒認同志';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '芭黎絲車震露球 譙髒話火爆';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '舞孃挑戰極限 Jolin腿軟';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '183Club 台灣製造 紅燒中國';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '2年痛失2千萬 施易男一心求去 民視：隨緣';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '林佑威坦承劈腿 圈內圈外都有';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '宋承憲回來了 4千粉絲搶朝聖';
	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(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '昔日3廢墟 今朝北海岸新商機';
	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';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '高鐵將通 新竹通勤更方便';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '高鐵噪音 交通部長要求改善';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '基隆台肥二廠 豎牌警告';
	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 = '羅浮以上台7線 路窄又彎事故多';
	rows[6].link = 'today-north7.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 = '戴手套行竊   丟菸蒂洩底';
	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 = '張福田涉盜墓 典當逾600筆';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '收入微薄 年輕爸爸偷鷹架';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '姊弟不和 男友持槍討公道';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '缺錢買毒 疑偷14馬達落網';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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 = '追討老母扶養費 兄弟法院見─案例1：要手足履行近15年前協議 弟，勝訴';
	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 = '高職生 遭人圍殺身中6刀';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '3船工 跳船被逮疑為偷渡';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '女偷肉 辯稱要為丈夫慶生';
	rows[5].link = 'today-south6.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 = 'James Crawford「 警告」台灣';
	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 = '只能中山 不能渭水';
	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(9);
	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 = '戰勝期中考  K書5秘笈';
		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';
																											
	}
	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';
}