//===========================================================================
//基本設定
//==================== 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(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'F5F避撞民宅 墜毀稻田';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '僚機安返 發現11處鳥撞擊點';
	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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '匯款單為證 貴夫人禮券購自SOGO';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '李恆隆禮券 未發現牽涉扁嫂';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '台開案收尾 案外案一併偵結';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '罷免邱毅連署 有信心跨門檻';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '罷扁連署衝刺 時聞反對聲';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '麥當勞台灣款世足勳章 中國查扣？';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '瑞士促我速索回佣金 免夜長夢多';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '尚欠律師費三百多萬 最高檢：補強證據即申請';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '施振榮：朝野需改革型領導人';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '慈母護病兒 扁探視讚許';
	rows[9].link = 'today-p10.htm';
																										
}
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 = "82歲盜墓賊失手 義2700年前古墓曝光";
	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 = "《中英對照讀新聞》Beer ingredient may fight prostate cancer 啤酒成份可能對抗攝護腺癌";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中日對照讀新聞》睡眠障害&#12391;年間３兆５千億&#20870;&#12398;損失 睡眠障礙造成一年3兆5,000億日圓的損失";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
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-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 = '吳家拒驗DNA 婷婷媽媽上訴';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '醫院切除1顆睪丸 判賠80萬';
	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';
																										
}
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 = '車流逾3萬輛 「逛」雪隧多';
	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 = '台南「震」驚 規模4.6';
	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 = 'e網情深 戒菸贏得婚約大獎';
	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(14);
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世界盃足球賽》非洲第1勝 迦納踹捷克';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《2006世界盃足球賽》門神里卡多 救了安哥拉';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《2006世界盃足球賽》荷甲進球王 世界盃開張';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《2006世界盃足球賽》自由之星--阿根廷．梅西';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《2006世界盃足球賽》德厄排名 牽動英佈局';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《2006世界盃足球賽》魯尼提前復出 賭盤哀鴻';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《2006世界盃足球賽》胖羅就醫 下一場續戰';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《2006世界盃足球賽》日補後防 易陣克敵';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '嘟嘟壓鎮 獅13連勝';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '誠泰捕鯨 終止4連敗';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '建仔 挑戰生涯4連勝';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '擋肥歐 史泰克豪斯禁賽一場';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '美公開賽 伍茲OUT';
	rows[13].link = 'today-sp14.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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-e1.htm';
																										
	rows[1].text = '護送鄭深池 財部自毀原則';
	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';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《品牌故事》金車集團金雞母 伯朗咖啡 內外通吃';
	rows[0].link = 'today-stock1.htm';
																										
	rows[1].text = '廣告效果--MR.BROWN COFFEE 唱出名號';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '進軍海外--歐洲中東 都喝得到';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '金士頓力挺 力成吃定心丸';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '廣告不實 船奇甜甜圈被罰';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '喻家兄弟聚會 媲美產業鏈論壇';
	rows[5].link = 'today-stock6.htm';
																										
}
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 = '16年拾荒情 97歲老翁助貧女圓大學夢';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(17);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '報老闆不甘寂寞想紅   上電視大言不慚耍寶';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '183破病開唱 驚傳咳痰聲';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '蔡健雅補凸槌 加唱5首歌';
	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 = '櫻桃幫瑜伽樂 考驗硬底子';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '蔡依林引狼入室 黃立行色盯Ｇ奶';
	rows[6].link = 'today-show7.htm';
																										
	rows[7].text = 'Makiyo收12萬豪華戒 不想被套牢';
	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 = '南台灣烈日當空 楊祐寧烙下印';
	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 = '布蘭妮 否認要到非洲生小孩';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '張東健削方臉 變身小臉帥哥';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = 'Rain頂痞子頭 像極申政煥';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '王力宏封王 事業運超旺';
	rows[16].link = 'today-show17.htm';
																										
}
menu = null;

menu = getMenu('c');
menu.layer = 5;
menu.menuLayer = 0;
menu.rows = new Array(2);
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';
																
}
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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '肚皮舞練體態 77歲美眉 青年搭訕';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '見人跳河...無良路人 撕遺書拿背包';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '槍霸停車 堵加油站';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '神奇寶貝童樂會暖身';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '從頭學 越娘勇奪市長獎';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '陳維英 鄧雨賢 獲薦入祀孔廟';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '國中教師甄選 錄取率1%';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '台灣河川日 愛護水資源';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '整頓石門洞 投資1.8億改造景觀';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '3校浮潛畢典 橫渡卯澳灣';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-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 = '缺錢買毒品 2毒蟲搶婦人皮包';
	rows[5].link = 'today-north6.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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-center1.htm';
																										
	rows[1].text = '持槍搶計程車 嫌犯洪志和落網';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '兄弟檔遊說 婦人錢進美國疑被詐';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '施暴妻離家 夫聲請同居法官駁回';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '前省諮議會議員佔鄰地 王戴春滿夫妻判刑4月';
	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 = '貨車對撞！ 阿里山公路車禍 4人輕重傷';
	rows[7].link = 'today-center8.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-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 = '《社會傳真》東港溪又見鱷魚 居民緊張';
	rows[4].link = 'today-south5.htm';
																										
	rows[5].text = '觀察筆記─大智慧';
	rows[5].link = 'today-south6.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-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';
																										
}
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 = '恆春Hito活動 Hight翻天';
		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 = '一人一份 分量剛剛好';
		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(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';
}