//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 112;    //內部為112
layerHeight = 23;
leftMargin = 90;
tableWidth = 200;
rowHeight = 22;
showWeekly = true;
showHouse = false;
path = '';    //內部為空字串
//====================  end  ================================================

//===========================================================================
//所有的menu
//==================== begin ================================================
menuNames = new Array('t','fo','p','so','int','c','o','e','stock','life','sp','region','show');
titles = new Array('頭版新聞','焦點新聞','政治新聞','社會新聞','國際新聞','自由評論','自由廣場','財經焦點','證券理財','生活新聞','體育新聞','地方新聞','影視名人');
pages = new Array('today-t1.htm','today-fo1.htm','today-p1.htm','today-so0.htm','today-int0.htm','today-s1.htm','today-o0.htm','today-e1.htm','today-stock1.htm','today-life1.htm','today-sp0.htm','today-taipei0.htm','today-show1.htm');
if (showWeekly)
{
	menuNames = menuNames.concat(new Array('weekly'));
	titles = titles.concat(new Array('生活週報'));
	pages = pages.concat(new Array('today-weekly1.htm'));
}
else
{
	menuNames = menuNames.concat(new Array('supplement'));
	titles = titles.concat(new Array('生活藝文'));
	pages = pages.concat(new Array('today-fashion1.htm'));
}
if (showHouse)
{
	menuNames = menuNames.concat(new Array('house'));
	titles = titles.concat(new Array('住宅生活版'));
	pages = pages.concat(new Array('today-house1.htm'));
}
menuNames2 = new Array('taipei','north','center','south','fashion','family','medicine','article','art','travel');

names = menuNames.concat(menuNames2);
menus = Array(names.length);
for (i=0; i<menus.length; i++)
{
	menus[i] = new Object();
	menus[i].name = names[i];
}
//====================  end  ================================================

//===========================================================================
//主選單
//==================== begin ================================================
document.write('<TABLE class=block2L cellSpacing=1 cellPadding=3 width=90 border=0>');
document.write('	<TR>');
document.write('		<TD bgColor=#333399>今日要聞</TD>');
document.write('	</TR>');
for (i=0; i<menuNames.length; i++)
{
	document.write('	<TR>');
	document.write('		<TD class=block2L_tda onMouseOver="showMenu(this,'+menuNames[i]+')" onMouseOut="hideMenu()" style=color:blue;cursor:pointer');
	document.write('				onClick="location.href=\''+path+pages[i]+'\'">'+titles[i]+'</TD>');
	document.write('	</TR>');
}
document.write('	<TR>');
document.write('		<TD bgColor=#cc6600><A class=block2La href="'+path+'Rnews.htm">專題報導</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD bgColor=#666666>服務專區</TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.roclotto.com.tw/" target=_blank>樂透彩券</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'Nnews.htm">統一發票</A></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><font color=blue><A onmouseover="this.style.cursor=\'pointer\';this.style.color=\'deepskyblue\'" ');
document.write('			onclick="window.open(\'http://www.libertytimes.com.tw/Service/Order.htm\',\'_new\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=770,height=650\');" ');
document.write('			onmouseout="this.style.color=\'blue\'">訂報服務</A></FONT></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A class=block2La href="http://www.lscc.com.tw/" target=_blank>自由廣場<br>國際會議中心</a></TD>');
document.write('	</TR>');
document.write('</TABLE>');
//====================  end  ================================================

//===========================================================================
//所有的menu的項目，由PHP產生
//==================== begin ================================================

menu = getMenu('fo');
menu.layer = 1;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '扁批當前亂象：2008的事提前來到';
	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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
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-p1.htm';
																										
	rows[1].text = '飛指部陣前換將 引起揣測';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '美軍空中加油 展現戰力延伸';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '摸彩禮券 府︰每年向不同公司購買';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '接受約談 黃芳彥今抵台';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '李慧芬︰禮券來自章家 非扁嫂';
	rows[5].link = 'today-p6.htm';
																										
	rows[6].text = '陳由豪事件 沈富雄︰五種可能';
	rows[6].link = 'today-p7.htm';
																										
	rows[7].text = '李恆隆禮券回流 檢方追查消費者';
	rows[7].link = 'today-p8.htm';
																										
}
menu = null;

menu = getMenu('int');
menu.layer = 4;
menu.menuLayer = 0;
menu.rows = new Array(8);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = "2003年中國煞死男子 證實死於禽流感";
	rows[0].link = 'today-int1.htm';
																										
	rows[1].text = "禍首是人類  地球暖化 近400年之最";
	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 = "《中英對照讀新聞》Study shows apes can plan ahead 研究顯示猿類會事先計畫";
	rows[7].link = 'today-int8.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(10);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '勒贖6千萬 小2生被綁3天獲釋';
	rows[0].link = 'today-so1.htm';
																										
	rows[1].text = '組頭涉職棒簽賭案 轉移台中地檢續辦';
	rows[1].link = 'today-so2.htm';
																										
	rows[2].text = '李氏兄弟與共犯 搞軌近10次';
	rows[2].link = 'today-so3.htm';
																										
	rows[3].text = '禾申堡詐貸10億 5被告從重求刑';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '雙槍狙殺 2死1傷';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '角頭入獄 老婆提LV販毒';
	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';
																										
}
menu = null;

menu = getMenu('life');
menu.layer = 9;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '不想獨自做公益 ETC虧21億  遠通想漲OBU';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '雪隧電磁波 未逾標準值';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '13年未調整 國道客運喊漲';
	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 = '第一位台灣文學研究博士 陳龍廷深耕動力 來自布袋戲';
	rows[8].link = 'today-life9.htm';
																										
	rows[9].text = '中小學校長遴選 被批玩假的';
	rows[9].link = 'today-life10.htm';
																										
	rows[10].text = '技術人才搶手 高職入學升溫';
	rows[10].link = 'today-life11.htm';
																										
}
menu = null;

menu = getMenu('sp');
menu.layer = 10;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '《2006世界盃足球賽》義迦衝出亂局';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '《2006世界盃足球賽》衝動鑄錯 在捷難逃';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '《2006世界盃足球賽》迦納大腳 踹走美、捷';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '《2006世界盃足球賽》踢荷 阿分組第一';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '《2006世界盃足球賽》非洲象 贏得尊嚴';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《2006世界盃足球賽》烏軍求勝 怕輕敵突槌';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '《2006世界盃足球賽》足球最弱賽 今年絕響';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '熊掌甩鯨 緊咬爭冠機會';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《台北羽球公開賽》簡毓瑾 孤軍晉8強';
	rows[8].link = 'today-sp9.htm';
																										
}
menu = null;

menu = getMenu('e');
menu.layer = 7;
menu.menuLayer = 0;
menu.rows = new Array(9);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '四大基金已釋出540億';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '承銷新制 公開申購比率彈性化';
	rows[1].link = 'today-e2.htm';
																										
	rows[2].text = '柯承恩 面對黑函表遺憾';
	rows[2].link = 'today-e3.htm';
																										
	rows[3].text = '薪資縮水情況 逐漸好轉';
	rows[3].link = 'today-e4.htm';
																										
	rows[4].text = '中國企業投資印度 受挫';
	rows[4].link = 'today-e5.htm';
																										
	rows[5].text = '經部：台商須注意帳款回收問題';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '復華金董監改選 元大沙盤推演';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '國際油價 飆破71美元';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '金管會三委人選 月底出線';
	rows[8].link = 'today-e9.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
menu.menuLayer = 0;
menu.rows = new Array(17);
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 = '亞股大漲 短期波動仍大';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '經濟回春 歐股後市可期';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '《理財Q&A》外幣組合商品 保息不保本';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '日銀升息 財相鬆口';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '台積電65奈米 市佔達70%';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '高銅價走勢 連接線大廠利多';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '房產熱 營建股紛漲停';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = '對抗飛利浦 四大碟片廠聯合';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = '激買氣 液晶電視擬大降價';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '搶時效 友達硬闢第二條7.5代線';
	rows[11].link = 'today-stock12.htm';
																										
	rows[12].text = '台苯:SM至少發到明年';
	rows[12].link = 'today-stock13.htm';
																										
	rows[13].text = '長榮海運挑戰年營收1,500億';
	rows[13].link = 'today-stock14.htm';
																										
	rows[14].text = '手機族群 Q4營收看旺';
	rows[14].link = 'today-stock15.htm';
																										
	rows[15].text = '《期指觀測站》化解賣壓 多頭須補量';
	rows[15].link = 'today-stock16.htm';
																										
	rows[16].text = '《國際股市》歐股午盤漲 亞股全收紅';
	rows[16].link = 'today-stock17.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 = '前太保市長家族涉經營地下銀行 吸金逾10億';
	rows[0].link = 'today-t1.htm';
																										
}
menu = null;

menu = getMenu('show');
menu.layer = 12;
menu.menuLayer = 0;
menu.rows = new Array(14);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '吳彥祖酒醉伸怒爪 拉人喊暴力';
	rows[0].link = 'today-show1.htm';
																										
	rows[1].text = '世足貴婦金享受 花錢如流水';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '侯佩岑接新廣告 強調魅力依舊';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '金曲歌王王力宏 吸金1.5億';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '5566裝神弄鬼 大玩線上遊戲';
	rows[4].link = 'today-show5.htm';
																										
	rows[5].text = '六月東京意難忘 一天血拚10萬';
	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 = '養子女撇阿湯哥 挺妮可婚禮';
	rows[9].link = 'today-show10.htm';
																										
	rows[10].text = '布蘭妮話題不斷 登上搜尋榜首';
	rows[10].link = 'today-show11.htm';
																										
	rows[11].text = '基哥下跪求婚 明年娶馥蘭妮';
	rows[11].link = 'today-show12.htm';
																										
	rows[12].text = '裘莉抱夏蘿 探病危母親';
	rows[12].link = 'today-show13.htm';
																										
	rows[13].text = '奧蘭多偷腥 鮑斯華斯讓大家好看';
	rows[13].link = 'today-show14.htm';
																										
}
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 = '《鏗鏘集》藍綠的chicken game！';
		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 = '信義輕軌磁浮捷運 預計5年後上路';
	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';
																										
}
menu = null;

menu = getMenu('north');
menu.layer = 12;
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-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';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
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-center1.htm';
																										
	rows[1].text = '補教老師討債 率眾開車包抄老闆';
	rows[1].link = 'today-center2.htm';
																										
	rows[2].text = '亮病歷案 胡志強控告林進興等11人';
	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 = '販毒集團中國遙控 高雄取貨 下盤遭監控逮捕';
	rows[5].link = 'today-center6.htm';
																										
	rows[6].text = '科橋、夆典公司涉違反證交法案 相關人員到案說明 謝振益交保';
	rows[6].link = 'today-center7.htm';
																										
	rows[7].text = '咆哮法庭開鍘 判拘役30日';
	rows[7].link = 'today-center8.htm';
																										
	rows[8].text = '社會頻道／退休少校過少將癮 穿幫被逮';
	rows[8].link = 'today-center9.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
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-south1.htm';
																										
	rows[1].text = '健健美 東亞選手來較勁';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '砂石船觸礁 救不了';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '京城炒股案 起訴董事長等3人';
	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';
																										
}
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 = '趕鴨子上架的學運';
	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 = '所謂閩南人';
	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(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(13);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
		rows[0].text = '新民宿幸福入住夏日主張<br>情調小屋海洋玫瑰 小兩口共遊最浪漫';
		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 = '田野風情 竹里館 樸實中見優雅';
		rows[5].link = 'today-weekly6.htm';
																											
		rows[6].text = '南拳媽媽 ３男１女樂器通';
		rows[6].link = 'today-weekly7.htm';
																											
		rows[7].text = '廚房小魔法 聰明對抗高蔥價';
		rows[7].link = 'today-weekly8.htm';
																											
		rows[8].text = '誰是你的理想情人﹖';
		rows[8].link = 'today-weekly9.htm';
																											
		rows[9].text = '真是笑話';
		rows[9].link = 'today-weekly10.htm';
																											
		rows[10].text = '生日禮物 一週提案';
		rows[10].link = 'today-weekly11.htm';
																											
		rows[11].text = '搭飛機就好 別得到經濟艙症候群';
		rows[11].link = 'today-weekly12.htm';
																											
		rows[12].text = '哈利路亞！上帝顯靈？';
		rows[12].link = 'today-weekly13.htm';
																											
	}
	menu = null;
}
if (showHouse)
{
	menu = getMenu('house');
	menu.layer = 14;
	menu.menuLayer = 0;
	menu.rows = new Array(0);
	with (menu)
	{
		for (i=0; i<rows.length; i++)
			rows[i] = new Object();
																	
	}
	menu = null;
}
//====================  end  ================================================

//===========================================================================
//產生tables
//==================== begin ================================================
for (j=0; j<menus.length; j++)
{
	var previousRowType = '';
	if (menus[j].parentMenu == null)
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu(null,null) onMouseOut=hideMenu()>');
	else
		document.write('<table id='+menus[j].name+' style="position:absolute;left:'+(leftMargin+tableWidth*menus[j].menuLayer)+';visibility:hidden;font-size:13px;width:200;cursor:pointer;border:1 solid #00CCFF" border=0 bgcolor=#FFFFFF cellspacing=1 cellpadding=2 onMouseOver=showMenu2(null,null) onMouseOut=hideMenu2()>');

	for (i=0; i<menus[j].rows.length; i++)
	{
		if (previousRowType!='' && menus[j].rows[i].type==null)
		{
			document.write('<tr bgcolor=#00CCFF height=2 style=cursor:default>');
			document.write('	<td></td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].type && menus[j].rows[i].type!=previousRowType)
		{
			document.write('<tr bgcolor=#00CCFF height='+rowHeight+' style="cursor:default">');
			document.write('	<td>《'+menus[j].rows[i].type+'》</td>');
			document.write('</tr>');
		}

		if (menus[j].rows[i].submenu)
		{
			document.write('<tr onMouseOver="incell(this);showMenu2(this,'+menus[j].rows[i].submenu+')" onMouseOut="outcell(this);hideMenu2()" bgcolor=#C2E5FF height='+rowHeight+'>');
			if (menus[j].rows[i].link)
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">'+menus[j].rows[i].text+'</td>');
			else
				document.write('	<td>'+menus[j].rows[i].text+'</td>');
			document.write('</tr>');
		}
		else 
		{
			if (menus[j].rows[i].type == null)
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell(this) bgcolor=#C2E5FF height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">◎'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
			else
			{
				document.write('<tr onMouseOver=incell(this) onMouseOut=outcell2(this) bgcolor=#41DAAA height='+rowHeight+'>');
				document.write('	<td onClick="location.href=\''+path+menus[j].rows[i].link+'\'">．'+menus[j].rows[i].text+'</td>');
				document.write('</tr>');
			}
		}

		previousRowType = menus[j].rows[i].type==null? '': menus[j].rows[i].type;
	}

	document.write('</table>');
}
//====================  end  ================================================

var activeRow,activeMenu1,activeRow1,activeMenu2;
var protrude1;
var timer,timer2;
var hide,hide2

function getMenu(name)
{
	index = -1;
	for (i=0; i<menus.length; i++)
		if (menus[i].name == name)
		{
			index = i;
			break;
		}
	if (index != -1) return menus[index];
	else return null;
}

function showMenu(row,menu)
{
	if (activeRow)
	{
		hide = true;
		hideAllMenu();
	}
	hide = false;
	if (row)	activeRow = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu1 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu1.id).layer;
	protrude1 = defaultTop-document.body.scrollTop+activeMenu1.offsetHeight-document.body.clientHeight;
	if (protrude1 > 0)	
		activeMenu1.style.top = defaultTop-protrude1;
	else
		activeMenu1.style.top = defaultTop;
		
	activeMenu1.style.visibility = 'visible';
}

function hideMenu()
{
	clearTimeout(timer);
	hide = true;
	timer = setTimeout(hideAllMenu,600);
}

function hideAllMenu()
{
	if (hide)
	{
		activeRow.style.backgroundColor = '#FAF9F5';
		activeMenu1.style.visibility = 'hidden';
	}
}

function showMenu2(row,menu)
{
	if (activeRow1)
	{
		hide2 = true;
		hideAllMenu2();
	}
	hide = false;
	hide2 = false;
	if (row)	activeRow1 = row;
	activeRow.style.backgroundColor = '#FFCCFF';
	activeRow1.style.backgroundColor = '#FFCCFF';
	if (menu) activeMenu2 = menu;
	
	defaultTop = topMargin+layerHeight*getMenu(activeMenu2.id).layer;
	protrude2 = defaultTop-document.body.scrollTop+activeMenu2.offsetHeight-document.body.clientHeight;
	if (protrude2 > 0)	
	{
		if (protrude1 > protrude2)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop-protrude2;
	}
	else
	{
		if (protrude1 > 0)
			activeMenu2.style.top = defaultTop-protrude1;
		else
			activeMenu2.style.top = defaultTop;
	}
	
	activeMenu1.style.visibility = 'visible';
	activeMenu2.style.visibility = 'visible';
}

function hideMenu2()
{
	hideMenu();
	clearTimeout(timer2);
	hide2 = true;
	timer2 = setTimeout(hideAllMenu2,600);
}

function hideAllMenu2()
{
	if (hide2) {
		activeRow1.style.backgroundColor = '#C2E5FF';
		activeMenu2.style.visibility = 'hidden';
	}
}

function outcell(cell)
{
	cell.style.backgroundColor = '#C2E5FF';
	cell.style.color = 'black';
}

function outcell2(cell)
{
	cell.style.backgroundColor = '#41DAAA';
	cell.style.color = 'black';
}

function incell(cell)
{
	cell.style.backgroundColor = '#FFCCFF';
	cell.style.color = 'blue';
}