//===========================================================================
//基本設定
//==================== 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(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '票越投越難看… 二罷再挫  比上次少3票';
	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 = '倒扁收支不符 686萬還兜不攏';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '倒扁靜坐 今起只坐18-22時';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '莊嚴批倒扁：機關算盡 只為保馬';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '依法論法／北市警局 當然聽警政署的';
	rows[8].link = 'today-fo9.htm';
																										
	rows[9].text = '看問題／倒扁總部違法在先 撤銷集會許可 何錯之有';
	rows[9].link = 'today-fo10.htm';
																										
	rows[10].text = '馬：審核集遊申請 會考量過去紀錄';
	rows[10].link = 'today-fo11.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '馬施政報告送立委 蘇揆：不正常';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '高市長若失利 陳菊：2008台灣恐再見';
	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';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-int1.htm';
																										
	rows[1].text = "中國強制組工會 外商反彈";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "已故阿根廷強人 裴隆將遷葬";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "海漂出書拍電影 版權1.2億";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "美中協商制裁北韓核試";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "《中英對照讀新聞》UK drivers think of sex rather than signals 英國司機想的是性愛而非交通信號";
	rows[5].link = 'today-int6.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(13);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '天下圍攻 小偷進攻 萊卡佛450萬名牌被搬空';
	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';
																										
	rows[11].text = '瑞穗赤腳鄉長 不怕圍剿';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '獨眼阿嬤 挽面揚名';
	rows[12].link = 'today-so13.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
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-life1.htm';
																										
	rows[1].text = '喝一瓶發酵乳  至少吞下5粒方糖';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '猛舔狂吸 搞到妻耳膜破';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '網拍建仔全隊簽名球衣 飆近4萬';
	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';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '哀悼萊多 建仔取消記者會';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '運動家哈登 背負開張重任';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '誠泰明年玩不玩 未知數';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '菜鳥二線敲昏牛 獅搶頭采';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = 'VW福斯名人賽 呂文德落居第2';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '世撞會內賽 吳珈慶頭號種子';
	rows[6].link = 'today-sp7.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台股大漲84.22點 站穩7000';
	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 = '美元疲弱 台幣升值1.09角';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '重大事故 卡債族可獲兩月喘息期';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '美財長︰中國經濟將走下坡';
	rows[5].link = 'today-e6.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 = '油價跌 益通撤銷GDR發行';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = 'SRAM價遭壟斷 美國展開調查';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = 'Vista將上市 金士頓積極布局';
	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 = '台美8國聯軍 破市價3億毒品';
	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 = '梁詠琪500萬香美人';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '單身宣言吐露情變 孫耀威 應采兒1年半玩完';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '毛毛改名楊巧寧 扮女丑再出發';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = 'NHK當紅節目開嗓 周董登日音樂殿堂 唱國語超屌';
	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 = '李秉憲獲法國文化藝術勳章';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '王仁甫鬧單飛 經紀人：別作夢';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '阿霈不帶腫 肯定紅10年';
	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 = '老天爺點石成金 廣告費飆5.6倍';
	rows[13].link = 'today-show14.htm';
																										
	rows[14].text = '松雪泰子再爆新歡 車上激吻鼓手男';
	rows[14].link = 'today-show15.htm';
																										
	rows[15].text = '赤西仁息影 傑尼斯改捧田中聖';
	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(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '打造無線寬頻城市 市府砸錢當凱子';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '關渡耆老講古 文化 入厝';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '林口戴奧辛羊複驗證實 續追污染源';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '反變電所 蘆洲醞釀抗爭';
	rows[3].link = 'today-taipei4.htm';
																										
	rows[4].text = '牽手半世紀 金鑽婚夫妻吵不起來';
	rows[4].link = 'today-taipei5.htm';
																										
	rows[5].text = '國小基測 下週二登場 新增數學';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '3010健康上網 過癮不上癮';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '離群網居 宅男文化悶燒';
	rows[7].link = 'today-taipei8.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 = '一前一後3P性侵 3匹狼被求重刑';
	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 = '要脅女友自焚 擦槍走火命危';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '嘉市第六街PUB槍擊案  揪出藏鏡人';
	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 = '圍毆遊民致死 5古惑仔判刑';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '豐原公寓之狼 求處無期徒刑';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '欠千元砍殺人 求處無期徒刑';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '穿迷彩裝釣香油錢 一樣看穿';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '沙拉油桶被偷2年 竊賊現形';
	rows[8].link = 'today-center9.htm';
																										
	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(4);
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 = '中台製酒 涉仿冒58金高粱';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '砍殺女友父母 冷血男落網';
	rows[3].link = 'today-south4.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 = '黃石市場 美食報告發表';
		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 = 'GOLF進階行頭  高手再升級';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = 'GOLF打得好 球 & 杆有學問！';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '踏出揮杆的第一步<br>高球練習場4類任選';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '熱門高爾夫球場LOOK<br>球場規則、球證資格一次看透！';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '183型男黃玉榮 帽出頭！';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '健康醫療--<br>是好朋友 也是姐姐妹妹的煩惱';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '花編--<br>這樣的劇碼 那樣的人生';
		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 = '信託售屋 創造建商、消費者及銀行三贏';
		rows[1].link = 'today-house2.htm';
																											
		rows[2].text = '名人道 拿下內湖房價新高';
		rows[2].link = 'today-house3.htm';
																											
		rows[3].text = '巨星生活家 縣市交界 生活、交通便利';
		rows[3].link = 'today-house4.htm';
																											
		rows[4].text = '香草天空 緊臨國際棒球場';
		rows[4].link = 'today-house5.htm';
																											
		rows[5].text = '早安國城 25%低公設比 4房規劃';
		rows[5].link = 'today-house6.htm';
																											
		rows[6].text = '$180萬 20年老屋青春加倍';
		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 = '居家排水系統大學問';
		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';
}