//===========================================================================
//基本設定
//==================== 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(14);
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 = '陳唐山：總統一定做到2008';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '游錫&#22531;：不被紅色恐怖打倒';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '太平天國覆亡 綠營天王可為鑑';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '促台聯低調 李登輝堅持靜觀其變';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '再唱天光 黃國倫盼找回台灣的愛';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '抗紅保台灣 姊妹站出來';
	rows[8].link = 'today-fo9.htm';
																										
	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';
																										
}
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 = '916活動意外 民眾揮拳 中天、東森轉播中斷';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '暴力拆台 侯友宜：查辦到底';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '中天記協譴責暴力 新聞局籲尊重採訪權';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '台北車站 紅衫綠衣 零星衝突';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '參加挺台灣後… 歡喜婆婆被打 留院觀察';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '兩軍對陣 警力戒備 拒馬阻隔';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '倒扁第二階段 929高市圍城';
	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(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 = "吃菠菜致死 美農產爆嚴重污染";
	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 = "《中英對照讀新聞》CLabor may not harm post-pregnancy sexual function 分娩可能不會影響產後性功能";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中日對照讀新聞》小&#23398;生&#12398;校&#20869;暴力2千件超 小學生校內暴力事件破2000件";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '北港朝天宮傳奇 流浪靈貓喜聽梵音';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '龍子在世? 電郵贔屭竄紅';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '2女爭奪1400元 鬧進警局';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '母尋失蹤兒 散盡家產夢落空';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '13惡少尋仇未果 斬路人手掌';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '販嬰共犯 疑涉竊嬰';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '追「定情照」 情侶擒賊';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '劉宅5死命案／重返現場 模擬緝兇';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '十大美滿婚姻選拔 回家與愛家 婚姻節主題';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '憶不容遲 13縣市齊步走';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '大感動岡山李家歡喜入厝';
	rows[10].link = 'today-so11.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(7);
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 = '陽澄湖大閘蟹來囉 每隻300元起跳';
	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 = '全台18萬人掃街 清756噸垃圾';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '治療尿失禁 幹細胞療法可行';
	rows[5].link = 'today-life6.htm';
																										
	rows[6].text = '血友病患關節病變 老藥可治';
	rows[6].link = 'today-life7.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '季後賽打頭陣 建仔利多';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '姜建銘 今挑戰4連勝';
	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 = '第9局出包 鯨一週3回';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '獅大勝 觸怒黃衫軍';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = 'ING熱身賽 鄭子健3站全勝';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '林義傑 10月橫越撒哈拉';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '亞洲大學男籃賽 台灣今爭冠';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '王泓翔晉4 對上雷耶斯';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '日巡賽 魏筠潔挑戰第3勝';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '不敵韓妹 曾珮華抱銅歸';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '金鑽盃國「飆」舞';
	rows[12].link = 'today-sp13.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '福特汽車 大裁北美1/3員工';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '克萊斯勒 Q3大虧15.2億美元';
	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 = '中國毛巾課反傾銷稅 最快週一實施';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '原油價格 一個月內重挫13%';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '產學訓補助進修 將開518班';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '菸酒商品禮券 不得限制使用期限、地點';
	rows[7].link = 'today-e8.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
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-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';
																										
}
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(13);
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 = 'Jolin紅磡艷舞 火辣宛若嘿咻';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '處男加持 李玟搏好彩頭';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '醒吾幫註冊囉！ 鄭元暢賀軍翔 忐忑開學求All pass';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '王宏恩戰舞響 黑澀會美眉伴舞';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '許景淳開嗓 鮑比達十指相挺';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '李威買番薯 違規停車吃罰單';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = '城城豪砸300萬 搶到專屬車牌';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '麻衣回日休養 沒帶好友黃義達';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '蕾哈娜全身電 好萊塢女星自危';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '金凱瑞8.2億滯銷 開除經紀公司';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '宮要拍續集 王子 王妃都落跑';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '陶&#21894; 風雨中穩帝位 李玟 可望收復后座';
	rows[12].link = 'today-show13.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(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '北115道坍方 短時間難搶通';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '讀空大18年 72歲獲5學位';
	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 = '報告「搬」長 遷移戶籍 稅差5倍';
	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';
																										
	rows[9].text = '醫療安全 醫病認知落差大';
	rows[9].link = 'today-taipei10.htm';
																										
	rows[10].text = '也是915紀錄 垃圾清出20.5噸';
	rows[10].link = 'today-taipei11.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '還錢為餌 強押債主洗劫';
	rows[0].link = 'today-north1.htm';
																										
	rows[1].text = '端午節停車被開單 法官判免罰';
	rows[1].link = 'today-north2.htm';
																										
	rows[2].text = '騙她當和事老 狼人硬上女友死黨';
	rows[2].link = 'today-north3.htm';
																										
	rows[3].text = '蹺家女搭霸王車 爆出遭網友性侵';
	rows[3].link = 'today-north4.htm';
																										
	rows[4].text = '生父不點頭 收養繼女判不准';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '妻拿鐮刀助勢 對方奪刀殺死夫';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '婦人被詐 警循線抓到人頭帳戶';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '男子車禍身亡 家屬疑閃避車輛';
	rows[7].link = 'today-north8.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '5個月天天拉警報 里民抓狂';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '結夥隨機砍人劫財 飆仔判刑8年';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '假釋犯劫女 落網再爆一案';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '夜盜滿身汗 員警拍照破案';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '怪醉漢搶劫 還要店員報警';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '搶救毛巾業座談 官民不同調';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '晚間遇強盜 員警馬上到';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '盜牛樟木 山老鼠棄車逃';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '雪山救援 接駁女子下山';
	rows[8].link = 'today-center9.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '中國製 莒光號窗框膠條變形';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '放流水不符標準 肉品市場告市府敗訴';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '高鐵沙崙站弊案 清查2、3、4標';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '8旬老翁 過馬路被車輾斃';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '竊堆高機 以8至11萬賤賣';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '慶財發號 排氣孔進水獲救';
	rows[5].link = 'today-south6.htm';
																										
	rows[6].text = '跑腿販毒 供毒吸食當條件';
	rows[6].link = 'today-south7.htm';
																										
	rows[7].text = '冒充助理 向民眾學校詐財';
	rows[7].link = 'today-south8.htm';
																										
	rows[8].text = '東縣警方 破改造槍械工廠';
	rows[8].link = 'today-south9.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
menu.menuLayer = 0;
menu.rows = new Array(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 = '秋高氣爽 陽明山上Fun輕鬆';
		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 = '永和竹林路齊步走 啖燒烤品蓮香';
		rows[4].link = 'today-weekly5.htm';
																											
		rows[5].text = '竹林路走一遭  美味不漏接';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '修畫5招 美眉必學技巧！';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '稀疏眉Bye-bye! 眉飛色舞 全攻略';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '美眉小可愛全都露  可愛夢幻公主風';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '超Hot！辣翻天 性感馬甲';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '驚爆波波 超殺！Bra';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '抽脂來隆乳，可以嗎？';
		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';
}