//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = 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'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '國親以罷免綁案 治水案又落空';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '討黨產 綠委嗆馬：向全民提答辯';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '罷免案攻防 藍大動員 綠打文宣';
	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';
																										
	rows[8].text = '邱琳濱傳將去職 部屬抱屈';
	rows[8].link = 'today-fo9.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(15);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '綠營質疑NCC 查刺馬不查刺扁';
	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 = '扁娶媳 200萬元謝恩？ 江耀宗不排除告李慶元';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '時報周刊︰廖先聆是邱毅深喉嚨';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '爭民主基金會執行長人事主導權 王金平批黃志芳';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '史國王來訪 扁軍禮歡迎';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '日媒體：馬英九 七月將訪日';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '徐國勇：法搜出收佣名單';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '國舅行騙案 府方報請偵辦';
	rows[10].link = 'today-p11.htm';
																										
	rows[11].text = '台聯餐敘 李登輝批大嘴巴';
	rows[11].link = 'today-p12.htm';
																										
	rows[12].text = '綠立委聯手 力挺北長南菊';
	rows[12].link = 'today-p13.htm';
																										
	rows[13].text = '張志榮交保 檢方抗告成功';
	rows[13].link = 'today-p14.htm';
	rows[13].type = '高捷案';
																										
	rows[14].text = '陳哲男匿報財產 稅局調查';
	rows[14].link = 'today-p15.htm';
	rows[14].type = '高捷案';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-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 = "夏天傳病例 禽流感病毒 恐變種";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "專心做慈善 蓋茲宣布 兩年後交棒";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "《中英對照讀新聞》Don't interfere in Iran's ban on women from entering football stadiums 不要干涉伊朗禁止女子進入足球場的禁令";
	rows[7].link = 'today-int8.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 = '棄養寡母 6子女判月付3千';
	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 = '強灌女友鹽酸 協助沖洗罪變輕';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '泰殺手淪遊民 病倒台灣';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '男子全身傷 被丟出車外';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '給天堂的淑藝：妳畢業了';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '電影看板小畫工 變身大學教授';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '造橋鋪路是善事？ 憨孫畢業恍然大悟';
	rows[10].link = 'today-so11.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(5);
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 = '執教鞭38載 作家張曉風退休';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '《大學指考考前衝刺》物理 多作考古題 加強觀念部分';
	rows[4].link = 'today-life5.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《2006世界盃足球賽》死亡Ｃ組？阿荷輕鬆晉級';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《2006世界盃足球賽》瑞典 頂掉巴拉圭';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《2006世界盃足球賽》克勞奇 機器人舞消失…';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《2006世界盃足球賽》民調棄胖羅 教頭仍力挺';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《2006世界盃足球賽》捷慎防犯規 迦信心滿檔';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '熱火追平';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《美國高爾夫公開賽》伍茲 瀕臨淘汰';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '熊翻盤';
	rows[7].link = 'today-sp8.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 = '外資轉賣為買 周線翻紅';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = 'Fed升息將近尾聲 國際股市反彈';
	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 = '美爽爽停止運作 屈臣氏封櫃';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '台尼FTA 明年元旦生效';
	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(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 = 'Q3景氣可望走高 NB補漲';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '群創今年營收 挑戰千億';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = 'Q3業績保守 LED族群補跌';
	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 = '追討養孫費298萬勝訴';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
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-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 = '183 Club演唱前 接踵掛病號';
	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 = '林煒珽品足論球 網友轟腦殘';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '林依晨想代言房地產 住免錢';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '安以軒腦筋有問題 發福非關孕事';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '潔芮向錢看不記仇 請維多莉亞當教母';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = 'Rain自爆醋罈子 不准女友劈腿';
	rows[13].link = 'today-show14.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(3);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
		rows[0].text = '《今日社論》挺身而出向惡質政爭說不';
		rows[0].link = 'today-s1.htm';
																	
	rows[1].text = '《自由談》政治強盜集團';
	rows[1].link = 'today-f1.htm';
																
		rows[2].text = '《鏗鏘集》政治之病';
		rows[2].link = 'today-f2.htm';
																	
}
menu = null;

menu = getMenu('region');
menu.layer = 11;
menu.menuLayer = 0;
menu.rows = new Array(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();

	rows[0].text = '大台北新聞　→';
	rows[0].submenu = 'taipei';
	rows[0].link = 'today-taipei0.htm';

	rows[1].text = '北部新聞　　→';
	rows[1].submenu = 'north';
	rows[1].link = 'today-north0.htm';

	rows[2].text = '中部新聞　　→';
	rows[2].submenu = 'center';
	rows[2].link = 'today-center0.htm';

	rows[3].text = '南部新聞　　→';
	rows[3].submenu = 'south';
	rows[3].link = 'today-south0.htm';
}
menu = null;

menu = getMenu('taipei');
menu.layer = 11;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '北海岸鐵人3項開賽 18國好手爭鋒';
	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 = 'Alpha電視秀 為導盲犬代言';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '齊東街變更案 官民意見分歧';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '留校察看生 參加勵志班抵過';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '驪歌響起 「壁」業不留白';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '每週增一堂國語課 教師反彈';
	rows[8].link = 'today-taipei9.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(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 = '偷IC還姊賭債 養家男獲輕判';
	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 = '6丟火車 石頭怪客判刑3年';
	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(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台糖大林生技廠 60包原料原料查封';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '15年來多次坐牢 出獄3月卡債百萬';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '中獎熱線一直打 唉！女助理教授上當';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '弱智母女遭性侵？ 傳訊5外勞';
	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';
																										
	rows[6].text = '社會頻道／詐騙集團盯上傳播業 騙攝影機';
	rows[6].link = 'today-center7.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 = '高雄電影節開幕 發覺亞洲影像新勢力';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '喚起東山魂 永揚掩埋場開庭 鄉民抗爭';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '碩士生遭飛車搶劫';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '兩醫專學生騎車摔倒 同遭輾斃';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '畢業紀念DVD沒拍到自己孩子 家長鬧校';
	rows[4].link = 'today-south5.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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 = '海翁出航／Who Are We?';
	rows[9].link = 'today-o10.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(0);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '百變散壽司 樸素華麗總相宜';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '日本料理吃到飽  創意美食生鮮味';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '日式食藝 視覺感官精緻呈現';
		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 = '寶貝流行新主張<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 = '達爾文來不及說';
		rows[11].link = 'today-weekly12.htm';
																											
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(12);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '428萬元 為20年老屋變裝';
		rows[0].link = 'today-house1.htm';
																											
		rows[1].text = '徐學榮 營造居家低調奢華風';
		rows[1].link = 'today-house2.htm';
																											
		rows[2].text = '打造高效能住宅 大家來做省電一哥';
		rows[2].link = 'today-house3.htm';
																											
		rows[3].text = '榮耀交響曲 200坪休閒綠化中庭';
		rows[3].link = 'today-house4.htm';
																											
		rows[4].text = '大無限 河岸景觀平價豪宅';
		rows[4].link = 'today-house5.htm';
																											
		rows[5].text = '墅建築 面對大片公園預定地';
		rows[5].link = 'today-house6.htm';
																											
		rows[6].text = '化解雙斷頭煞 診所找回老客戶';
		rows[6].link = 'today-house7.htm';
																											
		rows[7].text = '全台精華區房價漲聲連連';
		rows[7].link = 'today-house8.htm';
																											
		rows[8].text = '交屋驗收透天厝外觀石材檢查撇步';
		rows[8].link = 'today-house9.htm';
																											
		rows[9].text = '用心布置兒童房 寶貝你家孩子王';
		rows[9].link = 'today-house10.htm';
																											
		rows[10].text = '選擇適合廚具 做菜fun輕鬆';
		rows[10].link = 'today-house11.htm';
																											
		rows[11].text = '社區公共基金 該由住戶還是建商承擔？';
		rows[11].link = 'today-house12.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,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';
}
