//===========================================================================
//基本設定
//==================== 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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '向人民報告 扁今晚上電視 反擊罷免理由';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '新聞評論／惡質政媒 忽略人民感受';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '藍縣市長簽署罷扁聲明 馬：民意不可忤';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '府院黨、黨團是生命共同體 蘇：不與扁切割';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '討黨產連署 南、屏動起來！';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '南迴案六證物 送刑事局比對';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '六證物出土 檢警模擬搞軌步驟';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '千算萬算 沒想到有人會出賣他';
	rows[7].link = 'today-fo8.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(11);
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';
																										
	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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-int1.htm';
																										
	rows[1].text = "農業諾亞方舟 北歐搭建極圈末日地窖";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "打911救人靈犬 獲褒獎";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "胃癌遺傳家族 11人切除胃";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "日今宣布自伊拉克撤軍";
	rows[4].link = 'today-int5.htm';
	rows[4].type = '亞洲動態';
																										
	rows[5].text = "北韓傳完成飛彈燃料裝填";
	rows[5].link = 'today-int6.htm';
	rows[5].type = '亞洲動態';
																										
	rows[6].text = "右翼組織揚言攻擊 我駐菲代表處警戒";
	rows[6].link = 'today-int7.htm';
	rows[6].type = '亞洲動態';
																										
	rows[7].text = "學潮再起？中國河南萬人示威";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "自治公投  西加泰隆尼亞通過";
	rows[8].link = 'today-int9.htm';
																										
	rows[9].text = "印尼熱泥漿 吞噬家園";
	rows[9].link = 'today-int10.htm';
																										
	rows[10].text = "填字遊戲 世界最大";
	rows[10].link = 'today-int11.htm';
																										
	rows[11].text = "《中英對照讀新聞》Man admits foot-fetish assaults on subway 男子坦承在地鐵犯下戀足癖侵襲犯行";
	rows[11].link = 'today-int12.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '盜賣漁業用油 查獲8.5萬公升<br>揩油轉手 暴利驚人';
	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 = '提款機補鈔 保全員摸走200多萬';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '包庇色情 起訴12警員';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '網路轉帳 騙徒2小時得手48萬';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '台僑跨海訂貨 藉故賴帳削9000萬';
	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';
																										
	rows[12].text = '深山送暖 82歲獨居老人笑了';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '鳳山高中志工隊 週週赴安養院 2年不間斷';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '掃廟志工 全國清透透';
	rows[14].link = 'today-so15.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 = '渭水高拖救車 疑灌水A錢';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '植栽「淨」空氣 室內「森」呼吸';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '熱島效應 台北45年來雷雨量增8成';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '消跡45年 黃襟&#25397;蝶現嬌影';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = 'G點重建 開拓性福花園';
	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';
																										
}
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 = '《2006世界盃足球賽》瑞士 不讓紅魔獨走';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《2006世界盃足球賽》4：0 烏克蘭重創沙烏地';
	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 = '《2006世界盃足球賽》厄圖逼和 德拚全勝';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《2006世界盃足球賽》羅比諾 巴西新彗星';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《2006世界盃足球賽》胖羅回神 教頭力挺';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '神奇1.9秒 熱火聽牌';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '建仔 心碎9局下...';
	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 = '兆豐金董事 公民股各7席';
	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 = 'Windows Vista 內建盜版偵測程式';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '諾基亞 西門子 電訊網路設備部門合併';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '股票信託 富人節稅新寵';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '國際利空消息多 台幣重貶1.18角';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '《理財Q&A》投保旅平險 疾病醫療別漏';
	rows[8].link = 'today-e9.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '緯創買庫藏股 激勵股價';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '東台帶頭 設備廠向前走';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '聚陽逐季走揚 紡織業下肥上瘦';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '台積填權息表現 台股指標';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '宏達電再跌停 拖累手機族群';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '億光翻紅 帶動LED反彈';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《期指觀測站》下檔支撐轉強 壓抑空方氣焰';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '《國際股市》歐股午盤大漲 印澳回檔';
	rows[8].link = 'today-stock9.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(17);
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 = '林志玲討好對岸？藏嗲音 換口條';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '鼻環香帥和無花 也想玩斷背';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = 'Selina罵：彈琴的 不是好東西！';
	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 = '香港名模Rosemary 情慾豔陽灘';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '好萊塢 4美塑腿 橫行有方';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '文森老媽 被詐8億 安妮斯頓氣婚倒';
	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 = '宇多田光爸媽離婚6次上癮';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = 'Cars北美稱雄 台北不敵金鋼狼';
	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 = '北市警大風吹 偵查隊長10人異動';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '基福公路 地方憂不建了';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '拆違建收費 縣府今再度審議';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '當學校志工 呂文豐巧手修電扇';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '台北巨蛋大逆轉 蛋生有望';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '忠孝復興站 電扶梯冒煙 嚇壞乘客';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '相招來礦山 遊客玩得金采';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '炒麵麵包搶灘 網路爆紅';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '公立國小 招考營養師、護理師';
	rows[8].link = 'today-taipei9.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '中正機場噪音補助弊案 聲押4村長';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '智障生喪命 竹縣府將安檢11機構';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '民宅起火鐵窗上鎖 鄰居遞鎚敲出生路';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '涉性侵表妹 單親少年求刑10年';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '觀音潑猴咬狗傷人 中箭被捕';
	rows[4].link = 'today-north5.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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-center1.htm';
																										
	rows[1].text = '茶坊強盜案 主嫌抓到4人在逃';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '偷骨灰罈勒贖 3嫌求刑';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '販毒集團擁槍 3嫌被逮';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '把酒歡唱 酒駕1死1重傷';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '性侵未遂女信徒自殺 住持判3年';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '社會傳真／期約賄選 2人被起訴';
	rows[6].link = 'today-center7.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 = '高雄電影節 15部短片入圍 25日頒獎';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '超級迷你學校 2學童畢業 虎井盛事';
	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 = 'DRG是什麼?';
	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(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 = '體驗死海 美膚SPA風潮蔓延中';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = 'Audi新TT Coupe  奧地利薩爾斯堡試駕';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
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-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';
																										
}
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 = 'Ｂ肝獲得控制  還是可能得肝癌';
	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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '法國羅浮宮 台灣蔡明亮 合作拍電影';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '文化總會發行全英文雜誌 Fountain';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '陳郁秀極力澄清 「台灣紅」不只是一家店';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '柏林12把大提琴  24張商務艙票';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '貝嘉芭蕾舞團七月來台帶來新作《愛˙舞》';
	rows[4].link = 'today-art5.htm';
																										
	rows[5].text = '過度自傲 社會基礎不足  國家交響樂團仍有進步空間';
	rows[5].link = 'today-art6.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';
}