//===========================================================================
//基本設定
//==================== 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(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(12);
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 = '錫&#22531;仙 不習慣被叫黨主席';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '北高市長選情／蘇嘉全不選 陳菊：感謝謙讓';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '北高市長選情／葉金川要選 郝龍斌：歡迎競爭';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '葉菊蘭自喻颱風眼 外亂內靜';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '光華雜誌 正名台灣光華雜誌';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '國民黨青年團 成員預估破萬';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '顏清標娶媳 席開2000桌';
	rows[11].link = 'today-p12.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 = 'H5N1低溫下可存活逾月';
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = '日本DVD業拚經濟出新招 租片可宅配 看完即銷毀';
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = '《中英對照讀新聞》Chill wind blows only good for ice makers冷風呼呼吹只對製冰業者有利';
	rows[6].link = 'today-int7.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 = '校園守貞卡 效力難持久';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '瑪中樂善好師 助學傳愛';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '創世宴 街友 老人 席開450桌';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '擄國中生勒贖150萬放人';
	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';
																										
}
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 = '抗生素Ketek 可能傷肝';
	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 = '123位特殊考生上場 力爭上游不畏艱辛';
	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 = '《SBL》台啤野獸出柙 生吞獵人';
	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 = '《SBL》東森谷底反彈 玉米悲願奏功';
	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 = '邦斯新球季...從2棒出發';
	rows[9].link = 'today-sp10.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
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-e1.htm';
																										
	rows[1].text = '社區即工廠 婆婆媽媽拚經濟';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '坐擁錢巢 財源最家';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = 'Oh Ya∼ 我家就是學校';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '單身女子 古典美麗殿';
	rows[4].link = 'today-e5.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-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 = '原油搞不定 亞歐股市 恐遭波及';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '金根獎 深耕台灣 廠商不孤單';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '北商銀工會通過罷工案';
	rows[6].link = 'today-stock7.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(2);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '府秘書長陳唐山 外交部長黃志芳 人事局長周弘憲';
	rows[0].link = 'today-t1.htm';
																										
	rows[1].text = '曙光女中許諾真愛 推守貞卡';
	rows[1].link = 'today-t2.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 = '雙J同台眼神不交集 王力宏搗蛋卡位';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '周董慢半拍 王力宏奪HITO男歌手';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '陶&#21894;吊鋼絲 台北驚奇開唱';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '張鳳書當班長 過年趕嫁&#23595;';
	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 = '瀨戶朝香甜蜜蜜 川&#30033;要另結新歡';
	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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '業務員監守自盜 衛星導航追到內賊';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '堆高機操作不慎 老公撞死老婆';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '家具拍賣 人氣狂標';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '圍爐童樂 以人情味佐餐';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '越娘鄉愁 銘記在心';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '質詢失焦 市政監督淪為口水戰';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '關渡碼頭 新棧橋亮相';
	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 = '國中15隊智慧鐵人 3天2夜闖通關';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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 = '殘障失業男 與弟盜460公斤鋼材';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '東華合纖起火 百餘戶疏散';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '偷機車輪流騎 8少被抓';
	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 = '桃園2車對撞 1死3傷';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '借手機被拒 惡客利剪刺運將';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '賣安毒抵債 藥頭仍被判刑';
	rows[8].link = 'today-north9.htm';
																										
	rows[9].text = '清晨火警 老翁睡夢中喪命';
	rows[9].link = 'today-north10.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 = '烏金落幕之後系列 4之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[5].type = '社會傳真';
																										
	rows[6].text = '學生放寒假 小偷來報到';
	rows[6].link = 'today-center7.htm';
	rows[6].type = '社會傳真';
																										
	rows[7].text = '他什麼都偷 主動供案情';
	rows[7].link = 'today-center8.htm';
	rows[7].type = '社會傳真';
																										
}
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 = '東雲紡織爆炸案 完成DNA鑑定';
	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';
																										
	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 = '5566與流氓';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '黃義交vs.顧崇廉';
	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';
																										
}
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 = '瓦斯爐健檢安心吃頓年夜飯';
		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 = '超 EASY！狗狗開運年菜DIY<br>罐頭飼料簡單食材 6分鐘搞定！';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '60分鐘內完美變臉術<br>漂亮過新年';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '打理門面<br>農曆年前正是時候';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '生日禮物 一週提案';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '大腸癌可選擇<br>無痛腸胃鏡篩檢';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '放療與化療之後 食療保養';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = 'Bye-Bye！Blue Monday';
		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,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';
}
