//===========================================================================
//基本設定
//==================== begin ================================================
topMargin = 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 href="http://www.libertytimes.com.tw/about/recruit.htm">求才專區</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A href="'+path+'activity.htm">活動訊息</a></TD>');
document.write('	</TR>');
document.write('	<TR>');
document.write('		<TD class=block2L_tdb><A 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(10);
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 = '馬永成：總統府沒介入SOGO案';
	rows[5].link = 'today-fo6.htm';
																										
	rows[6].text = '邱毅：某大金控送8位數禮金';
	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';
																										
}
menu = null;

menu = getMenu('p');
menu.layer = 2;
menu.menuLayer = 0;
menu.rows = new Array(6);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '決策高層：謝長廷是派系休兵轉捩點';
	rows[0].link = 'today-p1.htm';
																										
	rows[1].text = '中油最快今明調漲油價';
	rows[1].link = 'today-p2.htm';
																										
	rows[2].text = '軍購案露曙光 藍委論壇促處理';
	rows[2].link = 'today-p3.htm';
																										
	rows[3].text = '不分區立委提名下放基層扯上「王馬心結」<br>王金平：可選擇的路很多';
	rows[3].link = 'today-p4.htm';
																										
	rows[4].text = '日停止無償金援中國 轉貸印度';
	rows[4].link = 'today-p5.htm';
																										
	rows[5].text = '胡錦濤曾向布希表白 無力挑戰美霸權';
	rows[5].link = 'today-p6.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 = "紐約監視器密佈";
	rows[7].link = 'today-int8.htm';
																										
	rows[8].text = "《中英對照讀新聞》Japan police return 5 million yen thrown out with trash 日本警方歸還跟著垃圾一起扔掉的5百萬日圓";
	rows[8].link = 'today-int9.htm';
																										
}
menu = null;

menu = getMenu('so');
menu.layer = 3;
menu.menuLayer = 0;
menu.rows = new Array(11);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '橋樑殺人 護欄矮30公分 18歲騎士落橋亡';
	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 = '洪福案 翁大銘、李秀芬判賠18億';
	rows[3].link = 'today-so4.htm';
																										
	rows[4].text = '疑女友劈腿 強酸灌嘴 潑灑下體';
	rows[4].link = 'today-so5.htm';
																										
	rows[5].text = '28歲狠房客 殺54歲女房東';
	rows[5].link = 'today-so6.htm';
																										
	rows[6].text = '檢察事務官喜添丁 自曝生兒秘方';
	rows[6].link = 'today-so7.htm';
																										
	rows[7].text = '賭色合一 網站淘金逾2億';
	rows[7].link = 'today-so8.htm';
																										
	rows[8].text = '班有妥瑞童 小2女甘做受氣包';
	rows[8].link = 'today-so9.htm';
																										
	rows[9].text = '棄嬰尋根 載愛滿滿遊台';
	rows[9].link = 'today-so10.htm';
																										
	rows[10].text = '寄養避風港 林家不打烊';
	rows[10].link = 'today-so11.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 = '再傳馬兜鈴腎病變';
	rows[0].link = 'today-life1.htm';
																										
	rows[1].text = '坪林露營區違建 愈蓋愈多<br>環保署痛批水源局「放任」';
	rows[1].link = 'today-life2.htm';
																										
	rows[2].text = '北宜高帶來人潮 加速污染';
	rows[2].link = 'today-life3.htm';
																										
	rows[3].text = '埔里Long Stay風波 公所考察報告 網路被罵爆';
	rows[3].link = 'today-life4.htm';
																										
	rows[4].text = '日商訪屏縣 評估Long Stay';
	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 = '關掉電視 60個國家一起來';
	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';
																										
	rows[11].text = '大學學雜費 擬調漲至少2%';
	rows[11].link = 'today-life12.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 = '王建民1勝';
	rows[0].link = 'today-sp1.htm';
																										
	rows[1].text = '改變配球模式 8K創新高';
	rows[1].link = 'today-sp2.htm';
																										
	rows[2].text = '郭泓志後援兩局 無失分';
	rows[2].link = 'today-sp3.htm';
																										
	rows[3].text = '普侯斯 單場三轟';
	rows[3].link = 'today-sp4.htm';
																										
	rows[4].text = '兄弟三劍客 再連線';
	rows[4].link = 'today-sp5.htm';
																										
	rows[5].text = '《家庭生活盃女網賽》佩特洛娃封后 排名直逼莎娃';
	rows[5].link = 'today-sp6.htm';
																										
	rows[6].text = '季後賽 全員到齊';
	rows[6].link = 'today-sp7.htm';
																										
	rows[7].text = '職撞大賽 郭柏成敲進4強';
	rows[7].link = 'today-sp8.htm';
																										
	rows[8].text = '《ＳＢＬ》林志傑消腫 季後賽備戰';
	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 = '資金轉戰傳產 電子暫休兵';
	rows[0].link = 'today-e1.htm';
																										
	rows[1].text = '金價飆上606美元 25年新高';
	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 = '加工出口區更新 產值增599億';
	rows[5].link = 'today-e6.htm';
																										
	rows[6].text = '卡債衝擊 華銀雙卡虧損 擴大至9億';
	rows[6].link = 'today-e7.htm';
																										
	rows[7].text = '3款美系國產車 亮相';
	rows[7].link = 'today-e8.htm';
																										
	rows[8].text = '研發經費占GDP比重 趕上歐美';
	rows[8].link = 'today-e9.htm';
																										
}
menu = null;

menu = getMenu('stock');
menu.layer = 8;
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-stock1.htm';
																										
	rows[1].text = '10年期公債 上看2%';
	rows[1].link = 'today-stock2.htm';
																										
	rows[2].text = '《理財Q&A》定期定額投資 宜超過2年';
	rows[2].link = 'today-stock3.htm';
																										
	rows[3].text = '投信︰面板後市明朗 買盤湧入';
	rows[3].link = 'today-stock4.htm';
																										
	rows[4].text = '華映、奇美電 否認要合併';
	rows[4].link = 'today-stock5.htm';
																										
	rows[5].text = '雷科年增433% 日電貿最賺';
	rows[5].link = 'today-stock6.htm';
																										
	rows[6].text = '漲多回檔整裡 封測股基本面仍強';
	rows[6].link = 'today-stock7.htm';
																										
	rows[7].text = '南科華亞科 季報樂觀';
	rows[7].link = 'today-stock8.htm';
																										
	rows[8].text = '碟片Q1財報看衰 Q2有轉機';
	rows[8].link = 'today-stock9.htm';
																										
	rows[9].text = 'NAND慘跌 威剛首季EPS不到2元';
	rows[9].link = 'today-stock10.htm';
																										
	rows[10].text = 'Q2財測出爐 神達保守 神基估增14％';
	rows[10].link = 'today-stock11.htm';
																										
	rows[11].text = '《期指觀測站》電子期轉弱 追高宜避險';
	rows[11].link = 'today-stock12.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 = '追趕亞股 台股衝上7000點';
	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 = '鄭少秋戴了30年假髮 香帥M型禿現形';
	rows[1].link = 'today-show2.htm';
																										
	rows[2].text = '與林志玲吃飯 廠商緊張擦汗';
	rows[2].link = 'today-show3.htm';
																										
	rows[3].text = '王仁甫全裸 泡沫遮三點';
	rows[3].link = 'today-show4.htm';
																										
	rows[4].text = '朱茵愛情滋潤 暴肥丟飯碗';
	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 = 'Jolin學貓咪 不敢露一腿';
	rows[7].link = 'today-show8.htm';
																										
	rows[8].text = '維多利亞 王力宏 雞同鴨講';
	rows[8].link = 'today-show9.htm';
																										
	rows[9].text = '伊能靜盼道歉 李明依SAY NO';
	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';
																										
	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 = '處決流浪貓狗去年5341隻';
	rows[1].link = 'today-taipei2.htm';
																										
	rows[2].text = '光華新大樓變更設計 市長打回票';
	rows[2].link = 'today-taipei3.htm';
																										
	rows[3].text = '天琴座流星雨 極大期 23日報到';
	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 = '春遊平溪 日賞桐花夜賞螢';
	rows[8].link = 'today-taipei9.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 = '輾死女騎士 肇事駕駛送辦';
	rows[4].link = 'today-north5.htm';
																										
	rows[5].text = '苗死亡車禍 逃逸司機投案';
	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 = '社會傳真／五金行火災 165人員灌救';
	rows[9].link = 'today-north10.htm';
																										
}
menu = null;

menu = getMenu('center');
menu.layer = 13;
menu.parentMenu = 'region';
menu.menuLayer = 1;
menu.rows = new Array(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '掃校園頭昏昏 30小學生送醫';
	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 = '30秒偷汽車音響 被活逮';
	rows[4].link = 'today-center5.htm';
																										
}
menu = null;

menu = getMenu('south');
menu.layer = 14;
menu.parentMenu = 'region';
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-south1.htm';
																										
	rows[1].text = '唸美工玩機械 叫他發明達人';
	rows[1].link = 'today-south2.htm';
																										
	rows[2].text = '紋石對印 拼出婚紗美女';
	rows[2].link = 'today-south3.htm';
																										
	rows[3].text = '高雄地院疏失 判賠93萬';
	rows[3].link = 'today-south4.htm';
																										
	rows[4].text = '割喉狼出沒 南女學生頸割傷';
	rows[4].link = 'today-south5.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(4);
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 = '豐田Prius Hybrid 新體驗';
	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 = '7大性迷思 女人妳醒醒吧!';
	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(5);
with (menu)
{
	for (i=0; i<rows.length; i++)
		rows[i] = new Object();
																
	rows[0].text = '婦女尿失禁<br>隱忍不談 不如坦然治療';
	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';
																										
	rows[4].text = '掌握洗腎時機 減少併發症問題';
	rows[4].link = 'today-medicine5.htm';
																										
}
menu = null;

menu = getMenu('article');
menu.layer = 16;
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-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';
																										
}
menu = null;

menu = getMenu('art');
menu.layer = 17;
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 = '2006國際長笛藝術節開幕 四大名家盛讚台灣為世界長笛首都';
	rows[0].link = 'today-art1.htm';
																										
	rows[1].text = '木琴VS.交響樂 打擊樂家吳珮菁絕活展技';
	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';
																										
	rows[5].text = '從服裝設計跨界 洪麗芬布畫突破框架';
	rows[5].link = 'today-art6.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 = '品味<br>維也納咖啡館';
	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';
}