//===========================================================================
//基本設定
//==================== 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(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '國安局促國慶停辦 阻扁出席';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '扁：倒扁終會過去 沒什麼好怕';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '王金平：續辦國慶 籲群眾理性';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '管制範圍擴大含兩廳院 酒會兩階段進場';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '國慶辦不辦 籌委會國安單位各有堅持';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '國安局：中國人士 早潛進來了';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '施徵求戰車 參加圍攻';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '政黨法草案部分條文通過 政黨不得經營或投資事業';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '政黨法納黨產條例 藍力擋';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '黨產條例卡住 藍綠互批';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '總統任命 21名公投審議委員';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '處分黨營事業 國民黨快馬加鞭';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '國民黨最風光時…曾投資上百家上市櫃公司';
	rows[12].link = 'today-fo13.htm';
																										
	rows[13].text = '不面對黨產問題 好意思反貪腐';
	rows[13].link = 'today-fo14.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 = '領專業加給 蘇︰月內提出法源';
	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(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 = "英研究︰一天4次茶 有助減壓";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "Playboy兔女郎 重出江湖";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》Junk mail row postman keeps his job 垃圾郵件爭議的郵差保住工作";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(16);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '出團前夕 康福492本護照被搶';
	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 = '練簽名 姊妹騙母土地交信託';
	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 = '破色情網站 影音可下載會員11萬';
	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 = '系主任罵女老師爛貨 判拘役40天';
	rows[10].link = 'today-so11.htm';
																										
	rows[11].text = '三地門 不吃白吃的午餐';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '愛滋同志現身：活著真好';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '化身志工 街友幫街友';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '鐵馬環台 阿兜仔為病童募款';
	rows[14].link = 'today-so15.htm';
																										
	rows[15].text = '老文物 收藏台灣好風光';
	rows[15].link = 'today-so17.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '高鐵初營運   每天38000人';
	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 = '施展魔髮   500青絲吊起35KG象龜';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '玉山溯「原」鄒族最早 布農最壯大';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '二成六大一新生 曾想自殺';
	rows[6].link = 'today-life7.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-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 = '豪華打線 建仔也稱「鑽」';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '第2戰遇雨 今晨1時補賽';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '強森練投OK 托瑞放心';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '李明進62場出賽 寫紀錄';
	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';
																										
}
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 = '謝國忠直言 辭職收場';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '公平貿易 開小店做大愛';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '美股再飆漲 Q4旺季行情可期';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '拉丁美洲、新興歐洲 前景看好';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '元京證砸30億買竹商銀套利';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '徐旭東甩衰運 蓄勢再起';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '最佳企業主 侯永雄等6人出線';
	rows[8].link = 'today-e9.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '公平會修罰則  濫用獨占最高罰5億';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '9月CPI續跌 3年半最大跌幅';
	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 = '日圓走升 台幣小彈2.7分';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '前8月 汽油銷量減 柴油竄升';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = 'DRAM模組廠 月績紛創新高';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '力成、泰林旺到年底 矽品續登峰';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '大立光業績亮眼 前3季EPS逾20元';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '新友達Q4營收 挑戰千億大關';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '台股不畏圍攻 長假前拉長紅';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '太陽能矽棒 中美晶2年後稱王';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '歐股午盤上揚 亞股紛大漲';
	rows[12].link = 'today-stock13.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 = '田麗現身 一定離婚<br>錯在他 力爭贍養費';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '退後MV搶先看<br>周董戀Hebe 逞凶種悲劇';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '帕吉歐：聰明的藝人不談政治';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '翻攝不註明出處 NCC：侵權須受罰';
	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 = '藤木直人武道館開唱 8000粉絲相挺';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '阿湯哥不會演 搞砸大開眼戒';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '盧卡斯57億 助母校南加大';
	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(8);
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 = '中秋雙十2天 部分鄉鎮停收垃圾';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '裝置藝術展 看見陶博館6年';
	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';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '警長里長感化 蹺妞要考第1名';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '牛玉珍退而不休 課輔搶救弱勢生';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '開公司壟斷救護、殯葬市場 消防員被訴';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '買東西偷換條碼 貪小錢被送辦';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '雙賊見單警 密商反撲被打敗';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '偷車不承認 身擁車主會員卡露餡';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '偷天橋銅條 不知警在後';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '《社會傳真》男子吊死寺廟涼亭 身分待認';
	rows[7].link = 'today-north8.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(14);
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 = '大水坑危險 港坪國小延期招生';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '花卉嘉年華首週 中潭公路停工10天';
	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 = '老人慶中秋 與娃兒尬節目';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '重陽敬老起跑 400長者健走2公里';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '中秋烤肉 漁港海鮮熱賣';
	rows[9].link = 'today-center10.htm';
																										
	rows[10].text = '文旦畫臉譜 傳說中的殺賊頭';
	rows[10].link = 'today-center11.htm';
																										
	rows[11].text = '開心過節 別忘隨手做環保';
	rows[11].link = 'today-center12.htm';
																										
	rows[12].text = '八卦山猴探井 擬設高空吊橋';
	rows[12].link = 'today-center13.htm';
																										
	rows[13].text = '200師生熬製 2000盒月餅送暖';
	rows[13].link = 'today-center14.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 = '詐健保費 判處拘役30天';
	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 = '23歲青少年？';
	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(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '北中南特搜 省荷包住宿全攻略';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '輕鬆入住優質房  荷包不失血';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '台中平價旅店 住得省 舒適不打折';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '交通網四通八達 高雄鬧區平價住宿推薦';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '行前工作準備好 長途開車不疲勞';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '小物舒壓 開車族痠痛掰掰';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '爽口河粉 酸甜滋味雙重奏';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '滑溜河粉泰過癮 好吃沒法度';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '徐若瑄獻美計 夾腳鞋速配入選';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '甜姊兒林志玲 陶瓷肌妝效公開';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '名店名菜大破解<br>春秋烏來思鸝咖啡廳  櫻花蝦炒飯';
		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';
}