//===========================================================================
//基本設定
//==================== 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="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 = '台北燈節 斥資787萬 展二手燈';
	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(6);
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 = 'NCC委員派令寄出 最快週一成立';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '台灣魂演唱會25、26日登場';
	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';
																										
}
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 = '菲土石流 200死3000人失蹤';
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = '以擬經濟制裁 對付哈瑪斯政府';
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = '格陵蘭冰河 消融變快';
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = '《國際索隱》錢尼酒後打獵 媒體猛開火';
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = '高中醜男 長大較易犯罪？';
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = '生化機具輸至北韓 日商被搜索';
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = 'Skype難竊聽 防恐漏洞';
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = '《中英對照讀新聞》Tanzanian baby feeds on dog\'s milk - paper 報載：坦尚尼亞嬰兒喝狗乳';
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '金財神5報喜 樂透警來慶祝';
	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 = '超淫惡魔 2年染指23少男';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '抗議性騷擾法 同志捏造摸蛋';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '名產婆借名置產 售地被課1.4億贈與稅罰款';
	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 = '揮別家暴陰影 3向陽媽媽 勇往直前';
	rows[8].link = 'today-so9.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '台高再融資 政府不擔保';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = 'ETC違規 今開罰';
	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';
																										
}
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 = '獲選先發 黃龍義高興極了';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '熊隊登錄43人 歷年新高';
	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 = '少俠4分 龍奪回寶座';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '《HBL》新榮13連勝 挺進4強';
	rows[9].link = 'today-sp10.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '超低自備 10萬元成家術';
	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 = '鄉林君悅 居家環境單純 採無圍牆設計';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '香草花園 公園大片綠地 建築風格顯眼';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '春之樹 千坪超大中庭 周邊多所學校';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '西門町商圈 房價大復活';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '10期重劃區 看屋者多 下訂少';
	rows[8].link = 'today-e9.htm';
																										
	rows[9].text = '科工生活圈';
	rows[9].link = 'today-e10.htm';
																										
	rows[10].text = '景觀 捷運 學區 高雄首購族鎖定優質條件';
	rows[10].link = 'today-e11.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = 'AIG斥資60億 入主中央保';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '台灣企業主管壓力 連2年居冠';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '中信金投資兆豐金 馬永成︰支持現有經營團隊';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '華南金總座 李正義真除';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '保護毛利 亞光主攻手機相機';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '長榮海運 調漲燃油費';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '一零四上市 員工變富翁';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '大摩「加碼」 目標價102元 綠點大漲';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '《期指觀測站》外資加持 台股再探高點';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '《國際股市》歐股午盤漲 日跌韓亮眼';
	rows[10].link = 'today-stock11.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 = '行行出狀元 少年總鋪師16歲辦桌';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
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-show1.htm';
																										
	rows[1].text = '明道住套房 楊雅筑擠拖車';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '言承旭想誰？ 哭倒張鈞甯懷抱';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '張菲漲價不成 時薪40萬';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '雙J大贏家 5獎座險壓垮Jolin';
	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';
																										
	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';
																										
}
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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '省電大作戰 8個月 110萬度';
	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 = '忠孝西路公車道 西往東21日施工';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '市定古蹟 再添兩處';
	rows[5].link = 'today-taipei6.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(5);
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 = '10年前...自稱槍殺劉邦友 現在...偷牽腳踏車';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '六合彩個體戶 半年業績逾2000萬';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '社會傳真／撞翻車遺留吸食器 毒蟲落跑';
	rows[4].link = 'today-north5.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 = '百家樂賭場 一晚抽頭50萬';
	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 = '冒台哥大襄理 詐財10餘起';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '2巴1油罐車國道追撞 7傷';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '前仁愛國中校長 涉貪瀆被訴';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '卡車廂型車對撞 爆炸1死';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '社會傳真／吃薑母鴨 車禍依酒駕判賠';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '八旬翁的戰亂人生 小學獎狀見證';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '舢舨翻覆 兩兄弟落海失蹤';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '歹徒闖校園 持刀搶老師';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '歸仁警衝鋒 破六合彩簽注站';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '偷渡遣送 中國女還在坐月子';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '疑似燒炭 男女陳屍投宿房間';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '麻豆命案 解剖證實一刀致命';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '隨意便溺 老公惡行老婆訴離';
	rows[7].link = 'today-south8.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(12);
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 = '馬嘴長不出象牙？';
	rows[10].link = 'today-o11.htm';
																										
	rows[11].text = '寄希望於阿扁';
	rows[11].link = 'today-o12.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(13);
	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 = '玩家買表不容易<br>達人幫你傷腦筋';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '時尚雅痞玩家 要功能也要品味';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '有玩有保佑<br>神明護體 群神互戰';
		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 = '一勞永逸完美大眼術<br>脫胎換骨電眼美人';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '開眼頭手術正HOT';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '臉部肌肉無力<br>可能是顏面神經麻痺';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '帶著權杖A 尋找新工作';
		rows[11].link = 'today-weekly12.htm';
																											
		rows[12].text = '何必想太多';
		rows[12].link = 'today-weekly13.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,700);
}

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,700);
}

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';
}