//===========================================================================
//基本設定
//==================== 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(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 = '繞行府邸5.5公里 零時還路權';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '若脫序 未來3天遊行廢止';
	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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(18);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '916挺台灣 向國際發聲';
	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 = '倒扁喊罷工 股市跌破6600';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '倒扁總部 決伺機發動罷工';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '李應元︰濫用罷工 衝擊生計';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '反罷工 議員籲領光存款';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '高雄大型工會 反對罷工';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '蘇施政報告 橘營決杯葛';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '扁下週召開「台灣公投叩關聯國」高層會議';
	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';
																										
	rows[15].text = '周韻采蹺班學瑜伽 馬書面告誡';
	rows[15].link = 'today-p16.htm';
																										
	rows[16].text = '軍購喊話 美：台灣若無防衛決心 須自行負責';
	rows[16].link = 'today-p17.htm';
																										
	rows[17].text = '治安承諾到期 蘇揆今將「切實誠摯」說明';
	rows[17].link = 'today-p18.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "槍手闖入掃射 加國校園喋血 2死19傷";
	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 = "《中英對照讀新聞》Global warming taking earth back to dinosaur era 全球暖化使地球回到恐龍時代";
	rows[5].link = 'today-int6.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '五屍命案 鐵線綁嘴 慘過分屍';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '虛設公司 賣30億元芭樂票';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '美提款機被駭 要1塊給4塊';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '全民電通案開庭 張俊宏撇清';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '台電工程弊案 4人收押';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '感應門莫名響起 家樂福蠻強搜身 亂抓 95歲中風嬤被當賊';
	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';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台中縣府有錢抓漏 萬豐國小沒錢整修';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '資優生捨台大 獎學金捐母校';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '交部老舊停車塔肇禍';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '精品米食季 作伙來呷飯';
	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 = '7新生報到 台灣特種鳥 增至22種';
	rows[8].link = 'today-life9.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '挑戰18勝 建仔一派輕鬆';
	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 = '完封牛 小雞28.2局未失分';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '法掌空優   我2連敗';
	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 = '手風差  伍茲5連勝中斷';
	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 = '1老4小   晉級64強';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '台菲大戰   首日登場';
	rows[13].link = 'today-sp14.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '馬志玲展身手 圓金控夢';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '有機食品 綠色商機';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '19檔平衡型基金 長跑穩獲利';
	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 = '《理財Q&A》銀行開戶 不可委託他人辦理';
	rows[6].link = 'today-e7.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '笠原健治 32歲新富豪';
	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 = 'IMF預測 全球經濟今年成長5.1％ 但風險仍多';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '中油降價 台塑昨10時起跟進';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '取消刷卡紅利點數 銀行全說不';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《國情密碼》金融機構ATM20年成長約40倍';
	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 = '油價下探 SM廠獲利不減';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '《國際股市》歐股午盤上揚 日韓大漲';
	rows[11].link = 'today-stock12.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 = '圍城VS.挺台 蘇貞昌馬英九籲和平理性';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(17);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'Rain國際影友會網站 飄台灣國旗';
	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 = '梁家輝千杯不醉 言承旭不倒有祕方';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '徐若瑄人魚秀 全家總動員';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '奇蹟的夏天 踢出金馬大熱門';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '李嘉夜店討生活 劈腿玩電音';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '六月 侯佩岑寄情戲劇療情傷';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '周董上官網 嗆罵壹週刊';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = 'Twins沙灘趴 吆喝遊客當臨演';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '安妮斯頓沒星味 穿入人心撿到第1';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '芭黎絲被封殺 夜店碰壁';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '布蘭妮請舊愛當教父 賈斯汀說不';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '巴比偷吃 惠妮休夫要監護權';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '奧蘭多把烏瑪 姊弟戀進行式';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '李智賢驚魂2H 假綁架真宣傳？';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '嵐來了  不畏珊珊風雨無阻';
	rows[16].link = 'today-show17.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(9);
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 = '搶通車…土城線6站體漏水';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '清同治年間 蘆洲已成地名';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '預防嬰幼兒腸胃炎 新疫苗將上市';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '益氣聰明湯 補眼補耳不補腦';
	rows[8].link = 'today-taipei9.htm';
																										
}
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 = '撞癱男子賠120萬 警遭指稱沒誠意';
	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(13);
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 = '154線六輕路段 擬打造觀光街';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '午餐餘款過多 學校挨市議會刮';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '水五金廠就地合法 業者請命';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '八卦山高地旱灌 擬定權責';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '種菜有登記 產量過剩耕鋤有補助';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '欠稅9247萬 金典酒店遭查封';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '御用文旦 斗六名號響';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '雷雨多 2期稻作白葉枯病蔓延';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '4社團慨捐 讓貧生快樂吃午餐';
	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';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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 = '向國民報告 綠軍相約週日高縣見';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '太陽能車拉力賽 高應大參賽車亮相';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '涉圖利 高市勞局官員被傳喚';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '野心 轉接機房鄰近檢署';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '真心 南島族群婚禮活動';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '驚心 地下停車場有枯骨';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '貪心 申辦人頭門號轉賣';
	rows[6].link = 'today-south7.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '正向力量 改變台灣';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '消費台灣勞工';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '李家同的堅持';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '要人權請轉學？';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '這款老師 這款學生';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '拒絕恨的教育';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '學生不是籌碼';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '總統獎倒扁？';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '施明德笑什麼';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '回封信給陳麗珠';
	rows[9].link = 'today-o10.htm';
																										
	rows[10].text = '愛的暴力？';
	rows[10].link = 'today-o11.htm';
																										
	rows[11].text = '當代雜誌座談會';
	rows[11].link = 'today-o12.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(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 = '跟著達人走 前進立院GO';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '立院搶鏡王 10秒成名術';
		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 = '菊島小吃 盡嘗人情美味';
		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 = '一卡皮箱來獻寶  創意達人好Young的';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '秋到落髮！髮多多 養護3部曲';
		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';
}
