//===========================================================================
//基本設定
//==================== 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(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(4);
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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "北韓制裁案 安理會一致通過";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "潘基文 接任聯合國秘書長";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "羅馬尼亞山友直擊 解放軍 濫殺西藏難民";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "諾貝爾和平獎得主 捐獎金做公益";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "帶蟲蟲上班 加州新公民運動";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "賣YouTube 研究生變富翁";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "德國麵條郵票 全球最大";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中英對照讀新聞》9,500-year-old decorated skulls found in Syria 敘利亞發現9,500年前有裝飾的頭骨";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中日對照讀新聞》無言&#12539;脅迫電話 朝鮮&#23398;校&#12391;嫌&#12364;&#12425;&#12379;&#32154;&#30330;<br>無聲、恐嚇電話 朝鮮學校中騷擾頻傳";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-so1.htm';
																										
	rows[1].text = '台地下賭金 每日達百億';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '春藥摻安毒 流入市面';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '擒當街逞兇飆仔 赫見警局「自家人」';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '國中姊妹淘 留言同尋死';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '寄往國外 海關查扣14名錶';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '役男出尋 中輟生迷途知返';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '50萬現金 匿名直送高縣府';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '敏道家園 動工';
	rows[8].link = 'today-so9.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台大四不 大學品格教育 生活中落實';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '台大人看四不／作弊抄襲…少數人 亂停喧嘩…各校都有';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '作家黃春明 獲頒東元人文獎';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '清大講師 要求學生論述扁罪狀';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '九成小六生 數學課逾七節';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '杯水共洗針頭 也會染愛滋';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '關愛之家判遷風波／三十五社團籲加強人權教育';
	rows[6].link = 'today-life7.htm';
																										
	rows[7].text = '兼差工作 統統要加保勞保';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '東港迎王 神轎搏浪請駕';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '九成腎臟病患 不知罹病';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '石門水庫二號發電機組試運轉 北桃竹用戶儲水備用';
	rows[10].link = 'today-life11.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(17);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '世界大賽 老虎差一步';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '想跟羅傑斯擊掌的 還有運動家';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '運動家的大棒子 都沉睡了';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '紅雀扳回一城';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '田口壯 一棒找回光榮';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '悼好友萊多 羅伯森失心';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '再見犧牲打 獅聽牌';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '獅才濟濟 排隊等先發';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '潘武雄 神臂擋牛';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '席丹候選足球先生 有「義」見';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '職撞第2站后冠 網友挺阿美';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '女子撞球排名賽第80站 張舒涵摘冠 一吐落選國手悶氣';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '高球「國王」 帕瑪封桿';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '保護球員健康 WTA擬縮短賽季';
	rows[13].link = 'today-sp14.htm';
																										
	rows[14].text = '斯德哥爾摩公開賽 布雷克 晉級冠軍戰';
	rows[14].link = 'today-sp15.htm';
																										
	rows[15].text = '福斯高球名人賽 古森領先5桿 衛冕有望';
	rows[15].link = 'today-sp16.htm';
																										
	rows[16].text = 'NBA季前賽 湯瑪斯掌兵符 尼克贏首勝';
	rows[16].link = 'today-sp17.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 = 'ETF搭配期指套利 多半行家操作';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '華揚史威靈首架飛機 通過關鍵測試';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '國安基金持股價值612億';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '國泰世華 駁斥SOGO違約敗訴聲明';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '微軟對歐盟妥協 Vista如期上市';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '匯市交易清淡 台幣貶4.4分 收33.174';
	rows[6].link = 'today-e7.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '財部：若不釐清爭議 反對換股';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '光學元件族群 營收競攀峰頂';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '被動元件 Q3營收很high';
	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 = '消費利多激勵 道瓊再創新高';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '股訊要覽';
	rows[7].link = 'today-stock8.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(18);
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 = '信樂團Michael裝可愛 空姐女友拍拍樂';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '女醫上下其手 李威獻身公益';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '孫協志變跛腳俠 5566內憂外患';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '立威廉落中文 問候王心凌媽媽';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '白歆惠童心未泯 看煙火秀超High';
	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 = '金馬影展掌聲響／4國片見證台灣導演成績';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '李詠嫻寶貝挑嘴 只認真H奶';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '華仔得獎樂透逗翻譯';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = 'Rain義演1Hr 唱掉3千5百萬';
	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 = '休傑克曼對決克里斯汀 洩魔術奧秘';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '碧昂絲傑斯度假 行李坐專機';
	rows[16].link = 'today-show17.htm';
																										
	rows[17].text = '野蠻王妃衝天 三人後繼無力';
	rows[17].link = 'today-show18.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(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '傳統尬創意 國際牛肉麵節味飄香';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '媽媽的味道 女學生打敗大廚師';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '北市藝術嘉年華會 封街親炙藝術';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '夢想跨出汐止  地方人士感嘆';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '北市長、議員選舉 今起登記';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '嚐秋蟹 貢寮雙溪毛蟹越抓越小';
	rows[5].link = 'today-taipei6.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-north1.htm';
																										
	rows[1].text = '啞賊「揚言」幹掉警察';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '老翁控啞盜劫財 逼摸LP';
	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 = '潛學校上網打GAME 高三生函送';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '《社會傳真》桃市後站持刀搶嫌 落網送辦';
	rows[6].link = 'today-north7.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '進香大貨車撞斷電桿 11人傷';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '大里8間廠房 付之一炬';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '夫妻被撞雙亡 肇事者5萬交保';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '福高自小客撞護欄 1死1重傷';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '隨機綁架勒贖 5人判刑1通緝';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '選親姪當肉票 女子判10年半';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '詐領救濟金 許天數等遭求刑';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '網路供就業 女子當人頭';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '率眾砸酒店 獲從輕起訴';
	rows[8].link = 'today-center9.htm';
																										
	rows[9].text = '因案被通緝 陳書桓歸案';
	rows[9].link = 'today-center10.htm';
																										
	rows[10].text = '《社會傳真》撬開隔間偷內褲 判刑7月';
	rows[10].link = 'today-center11.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '菜市場濺血 魚販砍死肉鬆販';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '漁港袋屍案 綑綁鐵鍊鎖頭特殊';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '堤防水溝 發現無名全裸女屍';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '8天解聘圖書館館長 澎湖科大 判賠教授30萬';
	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 = '涉嫌走私毒品 李往5人遭羈押';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '《社會傳真》龍抬頭偽藥案 2人收押';
	rows[7].link = 'today-south8.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(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 = '以物易物 SO FUNNY';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '不思議 交換心得大公開';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '半線美食 串起傳統味';
		rows[2].link = 'today-weekly3.htm';
																											
		rows[3].text = '海港小吃 遊海都嘗海味';
		rows[3].link = 'today-weekly4.htm';
																											
		rows[4].text = '尋找台北6個時尚角落';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '原味之旅 三地門縱橫山野趣';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '開辦跳蚤市場 滾出涓涓財流';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '服務鄰里 金雞母就在身邊';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '資源回收 垃圾也能變新台幣';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '名店名菜大破解<br>阿霞飯店 紅蟳米糕';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '秋冬復古新作髮型<br>厚劉海×天使波浪鬈';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '還住家一個舒爽宜人 4區域除塵法';
		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';
}
