//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = false;
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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '討黨產 11月底前公投連署';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '台聯：美商利益 不等於台灣人利益';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '扁：來對了 回台能逢凶化吉';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '出席高峰會 扁：沒帶支票簿';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '林成蔚：帛琉宣言將永續發展';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '援索千萬美元？ 黃志芳否認';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '勒索台灣？ 諾魯總統嚴正駁斥';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '嘲諷友邦 凸顯無量與無知';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '護航專機照片上網  是否懲處今決定';
	rows[8].link = 'today-fo9.htm';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '9.9靜坐 排列納斯卡線 恐越核准路權';
	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 = '機要費案 檢方最快7日說明案情';
	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(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "美期中選舉 共和黨眾院難保";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "二戰密件解密 諾曼地登陸 差點破功";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "雅子紀子 走不出生子枷鎖";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "甜心主播凱蒂庫瑞克 首戰晚間新聞";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "超級巨無霸 首載客試飛";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "希特勒桌椅 喊價百萬美元";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "《中英對照讀新聞》China awards damages for Nanjing massacre denial 否認南京大屠殺 中國法院判決賠償";
	rows[6].link = 'today-int7.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '日籍乘客遺落40萬 好運將送回';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '中市西區公館里 治安會才開完 19個巡邏箱被偷12個';
	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';
																										
	rows[13].text = '無依4兄弟 里長供住送暖';
	rows[13].link = 'today-so14.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(12);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '3000輛逾齡垃圾車 滿街跑';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '電池號稱不含汞 竟超出標準100倍';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '馬祖燕鷗更名爭議 鳥界各執一詞';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '台中護專圍牆 裝設刀片蛇籠';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '高餐改陋規 篩檢愛滋採自願';
	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 = '10大危險平交道 電眼全記錄';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '遠通捐股 交部憂口說無憑';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '吃堅果 降低心血管疾病';
	rows[10].link = 'today-life11.htm';
																										
	rows[11].text = '聰明小晶片 即時監測血液';
	rows[11].link = 'today-life12.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
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-sp1.htm';
																										
	rows[1].text = '郭泓志 週六可望扛先發';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '姜建銘好投 落合也稱讚';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '哈沃德、普侯斯 同日單場3轟';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '熊M11 最快週四亮燈';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '職業生涯落幕 阿格西哭了';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '從壞孩子到…永遠的巨星';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '10項紀錄 無人能及';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '風花雪月史 目不暇給';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '美夢幻滅 無損老K口碑';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '德意志公開賽 虎頭蛇尾 維傑辛超前';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '泛美盃棒球賽 美國古巴 晉級奧運';
	rows[11].link = 'today-sp12.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '刷卡紅利實用化 生活更省錢';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '算準結帳日 延付現金賺利息';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '精打細算  買車險';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '8月海外基金績效 股優於債';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '全球五大債市 11年來都是正報酬';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '《理財Q&A》逾3,000萬保險受益 才須課稅';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '新創企業興起 矽谷重生';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '新創企業帶動--休閒旅館 大幅成長';
	rows[7].link = 'today-e8.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '合庫將現增40億 公開承銷';
	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 = '中華電信違約 判賠近2.5億元';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '旺季到 光學族群high起來';
	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 = '瑞儀月績超旺 股價回升到50元';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '鄭世杰：封測未來兩年「好年冬」';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '歐股午盤漲 日星菲泰全收高';
	rows[9].link = 'today-stock10.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 = '小5生發現40萬年前台灣虎化石';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(18);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '周董Ｈebe蕾絲邊 傳搞異性、同性戀';
	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 = '潘慧如露點傷形象 MoMo台求償百萬';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '林志玲招招手 暑假遊日旅客激增';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = 'B肝帶原風波 網友批華仔 狂吻女星不道德';
	rows[5].link = 'today-show6.htm';
																										
	rows[6].text = '民視新聞受肯定 4喜臨門大贏家';
	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 = '羅比借歌殺人 報復前經紀人';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '達斯汀罩紙袋氣狗 莎嬸不妝露老臉';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '芭黎絲CD被掉包 變狗頭裸女';
	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 = '打板影評 看片好幫手';
	rows[15].link = 'today-show16.htm';
																										
	rows[16].text = '松浦亞彌辦案不力 脫星盜版搞A';
	rows[16].link = 'today-show17.htm';
																										
	rows[17].text = '龜梨和也被踢爆 沒參加世界少棒賽';
	rows[17].link = 'today-show18.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 = '假綁架真勒贖 詐騙翻新招';
	rows[0].link = 'today-taipei1.htm';
																										
	rows[1].text = '黑幫街頭槍戰 警逮6嫌犯';
	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公所要查';
	rows[8].link = 'today-taipei9.htm';
																										
	rows[9].text = '鳳梨酥伴手禮 疊成北門城';
	rows[9].link = 'today-taipei10.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-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 = '羅東鎮民第3胎 上托兒所省錢';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '西湖又見中秋 16日來鬥鬧熱';
	rows[5].link = 'today-north6.htm';
																										
	rows[6].text = '當上食神 張志騰明年拚世界冠軍';
	rows[6].link = 'today-north7.htm';
																										
	rows[7].text = '請領戶籍謄本暴增 桃市戶政所塞爆';
	rows[7].link = 'today-north8.htm';
																										
	rows[8].text = '穿便服上學 頭城家商喊延期';
	rows[8].link = 'today-north9.htm';
																										
	rows[9].text = '三芝淺水灣沒水可沖 遊客搞破壞';
	rows[9].link = 'today-north10.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(7);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '索回扣 雲林水林鄉長 2案求刑15、20年';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '邀宴買票 前村長朱昇輝判刑';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '佔地為王 3霸收運將保護費';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '同居男友 詐欺竊盜判10月';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '棄物處理廠火警 燒掉上千萬';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '4菲籍銀樓盜 血拼添行頭 落網互推諉';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '社會傳真／借提嫌犯 查獲2制式手槍';
	rows[6].link = 'today-center7.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(17);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '行情俏、賊影動 3嫌偷採文旦被逮';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '南島文化節 明年提早開跑';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '天亮前3小時 南灣珊瑚釋苗高峰';
	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 = '新市讀書會 「螢光」閃10年';
	rows[8].link = 'today-south9.htm';
																										
	rows[9].text = '市府94年度總決算 人事費用超高';
	rows[9].link = 'today-south10.htm';
																										
	rows[10].text = '招收障礙生？慈濟小學保留';
	rows[10].link = 'today-south11.htm';
																										
	rows[11].text = '無障礙空間實勘 缺失仍多';
	rows[11].link = 'today-south12.htm';
																										
	rows[12].text = '師生玩創藝 南華國小添美景';
	rows[12].link = 'today-south13.htm';
																										
	rows[13].text = '廚工減聘 廣興國小吃不消';
	rows[13].link = 'today-south14.htm';
																										
	rows[14].text = '社區愛絲瓜 添收益打名聲';
	rows[14].link = 'today-south15.htm';
																										
	rows[15].text = '教師上課時數 明定每週40小時';
	rows[15].link = 'today-south16.htm';
																										
	rows[16].text = '比賽常勝軍 翁麗雅獲師鐸獎';
	rows[16].link = 'today-south17.htm';
																										
}
menu = null;

menu = getMenu('o');
menu.layer = 6;
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-o1.htm';
																										
	rows[1].text = '巫蠱之禍';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '就是九9';
	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';
																										
	rows[11].text = '微笑PASTA 造孽';
	rows[11].link = 'today-o12.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(4);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = 'WRC日本Rally賽後報導<br>5.6秒兩位車手的拉鋸';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '秋天 精品時尚早一步';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '美麗24小時專賣';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = 'GPS帶上車 認路沒困擾';
	rows[3].link = 'today-fashion4.htm';
																										
}
menu = null;

menu = getMenu('family');
menu.layer = 14;
menu.parentMenu = 'supplement';
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-family1.htm';
																										
	rows[1].text = '消除菊花黑眼圈';
	rows[1].link = 'today-family2.htm';
																										
	rows[2].text = '夠用就好 無所求更快樂';
	rows[2].link = 'today-family3.htm';
																										
	rows[3].text = '雙眼皮整型 打造電眼';
	rows[3].link = 'today-family4.htm';
																										
}
menu = null;

menu = getMenu('medicine');
menu.layer = 15;
menu.parentMenu = 'supplement';
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-medicine1.htm';
																										
	rows[1].text = '血糖密碼126  八成民眾不知道';
	rows[1].link = 'today-medicine2.htm';
																										
	rows[2].text = '少女厭食想苗條  體重急降十四公斤';
	rows[2].link = 'today-medicine3.htm';
																										
	rows[3].text = 'Ｃ肝有可能變肝癌  建議仍需追蹤檢查';
	rows[3].link = 'today-medicine4.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
menu.parentMenu = 'supplement';
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-article1.htm';
																										
	rows[1].text = '動亂';
	rows[1].link = 'today-article2.htm';
																										
	rows[2].text = '流浪的行旅';
	rows[2].link = 'today-article3.htm';
																										
	rows[3].text = '多病故人疏';
	rows[3].link = 'today-article4.htm';
																										
	rows[4].text = '愛讀書《紐約．藝術時區》';
	rows[4].link = 'today-article5.htm';
																										
	rows[5].text = '台灣文學論文獎助';
	rows[5].link = 'today-article6.htm';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-art1.htm';
																										
}
menu = null;

menu = getMenu('travel');
menu.layer = 18;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
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-travel1.htm';
																										
}
menu = null;

if (showWeekly)
{
	menu = getMenu('weekly');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	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';
}