//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '728首開庭 趙等7被告必到';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '不法所得算法 影響刑度';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '游錫&#22531; ：難原諒趙建銘';
	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 = '扁嫂珠寶 藍軍再列31項清單';
	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(15);
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 = '省道客運票價 8月漲6.95％';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '台塑汽柴油 跟進調漲一元';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '今年CPI 恐難保二';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '府院共識 對中投資40％上限 經續會不動';
	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 = '中常委換票 黨嚴禁 同志照幹';
	rows[11].link = 'today-p12.htm';
																										
	rows[12].text = '爭立委提名 菜鳥搶攻中常委';
	rows[12].link = 'today-p13.htm';
																										
	rows[13].text = '民進黨全代會 扁將首度缺席';
	rows[13].link = 'today-p14.htm';
																										
	rows[14].text = '解散派系案 綠高層轉趨保留';
	rows[14].link = 'today-p15.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-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 = "吸菸致癌 恐有10億人枉死";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "人造鼠精子 生出小老鼠";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "千面人下毒 南韓8萬瓶可樂回收";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "公車對撞 12人喪生";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中英對照讀新聞》Harry Potter author receives honorary doctorate 哈利波特作者獲榮譽博士學位";
	rows[8].link = 'today-int9.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 = '憂鬱症發作 63刀殺妻再自殺';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '百家樂倉庫 藏15萬副撲克牌';
	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 = 9;
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-life1.htm';
																										
	rows[1].text = '陸上颱風警報 最快今午發布';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '機器人世足賽 淡大捧回金盃';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '半年內染愛滋 一驗便知';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '九歲童 神經母細胞瘤纏身';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '綠島擬列海洋保護區 蘇揆：該限制就限制';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '黃一農 深耕社會天文學史 科學界翹楚';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '學貸還款年限 教部協調延長';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '第二型糖尿病 可能引發肝癌';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '中市醫師公會 揚言退出健保';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '下腰、手觸地 瑜伽練到椎間盤突出';
	rows[10].link = 'today-life11.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(13);
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世界盃足球賽》法總統接見 席丹一臉苦笑';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《2006世界盃足球賽》挺席丹 法指馬未吐實';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '303人跨進亞運';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '哈薩克開胡 台灣2連敗';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '卡達王者風 擒美4連勝';
	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 = '睡獅醒 痛宰蛇';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '建仔 下週二戰水手';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '克提茲本季報銷 牛急尋洋投';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '國聯  要破9連不勝';
	rows[12].link = 'today-sp13.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 = '企業未分配盈餘 第六年加徵10%';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '投信基金操作 擬放寬限制';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = 'G8峰會 可能納入大型新興國家';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '400億優惠貸款 鼓勵產業創新';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = 'Google軟體組合 推出中文版';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '核心家庭遞減 小家庭變多';
	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 = '新婚家庭 三項保險不可少';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '匯款逾三萬 下月起須留個資';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = 'LPL自估Q3仍將虧損';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '固態電容缺貨 提前到8月';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '日電貿、凱美 Q2獲利大躍進';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '統一入股光泉 仍各自登山';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '日鋼鐵業 醞釀漲價10%';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '工業電腦廠成長強勁';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '買氣低迷 汽車股動力全失';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '利空出盡 台開衝刺業績';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '電信網路展 吸引巴西大買家';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '《期指觀測站》持續盤整 選擇權站賣方';
	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(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 = '侯佩岑奮力挺胸 機場激變高峰';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '鄭元暢玩排球好樂 扮天使怕怕';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '英足球貴婦團 月敗6600萬';
	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 = '黃牛5倍拍賣孫燕姿 歌迷喊譙';
	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 = '貢寮音樂祭開香檳 圖騰Live秀';
	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 = '女童喊爹 華仔臉冒3條線';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = 'Gackt始亂終棄 女歌手爆料復仇';
	rows[13].link = 'today-show14.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 = '弱勢兒少 每月每人補助3000元';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '27所國中 分發額滿';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '11社區發展協會 獲評績優';
	rows[9].link = 'today-taipei10.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 = '上警局假爆料 想騙車馬費';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '假檢座來電 騙退休老師203萬';
	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 = '被友誣偽鈔還債 借2000打成25萬';
	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(10);
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 = '追贓車 警開逾30槍 逮一嫌';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '家扶小志工 fun暑假編藏書';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '嘉市國中教師甄選 錄取率6.8%';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '老農識字不多 執筆鐵劃銀鉤';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '汽機車亂闖 日月潭殺風景';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '歌仔戲拚場 14日起草屯登台';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '上萬棵百合 大度山台地迎人笑';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '彩筆融合藍綠 創作消弭對立';
	rows[9].link = 'today-center10.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '缺錢買毒 毒蟲12小時犯3案';
	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 = '汽車衝撞1死1傷 家屬籲自首';
	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';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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';
																										
}
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(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '開車 就愛有頭有尾';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '時尚密碼';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '夏日西裝 涼快上身';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '燈飾 空間造型魔術師';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '優質情人 20 30 40 要的不一樣';
	rows[0].link = 'today-family1.htm';
																										
	rows[1].text = '與已婚網友交心 算不算第三者？';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '孝順 從心做起';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '規劃暑假作業 輕鬆完成';
	rows[3].link = 'today-family4.htm';
																										
	rows[4].text = '跟孩子談同理心';
	rows[4].link = 'today-family5.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-medicine1.htm';
																										
	rows[1].text = '幼兒消暑 喝茶清心';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '睡覺吞下牙線棒<br>老翁腸穿孔';
	rows[2].link = 'today-medicine3.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
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-article1.htm';
																										
	rows[1].text = '巴士旅行';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '阿蘭';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '新棋記樂園';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '尿桶與化妝室';
	rows[4].link = 'today-article5.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '史上第一次<br>故宮系統性展出台灣原住民文獻';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '故宮與奧地利交換展有譜<br>國立藝術史博物館精品將登台';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '蘇富比拍賣莎士比亞';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '明年台北國際書展<br>多面向揭曉';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '林澄枝 心繫傳統藝術勢微';
	rows[4].link = 'today-art5.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-travel1.htm';
																										
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	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';
}