//===========================================================================
//基本設定
//==================== 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 = '代言臍帶血收1700萬 趙涉逃漏稅';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '北所早點名 「2260」趙大聲答「有」';
	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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '檢察總長人選 扁提名陳聰明';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '陳聰明：備感壓力 順其自然';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '檢協會票選五人 陳居第四';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '趙全家遊日 五月初原訂長榮機票';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '台鹽︰吳泰德如兼職 最重記過';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '南縣校長遴選委員 趙玉柱不續聘';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '太百案 林華德50萬交保';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '台聯公布高市政黨滿意度民調 民進黨敬陪末座';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '解譯終統 扁三月曾函布希';
	rows[8].link = 'today-p9.htm';
																										
}
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 = "星國賭城 金沙780億得標";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "恩隆案 2被告面臨百年刑期";
	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 = "《中英對照讀新聞》Al Gore's climate crusade conquers Cann 高爾為保衛地球氣候奮戰 征服坎城";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '秘密證人指認 李泰安栽了';
	rows[0].link = 'today-so1.htm';
																									
	rows[1].text = '毒殺陳氏？另藥頭列被告';
	rows[1].link = 'today-so2.htm';
																									
	rows[2].text = '翻車後三十分鐘 「加工」奪命關鍵';
	rows[2].link = 'today-so3.htm';
																								
	rows[3].text = '六件搞軌案 台鐵損逾六千萬';
	rows[3].link = 'today-so4.htm';
	
																									
	rows[4].text = '檢警VS.李家鬥智 新神「軌」傳奇';
	rows[4].link = 'today-so5.htm';
	
																									
	rows[5].text = '李泰安應訊 先與律師沙盤推演';
	rows[5].link = 'today-so6.htm';
	
																									
	rows[6].text = '台灣版CSI 科學辦案 查出「軌」影';
	rows[6].link = 'today-so7.htm';
	
																									
	rows[7].text = '陳氏若死於謀殺  7500萬保險金不理賠';
	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 = '編劇寫不出 楚門秀70天 吊足觀眾胃口';
	rows[10].link = 'today-so11.htm';
																									
	rows[11].text = '刑案綜藝化 演員愛演 媒體嗜血';
	rows[11].link = 'today-so12.htm';
																								
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(6);
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 = '基測今登場 帶手機應試扣6分';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '避雷針胡亂裝 電器難逃雷擊';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '鈣粉維生素D過量 嬰兒腎病變';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '藉捐血篩檢 害人輸血染愛滋';
	rows[4].link = 'today-life5.htm';
																										
	rows[5].text = '雲林私宰病死牛 3人被收押';
	rows[5].link = 'today-life6.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '姜建銘隨一軍練投 猴賽雷';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '花東開幕戰 蛇象今明對壘';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '小頭失神 熊贏出一身冷汗';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '獅旺來 晉A級';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '蘇哲毅後天進鯨';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《NBA》抄人杭特 捻熄霹靂火';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '《2006世界盃足球賽》巴拉克熱身賽扭傷';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《觀護盃國際籃賽》阿三哥帶兵開胡手癢';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '包粽PK 阿成捏果嶺 竹子有架式';
	rows[9].link = 'today-sp10.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '4月景氣黃藍燈 終結連8綠';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '景氣領先指標止跌 經濟可望漸入佳境';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '未來3月景氣 樂觀廠商超過悲觀';
	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 = '卡債風暴 消金縮水1400億元';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '兆豐金董監改選 競爭激烈';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '美：與台簽署FTA時機未到';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '經濟部下令 糖協即日解散';
	rows[8].link = 'today-e9.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 = '資金轉進 NB股價回溫';
	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 = '美元轉弱 台幣升7.4分';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '油金反彈 新興市場走高';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '皇昌將私募3億現增';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '《期指觀測站》保守氣氛未散 避險需求不減';
	rows[7].link = 'today-stock8.htm';
																										
}
menu = null;

menu = getMenu('t');
menu.layer = 0;
menu.menuLayer = 0;
menu.rows = new Array(1);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
        rows[0].text = '搞軌案 李泰安聲押';
	rows[0].link = 'today-t1.htm';
																
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(16);
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 = '中天挨轟道歉 民視專業OK';
	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 = '季芹暴瘦傳情變 王仁甫樂不思台';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '張震 林嘉欣 戲假情真來電';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '台灣之夜 唯一華語電影party';
	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 = '布蘭妮鬧分居 贍養費只給1140萬';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '速水狂戀AV女優 共宿純看DVD';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '張東健鄭雨盛李秉憲 要拍韓版英雄本色';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '電影搶鮮看--2006海神號 怒海求生超逼真';
	rows[15].link = 'today-show16.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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
																										
	rows[0].text = '強盜性侵 愛滋惡狼求刑20年';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '聯邦銀汐止搶案 10萬緝匪';
	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 = '果菜花豬 漲聲迎端午';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '拍板定案捷運板土線 端午通車';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '紅毛城2樓 6月起總量管制';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '陶博館修繕 6月休館1個月';
	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 = '《社會傳真》竹市飆仔砍殺路人 提報流氓';
	rows[5].link = 'today-north6.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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 = '破獲3暴力討債集團 掃蕩30人';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '討債黑衣人…洪森陵家挨BB彈';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '王銘宗集團…逮21人收押15人';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '漿紙污泥案 3嫌收押';
	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[5].type = '村里長選舉';
																									
	rows[6].text = '雲林查獲醬油、刀具賄選品';
	rows[6].link = 'today-center7.htm';
	rows[6].type = '村里長選舉';
																									
	rows[7].text = '樁腳替他買票 蔡沛宏判無罪';
	rows[7].link = 'today-center8.htm';
	rows[7].type = '三合一選舉';
																									
	rows[8].text = '送烤豬、茶葉 黃明達判刑1年';
	rows[8].link = 'today-center9.htm';
	rows[8].type = '三合一選舉';
																									
	rows[9].text = '社會傳真／掃黑 李建慶、陳志堅到案';
	rows[9].link = 'today-center10.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 = '高市掃黑 情節重大流氓22人到案';
	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';
																										
	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 = '走進林森商圈 吃道地日本味';
		rows[0].link = 'today-weekly1.htm';
																											
		rows[1].text = '精緻和風料理 色香味面面俱到';
		rows[1].link = 'today-weekly2.htm';
																											
		rows[2].text = '比畫10招 變妝Jolin';
		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 = '自繪動漫卡<br>陳奕 秀才藝';
		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 = '2手車選購面面觀';
		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 = '防火建材 關鍵時刻搶時間';
		rows[0].link = 'today-house1.htm';
																											
		rows[1].text = '通膨催買氣 6月房市續熱';
		rows[1].link = 'today-house2.htm';
																											
		rows[2].text = '劉若瑀 優人的家';
		rows[2].link = 'today-house3.htm';
																											
		rows[3].text = '經貿DJ 交通便利 通向南港大未來';
		rows[3].link = 'today-house4.htm';
																											
		rows[4].text = '卓越時代 200米大街打造商業城';
		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 = '40年老別墅 變身花園住宅';
		rows[8].link = 'today-house9.htm';
																											
		rows[9].text = '善用系統家具 為孩子打造歡樂童年';
		rows[9].link = 'today-house10.htm';
																											
		rows[10].text = '徹底放鬆的頂級衛浴！';
		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';
}