//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
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'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','living','family','medicine','article','young','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 href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A 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(15);
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 = '聯勤信義 新壽63億奪標';
	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 = '調閱委員︰2ETC甄委 給入圍者同分 評假的';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '學者︰遠盟認證文件 爭議大';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '敗訴後 裝機量不到先前一成';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '對中關稅 毛巾業籲提高';
	rows[10].link = 'today-fo11.htm';
																										
	rows[11].text = '抗議中國貨 傳產業大遊行';
	rows[11].link = 'today-fo12.htm';
																										
	rows[12].text = '世貿專家︰我應決定中國是否屬市場經濟';
	rows[12].link = 'today-fo13.htm';
																										
	rows[13].text = '李籲傳產團結 向政府施壓';
	rows[13].link = 'today-fo14.htm';
																										
	rows[14].text = '雲林女工 加班，累 沒班，更憂';
	rows[14].link = 'today-fo15.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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].link = 'today-p1.htm';
																										
	rows[1].text = '挨批後 馬19日訪美 黨攤部分經費';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '龔照勝股票41萬 存款1650萬';
	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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '美印核能合作 達成協議';
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = '巴哈馬國家公園 傳鳥群暴斃';
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = '必治妥Tequin 會引發糖尿病';
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = '英法飲料 發現含致癌物';
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = '日軍機外洩案 矛頭指向三菱';
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = '日高中生 對中國沒「好感」';
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = '《中英對照讀新聞》Botox and caviar help stars prepare for Oscars 肉毒桿菌與魚子醬 協助明星們為奧斯卡頒獎典禮做好準備';
	rows[6].link = 'today-int7.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 = '模範父8旬狼 猥褻11歲女童';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '遭綁37小時 勒贖5千萬 糖商獨生女脫困';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '清源辦大案 微罪不擾民';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '擄殺陸正 主嫌11度判死刑';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '索國遭挾半年獲釋 兩船長昨返家';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '芬蘭姆姆高美蘭 12人的台灣媽媽';
	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 = '情牽33年 翁李憶往 發現大姊也是同窗';
	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(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 = '驗Rh血型 健保1年浪費5千萬';
	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 = '去年出國留學人數 破55年紀錄';
	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(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '經典賽開幕！';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '林恩宇今先發 禦韓';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '莊勝雄現身 為台灣打氣<br>千人加油團 東京巨蛋見';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '安麗盃24強 台灣4美';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '找回失落的自信 張舒涵全勝跳級';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '重振紫金王朝 小布不再獨尊';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '挑戰單季最少敗 活塞破局';
	rows[6].link = 'today-sp7.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 = '何壽川 6月卸任永豐餘董座';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '台商匯集CeBIT 搶攻歐陸';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '歐銀升息1碼 歐元走強';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '經建會︰台灣競爭力領先南韓';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '金鼎證地毯搜索 開發金登門拜票';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '金鼎證︰遠東證先換股、後提存';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '聯合提高DRAM價格 海力士4主管認罪 罰款服刑';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '違反有線廣播電視法 中華電信MOD 可能挨罰10萬';
	rows[8].link = 'today-e9.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 = '《理財Q&A》日股 逢低仍可承接';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '龔照勝突檢 查不當催收';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '金管會聲稱債務協商成功率達8成<br>銀行吐槽 簽約不到1成';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '全球液晶電視 今年台灣搶佔3成';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '葉寅夫斷言 下半年LED晶粒缺貨';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '國內手機廠商出貨 預估成長97％';
	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 = '台股火車頭再發功 台積電漲達3.88%';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '《期指觀測站》短多居上 輪動大考驗';
	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 = '寒門孝子 3姊弟合吃1碗麵 2碗給爸媽';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '維多利亞減肥吐血 偷偷吃香喝辣';
	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 = '范植偉回頭 王心凌喊NO';
	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 = '押尾學玩膩亞希子 戀情終結';
	rows[9].link = 'today-show10.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《今日社論》與中國經貿關係必須考慮國家的生存與發展';
	rows[0].link = 'today-s1.htm';
																
	rows[1].text = '《自由談》統獨休兵看棒賽';
	rows[1].link = 'today-f1.htm';
																
	rows[2].text = '《鏗鏘集》第一次棒球世界大戰';
	rows[2].link = 'today-f2.htm';
																
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '搭捷運 3G手機全失靈';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '10區衛生所 門診減成1診';
	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 = '聖堡威廉吸金5億 數千人被騙';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '侵占兒相簿 老媽吃官司';
	rows[7].link = 'today-taipei8.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(5);
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 = '中國跳機客 警所旁打工';
	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';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '嘉檢抗告成功 ２警１業者收押';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '珠海買失竊手機 男子吃官司';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '拾獲彈夾未繳回 員警求刑';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '顱內出血 邱小妹送醫 媽媽無蹤影';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '南投地院委外員工罷工 爆合約爭議';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '強盜、性侵老嫗 2惡盜求刑';
	rows[5].link = 'today-center6.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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 = '高雄三信又遭搶 損失17萬元';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '娃娃車迴車 輾死2歲男童';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '尋人專家 他，半年找回86人';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '完成父親遺願 校長捐喪葬費';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '用冷凍魚貨走私運毒 手法罕見';
	rows[4].link = 'today-south5.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '終統劃出台灣底線';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '主權與主權者';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '清廉 從地方做起';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '病人隱私 媒體有責';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '鑼聲若響 公家好修行';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '「他×的」二二八';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '委外催收不是原罪';
	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';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	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].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '好品味　　　→';
		rows[1].submenu = 'living';
		rows[1].link = 'today-living1.htm';
	
		rows[2].text = '家庭兩性　　→';
		rows[2].submenu = 'family';
		rows[2].link = 'today-family1.htm';
	
		rows[3].text = '健康醫療　　→';
		rows[3].submenu = 'medicine';
		rows[3].link = 'today-medicine1.htm';
	
		rows[4].text = '自由副刊　　→';
		rows[4].submenu = 'article';
		rows[4].link = 'today-article1.htm';
	
		rows[5].text = '青春美　　　→';
		rows[5].submenu = 'young';
		rows[5].link = 'today-young1.htm';
	
		rows[6].text = '藝術文化　　→';
		rows[6].submenu = 'art';
		rows[6].link = 'today-art1.htm';
	
		rows[7].text = '休閒旅遊　　→';
		rows[7].submenu = 'travel';
		rows[7].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('living');
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('family');
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('medicine');
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('article');
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('young');
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;

menu = getMenu('art');
menu.layer = 19;
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 = 20;
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(13);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '名店名菜大破解<br>新家圓客家小炒';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '坐擁石門美景<br>福華度假別館樂忘返';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '春遊青草湖 煙波飯店遠塵囂';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '在映涵飯店 看見日月潭的春天';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '尖山埤畔桂花香 進駐江南度假村';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '巧克力甜心 黃湘怡開起怪怪蛋糕店';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '美麗換裝<br>蘭花新鮮再登場';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '3C周邊產品<br>搶過主角風采！';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '寵物幸福合照<br>當我們同在一起';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '生日禮物 一週提案';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '多吃番茄 養顏又養生';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '減肥誤信偏方<br>竟然減去健康';
		rows[11].link = 'today-weekly12.htm';
																											
		rows[12].text = '藍光藍光<br>讓你的溝通發光';
		rows[12].link = 'today-weekly13.htm';
																											
	}
	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,700);
}

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,700);
}

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';
}