//===========================================================================
//基本設定
//==================== 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(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '公投法修法 藍綠今攻防';
	rows[0].link = 'today-fo1.htm';
																										
	rows[1].text = '馬曾說公投是搞文革 竟倡罷扁公投';
	rows[1].link = 'today-fo2.htm';
																										
	rows[2].text = '馬促扁去留全民公投 實是混淆公投';
	rows[2].link = 'today-fo3.htm';
																										
	rows[3].text = '現行公投法 藍綠角力下產物…';
	rows[3].link = 'today-fo4.htm';
																										
	rows[4].text = '憲改二版本 府院黨今討論';
	rows[4].link = 'today-fo5.htm';
																										
	rows[5].text = '若反對罷免案 施促罷免綠委 綠斥勒索';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '競逐總統大位 馬明年將辭黨主席';
	rows[6].link = 'today-fo7.htm';
																										
	rows[7].text = '聽建言 蘇揆上週拜會李遠哲';
	rows[7].link = 'today-fo8.htm';
																										
	rows[8].text = '蘇馬會 馬不排除親致電蘇揆';
	rows[8].link = 'today-fo9.htm';
																										
	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(11);
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 = '紅潮越濁水溪 1600警力戒護';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '演練未申請 簡錫&#22566;函辦';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '倒扁轉進 今到南縣府借廁所';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '呂秀蓮談紅螞蟻 台下對嗆';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '台灣青年智庫慶二歲生日';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '矮化台灣 世銀要求我廣告更名';
	rows[7].link = 'today-p8.htm';
																										
	rows[8].text = '尼克森挺台灣 批聯合國';
	rows[8].link = 'today-p9.htm';
																										
	rows[9].text = '尚比亞大選 牽動兩岸外交';
	rows[9].link = 'today-p10.htm';
																										
	rows[10].text = '榮民小三通赴中 研議開放';
	rows[10].link = 'today-p11.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
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-int1.htm';
																										
	rows[1].text = "日中、日韓峰會 安倍外交破冰";
	rows[1].link = 'today-int2.htm';
																										
	rows[2].text = "胡溫接班人 二李人氣旺";
	rows[2].link = 'today-int3.htm';
																										
	rows[3].text = "巴西大選 現任總統看好";
	rows[3].link = 'today-int4.htm';
																										
	rows[4].text = "長腿女短腿男 超完美演化";
	rows[4].link = 'today-int5.htm';
																										
	rows[5].text = "無尾熊好孕氣 澳洲喊節育";
	rows[5].link = 'today-int6.htm';
																										
	rows[6].text = "世界小姐 捷克美女稱后";
	rows[6].link = 'today-int7.htm';
																										
	rows[7].text = "巴西墜機 發現殘骸 155人恐全罹難";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中英對照讀新聞》Thai princess unveils country\'s first royal blog 泰國公主公布泰國第一個王室網誌";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(15);
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 = '灌藥？自殺？ 3代4口喝農藥昏迷';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '黑店老闆開槍嗆鄰 判8年';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '開火車撞死2國中生 無罪';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '男跨駁坎跌死 公所判賠73萬';
	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 = '獨居老人不認親 他不放心<br>警員奔波8年助團圓';
	rows[11].link = 'today-so12.htm';
																										
	rows[12].text = '天壇獎學金 天公疼小子';
	rows[12].link = 'today-so13.htm';
																										
	rows[13].text = '外籍新娘一點心 溫暖獨居長者心';
	rows[13].link = 'today-so14.htm';
																										
	rows[14].text = '半工半讀清寒生 年年第一獲獎助';
	rows[14].link = 'today-so15.htm';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '量販店及超市12月起限塑 減用生鮮托盤、蛋盒';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '搏浪3300米 2萬蛟龍泳渡明潭';
	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 = '台大10年EMBA 門戶大開';
	rows[7].link = 'today-life8.htm';
																										
	rows[8].text = '工作反覆重壓 大腿壓出橫溝';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '謝育峰 釀出台灣葡萄美酒';
	rows[9].link = 'today-life10.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(18);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '洋基10月先生 建仔備戰問鼎';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '王、郭季後賽對決 機率低';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '11月中返台 代言洲際盃';
	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 = '3將被控用禁藥 克雷門斯等否認';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '老將棄將壓軸 道奇教士晉級';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '19歲菜鳥欺巨人 姜建銘2連敗';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '97太沉重? 原辰德建議換背號';
	rows[8].link = 'today-sp9.htm';
																										
	rows[9].text = '松&#22338;鼓勵阿家 我相信你會再站起來!';
	rows[9].link = 'today-sp10.htm';
																										
	rows[10].text = '自助人助 獅挺進季後賽';
	rows[10].link = 'today-sp11.htm';
																										
	rows[11].text = '台灣名人賽 本土崩盤 蓋伊稱王';
	rows[11].link = 'today-sp12.htm';
																										
	rows[12].text = '上海積情 大舒追平阿隆索';
	rows[12].link = 'today-sp13.htm';
																										
	rows[13].text = '美國運通高球賽 老天爺幫忙！伍茲獵鷹居首';
	rows[13].link = 'today-sp14.htm';
																										
	rows[14].text = '凱耶斯／莉芭絲 「德」意舞林';
	rows[14].link = 'today-sp15.htm';
																										
	rows[15].text = '王信淵 衛冕失利';
	rows[15].link = 'today-sp16.htm';
																										
	rows[16].text = '張裴瑋 先盛後衰';
	rows[16].link = 'today-sp17.htm';
																										
	rows[17].text = '永信盃 台電雙贏';
	rows[17].link = 'today-sp18.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
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].link = 'today-e1.htm';
																										
	rows[1].text = '純麥威士忌、干邑白蘭地 最嗆';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '孫培民累積專業 重經驗分享';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '兆豐銀瞄準消金 喚舊迎新';
	rows[3].link = 'today-e4.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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].link = 'today-stock1.htm';
																										
	rows[1].text = 'PC機殼廠 月績一路旺';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '下半年獲利 面板上漲關鍵';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '小型金融股 盤面焦點';
	rows[3].link = 'today-stock4.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 = '陳定中幽會辣妹 徒留田麗守空閨 7小時全紀錄';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '冶艷尤物 情路坎坷<br>田麗信任老公 不愛緊迫盯人';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '節目合作 墜入愛河<br>浪漫陳定中 曾讓田麗非常幸福';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '「精」魂未定 Jolin譴責掏槍客';
	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 = '仔仔變狗仔 李冰冰狂NG';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '柯以柔E波大過頭 潘慧如B球撿百萬';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '精彩人生90年 阿匹婆18歲就做阿匹婆';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '啃冒牌蟹慶生 竇智孔瀉不停';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '歐普拉5年捐49.9億 麗塔瓊斯義賣只掏800元';
	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(9);
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 = '信義計劃區25年 曼哈頓成形';
	rows[5].link = 'today-taipei6.htm';
																										
	rows[6].text = '無預警 新生農市突喊停';
	rows[6].link = 'today-taipei7.htm';
																										
	rows[7].text = '酗咖啡一族 膽固醇易過量';
	rows[7].link = 'today-taipei8.htm';
																										
	rows[8].text = '新移民「吃」情 南洋味飄香';
	rows[8].link = 'today-taipei9.htm';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '桃園數學奧林匹亞競賽 3人奪金';
	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 = '頭城搶孤2獲獎隊伍 獎金送暖';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '金城桐花盃路跑賽 5千人飆汗';
	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';
																										
}
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 = '浪漫求婚記 餐廳大禮 包藏愛的驚喜';
	rows[0].link = 'today-center1.htm';
																										
	rows[1].text = '啣筆彩繪 李秋梅人生變彩色';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '馳騁林場 廖慶煜得意畫當年';
	rows[2].link = 'today-center3.htm';
																										
	rows[3].text = '吸毒屬自殘 警緝毒請票踢鐵板';
	rows[3].link = 'today-center4.htm';
																										
	rows[4].text = '撞變電箱 重型機車騎士頭爆裂';
	rows[4].link = 'today-center5.htm';
																										
	rows[5].text = '醉漢路倒4回 警折騰1夜';
	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(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '台東縣長率團出國 2週花掉400萬';
	rows[0].link = 'today-south1.htm';
																										
	rows[1].text = '七美石器工廠 列入遺址';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = 'ICF世界龍舟錦標賽 台灣奪3金';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '增8例 高縣登革熱病例破百';
	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 = '高雄捷運初體驗 逾3千人報名';
	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(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '教官 教師還是軍官？';
	rows[0].link = 'today-o1.htm';
																										
	rows[1].text = '《曹長青專欄》「文革」紅潮在「倒綠」';
	rows[1].link = 'today-o2.htm';
																										
	rows[2].text = '慎防台語沙文主義';
	rows[2].link = 'today-o3.htm';
																										
	rows[3].text = '台語統一派的迷思與暴力';
	rows[3].link = 'today-o4.htm';
																										
	rows[4].text = '定案就好';
	rows[4].link = 'today-o5.htm';
																										
	rows[5].text = '李扁 當然不一樣';
	rows[5].link = 'today-o6.htm';
																										
	rows[6].text = '請再捐一百';
	rows[6].link = 'today-o7.htm';
																										
	rows[7].text = '不要急著退場';
	rows[7].link = 'today-o8.htm';
																										
	rows[8].text = '王建民在上海';
	rows[8].link = 'today-o9.htm';
																										
	rows[9].text = '加拿大讀報有感';
	rows[9].link = 'today-o10.htm';
																										
}
menu = null;

if (showWeekly == false)
{
	menu = getMenu('supplement');
	menu.layer = 13;
	menu.menuLayer = 0;
	menu.rows = new Array(6);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
	
		rows[0].text = '流行消費　　→';
		rows[0].submenu = 'fashion';
		rows[0].link = 'today-fashion1.htm';
	
		rows[1].text = '家庭兩性　　→';
		rows[1].submenu = 'family';
		rows[1].link = 'today-family1.htm';
	
		rows[2].text = '健康醫療　　→';
		rows[2].submenu = 'medicine';
		rows[2].link = 'today-medicine1.htm';
	
		rows[3].text = '自由副刊　　→';
		rows[3].submenu = 'article';
		rows[3].link = 'today-article1.htm';
	
		rows[4].text = '藝術文化　　→';
		rows[4].submenu = 'art';
		rows[4].link = 'today-art1.htm';
	
		rows[5].text = '休閒旅遊　　→';
		rows[5].submenu = 'travel';
		rows[5].link = 'today-travel1.htm';
	}
	menu = null;
}

menu = getMenu('fashion');
menu.layer = 13;
menu.parentMenu = 'supplement';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '小臉美顏社 抗皺拒垮';
	rows[0].link = 'today-fashion1.htm';
																										
	rows[1].text = '生活品質 百貨製造';
	rows[1].link = 'today-fashion2.htm';
																										
	rows[2].text = '打造電眼 從養睫下手';
	rows[2].link = 'today-fashion3.htm';
																										
	rows[3].text = '百貨週年慶 美妝聰明GO!';
	rows[3].link = 'today-fashion4.htm';
																										
	rows[4].text = 'Nokia音樂手機 賣力火拼';
	rows[4].link = 'today-fashion5.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 = '有病別亂投醫 用正確方法愛自己';
	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(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '瓦倫達家族「七人金字塔」絕技<br>空中飛人大馬戲團 首度來台呈現';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '扭轉不重唱工趨勢 歌仔折戲展風華';
	rows[1].link = 'today-art2.htm';
																										
	rows[2].text = '骨董陶瓷圖飾 小紅魚游進現代用品';
	rows[2].link = 'today-art3.htm';
																										
	rows[3].text = '雲門新作《風•影》製舞影草圖  蔡國強八里排練場搞爆破';
	rows[3].link = 'today-art4.htm';
																										
	rows[4].text = '抗癌畫家柯淑玲 義賣作品助癌症病童';
	rows[4].link = 'today-art5.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';
}