//===========================================================================
//基本設定
//==================== 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','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-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(9);
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 = '紅色警戒！ 320條河川防土石流';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '心繫災民 扁蘇下鄉勘災';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '交通大亂 山線鐵路中斷';
	rows[8].link = 'today-fo9.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '雨災 48村里延至17日投票';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '基層選舉 無黨籍稱霸';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '澎湖查賄 收押2人';
	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';
																										
	rows[8].text = '趙建銘是否公務員 不影響論罪';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '法促會 籲政黨尊重司法';
	rows[9].link = 'today-p10.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 = "阿巴斯︰巴勒斯坦建國方案交付公投";
	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 = "《中英對照讀新聞》Is \"daggy\" Manilow the answer to loud cars? 「落伍的」曼尼洛是解決噪音車的方法？";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中日對照讀新聞》出生率大幅低下…年間人口&#12399;初&#12398;減少 出生率大幅降低…年中人口首度負成長";
	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 = '情色世足賽 辣妹肉搏 酒客色門';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '無賭不丈夫 世足風賭盤瘋';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '原裝氛圍PUB 德到感動';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '小弟被逐出幫 糾眾連砸3酒店 嫁禍大哥';
	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 = '沈睡的梅棋 媽媽不捨她受苦';
	rows[11].link = 'today-so12.htm';
																										
}
menu = null;

menu = getMenu('life');
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 = '台鐵革新 借重國工局菁英';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '嗚！嗚！搭蒸汽火車憶兒時';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = 'GIS分析上學路 陽明高中真行';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '《大學指考考前衝刺》國文 - 作文先擬大綱 段落要分明';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '生前契約 14天內解約退全額';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '《女科學家 群像系列》王維菁戰勝氣喘 統計學露頭角';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '原水濁度飆高 將影響民生用水';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '野生赤腹松鼠 愛牠別餵牠';
	rows[7].link = 'today-life8.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《2006世界盃足球賽》巴隊烏龍 便宜了英';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《2006世界盃足球賽》下一屆 可能看不到小貝';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《2006世界盃足球賽》0:0 千里達逼和瑞典';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《2006世界盃足球賽》厄雙鋒 踢倒波蘭';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《2006世界盃足球賽》壽星克洛斯 金靴大熱門';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《2006世界盃足球賽》荷塞戰 矛盾之爭';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《2006世界盃足球賽》黑色羚羊悍 葡小心應戰';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《2006世界盃足球賽》伊罕見陣型 防墨突破';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《台北公開賽》莊智淵 難敵削球剋星';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '雙陳屠牛記';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '韓流襲台 潘政琮、陸冠芝屈居亞軍';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '漢妮3度封后';
	rows[11].link = 'today-sp12.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台北電腦展 預見下半年榮景';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '小型化、行動化 商機成形';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = 'HD-DVD搶先機 BD容量具優勢';
	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 = '中國圍堵 我洽簽FTA不順利';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '日產第五設計中心 落腳台灣';
	rows[8].link = 'today-e9.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 = 11;
menu.menuLayer = 0;
menu.rows = new Array(14);
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 = '松本潤出撞況 SE7EN大遲到';
	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 = '舞王趕走雨神 愛爾蘭之虎熱情踢踏';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '勾魂名模 白歆惠桃花最旺';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '《金曲獎特別報導》GiGi莫文蔚美背金讚  男星有型亮眼';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '王力宏雪恥 蔡健雅驚嚇';
	rows[7].link = 'today-show8.htm';
	rows[7].type = '金曲獎頒獎典禮特刊';
																										
	rows[8].text = '佩岑唱歌周董編 Hebe被嗆先閃人';
	rows[8].link = 'today-show9.htm';
	rows[8].type = '金曲獎頒獎典禮特刊';
																										
	rows[9].text = '伍佰客氣啦 全靠賣肉鍍金 黃乙玲二度封后';
	rows[9].link = 'today-show10.htm';
	rows[9].type = '金曲獎頒獎典禮特刊';
																										
	rows[10].text = '傳統藝術音樂獎 台灣本土發光';
	rows[10].link = 'today-show11.htm';
	rows[10].type = '金曲獎頒獎典禮特刊';
																										
	rows[11].text = '阿妹曲風百變 建豪驚天一脫';
	rows[11].link = 'today-show12.htm';
	rows[11].type = '金曲獎頒獎典禮特刊';
																										
	rows[12].text = '陶子嗆 小S火 辣媽無禁忌';
	rows[12].link = 'today-show13.htm';
	rows[12].type = '金曲獎頒獎典禮特刊';
																										
	rows[13].text = '激戰4輪 陶&#21894;擠下陳綺貞';
	rows[13].link = 'today-show14.htm';
	rows[13].type = '金曲獎頒獎典禮特刊';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
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-s1.htm';
																	
	rows[1].text = '《自由談》何不食肉糜？';
	rows[1].link = 'today-f1.htm';
																
}
menu = null;

menu = getMenu('region');
menu.layer = 10;
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 = 10;
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 = '代表選舉 3主席、2副主席落馬';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '武俠展 台北故事館瑞氣千條';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '國中教師甄選 錄取率1%';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '親子烹飪賽 薑是嫩的辣';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '凱歌堂整修 明年9月重現風華';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '投票率4成5 無黨者當選多';
	rows[5].link = 'today-taipei6.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 11;
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 = '大雨惹的禍 中壢3車禍3死';
	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';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '南投災情/土石流狂奔 道路寸寸斷';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '彰化/兄弟抱祖先牌位逃命';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '中市/南屯排水溝磚牆崩塌';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '中縣災情/中橫路基掏空 谷關、松鶴成孤島';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '嘉義/山區坍方11鄉鎮泡水中';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '雲林/農損面積高達5853公頃';
	rows[5].link = 'today-center6.htm';
																										
}
menu = null;

menu = getMenu('south');
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-south1.htm';
																										
	rows[1].text = '農產泡湯 南縣農業災損逾900萬元';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '大雨不斷 檢警冒險深入山區查賄';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '1票價碼6千元 南縣賄選 2人交保';
	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(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 = '扁蘇救災vs.馬宋奪權';
	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 = '新竹市警 不能這樣A錢';
	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 = 12;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '考前抱佛腳<br>巴結文昌帝君有一套';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '抱佛腳必中 威力加強版<br>祭解祈福';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '不要再送分給閱卷老師啦';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '陪考者 8項要點全掃描';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '咖啡故鄉<br>古坑華山新玩意';
		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 = '糖醋醬料<br>酸甜食感好滋味';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '8大戴表易犯錯誤 完全解答！';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '十二星座同事 相處十二招';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '吃瓜補氣 做個夏天元氣美人';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '流浪後的家貓';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	menu = null;
}
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';
}